mirror of https://github.com/ColorlibHQ/AdminLTE
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
101 lines
1.9 KiB
101 lines
1.9 KiB
//
|
|
// Component: Nav
|
|
//
|
|
|
|
.nav-pills {
|
|
.nav-link {
|
|
color: $gray-600;
|
|
|
|
&:not(.active):hover {
|
|
color: theme-color("primary");
|
|
}
|
|
}
|
|
|
|
.nav-item {
|
|
&.dropdown.show {
|
|
.nav-link:hover {
|
|
color: $dropdown-link-active-color;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Vertical Tabs
|
|
.nav-tabs.flex-column {
|
|
border-bottom: 0;
|
|
border-right: $nav-tabs-border-width solid $nav-tabs-border-color;
|
|
|
|
.nav-link {
|
|
border-bottom-left-radius: $nav-tabs-border-radius;
|
|
border-top-right-radius: 0;
|
|
margin-right: -$nav-tabs-border-width;
|
|
|
|
@include hover-focus () {
|
|
border-color: $gray-200 transparent $gray-200 $gray-200;
|
|
}
|
|
}
|
|
|
|
.nav-link.active,
|
|
.nav-item.show .nav-link {
|
|
border-color: $gray-300 transparent $gray-300 $gray-300;
|
|
}
|
|
|
|
&.nav-tabs-right {
|
|
border-left: $nav-tabs-border-width solid $nav-tabs-border-color;
|
|
border-right: 0;
|
|
|
|
.nav-link {
|
|
border-bottom-left-radius: 0;
|
|
border-bottom-right-radius: $nav-tabs-border-radius;
|
|
border-top-left-radius: 0;
|
|
border-top-right-radius: $nav-tabs-border-radius;
|
|
margin-left: -$nav-tabs-border-width;
|
|
|
|
@include hover-focus () {
|
|
border-color: $gray-200 $gray-200 $gray-200 transparent;
|
|
}
|
|
}
|
|
|
|
.nav-link.active,
|
|
.nav-item.show .nav-link {
|
|
border-color: $gray-300 $gray-300 $gray-300 transparent;
|
|
}
|
|
}
|
|
}
|
|
|
|
.navbar-no-expand {
|
|
flex-direction: row;
|
|
|
|
.nav-link {
|
|
padding-left: $navbar-nav-link-padding-x;
|
|
padding-right: $navbar-nav-link-padding-x;
|
|
}
|
|
|
|
.dropdown-menu {
|
|
position: absolute;
|
|
}
|
|
}
|
|
|
|
// Color variants
|
|
@each $color, $value in $theme-colors {
|
|
@if $color == dark or $color == light {
|
|
.navbar-#{$color} {
|
|
background-color: $value;
|
|
}
|
|
}
|
|
}
|
|
|
|
@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;
|
|
}
|
|
}
|