From: Pete Hopkins Date: Thu, 26 Jan 2012 18:51:03 +0000 (-0500) Subject: Fixes background color for disabled buttons to match pre-IE fix (which prevents hover... X-Git-Tag: v2.0.0~6^2~154^2~1^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cd907067b81eb5b46cd416a3e65fb2858c4603f9;p=thirdparty%2Fbootstrap.git Fixes background color for disabled buttons to match pre-IE fix (which prevents hover effects) --- diff --git a/lib/buttons.less b/lib/buttons.less index 7f5a91b990..228b6c06d7 100644 --- a/lib/buttons.less +++ b/lib/buttons.less @@ -36,7 +36,11 @@ .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); } @@ -100,6 +105,7 @@ // def because IE8 and below will drop it ;_; cursor: default; background-image: none; + background-color: darken(@white, 10%); .opacity(65); .box-shadow(none); }