mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 01:13:14 +01:00
Fix nav dropdown menu's styling if menu item is currently active route
This commit is contained in:
parent
830598509a
commit
efaa1ba16d
@ -42,6 +42,16 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Currently active route (if in dropdown)
|
||||
.navbar-nav .dropdown-menu .active a {
|
||||
background-color: transparent;
|
||||
|
||||
&:focus,
|
||||
&:hover {
|
||||
background-color: rgba($ascribe--button-default-color, .05);
|
||||
}
|
||||
}
|
||||
|
||||
// Open dropdowns
|
||||
.navbar-nav .open {
|
||||
.dropdown-toggle {
|
||||
@ -142,6 +152,15 @@
|
||||
padding: 5px 15px 5px 25px;
|
||||
}
|
||||
|
||||
.navbar-nav .open .dropdown-menu .active a {
|
||||
background-color: transparent;
|
||||
|
||||
&:focus,
|
||||
&:hover {
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-nav .dropdown {
|
||||
display: block;
|
||||
}
|
||||
|
@ -151,6 +151,16 @@ $vivi23--highlight-color: #de2600;
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-nav .open .dropdown-menu .active a {
|
||||
background-color: transparent;
|
||||
|
||||
&:focus,
|
||||
&:hover {
|
||||
background-color: $vivi23--nav-highlight-color;
|
||||
color: lighten($vivi23--nav-fg-prim-color, 20%);
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-nav > li.active > a,
|
||||
.navbar-nav > li.active > a:hover,
|
||||
.navbar-nav > li.active > a:focus, {
|
||||
|
@ -166,6 +166,16 @@ $artcity--ter-highlight-color: #EDEDF0;
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-nav .open .dropdown-menu .active a {
|
||||
background-color: transparent;
|
||||
|
||||
&:focus,
|
||||
&:hover {
|
||||
background-color: $artcity--nav-highlight-color;
|
||||
color: lighten($artcity--nav-fg-prim-color, 20%);
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-nav > li.active > a,
|
||||
.navbar-nav > li.active > a:hover,
|
||||
.navbar-nav > li.active > a:focus, {
|
||||
|
@ -163,6 +163,16 @@ $market--highlight-color: #2882fa;
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-nav .open .dropdown-menu .active a {
|
||||
background-color: transparent;
|
||||
|
||||
&:focus,
|
||||
&:hover {
|
||||
background-color: $market--nav-highlight-color;
|
||||
color: lighten($market--nav-fg-prim-color, 20%);
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-nav > li.active > a,
|
||||
.navbar-nav > li.active > a:hover,
|
||||
.navbar-nav > li.active > a:focus, {
|
||||
|
@ -163,6 +163,16 @@ $polline--highlight-color: #2882fa;
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-nav .open .dropdown-menu .active a {
|
||||
background-color: transparent;
|
||||
|
||||
&:focus,
|
||||
&:hover {
|
||||
background-color: $polline--nav-highlight-color;
|
||||
color: lighten($polline--nav-fg-prim-color, 20%);
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-nav > li.active > a,
|
||||
.navbar-nav > li.active > a:hover,
|
||||
.navbar-nav > li.active > a:focus, {
|
||||
|
Loading…
Reference in New Issue
Block a user