$header_height: 50px; $offcanvas-width: 270px; $offcanvas-padding: 15px; $nav-bg-color: color('gray-700'); @mixin nav-border($sides...) { @each $side in $sides { border-#{$side}: 1px solid color('gray-400'); } } // Basic styles - A lot of overriding Bootstrap defaults .navbar-toggle { @media (max-width: $grid-float-breakpoint) { display: block; } } .navbar-brand { position: absolute; width: 100%; left: 0; top: 0; margin: auto; padding: $padding-small-vertical 0 0; text-align: center; } .navbar { border-radius: 0; border: none; @extend %card-shadow; .nav.navbar-nav { margin-top: 0; margin-bottom: 0; @media (max-width: $grid-float-breakpoint) { margin-left: 0; margin-right: 0; } > li > a { height: $header_height; color: color('gray-400'); font-size: $font-size-500; @media (max-width: $grid-float-breakpoint) { padding-top: $offcanvas-padding; @include nav-border(top); border-color: color('gray-600') } @media (min-width: $grid-float-breakpoint) { color: color('gray-600'); font-size: $font-size-default; @include transition(all 0.2s ease-in-out); } &:hover { @media (min-width: $grid-float-breakpoint) { background-color: color('gray-300'); } } } .dropdown.open > .dropdown-toggle { color: color('white'); @media (min-width: $grid-float-breakpoint) { color: color('gray-400'); background-color: $nav-bg-color; } } > .active > a { background-color: transparent; &:hover, &:focus { @media (max-width: $grid-float-breakpoint) { color: color('gray-400'); } } } &.navbar-right { margin-right: 0; } } } .navbar-account_item { @media (min-width: $grid-float-breakpoint) { @include nav-border(left); } } .navbar-account-signed_out_btn { position: absolute; width: $offcanvas-width - ($offcanvas-padding * 2) - 5; // 5 = .dropdown-menu-nav padding-left left: $offcanvas-padding + 5; margin-top: $offcanvas-padding; margin-bottom: $offcanvas-padding; &.is_fixed_bottom { bottom: 10px; margin-bottom: 0; } .btn-action-icon { margin-top: 2px; } }