AdminLTE/build/scss/_main-header.scss

141 lines
2.6 KiB
SCSS
Raw Normal View History

//
// Component: Main Header
//
2018-03-17 17:07:55 +00:00
.main-header {
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;
position: relative;
2018-03-17 17:07:55 +00:00
}
.text-sm &,
&.text-sm {
.nav-link {
height: $nav-link-sm-height;
padding: $nav-link-sm-padding-y $nav-link-padding-x;
> .fa,
> .fas,
> .far,
> .fab,
> .fal,
> .fad,
> .svg-inline--fa,
> .ion {
font-size: $font-size-sm;
}
}
}
.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;
}
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;
position: absolute;
right: 5px;
top: 9px;
2018-03-17 17:07:55 +00:00
}
.btn-navbar {
background-color: transparent;
border-left-width: 0;
2018-03-17 17:07:55 +00:00
}
.form-control-navbar {
border-right-width: 0;
2018-03-17 17:07:55 +00:00
& + .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: $main-header-dark-form-control-border;
}
.form-control-navbar {
&::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 {
&,
& + .input-group-append .btn-navbar {
background-color: $main-header-dark-form-control-focused-bg;
border: $main-header-dark-form-control-focused-border !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;
border: $main-header-light-form-control-border;
}
.form-control-navbar {
&::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 {
&,
& + .input-group-append .btn-navbar {
background-color: $main-header-light-form-control-focused-bg;
border: $main-header-light-form-control-focused-border !important;
2018-03-17 17:07:55 +00:00
color: $main-header-light-form-control-focused-color;
}
}
}
}