-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnumber.css
91 lines (73 loc) · 1.52 KB
/
number.css
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
.container{
max-width: 300px;
margin: 0 auto;
}
.number-style input{
display: inline-block;
width: 30px;
vertical-align: middle;
text-align: center;
border: none;
font-size: 15px;
color: #000000;
}
.number-style span{
position: relative;
display: inline-block;
vertical-align: middle;
width: 20px;
height: 20px;
border-radius: 50%;
margin: 0 10px;
cursor: pointer;
}
.number-style span.number-minus{
border: 2px solid #fe0021;
}
.number-style span.number-minus::after{
content: "";
position: absolute;
left: 50%;
top: 50%;
margin: -1px 0 0 -5px;
width: 10px;
height: 2px;
background-color: #fe0021;
}
.number-style span.number-plus{
border: 2px solid #00fe02;
}
.number-style span.number-plus::after{
content: '';
position: absolute;
top: 50%;
left: 50%;
margin: -1px 0 0 -5px;
width: 10px;
height: 2px;
background-color: #00fe02;
}
.number-style span.number-plus::before{
content: '';
position: absolute;
top: 50%;
left: 50%;
margin: -5px 0 0 -1px;
width: 2px;
height: 10px;
background-color: #00fe02;
}
.number-style span.disabled{
border: 2px solid #a4a3a0;
}
.number-style span.disabled::after,
.number-style span.disabled::before{
background-color: #a4a3a0;
}
.number-style input[type='number'] {
-moz-appearance:textfield;
}
.number-style input::-webkit-outer-spin-button,
.number-style input::-webkit-inner-spin-button {
-webkit-appearance: none;
}