2019-07-18 14:22:11 +00:00
|
|
|
//
|
|
|
|
// Component: Nav
|
|
|
|
//
|
2019-06-28 08:02:07 +00:00
|
|
|
|
2018-04-14 23:33:53 +00:00
|
|
|
.nav-pills {
|
|
|
|
.nav-link {
|
|
|
|
color: $gray-600;
|
|
|
|
|
2019-05-24 07:55:43 +00:00
|
|
|
&:not(.active):hover {
|
2020-05-30 13:06:11 +00:00
|
|
|
color: theme-color("primary");
|
2019-05-24 07:55:43 +00:00
|
|
|
}
|
|
|
|
}
|
2019-07-18 14:22:11 +00:00
|
|
|
|
2019-05-24 07:55:43 +00:00
|
|
|
.nav-item {
|
|
|
|
&.dropdown.show {
|
|
|
|
.nav-link:hover {
|
|
|
|
color: $dropdown-link-active-color;
|
2019-01-31 18:00:32 +00:00
|
|
|
}
|
2018-04-14 23:33:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-05-25 13:15:32 +00:00
|
|
|
|
2019-06-26 14:58:34 +00:00
|
|
|
// Vertical Tabs
|
|
|
|
.nav-tabs.flex-column {
|
|
|
|
border-bottom: 0;
|
2019-06-28 08:02:07 +00:00
|
|
|
border-right: $nav-tabs-border-width solid $nav-tabs-border-color;
|
2019-06-26 14:58:34 +00:00
|
|
|
|
|
|
|
.nav-link {
|
2019-09-19 07:58:24 +00:00
|
|
|
border-bottom-left-radius: $nav-tabs-border-radius;
|
|
|
|
border-top-right-radius: 0;
|
2019-06-26 14:58:34 +00:00
|
|
|
margin-right: -$nav-tabs-border-width;
|
|
|
|
|
2020-05-30 13:06:11 +00:00
|
|
|
@include hover-focus () {
|
2019-09-19 07:58:24 +00:00
|
|
|
border-color: $gray-200 transparent $gray-200 $gray-200;
|
2019-06-26 14:58:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-link.active,
|
|
|
|
.nav-item.show .nav-link {
|
2019-09-19 07:58:24 +00:00
|
|
|
border-color: $gray-300 transparent $gray-300 $gray-300;
|
2019-06-26 14:58:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.nav-tabs-right {
|
|
|
|
border-left: $nav-tabs-border-width solid $nav-tabs-border-color;
|
2019-06-28 08:02:07 +00:00
|
|
|
border-right: 0;
|
2019-06-26 14:58:34 +00:00
|
|
|
|
|
|
|
.nav-link {
|
2019-09-19 07:58:24 +00:00
|
|
|
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;
|
2019-06-26 14:58:34 +00:00
|
|
|
margin-left: -$nav-tabs-border-width;
|
|
|
|
|
2020-05-30 13:06:11 +00:00
|
|
|
@include hover-focus () {
|
2019-09-19 07:58:24 +00:00
|
|
|
border-color: $gray-200 $gray-200 $gray-200 transparent;
|
2019-06-26 14:58:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-link.active,
|
|
|
|
.nav-item.show .nav-link {
|
2019-09-19 07:58:24 +00:00
|
|
|
border-color: $gray-300 $gray-300 $gray-300 transparent;
|
2019-06-26 14:58:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-05-25 13:15:32 +00:00
|
|
|
|
2019-10-03 12:34:22 +00:00
|
|
|
.navbar-no-expand {
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
|
|
.nav-link {
|
|
|
|
padding-left: $navbar-nav-link-padding-x;
|
|
|
|
padding-right: $navbar-nav-link-padding-x;
|
|
|
|
}
|
2019-12-04 09:06:10 +00:00
|
|
|
|
|
|
|
.dropdown-menu {
|
|
|
|
position: absolute;
|
|
|
|
}
|
2019-10-03 12:34:22 +00:00
|
|
|
}
|
|
|
|
|
2019-05-25 13:15:32 +00:00
|
|
|
// Color variants
|
|
|
|
@each $color, $value in $theme-colors {
|
2019-07-18 14:22:11 +00:00
|
|
|
@if $color == dark or $color == light {
|
2019-05-25 13:15:32 +00:00
|
|
|
.navbar-#{$color} {
|
|
|
|
background-color: $value;
|
2020-09-23 14:08:15 +00:00
|
|
|
@if $color == dark {
|
|
|
|
border-color: lighten($dark, 10%);
|
|
|
|
}
|
2019-05-25 13:15:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@each $color, $value in $theme-colors {
|
2019-07-18 14:22:11 +00:00
|
|
|
@if $color != dark and $color != light {
|
2020-12-04 08:10:22 +00:00
|
|
|
@include navbar-variant($color, $value);
|
2019-05-25 13:15:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@each $color, $value in $colors {
|
2020-12-04 08:10:22 +00:00
|
|
|
@include navbar-variant($color, $value);
|
2019-05-25 13:15:32 +00:00
|
|
|
}
|
2020-09-23 14:08:15 +00:00
|
|
|
|
|
|
|
.dark-mode {
|
|
|
|
.nav-pills .nav-link {
|
|
|
|
color: $gray-400;
|
|
|
|
}
|
|
|
|
.nav-tabs {
|
|
|
|
border-color: lighten($dark, 15%);
|
|
|
|
|
|
|
|
.nav-link:focus,
|
|
|
|
.nav-link:hover {
|
|
|
|
border-color: lighten($dark, 15%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-item.show .nav-link,
|
|
|
|
.nav-link.active {
|
|
|
|
background-color: $dark;
|
|
|
|
border-color: lighten($dark, 15%) lighten($dark, 15%) transparent lighten($dark, 15%);
|
|
|
|
color: $white;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.flex-column {
|
|
|
|
.nav-item.show .nav-link,
|
|
|
|
.nav-link {
|
|
|
|
&.active,
|
|
|
|
&:focus,
|
|
|
|
&:hover {
|
|
|
|
border-color: lighten($dark, 15%) transparent lighten($dark, 15%) lighten($dark, 15%);
|
|
|
|
}
|
|
|
|
&:focus,
|
|
|
|
&:hover {
|
|
|
|
background-color: lighten($dark, 5%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.nav-tabs-right {
|
|
|
|
border-color: lighten($dark, 15%);
|
|
|
|
.nav-link {
|
|
|
|
&.active,
|
|
|
|
&:focus,
|
|
|
|
&:hover {
|
|
|
|
border-color: lighten($dark, 15%) lighten($dark, 15%) lighten($dark, 15%) transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|