diff options
Diffstat (limited to 'less/forms.less')
| -rw-r--r-- | less/forms.less | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/less/forms.less b/less/forms.less index cb8a74fa1..b678d44fc 100644 --- a/less/forms.less +++ b/less/forms.less @@ -247,19 +247,35 @@ input[type="month"] { } // Apply same disabled cursor tweak as for inputs +// Some special care is needed because <label>s don't inherit their parent's `cursor`. // // Note: Neither radios nor checkboxes can be readonly. input[type="radio"], -input[type="checkbox"], -.radio, +input[type="checkbox"] { + &[disabled], + &.disabled, + fieldset[disabled] & { + cursor: not-allowed; + } +} +// These classes are used directly on <label>s .radio-inline, -.checkbox, .checkbox-inline { - &[disabled], + &.disabled, fieldset[disabled] & { cursor: not-allowed; } } +// These classes are used on elements with <label> descendants +.radio, +.checkbox { + &.disabled, + fieldset[disabled] & { + label { + cursor: not-allowed; + } + } +} // Form control sizing |
