aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorVickash Mahabir <[email protected]>2013-01-19 19:32:55 -0400
committerVickash Mahabir <[email protected]>2013-01-19 19:32:55 -0400
commitc77a459b3520a8ee14bebad887427c3cb540f76b (patch)
tree482d88dd205491262627ee7e7c656b38bf6d51df /less
parentb741c731a2ce3aaf0d891770705b3feb5b09c853 (diff)
downloadbootstrap-c77a459b3520a8ee14bebad887427c3cb540f76b.tar.xz
bootstrap-c77a459b3520a8ee14bebad887427c3cb540f76b.zip
IE8 compatible fix for disabled button hover
Diffstat (limited to 'less')
-rw-r--r--less/buttons.less16
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
}
}
}