1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

Merge pull request #16224 from vsn4ik/fix_theme_disabled_btn

Fix theme.css .btn[disabled] styles.
This commit is contained in:
Mark Otto 2015-04-04 23:47:48 -07:00
commit 7735bfe388

View file

@ -28,6 +28,12 @@
.box-shadow(inset 0 3px 5px rgba(0,0,0,.125)); .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
} }
&.disabled,
&[disabled],
fieldset[disabled] & {
.box-shadow(none);
}
.badge { .badge {
text-shadow: none; text-shadow: none;
} }
@ -53,12 +59,19 @@
} }
&.disabled, &.disabled,
&:disabled, &[disabled],
&[disabled] { fieldset[disabled] & {
&,
&:hover,
&:focus,
&.focus,
&:active,
&.active {
background-color: darken(@btn-color, 12%); background-color: darken(@btn-color, 12%);
background-image: none; background-image: none;
} }
} }
}
// Common styles // Common styles
.btn { .btn {