mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
63 lines
1.1 KiB
Plaintext
63 lines
1.1 KiB
Plaintext
@import '../common/style/var.less';
|
|
|
|
.van-radio {
|
|
display: flex;
|
|
align-items: center;
|
|
overflow: hidden;
|
|
user-select: none;
|
|
|
|
&__icon-wrap {
|
|
flex: none;
|
|
}
|
|
|
|
&__icon {
|
|
display: block;
|
|
box-sizing: border-box;
|
|
width: 1em;
|
|
height: 1em;
|
|
color: transparent;
|
|
text-align: center;
|
|
border: 1px solid @radio-border-color;
|
|
transition-duration: @radio-transition-duration;
|
|
transition-property: color, border-color, background-color;
|
|
|
|
&--round {
|
|
border-radius: 100%;
|
|
}
|
|
|
|
&--checked {
|
|
color: @white;
|
|
background-color: @radio-checked-icon-color;
|
|
border-color: @radio-checked-icon-color;
|
|
}
|
|
|
|
&--disabled {
|
|
background-color: @radio-disabled-background-color;
|
|
border-color: @radio-disabled-icon-color;
|
|
}
|
|
|
|
&--disabled&--checked {
|
|
color: @radio-disabled-icon-color;
|
|
}
|
|
}
|
|
|
|
&__label {
|
|
margin-left: @radio-label-margin;
|
|
color: @radio-label-color;
|
|
word-break: break-all;
|
|
|
|
&--left {
|
|
float: left;
|
|
margin: 0 @radio-label-margin 0 0;
|
|
}
|
|
|
|
&--disabled {
|
|
color: @radio-disabled-label-color;
|
|
}
|
|
|
|
&:empty {
|
|
margin: 0;
|
|
}
|
|
}
|
|
}
|