IE8 compatible fix for disabled button hover

This commit is contained in:
Vickash Mahabir
2013-01-19 19:32:55 -04:00
parent b741c731a2
commit c77a459b35
2 changed files with 108 additions and 40 deletions

View File

@@ -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
}
}
}