diff options
| author | Mark Otto <[email protected]> | 2012-01-08 15:33:44 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-01-08 15:33:44 -0800 |
| commit | 4b79443bba6ad83d9da62e00765ef45121fb39ff (patch) | |
| tree | 4a7e782dae7601deb913a8e63f3dbfba58875cbf /lib/dropdowns.less | |
| parent | ac68bc39ff46aec1d4654165eb64c2dc11f5e968 (diff) | |
| download | bootstrap-4b79443bba6ad83d9da62e00765ef45121fb39ff.tar.xz bootstrap-4b79443bba6ad83d9da62e00765ef45121fb39ff.zip | |
fix dropdowns for active state in dropdown menus
Diffstat (limited to 'lib/dropdowns.less')
| -rw-r--r-- | lib/dropdowns.less | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/dropdowns.less b/lib/dropdowns.less index 484cbbcd7..85f74b632 100644 --- a/lib/dropdowns.less +++ b/lib/dropdowns.less @@ -71,9 +71,8 @@ } } -// Hover & Active states -.dropdown-menu a:hover, -.dropdown-menu .active > a { +// Hover state +.dropdown-menu li > a:hover { color: #fff; text-decoration: none; text-shadow: 0 -1px 0 rgba(0,0,0,.25); @@ -82,6 +81,14 @@ .box-shadow(@shadow); } +// Active state +.dropdown-menu .active > a, +.dropdown-menu .active > a:hover { + color: #fff; + background-color: #999; + background-image: none; // remove the gradient +} + // Open state for the dropdown .dropdown.open { .dropdown-toggle { |
