From aaa530c27e387ff266345aee026b50f779be88bc Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 27 Jan 2012 18:44:17 -0800 Subject: combined .disabled and [disabled] and confirmed in ie7/8 --- less/buttons.less | 10 +--------- less/mixins.less | 7 +------ 2 files changed, 2 insertions(+), 15 deletions(-) (limited to 'less') 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; } -- cgit v1.2.3