Commit f37b4f80c3dae4f2019b55390050cf63d88879e4
1 parent
58bb0e3b
menu 2
Showing
3 changed files
with
43 additions
and
3 deletions
Show diff stats
frontend/assets/AppAsset.php
frontend/views/layouts/main.php
| ... | ... | @@ -252,15 +252,17 @@ _________________________________________________________ --> |
| 252 | 252 | |
| 253 | 253 | <a class="navbar-brand home" href="<?php echo Url::home(); ?>"> |
| 254 | 254 | <?php |
| 255 | - echo ImageHelper::set($logo) | |
| 255 | + /*echo ImageHelper::set($logo) | |
| 256 | 256 | ->setHeight(42) |
| 257 | 257 | ->renderImage( |
| 258 | 258 | [ |
| 259 | 259 | 'alt' => $settings->name, |
| 260 | 260 | ] |
| 261 | - ) | |
| 261 | + )*/ | |
| 262 | 262 | ?> |
| 263 | + <img src="/img/logo_kb.png" alt="<?=$settings->name;?>" class="static_logo_img"> | |
| 263 | 264 | </a> |
| 265 | + <div class="static_logo_about"><?=$settings->about;?></div> | |
| 264 | 266 | <div class="navbar-buttons"> |
| 265 | 267 | <button type="button" class="navbar-toggle btn-template-main" data-toggle="collapse" data-target="#navigation"> |
| 266 | 268 | <span class="sr-only">Toggle navigation</span> |
| ... | ... | @@ -274,7 +276,7 @@ _________________________________________________________ --> |
| 274 | 276 | $items = []; |
| 275 | 277 | $items[] = [ |
| 276 | 278 | 'label' => \Yii::t('app', 'menu-about'), |
| 277 | - 'url' => [ 'site/about' ], | |
| 279 | + 'url' => [ Url::home() ], | |
| 278 | 280 | ]; |
| 279 | 281 | $items[] = [ |
| 280 | 282 | 'label' => \Yii::t('app', 'menu-individual'), | ... | ... |
| 1 | +.navbar ul.nav > li > a { | |
| 2 | + font-size: 13px; | |
| 3 | + letter-spacing: -0.40px; | |
| 4 | + max-width: 158px; | |
| 5 | + text-align: center; | |
| 6 | + padding: 0px 14px 2px; | |
| 7 | + height: 62px; | |
| 8 | + line-height: 18px; | |
| 9 | + display: flex; | |
| 10 | + justify-content: center; | |
| 11 | + align-items: center; | |
| 12 | +} | |
| 13 | +.navbar-brand{ | |
| 14 | + display: flex; | |
| 15 | + justify-content: center; | |
| 16 | + align-items: center; | |
| 17 | +} | |
| 18 | +.static_logo_img{ | |
| 19 | + width:85px; | |
| 20 | +} | |
| 21 | +.static_logo_about{ | |
| 22 | + font-family: Arial, sans-serif!important; | |
| 23 | + transition: 0.3s; | |
| 24 | + width: 125px; | |
| 25 | + padding: 0; | |
| 26 | + margin: 0; | |
| 27 | + margin-left: -5px; | |
| 28 | + float: left; | |
| 29 | + display: flex; | |
| 30 | + height: 62px; | |
| 31 | + justify-content: center; | |
| 32 | + align-items: center; | |
| 33 | + font-size: 11px; | |
| 34 | + text-transform: lowercase; | |
| 35 | + line-height: 13px; | |
| 36 | + cursor: default; | |
| 37 | +} | |
| 0 | 38 | \ No newline at end of file | ... | ... |