mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-05 19:41:45 +08:00
* perf: remove CSS variables polyfill * style: fix missing calc value * perf: reduce some useless css vars
83 lines
1.8 KiB
Plaintext
83 lines
1.8 KiB
Plaintext
@import '../common/style/var.less';
|
|
|
|
.van-radio {
|
|
display: flex;
|
|
align-items: center;
|
|
overflow: hidden;
|
|
user-select: none;
|
|
|
|
&__icon-wrap {
|
|
flex: none;
|
|
}
|
|
|
|
&--horizontal {
|
|
margin-right: var(--padding-sm, @padding-sm);
|
|
}
|
|
|
|
&__icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-sizing: border-box;
|
|
width: 1em;
|
|
height: 1em;
|
|
color: transparent;
|
|
text-align: center;
|
|
transition-property: color, border-color, background-color;
|
|
border: 1px solid var(--radio-border-color, @radio-border-color);
|
|
font-size: var(--radio-size, @radio-size);
|
|
transition-duration: var(
|
|
--radio-transition-duration,
|
|
@radio-transition-duration
|
|
);
|
|
|
|
&--round {
|
|
border-radius: 100%;
|
|
}
|
|
|
|
&--checked {
|
|
color: @white;
|
|
background-color: var(
|
|
--radio-checked-icon-color,
|
|
@radio-checked-icon-color
|
|
);
|
|
border-color: var(--radio-checked-icon-color, @radio-checked-icon-color);
|
|
}
|
|
|
|
&--disabled {
|
|
background-color: var(
|
|
--radio-disabled-background-color,
|
|
@radio-disabled-background-color
|
|
);
|
|
border-color: var(
|
|
--radio-disabled-icon-color,
|
|
@radio-disabled-icon-color
|
|
);
|
|
}
|
|
|
|
&--disabled&--checked {
|
|
color: var(--radio-disabled-icon-color, @radio-disabled-icon-color);
|
|
}
|
|
}
|
|
|
|
&__label {
|
|
word-wrap: break-word;
|
|
padding-left: var(--radio-label-margin, @radio-label-margin);
|
|
color: var(--radio-label-color, @radio-label-color);
|
|
line-height: var(--radio-size, @radio-size);
|
|
|
|
&--left {
|
|
float: left;
|
|
margin: 0 var(--radio-label-margin, @radio-label-margin) 0 0;
|
|
}
|
|
|
|
&--disabled {
|
|
color: var(--radio-disabled-label-color, @radio-disabled-label-color);
|
|
}
|
|
|
|
&:empty {
|
|
margin: 0;
|
|
}
|
|
}
|
|
}
|