]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
combined .disabled and [disabled] and confirmed in ie7/8
authorMark Otto <markdotto@gmail.com>
Sat, 28 Jan 2012 02:44:17 +0000 (18:44 -0800)
committerMark Otto <markdotto@gmail.com>
Sat, 28 Jan 2012 02:44:17 +0000 (18:44 -0800)
docs/assets/css/bootstrap.css
less/buttons.less
less/mixins.less

index a6dd95e84e237858e5e5dd0c2c4b751acd932602..80f078be7ad60a3b9e00a5e0bfd4c5d275ecb577 100644 (file)
@@ -6,7 +6,7 @@
  * http://www.apache.org/licenses/LICENSE-2.0
  *
  * Designed and built with all the love in the world @twitter by @mdo and @fat.
- * Date: Fri Jan 27 18:33:07 PST 2012
+ * Date: Fri Jan 27 18:43:22 PST 2012
  */
 article,
 aside,
@@ -2498,9 +2498,7 @@ table .span12 {
 .btn.primary:hover,
 .btn.primary:active,
 .btn.primary.active,
-.btn.primary.disabled {
-  background-color: #0055cc;
-}
+.btn.primary.disabled,
 .btn.primary[disabled] {
   background-color: #0055cc;
 }
@@ -2522,9 +2520,7 @@ table .span12 {
 .btn.danger:hover,
 .btn.danger:active,
 .btn.danger.active,
-.btn.danger.disabled {
-  background-color: #c43c35;
-}
+.btn.danger.disabled,
 .btn.danger[disabled] {
   background-color: #c43c35;
 }
@@ -2546,9 +2542,7 @@ table .span12 {
 .btn.success:hover,
 .btn.success:active,
 .btn.success.active,
-.btn.success.disabled {
-  background-color: #57a957;
-}
+.btn.success.disabled,
 .btn.success[disabled] {
   background-color: #57a957;
 }
@@ -2570,9 +2564,7 @@ table .span12 {
 .btn.info:hover,
 .btn.info:active,
 .btn.info.active,
-.btn.info.disabled {
-  background-color: #339bb9;
-}
+.btn.info.disabled,
 .btn.info[disabled] {
   background-color: #339bb9;
 }
@@ -2636,17 +2628,7 @@ table .span12 {
   background-color: #e6e6e6;
   background-color: #d9d9d9 \9;
 }
-.btn.disabled {
-  cursor: default;
-  background-image: none;
-  background-color: #e6e6e6;
-  opacity: 0.65;
-  filter: alpha(opacity=65);
-  -webkit-box-shadow: none;
-  -moz-box-shadow: none;
-  box-shadow: none;
-}
-.btn[disabled] {
+.btn.disabled, .btn[disabled] {
   cursor: default;
   background-image: none;
   background-color: #e6e6e6;
index f372b84483e2fb2bd9ffe5446ee0340a8711b28b..ec23781ccc301024563a0393b4d464d0c24cb858 100644 (file)
     background-color: darken(@white, 10%);
     background-color: darken(@white, 15%) e("\9");
   }
-  &.disabled {
-    cursor: default;
-    background-image: none;
-    background-color: darken(@white, 10%);
-    .opacity(65);
-    .box-shadow(none);
-  }
+  &.disabled,
   &[disabled] {
-    // disabled pseudo can't be included with .disabled
-    // def because IE8 and below will drop it ;_;
     cursor: default;
     background-image: none;
     background-color: darken(@white, 10%);
index 65b7dbefc8e6688aad2a778517d28f84e7536bbb..2ed28ac3f393dbce166bb3c3a0f8b08dee8318e0 100644 (file)
   .gradientBar(@startColor, @endColor);
 
   // in these cases the gradient won't cover the background, so we override
-  &:hover, &:active, &.active, &.disabled {
-    background-color: @endColor;
-  }
-
-  // called out separately because IE8 would ignore otherwise
-  &[disabled] {
+  &:hover, &:active, &.active, &.disabled, &[disabled] {
     background-color: @endColor;
   }