2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-02 16:04:07 +03:00

combined .disabled and [disabled] and confirmed in ie7/8

This commit is contained in:
Mark Otto
2012-01-27 18:44:17 -08:00
parent 7e72eb5063
commit aaa530c27e
3 changed files with 8 additions and 39 deletions
+1 -9
View File
@@ -82,16 +82,8 @@
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%);
+1 -6
View File
@@ -360,12 +360,7 @@
.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;
}