@mixin nav-item-hover-effect($theme: 'light') { color: get-light-color('accent-color') !important; border-bottom: 2px solid get-light-color('accent-color') !important; background: rgba(get-light-color('accent-color'), 0.1); @include transition(); @if $theme == 'dark' { color: get-dark-color('accent-color') !important; border-bottom: 2px solid get-dark-color('accent-color') !important; background: rgba(get-dark-color('accent-color'), 0.1); } } .top-navbar { position: fixed; left: 0; top: 0; width: 100%; height: 50px; z-index: 99999; margin: 0px; padding-top: 0.4rem; color: get-light-color('heading-color'); text-align: center; background-color: get-light-color('bg-primary'); @include transition(); .navbar-brand { color: get-light-color('heading-color'); text-decoration: none !important; font-weight: 600; img { width: 42px; padding: 5px; margin-left: -10px; } } img { display: inline-block; } .sidebar-icon { width: 32px; height: 32px; filter: invert(0.5); } li { a { color: get-light-color('heading-color'); text-decoration: none !important; font-weight: 500; @include transition(); border-bottom: 2px solid transparent; &:hover { @include nav-item-hover-effect(); } } } .navbar-nav .active { @include nav-item-hover-effect(); } #top-navbar-divider { margin-top: 10px; background-color: get-light-color('muted-text-color'); height: 20px; width: 2px; } .dropdown-menu { box-shadow: $box-shadow; border: 1px solid rgba(get-light-color('accent-color'), 0.1); max-height: 0vh; overflow: hidden; display: block; visibility: hidden; @include transition(); &.show { max-height: 100vh; visibility: visible; @include transition(); a { color: get-light-color('heading-color') !important; &:hover { @include nav-item-hover-effect(); } } } } .navbar-collapse { margin-top: -5px; &.show, &.collapsing { background-color: get-light-color('bg-primary'); padding-left: 1rem; li { a { color: get-light-color('heading-color'); font-weight: 500; @include transition(); } } .navbar-nav { .active { color: get-light-color('accent-color'); } a:hover { color: get-light-color('accent-color'); } } } } &.transparent-navbar { background-color: transparent !important; .navbar-brand { color: get-light-color('inverse-text-color'); font-weight: 600; } li { a { color: get-light-color('inverse-text-color'); } } .feather-menu { stroke: get-light-color('inverse-text-color'); } } #themeMenu { width: 25px; min-width: 3rem; img.theme-icon { display: block !important; margin-left: auto !important; margin-right: auto !important; } } @include media('