aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Fenkart <[email protected]>2014-11-04 23:46:44 +0100
committerHeinrich Fenkart <[email protected]>2014-11-05 18:36:53 +0100
commit0d851e8b8a39eb7f79a202ad20182676805e742d (patch)
tree8a1f3a2dc762d510970710b2fef9a744734b95bb
parent3a988c358810e8e4a07dcd9de49b858f9cd1a570 (diff)
downloadbootstrap-0d851e8b8a39eb7f79a202ad20182676805e742d.tar.xz
bootstrap-0d851e8b8a39eb7f79a202ad20182676805e742d.zip
Theme: Correctly override active dropdown items in collapsed navbars
-rw-r--r--less/theme.less12
1 files changed, 12 insertions, 0 deletions
diff --git a/less/theme.less b/less/theme.less
index 5a19d9242..a15d16ecd 100644
--- a/less/theme.less
+++ b/less/theme.less
@@ -151,6 +151,18 @@
border-radius: 0;
}
+// Fix active state of dropdown items in collapsed mode
+@media (max-width: @grid-float-breakpoint-max) {
+ .navbar .navbar-nav .open .dropdown-menu > .active > a {
+ &,
+ &:hover,
+ &:focus {
+ color: #fff;
+ #gradient > .vertical(@start-color: @dropdown-link-active-bg; @end-color: darken(@dropdown-link-active-bg, 5%));
+ }
+ }
+}
+
//
// Alerts