[breaking change] rebuild style struct (#2021)
This commit is contained in:
@@ -56,7 +56,7 @@ export default {
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="postcss">
|
||||
<style lang="less">
|
||||
.demo-radio {
|
||||
&-group {
|
||||
padding: 0 17px;
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
@import '../style/var';
|
||||
|
||||
.van-radio {
|
||||
overflow: hidden;
|
||||
user-select: none;
|
||||
|
||||
&__input,
|
||||
&__label {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
&__input {
|
||||
height: 1em;
|
||||
position: relative;
|
||||
font-size: @van-radio-size;
|
||||
}
|
||||
|
||||
&__control {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
opacity: 0;
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
&__label {
|
||||
line-height: @van-radio-size;
|
||||
margin-left: 10px;
|
||||
|
||||
&--left {
|
||||
float: left;
|
||||
margin: 0 10px 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
.van-icon {
|
||||
width: 1em;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.van-icon-checked {
|
||||
color: @green;
|
||||
}
|
||||
|
||||
.van-icon-check {
|
||||
color: @gray-dark;
|
||||
}
|
||||
|
||||
&--disabled {
|
||||
.van-icon {
|
||||
color: @gray-light;
|
||||
border-radius: 100%;
|
||||
background-color: @background-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user