]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fixes background color for disabled buttons to match pre-IE fix (which prevents hover...
authorPete Hopkins <phopkins@twitter.com>
Thu, 26 Jan 2012 18:51:03 +0000 (13:51 -0500)
committerPete Hopkins <phopkins@twitter.com>
Thu, 26 Jan 2012 18:51:03 +0000 (13:51 -0500)
lib/buttons.less

index 7f5a91b99044dd90abb2130dbf9988635b8d06ff..228b6c06d7c6c25a9dcfa5e08efb14a78e8a3ba3 100644 (file)
   .gradientBar(@startColor, @endColor);
 
   // in these cases the gradient won't cover the background, so we override
-  &:hover, &:active, &.active {
+  &:hover, &:active, &.active, &.disabled {
+    background-color: @endColor;
+  }
+
+  &[disabled] {
     background-color: @endColor;
   }
 
@@ -92,6 +96,7 @@
   &.disabled {
     cursor: default;
     background-image: none;
+    background-color: darken(@white, 10%);
     .opacity(65);
     .box-shadow(none);
   }
     // def because IE8 and below will drop it ;_;
     cursor: default;
     background-image: none;
+    background-color: darken(@white, 10%);
     .opacity(65);
     .box-shadow(none);
   }