63 lines
1.2 KiB
Plaintext

@import '../common/style/var.less';
.van-checkbox {
overflow: hidden;
user-select: none;
&__icon-wrap,
&__label {
display: inline-block;
line-height: @checkbox-size;
vertical-align: middle;
}
&__icon {
display: block;
font-size: 14px;
width: @checkbox-size;
height: @checkbox-size;
color: transparent;
text-align: center;
box-sizing: border-box;
border: 1px solid @checkbox-border-color;
transition: @checkbox-transition-duration;
&--round {
border-radius: 100%;
}
&--checked {
color: @white;
border-color: @checkbox-checked-icon-color;
background-color: @checkbox-checked-icon-color;
}
&--disabled {
border-color: @checkbox-disabled-icon-color;
background-color: @checkbox-disabled-background-color;
}
&--disabled&--checked {
color: @checkbox-disabled-icon-color;
}
}
&__label {
color: @checkbox-label-color;
margin-left: @checkbox-label-margin;
&--left {
float: left;
margin: 0 @checkbox-label-margin 0 0;
}
&--disabled {
color: @checkbox-disabled-label-color;
}
&:empty {
margin: 0;
}
}
}