web-apps/apps/common/main/resources/less/checkbox.less

67 lines
1.7 KiB
Plaintext
Raw Normal View History

2016-03-11 00:48:53 +00:00
.checkbox-indeterminate {
padding-left: 22px;
margin-bottom: 0;
.font-size-normal();
font-weight: normal;
position: relative;
2019-12-10 20:52:01 +00:00
min-height: 1em;
2016-03-11 00:48:53 +00:00
2019-12-10 20:52:01 +00:00
input[type=checkbox] {
display: none;
2016-03-11 00:48:53 +00:00
2019-12-10 20:52:01 +00:00
+ label {
width: 14px;
height: 14px;
background: #fff;
2021-01-21 21:18:15 +00:00
border: @scaled-one-px-value solid @gray;
2019-12-13 18:13:55 +00:00
border-radius: 2px;
2019-12-10 20:52:01 +00:00
position: absolute;
left: 0;
margin-top: auto;
}
&:checked:not(:indeterminate) {
+ label {
&::before {
content: '';
position: absolute;
2020-12-11 18:26:40 +00:00
//border: solid @gray-deep;
.adaptive-solid-border(2px, @gray-deep);
border-top: 0 none;
border-left: 0 none;
transform: rotate(45deg);
width: 5px;
height: 9px;
left: 4px;
}
}
2016-03-11 00:48:53 +00:00
}
2019-12-10 20:52:01 +00:00
&:indeterminate {
+ label {
&::before {
content: '';
position: absolute;
2021-01-21 21:18:15 +00:00
border: @scaled-one-px-value solid @gray-deep;
background: @gray-soft;
2019-12-05 12:32:19 +00:00
width: 8px;
height: 8px;
2019-12-10 20:52:01 +00:00
left: 2px;
top: 2px;
}
}
2016-03-11 00:48:53 +00:00
}
2019-12-10 20:52:01 +00:00
&.disabled,
&:disabled {
opacity: .4;
2016-03-11 00:48:53 +00:00
2019-12-10 20:52:01 +00:00
+ label {
&::before {
opacity: .4;
}
2016-03-11 00:48:53 +00:00
}
}
}
}