mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-05 19:41:45 +08:00
94 lines
1.6 KiB
Plaintext
94 lines
1.6 KiB
Plaintext
@import '../common/style/var.less';
|
|
|
|
.van-stepper {
|
|
font-size: 0;
|
|
|
|
&__minus,
|
|
&__plus {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 28px;
|
|
height: 28px;
|
|
padding: 5px;
|
|
margin: 1px;
|
|
vertical-align: middle;
|
|
background-color: @stepper-background-color;
|
|
border: 0;
|
|
box-sizing: border-box;
|
|
|
|
&::before {
|
|
width: 9px;
|
|
height: 1px;
|
|
}
|
|
|
|
&::after {
|
|
width: 1px;
|
|
height: 9px;
|
|
}
|
|
|
|
&::before,
|
|
&::after {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
margin: auto;
|
|
background-color: @text-color;
|
|
content: '';
|
|
}
|
|
|
|
&--hover {
|
|
background-color: @stepper-active-color;
|
|
}
|
|
|
|
&--disabled {
|
|
background-color: @stepper-button-disabled-color;
|
|
|
|
&::before,
|
|
&::after {
|
|
background-color: @gray;
|
|
}
|
|
}
|
|
|
|
&--disabled&--hover {
|
|
background-color: @stepper-button-disabled-color;
|
|
}
|
|
}
|
|
|
|
&__minus {
|
|
border-radius: @stepper-border-radius 0 0 @stepper-border-radius;
|
|
|
|
&::after {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
&__plus {
|
|
border-radius: 0 @stepper-border-radius @stepper-border-radius 0;
|
|
}
|
|
|
|
&__input {
|
|
display: inline-block;
|
|
width: 30px;
|
|
height: 26px;
|
|
padding: 1px;
|
|
margin: 1px;
|
|
font-size: 14px;
|
|
color: @text-color;
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
background-color: @stepper-background-color;
|
|
border: 0;
|
|
border-width: 1px 0;
|
|
border-radius: 0;
|
|
box-sizing: content-box;
|
|
-webkit-appearance: none;
|
|
|
|
&--disabled {
|
|
color: @gray;
|
|
background-color: @stepper-input-disabled-color;
|
|
}
|
|
}
|
|
}
|