forked from youzan/vant
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.less
More file actions
95 lines (81 loc) · 1.9 KB
/
index.less
File metadata and controls
95 lines (81 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
@import '../style/var';
.van-stepper {
font-size: 0;
user-select: none;
&__minus,
&__plus {
position: relative;
box-sizing: border-box;
width: @stepper-input-height;
height: @stepper-input-height;
margin: 0;
padding: @padding-base;
color: @stepper-button-icon-color;
vertical-align: middle;
background-color: @stepper-background-color;
border: 0;
&::before {
width: 13px;
height: 1px;
}
&::after {
width: 1px;
height: 13px;
}
&::before,
&::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
background-color: currentColor;
content: '';
}
&:active {
background-color: @stepper-active-color;
}
&--disabled {
color: @stepper-button-disabled-icon-color;
background-color: @stepper-button-disabled-color;
&:active {
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 {
box-sizing: border-box;
width: @stepper-input-width;
height: @stepper-input-height;
margin: 0 2px;
padding: 0;
color: @stepper-input-text-color;
font-size: @stepper-input-font-size;
text-align: center;
vertical-align: middle;
background-color: @stepper-background-color;
border: 0;
border-width: 1px 0;
border-radius: 0;
-webkit-appearance: none;
&[disabled] {
color: @stepper-input-disabled-text-color;
background-color: @stepper-input-disabled-background-color;
}
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
margin: 0;
-webkit-appearance: none;
}
}