diff options
| author | Vickash Mahabir <[email protected]> | 2013-01-19 19:32:55 -0400 |
|---|---|---|
| committer | Vickash Mahabir <[email protected]> | 2013-01-19 19:32:55 -0400 |
| commit | c77a459b3520a8ee14bebad887427c3cb540f76b (patch) | |
| tree | 482d88dd205491262627ee7e7c656b38bf6d51df /less | |
| parent | b741c731a2ce3aaf0d891770705b3feb5b09c853 (diff) | |
| download | bootstrap-c77a459b3520a8ee14bebad887427c3cb540f76b.tar.xz bootstrap-c77a459b3520a8ee14bebad887427c3cb540f76b.zip | |
IE8 compatible fix for disabled button hover
Diffstat (limited to 'less')
| -rw-r--r-- | less/buttons.less | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/less/buttons.less b/less/buttons.less index 16ddbad2d..5f5955bc1 100644 --- a/less/buttons.less +++ b/less/buttons.less @@ -111,13 +111,21 @@ input[type="button"] { // Mixin for darkening only enabled buttons for link states .darken-button-states (@background, @border) { - fieldset:not([disabled]) &:not([disabled]):not(.disabled), - &:not([disabled]):not(.disabled) { + &:hover, + &:focus, + &:active { + background-color: darken(@background, 5%); + border-color: darken(@border, 10%); + } + + &.disabled, + &[disabled], + fieldset[disabled] & { &:hover, &:focus, &:active { - background-color: darken(@background, 5%); - border-color: darken(@border, 10%); + background-color: @background; + border-color: @border } } } |
