aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2011-09-06 21:54:00 -0700
committerMark Otto <[email protected]>2011-09-06 21:54:00 -0700
commitd0882c580de1fc2d5c52b684671b554bb8941ddf (patch)
tree9ec704ad86c67f3fc513aa848b4c2adbd6387a1e /lib
parentdfbb5919532b1dbe1868aadac6e2e95286cad969 (diff)
downloadbootstrap-d0882c580de1fc2d5c52b684671b554bb8941ddf.tar.xz
bootstrap-d0882c580de1fc2d5c52b684671b554bb8941ddf.zip
first pass at enabling active states in dropdowns in topbar and fixing the bug of having an active class on parent dropdown
Diffstat (limited to 'lib')
-rw-r--r--lib/patterns.less12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/patterns.less b/lib/patterns.less
index 6be99c81b..ce309a451 100644
--- a/lib/patterns.less
+++ b/lib/patterns.less
@@ -24,7 +24,7 @@
// Hover and active states
a:hover,
- ul .active a {
+ ul .active > a {
background-color: #333;
background-color: rgba(255,255,255,.05);
color: @white;
@@ -141,7 +141,7 @@
text-decoration: none;
}
}
- .active a {
+ .active > a {
background-color: #222;
background-color: rgba(0,0,0,.5);
}
@@ -187,6 +187,9 @@
color: #fff;
}
}
+ .active a {
+ color: #fff;
+ }
.divider {
background-color: #222;
border-color: #444;
@@ -361,6 +364,11 @@ a.menu:after,
margin-left: 5px;
}
// first one for backwards compatibility
+ li.open.menu .menu,
+ .open.dropdown .dropdown-toggle {
+ border-color: #999;
+ }
+ // first one for backwards compatibility
li.open a.menu:after,
.dropdown.open .dropdown-toggle:after {
border-top-color: #555;