aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2015-04-04 23:47:48 -0700
committerMark Otto <[email protected]>2015-04-04 23:47:48 -0700
commit7735bfe388455e9357c16e76cf6fb823ebea77e6 (patch)
tree42b06051167905d3875ab16d042c9923096237a4 /less
parent9c0bd37661790865616199578c772e8b3aec0c13 (diff)
parentd6acfd3ef410e705b0b6d5d921cdcf77182faa8e (diff)
downloadbootstrap-7735bfe388455e9357c16e76cf6fb823ebea77e6.tar.xz
bootstrap-7735bfe388455e9357c16e76cf6fb823ebea77e6.zip
Merge pull request #16224 from vsn4ik/fix_theme_disabled_btn
Fix theme.css .btn[disabled] styles.
Diffstat (limited to 'less')
-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;
+ }
}
}