]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
add separate vars for dropdown link hover and active states
authorMark Otto <markotto@twitter.com>
Wed, 20 Jun 2012 02:17:42 +0000 (19:17 -0700)
committerMark Otto <markotto@twitter.com>
Wed, 20 Jun 2012 02:17:42 +0000 (19:17 -0700)
docs/assets/css/bootstrap.css
docs/less.html
docs/templates/pages/less.mustache
less/dropdowns.less
less/variables.less

index d957e861a3405545ca9687fac383f06172b2c7b7..1726c41cb3c160feed8d43c45adbc6a667a0b7e9 100644 (file)
@@ -2457,7 +2457,12 @@ table .span24 {
 }
 
 .dropdown-menu li > a:hover,
-.dropdown-menu li > a:focus,
+.dropdown-menu li > a:focus {
+  color: #333333;
+  text-decoration: none;
+  background-color: #eeeeee;
+}
+
 .dropdown-menu .active > a,
 .dropdown-menu .active > a:hover {
   color: #ffffff;
index 7b6183b6e726d49c1cd2293b7baa59ff56d88da0..68f3a83b76cfb5ec6a8415b37ff37447c27ec8e1 100644 (file)
         <td><code>@dropdownLinkColorHover</code></td>
         <td><code>@white</code></td>
       </tr>
+      <tr>
+        <td><code>@dropdownLinkColorActive</code></td>
+        <td><code>@linkColor</code></td>
+      </tr>
       <tr>
         <td><code>@dropdownLinkBackgroundHover</code></td>
+        <td><code>@grayLighter</code></td>
+      </tr>
+      <tr>
+        <td><code>@dropdownLinkBackgroundActive</code></td>
         <td><code>@linkColor</code></td>
       </tr>
       <tr>
index be8adb7661a60d9a3b36a83bbbd92a8b923a8849..ccd829963c6572f2f954ef495166e46a7b569f67 100644 (file)
         <td><code>@dropdownLinkColorHover</code></td>
         <td><code>@white</code></td>
       </tr>
+      <tr>
+        <td><code>@dropdownLinkColorActive</code></td>
+        <td><code>@linkColor</code></td>
+      </tr>
       <tr>
         <td><code>@dropdownLinkBackgroundHover</code></td>
+        <td><code>@grayLighter</code></td>
+      </tr>
+      <tr>
+        <td><code>@dropdownLinkBackgroundActive</code></td>
         <td><code>@linkColor</code></td>
       </tr>
       <tr>
index 648a9f24629d1ae87643b804f8827a64eccb373a..bd2dab772d77e3c8cd7a063525fa8087c3292615 100644 (file)
 // 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;
 }
 
index b931d3d2a26ae072283808d0ece8520717f732f9..ee7350ec23c7a8b9b087609e0811ac357fb24ffd 100644 (file)
 // -------------------------
 @dropdownBackground:            @white;
 @dropdownBorder:                rgba(0,0,0,.2);
-@dropdownLinkColor:             @grayDark;
-@dropdownLinkColorHover:        @white;
-@dropdownLinkBackgroundHover:   @linkColor;
 @dropdownDividerTop:            #e5e5e5;
 @dropdownDividerBottom:         @white;
 
+@dropdownLinkColor:             @grayDark;
+
+@dropdownLinkColorHover:        @white;
+@dropdownLinkBackgroundHover:   @grayLighter;
+
+@dropdownLinkColorActive:       @dropdownLinkColor;
+@dropdownLinkBackgroundActive:  @linkColor;
+
 
 
 // COMPONENT VARIABLES