mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
71 lines
1.3 KiB
Plaintext
71 lines
1.3 KiB
Plaintext
@import '../style/var';
|
|
|
|
.van-radio {
|
|
overflow: hidden;
|
|
user-select: none;
|
|
|
|
&__icon,
|
|
&__label {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
line-height: @radio-size;
|
|
}
|
|
|
|
&__icon {
|
|
height: @radio-size;
|
|
|
|
.van-icon {
|
|
font-size: 14px;
|
|
color: transparent;
|
|
text-align: center;
|
|
line-height: inherit;
|
|
width: @radio-size;
|
|
height: @radio-size;
|
|
box-sizing: border-box;
|
|
border: 1px solid @radio-border-color;
|
|
transition: @radio-transition-duration;
|
|
}
|
|
|
|
&--round {
|
|
.van-icon {
|
|
border-radius: 100%;
|
|
}
|
|
}
|
|
|
|
&--checked {
|
|
.van-icon {
|
|
color: @white;
|
|
border-color: @radio-checked-icon-color;
|
|
background-color: @radio-checked-icon-color;
|
|
}
|
|
}
|
|
|
|
&--disabled {
|
|
.van-icon {
|
|
border-color: @radio-disabled-icon-color;
|
|
background-color: @radio-disabled-background-color;
|
|
}
|
|
}
|
|
|
|
&--disabled&--checked {
|
|
.van-icon {
|
|
color: @radio-disabled-icon-color;
|
|
}
|
|
}
|
|
}
|
|
|
|
&__label {
|
|
color: @radio-label-color;
|
|
margin-left: @radio-label-margin;
|
|
|
|
&--left {
|
|
float: left;
|
|
margin: 0 @radio-label-margin 0 0;
|
|
}
|
|
|
|
&--disabled {
|
|
color: @radio-disabled-label-color;
|
|
}
|
|
}
|
|
}
|