mirror of
https://github.com/jasny/bootstrap.git
synced 2026-02-11 22:45:05 -05:00
IE8 compatible fix for disabled button hover
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user