@import '../common/style/var.less'; @import '../common/style/theme.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; transition-property: color, border-color, background-color; .theme(border, '1px solid @radio-border-color'); .theme(transition-duration, '@radio-transition-duration'); &--round { border-radius: 100%; } &--checked { .theme(color, '@white'); .theme(background-color, '@radio-checked-icon-color'); .theme(border-color, '@radio-checked-icon-color'); } &--disabled { .theme(background-color, '@radio-disabled-background-color'); .theme(border-color, '@radio-disabled-icon-color'); } &--disabled&--checked { .theme(color, '@radio-disabled-icon-color'); } } &__label { word-wrap: break-word; .theme(margin-left, '@radio-label-margin'); .theme(color, '@radio-label-color'); &--left { float: left; .theme(margin, '0 @radio-label-margin 0 0'); } &--disabled { .theme(color, '@radio-disabled-label-color'); } &:empty { margin: 0; } } }