mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-14 18:42:30 +03:00
Fixes background color for disabled buttons to match pre-IE fix (which prevents hover effects)
This commit is contained in:
+7
-1
@@ -36,7 +36,11 @@
|
|||||||
.gradientBar(@startColor, @endColor);
|
.gradientBar(@startColor, @endColor);
|
||||||
|
|
||||||
// in these cases the gradient won't cover the background, so we override
|
// 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;
|
background-color: @endColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -92,6 +96,7 @@
|
|||||||
&.disabled {
|
&.disabled {
|
||||||
cursor: default;
|
cursor: default;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
|
background-color: darken(@white, 10%);
|
||||||
.opacity(65);
|
.opacity(65);
|
||||||
.box-shadow(none);
|
.box-shadow(none);
|
||||||
}
|
}
|
||||||
@@ -100,6 +105,7 @@
|
|||||||
// def because IE8 and below will drop it ;_;
|
// def because IE8 and below will drop it ;_;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
|
background-color: darken(@white, 10%);
|
||||||
.opacity(65);
|
.opacity(65);
|
||||||
.box-shadow(none);
|
.box-shadow(none);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user