// navbar.less header{ .navbar{ min-height: 78px; margin-bottom: 0px; text-transform: uppercase; background: #FFF; > .container .navbar-brand, > .container-fluid .navbar-brand { margin-left: -7px; } > .container .navbar-brand{ padding: 15px 7px; } .nav > li > a { position: relative; display: block; padding: 10px; } .navbar-nav > li { min-width: 0; padding-right: 24px; .sub-menu.active, &:hover > .sub-menu{ opacity:1; visibility:visible; } .sub-menu.active{ display:block; } } .navbar-nav > li > a { padding-top: 28px; padding-bottom: 28px; color: #323c46; text-shadow: 0 1px 0 rgba(255,255,255,0.25); line-height: 20px; } .navbar-nav .sub-menu{ position: absolute; z-index: 10000; top: 66px; margin: 0; left: 0; float: left; background: #fff; min-width: 154px; width: 100%; list-style-type: none; padding: 0; visibility: hidden; opacity:0; li { .sub-menu{ position: absolute; left: 100%; top: 0px; } &:hover .sub-menu{ opacity:1; visibility:visible; display:block; } a { font-size: 10px; font-weight: 400; color: #212121; display: block; width: 100%; padding: 6px 15px; &:hover{ color:#E2251C; } } } } } .open-btn{ display:none; } } @media (max-width: 1199px){ header{ .navbar{ .nav > li.menu-item-has-children > a { &:before{ content:''; background: url('./assets/images/arrow_grey.png') left no-repeat; position: absolute; bottom: 10px; left: 0; right: 0; margin: auto; height: 16px; width: 15px; transform: rotate(90deg); } } } } } @media (max-width: 1199px) and (min-width: 801px){ header{ .navbar{ .nav > li > a { font-size: 12px; } .navbar-nav > li { padding:0; } } } } @media (min-width: 801px){ .navbar-toggle { display: none; } } @media (min-width: 802px){ .mobile-navigation { display: none !important; } } @media (max-width: 801px){ header .navbar{ min-height: 70px; margin-bottom: 0px; .col-sm-9{ width: 100%; padding: 0; position: absolute; top: 100%; background: #FFF; margin-top: 1px; .navbar-collapse{ overflow: hidden; display:none !important; } ul li{ width: 100%; &.menu-item-has-children > a:before{ left: initial; bottom: 5px; top: 0; background-position: center; } .sub-menu.active{ display:block; position: relative; top: 0; padding: 10px 10px 20px; z-index: 1; li { a { padding:5px; display: block; } .open-btn{ display:none; } } } } .navbar-nav>li>a { padding-top: 12px; padding-bottom: 12px; font-size: 20px; border-bottom: 1px solid #E7E9EB; text-align: left; } .navbar-nav .sub-menu{ position: static; margin-bottom: 20px; background: #E7E9EB; text-align: center; display:none; } } .menu-item-has-children .open-btn { display: block; position: absolute; right: 10px; height: 100%; width: 60px; top: 0; bottom: 0; z-index: 10; background-repeat: no-repeat; background-position: center; transform: rotate(90deg); &.opened{ transform: rotate(270deg); } } .navbar-header{ border: 0px; border-radius: 0px; border-left: 1px solid #ccc; position: relative; float: right; margin-right: 0px; padding: 28px 21px; margin-top: 0px; margin-bottom: 0px; margin-right: -7px; } } .navbar-default .navbar-toggle { display: block; float: right; border-color: transparent; padding: 0; margin: auto; &:hover, &:focus, &:active{ background-color:transparent; } } .mobile-navigation{ display:none; &.active{ display:block; } .nav-mobile > li{ & > a { color: #323c46; padding-top: 12px; padding-bottom: 12px; font-size: 20px; border-bottom: 1px solid #E7E9EB; text-align: left; text-shadow: 0 1px 0 rgba(255,255,255,0.25); position: relative; display: block; padding: 10px; text-transform:uppercase; } .sub-menu{ display: none; position: absolute; z-index: 10000; top: 66px; margin: 0; left: 0; float: left; background: #fff; min-width: 124px; width: 100%; list-style-type: none; padding: 0; } } } } .menu-container{ display: flex; justify-content: flex-start; align-items: center; .navbar-brand{ height:100%; } } @media (max-width: 801px){ .menu-container{ display:inline-block; .navbar-brand{ max-height:100%; height: 72px; display: flex; justify-content: flex-start; align-items: center; & > img{ max-height: 50px; max-width: 160px; } } } }