aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPete Hopkins <[email protected]>2012-01-26 13:51:03 -0500
committerPete Hopkins <[email protected]>2012-01-26 13:51:03 -0500
commitcd907067b81eb5b46cd416a3e65fb2858c4603f9 (patch)
tree940417dea1533d00862d5d4c51572aeb9c28cfdc /lib
parent86e0e89ee81d4a2a1daef6b68aa269419ee7d644 (diff)
downloadbootstrap-cd907067b81eb5b46cd416a3e65fb2858c4603f9.tar.xz
bootstrap-cd907067b81eb5b46cd416a3e65fb2858c4603f9.zip
Fixes background color for disabled buttons to match pre-IE fix (which prevents hover effects)
Diffstat (limited to 'lib')
-rw-r--r--lib/buttons.less8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/buttons.less b/lib/buttons.less
index 7f5a91b99..228b6c06d 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);
}