Add disabled state for unchecked checkbox (#4916)
This commit is contained in:
parent
a04494e63d
commit
5e7ae1bb72
|
|
@ -142,13 +142,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
input:disabled + label:before {
|
input:disabled + label:before {
|
||||||
|
background-color: #999 !important;
|
||||||
border: 1px solid @color-checkbox-border !important;
|
border: 1px solid @color-checkbox-border !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
input:disabled:checked + label:before {
|
|
||||||
background-color: #999;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
label:before {
|
label:before {
|
||||||
|
|
|
||||||
|
|
@ -4119,9 +4119,7 @@ html.cssanimations .cursor-loading-indicator.hide {display:none}
|
||||||
.custom-checkbox input[type=checkbox]:indeterminate + label:before,
|
.custom-checkbox input[type=checkbox]:indeterminate + label:before,
|
||||||
.custom-radio input[type=checkbox]:indeterminate + label:before {font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;content:"\f068"}
|
.custom-radio input[type=checkbox]:indeterminate + label:before {font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;content:"\f068"}
|
||||||
.custom-checkbox input:disabled + label:before,
|
.custom-checkbox input:disabled + label:before,
|
||||||
.custom-radio input:disabled + label:before {border:1px solid #d1d6d9 !important}
|
.custom-radio input:disabled + label:before {background-color:#999 !important;border:1px solid #d1d6d9 !important}
|
||||||
.custom-checkbox input:disabled:checked + label:before,
|
|
||||||
.custom-radio input:disabled:checked + label:before {background-color:#999}
|
|
||||||
.custom-checkbox:focus,
|
.custom-checkbox:focus,
|
||||||
.custom-radio:focus {outline:none}
|
.custom-radio:focus {outline:none}
|
||||||
.custom-checkbox:focus label:before,
|
.custom-checkbox:focus label:before,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue