From d0882c580de1fc2d5c52b684671b554bb8941ddf Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 6 Sep 2011 21:54:00 -0700 Subject: first pass at enabling active states in dropdowns in topbar and fixing the bug of having an active class on parent dropdown --- lib/patterns.less | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'lib') 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; -- cgit v1.2.3