aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvsn4ik <[email protected]>2015-04-04 13:18:16 +0300
committervsn4ik <[email protected]>2015-04-04 13:18:16 +0300
commitd6acfd3ef410e705b0b6d5d921cdcf77182faa8e (patch)
tree859c6cf2ae996617fe52410b0fbc5b07abf0a4dd
parentf76d1a0e87d3544de323d48a5ce2b3794d09b99f (diff)
downloadbootstrap-d6acfd3ef410e705b0b6d5d921cdcf77182faa8e.tar.xz
bootstrap-d6acfd3ef410e705b0b6d5d921cdcf77182faa8e.zip
Fix theme.css .btn[disabled] styles.
-rw-r--r--less/theme.less21
1 files changed, 17 insertions, 4 deletions
diff --git a/less/theme.less b/less/theme.less
index 6f2eb6212..afac3a8aa 100644
--- a/less/theme.less
+++ b/less/theme.less
@@ -28,6 +28,12 @@
.box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
}
+ &.disabled,
+ &[disabled],
+ fieldset[disabled] & {
+ .box-shadow(none);
+ }
+
.badge {
text-shadow: none;
}
@@ -53,10 +59,17 @@
}
&.disabled,
- &:disabled,
- &[disabled] {
- background-color: darken(@btn-color, 12%);
- background-image: none;
+ &[disabled],
+ fieldset[disabled] & {
+ &,
+ &:hover,
+ &:focus,
+ &.focus,
+ &:active,
+ &.active {
+ background-color: darken(@btn-color, 12%);
+ background-image: none;
+ }
}
}