2019-09-07 19:18:37 +08:00

67 lines
1.2 KiB
Plaintext

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