1
0
mirror of https://github.com/Chalarangelo/mini.css.git synced 2025-08-31 01:29:46 +02:00

Fixed a minor bug with checkboxes and radios

Should now be able to use :disabled, as well as [disabled].
This commit is contained in:
Angelos Chalaris
2017-06-05 18:56:39 +03:00
parent 568aea95b4
commit fb3b8e20d1
4 changed files with 9 additions and 4 deletions

View File

@@ -944,11 +944,14 @@ input[type="file"] {
border-radius: 50%;
}
.input-group [type="checkbox"][disabled] + label, .input-group [type="radio"][disabled] + label {
.input-group [type="checkbox"][disabled] + label, .input-group [type="radio"][disabled] + label,
.input-group [type="checkbox"]:disabled + label, .input-group [type="radio"]:disabled + label {
cursor: not-allowed;
}
.input-group [type="checkbox"][disabled] + label:before, .input-group [type="checkbox"][disabled] + label:after, .input-group [type="radio"][disabled] + label:before, .input-group [type="radio"][disabled] + label:after {
.input-group [type="checkbox"][disabled] + label:before, .input-group [type="checkbox"][disabled] + label:after, .input-group [type="radio"][disabled] + label:before, .input-group [type="radio"][disabled] + label:after,
.input-group [type="checkbox"]:disabled + label:before,
.input-group [type="checkbox"]:disabled + label:after, .input-group [type="radio"]:disabled + label:before, .input-group [type="radio"]:disabled + label:after {
opacity: 0.75;
}

File diff suppressed because one or more lines are too long