diff options
| author | Mark Otto <[email protected]> | 2012-01-27 18:44:17 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-01-27 18:44:17 -0800 |
| commit | aaa530c27e387ff266345aee026b50f779be88bc (patch) | |
| tree | 28b8512a9ffe3e1ce38909e521b581aebde3a282 /less | |
| parent | 7e72eb5063470a3728d612acd2cc0368aabc8664 (diff) | |
| download | bootstrap-aaa530c27e387ff266345aee026b50f779be88bc.tar.xz bootstrap-aaa530c27e387ff266345aee026b50f779be88bc.zip | |
combined .disabled and [disabled] and confirmed in ie7/8
Diffstat (limited to 'less')
| -rw-r--r-- | less/buttons.less | 10 | ||||
| -rw-r--r-- | less/mixins.less | 7 |
2 files changed, 2 insertions, 15 deletions
diff --git a/less/buttons.less b/less/buttons.less index f372b8448..ec23781cc 100644 --- a/less/buttons.less +++ b/less/buttons.less @@ -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%); diff --git a/less/mixins.less b/less/mixins.less index 65b7dbefc..2ed28ac3f 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -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; } |
