2019-07-18 14:22:11 +00:00
|
|
|
//
|
|
|
|
// Component: Main Header
|
|
|
|
//
|
2020-05-30 13:06:11 +00:00
|
|
|
|
2018-03-17 17:07:55 +00:00
|
|
|
.main-header {
|
2019-07-14 13:21:20 +00:00
|
|
|
border-bottom: $main-header-bottom-border;
|
2018-03-17 17:07:55 +00:00
|
|
|
z-index: $zindex-main-header;
|
|
|
|
|
|
|
|
.nav-link {
|
|
|
|
height: $nav-link-height;
|
2019-06-28 08:02:07 +00:00
|
|
|
position: relative;
|
2018-03-17 17:07:55 +00:00
|
|
|
}
|
|
|
|
|
2019-09-13 08:09:58 +00:00
|
|
|
.text-sm &,
|
2019-09-11 10:32:32 +00:00
|
|
|
&.text-sm {
|
|
|
|
.nav-link {
|
|
|
|
height: $nav-link-sm-height;
|
|
|
|
padding: $nav-link-sm-padding-y $nav-link-padding-x;
|
|
|
|
|
|
|
|
> .fa,
|
|
|
|
> .fas,
|
|
|
|
> .far,
|
|
|
|
> .fab,
|
2020-07-22 14:50:44 +00:00
|
|
|
> .fal,
|
|
|
|
> .fad,
|
2020-07-24 15:59:40 +00:00
|
|
|
> .svg-inline--fa,
|
2019-09-11 10:32:32 +00:00
|
|
|
> .ion {
|
|
|
|
font-size: $font-size-sm;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-06-28 08:02:07 +00:00
|
|
|
.navbar-nav {
|
|
|
|
.nav-item {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2020-05-30 13:06:11 +00:00
|
|
|
&[class*="-right"] {
|
2019-06-28 08:02:07 +00:00
|
|
|
.dropdown-menu {
|
|
|
|
left: auto;
|
|
|
|
margin-top: -3px;
|
|
|
|
right: 0;
|
|
|
|
|
|
|
|
@media (max-width: breakpoint-max(xs)) {
|
|
|
|
left: 0;
|
|
|
|
right: auto;
|
|
|
|
}
|
2018-03-17 17:07:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-11-24 07:54:03 +00:00
|
|
|
|
|
|
|
&.dropdown-legacy .dropdown-menu {
|
|
|
|
top: $nav-link-height + $navbar-padding-y;
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
2018-03-17 17:07:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Add this class to images within a nav-link
|
|
|
|
.navbar-img {
|
|
|
|
height: $main-header-height / 2;
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Navbar badge
|
|
|
|
.navbar-badge {
|
|
|
|
font-size: .6rem;
|
|
|
|
font-weight: 300;
|
|
|
|
padding: 2px 4px;
|
2019-06-28 08:02:07 +00:00
|
|
|
position: absolute;
|
|
|
|
right: 5px;
|
|
|
|
top: 9px;
|
2018-03-17 17:07:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn-navbar {
|
|
|
|
background-color: transparent;
|
2019-06-28 08:02:07 +00:00
|
|
|
border-left-width: 0;
|
2018-03-17 17:07:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.form-control-navbar {
|
|
|
|
border-right-width: 0;
|
2019-06-28 08:02:07 +00:00
|
|
|
|
2020-09-28 06:25:39 +00:00
|
|
|
+ .input-group-append {
|
2018-03-17 17:07:55 +00:00
|
|
|
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;
|
2020-12-04 08:10:22 +00:00
|
|
|
border-color: $main-header-dark-form-control-border-color;
|
2018-03-17 17:07:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.form-control-navbar {
|
2019-10-21 09:56:54 +00:00
|
|
|
&::placeholder {
|
|
|
|
color: $main-header-dark-placeholder-color;
|
|
|
|
}
|
|
|
|
|
2018-03-17 17:07:55 +00:00
|
|
|
+ .input-group-append > .btn-navbar {
|
|
|
|
color: $main-header-dark-placeholder-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
&,
|
2020-09-28 06:25:39 +00:00
|
|
|
+ .input-group-append .btn-navbar {
|
2018-03-17 17:07:55 +00:00
|
|
|
background-color: $main-header-dark-form-control-focused-bg;
|
2020-12-04 08:10:22 +00:00
|
|
|
border-color: $main-header-dark-form-control-focused-border-color !important;
|
2018-03-17 17:07:55 +00:00
|
|
|
color: $main-header-dark-form-control-focused-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-light {
|
|
|
|
.form-control-navbar,
|
|
|
|
.btn-navbar {
|
|
|
|
background-color: $main-header-light-form-control-bg;
|
2020-12-04 08:10:22 +00:00
|
|
|
border-color: $main-header-light-form-control-border-color;
|
2018-03-17 17:07:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.form-control-navbar {
|
2019-10-21 09:56:54 +00:00
|
|
|
&::placeholder {
|
|
|
|
color: $main-header-light-placeholder-color;
|
|
|
|
}
|
|
|
|
|
2018-03-17 17:07:55 +00:00
|
|
|
+ .input-group-append > .btn-navbar {
|
|
|
|
color: $main-header-light-placeholder-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
&,
|
2020-09-28 06:25:39 +00:00
|
|
|
+ .input-group-append .btn-navbar {
|
2018-03-17 17:07:55 +00:00
|
|
|
background-color: $main-header-light-form-control-focused-bg;
|
2020-12-04 08:10:22 +00:00
|
|
|
border-color: $main-header-light-form-control-focused-border-color !important;
|
2018-03-17 17:07:55 +00:00
|
|
|
color: $main-header-light-form-control-focused-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-12-02 08:25:20 +00:00
|
|
|
|
2020-12-02 08:34:04 +00:00
|
|
|
// Navbar Search
|
|
|
|
.navbar-search-block {
|
2020-12-02 08:25:20 +00:00
|
|
|
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;
|
|
|
|
|
|
|
|
@each $color, $value in $theme-colors {
|
|
|
|
@if $color != dark and $color != light {
|
|
|
|
.navbar-#{$color} & {
|
|
|
|
background-color: $value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@each $color, $value in $colors {
|
|
|
|
.navbar-#{$color} & {
|
|
|
|
background-color: $value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-02 08:34:04 +00:00
|
|
|
&.navbar-search-open {
|
2020-12-02 08:25:20 +00:00
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-group {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|