first pass at enabling active states in dropdowns in topbar and fixing the bug of having an active class on parent dropdown

This commit is contained in:
Mark Otto
2011-09-06 21:54:00 -07:00
parent dfbb591953
commit d0882c580d
5 changed files with 35 additions and 16 deletions

View File

@@ -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;