aboutsummaryrefslogtreecommitdiff
path: root/less/forms.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-08-15 11:52:22 -0700
committerMark Otto <[email protected]>2013-08-15 11:52:22 -0700
commit2690a3dc3185e9666384cf6982354f0456473da7 (patch)
tree9899bff6d0e49ecf8c3724ada59748507dc41449 /less/forms.less
parent5a0ba42a7becc00ea4c64806b714c5f351b9b96d (diff)
downloadbootstrap-2690a3dc3185e9666384cf6982354f0456473da7.tar.xz
bootstrap-2690a3dc3185e9666384cf6982354f0456473da7.zip
Add to #9578 and fix #9614: use cursor not-allowed on radios and checkboxes
Diffstat (limited to 'less/forms.less')
-rw-r--r--less/forms.less12
1 files changed, 6 insertions, 6 deletions
diff --git a/less/forms.less b/less/forms.less
index adcb0dc32..c59cdd4d7 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -133,9 +133,9 @@ input[type="number"] {
.form-control-focus();
// Disabled and read-only inputs
- // Note: HTML5 says that controls under a fieldset > legend:first-child won't be
- // disabled if the fieldset is disabled. Due to implementation difficulty,
- // we don't honor that edge case; we style them as disabled anyway.
+ // Note: HTML5 says that controls under a fieldset > legend:first-child won't
+ // be disabled if the fieldset is disabled. Due to implementation difficulty,
+ // we don't honor that edge case; we style them as disabled anyway.
&[disabled],
&[readonly],
fieldset[disabled] & {
@@ -208,10 +208,10 @@ input[type="number"] {
}
// Apply same disabled cursor tweak as for inputs
-// Note: HTML5 says that controls under a fieldset > legend:first-child won't be
-// disabled if the fieldset is disabled. Due to implementation difficulty,
-// we don't honor that edge case; we style them as disabled anyway.
+//
// Note: Neither radios nor checkboxes can be readonly.
+input[type="radio"],
+input[type="checkbox"],
.radio,
.radio-inline,
.checkbox,