aboutsummaryrefslogtreecommitdiff
path: root/less/dropdowns.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-06-19 19:17:42 -0700
committerMark Otto <[email protected]>2012-06-19 19:17:42 -0700
commit9df832b4bb81d80fd02b4fe6cc9ea826b0b0454e (patch)
tree4b4bd45b27b02c922a602e60dd5c5df8487a90ff /less/dropdowns.less
parent40298ddbf1c26e2c9b7f67a39eeb35734417cc7e (diff)
downloadbootstrap-9df832b4bb81d80fd02b4fe6cc9ea826b0b0454e.tar.xz
bootstrap-9df832b4bb81d80fd02b4fe6cc9ea826b0b0454e.zip
add separate vars for dropdown link hover and active states
Diffstat (limited to 'less/dropdowns.less')
-rw-r--r--less/dropdowns.less11
1 files changed, 9 insertions, 2 deletions
diff --git a/less/dropdowns.less b/less/dropdowns.less
index 648a9f246..bd2dab772 100644
--- a/less/dropdowns.less
+++ b/less/dropdowns.less
@@ -94,12 +94,19 @@
// Hover state
// -----------
.dropdown-menu li > a:hover,
-.dropdown-menu li > a:focus,
+.dropdown-menu li > a:focus {
+ text-decoration: none;
+ color: @dropdownLinkColorActive;
+ background-color: @dropdownLinkBackgroundHover;
+}
+
+// Active state
+// ------------
.dropdown-menu .active > a,
.dropdown-menu .active > a:hover {
color: @dropdownLinkColorHover;
text-decoration: none;
- background-color: @dropdownLinkBackgroundHover;
+ background-color: @dropdownLinkBackgroundActive;
outline: 0;
}