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

62 lines
1.5 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;
2016-03-11 00:48:53 +00:00
input[type=button] {
background-position: @checkbox-offset-x @checkbox-offset-y;
margin-left: -22px;
margin-right: 6px;
width: 14px;
height: 14px;
2016-03-11 00:48:53 +00:00
cursor: default;
vertical-align: top;
margin-top: -1px;
background: #fff;
border: 1px solid @gray;
2016-03-11 00:48:53 +00:00
&.checked {
+ span {
&::before {
content: '';
position: absolute;
border: solid @gray-deep;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
width: 6px;
height: 10px;
left: 4px;
top: -1px;
}
}
2016-03-11 00:48:53 +00:00
}
&.indeterminate {
+ span {
&::before {
content: '';
position: absolute;
border: 1px solid @gray-deep;
background: @gray-soft;
width: 10px;
height: 10px;
left: 3px;
top: 2px;
}
}
2016-03-11 00:48:53 +00:00
}
&.disabled {
opacity: .4;
2016-03-11 00:48:53 +00:00
+ span {
&::before {
opacity: .4;
}
2016-03-11 00:48:53 +00:00
}
}
}
}