diff options
| author | fat <[email protected]> | 2013-02-05 20:01:25 -0800 |
|---|---|---|
| committer | fat <[email protected]> | 2013-02-05 20:01:25 -0800 |
| commit | c25e8182baacfea77c15aba1e03e447297a26b84 (patch) | |
| tree | f33889c8f0ae73b246ade333cc773b045e1f3f85 /less/dropdowns.less | |
| parent | 45656fc7fcedf5a98d20c72292b203a1023c4177 (diff) | |
| parent | 31fdb2e25e3a0e924a7772edcd2fa3f12518e1f4 (diff) | |
| download | bootstrap-c25e8182baacfea77c15aba1e03e447297a26b84.tar.xz bootstrap-c25e8182baacfea77c15aba1e03e447297a26b84.zip | |
Merge branch '2.3.0-wip' of github.com:twitter/bootstrap into 2.3.0-wip
Diffstat (limited to 'less/dropdowns.less')
| -rw-r--r-- | less/dropdowns.less | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/less/dropdowns.less b/less/dropdowns.less index a0d4b1fd0..bbfe3fd3e 100644 --- a/less/dropdowns.less +++ b/less/dropdowns.less @@ -83,11 +83,12 @@ } } -// Hover state +// Hover/Focus state // ----------- .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus, -.dropdown-submenu:hover > a { +.dropdown-submenu:hover > a, +.dropdown-submenu:focus > a { text-decoration: none; color: @dropdownLinkColorHover; #gradient > .vertical(@dropdownLinkBackgroundHover, darken(@dropdownLinkBackgroundHover, 5%)); @@ -96,7 +97,8 @@ // Active state // ------------ .dropdown-menu > .active > a, -.dropdown-menu > .active > a:hover { +.dropdown-menu > .active > a:hover, +.dropdown-menu > .active > a:focus { color: @dropdownLinkColorActive; text-decoration: none; outline: 0; @@ -105,13 +107,15 @@ // Disabled state // -------------- -// Gray out text and ensure the hover state remains gray +// Gray out text and ensure the hover/focus state remains gray .dropdown-menu > .disabled > a, -.dropdown-menu > .disabled > a:hover { +.dropdown-menu > .disabled > a:hover, +.dropdown-menu > .disabled > a:focus { color: @grayLight; } -// Nuke hover effects -.dropdown-menu > .disabled > a:hover { +// Nuke hover/focus effects +.dropdown-menu > .disabled > a:hover, +.dropdown-menu > .disabled > a:focus { text-decoration: none; background-color: transparent; background-image: none; // Remove CSS gradient |
