123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 |
- //
- // Component: Main Header
- //
- .main-header {
- border-bottom: $main-header-bottom-border;
- z-index: $zindex-main-header;
- .nav-link {
- height: $nav-link-height;
- position: relative;
- }
- .text-sm &,
- &.text-sm {
- .nav-link {
- height: $nav-link-sm-height;
- padding: $nav-link-sm-padding-y $nav-link-padding-x;
- /* stylelint-disable selector-class-pattern */
- > .fa,
- > .fas,
- > .far,
- > .fab,
- > .fal,
- > .fad,
- > .svg-inline--fa,
- > .ion {
- font-size: $font-size-sm;
- }
- /* stylelint-enable selector-class-pattern */
- }
- }
- .navbar-nav {
- .nav-item {
- margin: 0;
- }
- &[class*="-right"] {
- .dropdown-menu {
- left: auto;
- margin-top: -3px;
- right: 0;
- @media (max-width: breakpoint-max(xs)) {
- left: 0;
- right: auto;
- }
- }
- }
- }
- &.dropdown-legacy .dropdown-menu {
- top: $nav-link-height + $navbar-padding-y;
- margin-top: 0;
- }
- }
- // Add this class to images within a nav-link
- .navbar-img {
- height: calc(#{$main-header-height} * .5);
- width: auto;
- }
- // Navbar badge
- .navbar-badge {
- font-size: .6rem;
- font-weight: 300;
- padding: 2px 4px;
- position: absolute;
- right: 5px;
- top: 9px;
- }
- .btn-navbar {
- background-color: transparent;
- border-left-width: 0;
- }
- .form-control-navbar {
- border-right-width: 0;
- + .input-group-append {
- margin-left: 0;
- }
- }
- .form-control-navbar,
- .btn-navbar {
- transition: none;
- }
- .navbar-dark {
- .form-control-navbar,
- .btn-navbar {
- background-color: $main-header-dark-form-control-bg;
- border-color: $main-header-dark-form-control-border-color;
- }
- .form-control-navbar {
- &::placeholder {
- color: $main-header-dark-placeholder-color;
- }
- + .input-group-append > .btn-navbar {
- color: $main-header-dark-placeholder-color;
- }
- &:focus {
- &,
- + .input-group-append .btn-navbar {
- background-color: $main-header-dark-form-control-focused-bg;
- border-color: $main-header-dark-form-control-focused-border-color !important;
- color: $main-header-dark-form-control-focused-color;
- }
- }
- }
- }
- .navbar-light {
- .form-control-navbar,
- .btn-navbar {
- background-color: $main-header-light-form-control-bg;
- border-color: $main-header-light-form-control-border-color;
- }
- .form-control-navbar {
- &::placeholder {
- color: $main-header-light-placeholder-color;
- }
- + .input-group-append > .btn-navbar {
- color: $main-header-light-placeholder-color;
- }
- &:focus {
- &,
- + .input-group-append .btn-navbar {
- background-color: $main-header-light-form-control-focused-bg;
- border-color: $main-header-light-form-control-focused-border-color !important;
- color: $main-header-light-form-control-focused-color;
- }
- }
- }
- .navbar-search-block {
- .form-control-navbar {
- &:focus {
- &,
- + .input-group-append .btn-navbar {
- color: $main-header-light-placeholder-color;
- }
- }
- }
- }
- }
- // Navbar Search
- .navbar-search-block {
- position: absolute;
- padding: 0 $nav-link-padding-x;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- z-index: 10;
- display: none;
- justify-content: center;
- flex-direction: column;
- background-color: initial;
- &.navbar-search-open {
- display: flex;
- }
- .input-group {
- width: 100%;
- }
- }
|