forked from LeaVerou/multirange
-
Notifications
You must be signed in to change notification settings - Fork 0
/
multirange.css
126 lines (110 loc) · 2.7 KB
/
multirange.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
@supports (--css: variables) {
.multiple-box {
padding: 0;
text-align: center;
transform: scale(1.5);
transform-origin: 50% 0;
margin: 2em auto .8em auto;
width: 100%
}
.multiple_tip {
font-size: 12px;
line-height: 16px;
position: absolute;
z-index: 1;
top: -28px;
width: auto;
height: 16px;
text-align: center;
opacity: .8;
color: #333;
border: 1px solid #ddd;
border-radius: 3px;
background-color: #fff;
text-shadow: 0 1px 0 #f3f3f3
}
.multiple_sider_bar {
position: absolute;
top: 0;
left: 0;
right: 0;
background: #fe5848;
width: 100%;
height: 2px
}
.multiple_tip_hide {
display: none
}
input[type="range"].multirange {
padding: 0;
margin: 0;
width: 100%;
display: inline-block;
vertical-align: top;
background-color: #ccc;
height: 2px;
-webkit-appearance: none !important
}
input[type="range"].multirange::-webkit-slider-thumb {
width: 20px;
height: 20px;
background-image: url(img/icon_slider.png);
background-size: 20px 20px;
margin-top: -8px;
background-clip: padding-box;
-webkit-appearance: none !important
}
input[type="range"].multirange::-moz-range-thumb {
width: 20px;
height: 20px;
background-size: 20px 20px;
margin-top: -8px;
background-image: url(img/icon_slider.png);
background-clip: padding-box;
-webkit-appearance: none !important
}
input[type="range"].multirange.original {
left: 0;
position: absolute
}
input[type="range"].multirange.original::-webkit-slider-thumb {
right: 0;
position: relative;
z-index: 2
}
input[type="range"].multirange.original::-moz-range-thumb {
transform: scale(1);
z-index: 2
}
input[type="range"].multirange::-webkit-slider-runnable-track {
border-color: transparent;
height: 5px;
margin-top: 2px;
border-radius: 10px;
-webkit-appearance: none !important
}
input[type="range"].multirange::-moz-range-track {
border-color: transparent;
margin-top: 2px;
height: 5px;
border-radius: 10px;
-webkit-appearance: none !important
}
input[type="range"].multirange.ghost {
position: relative;
z-index: 1;
height: 2px;
background: var(--track-background);
--track-background: linear-gradient(to right, transparent var(--low), var(--range-color) 0, var(--range-color) var(--high), transparent 0) no-repeat 0 .45% 40%;
--range-color: #fe5848
}
input[type="range"].multirange.ghost::-webkit-slider-runnable-track {
background: var(--track-background)
}
input[type="range"].multirange.ghost::-moz-range-track {
background: var(--track-background)
}
input[type="range"].multirange:focus {
outline: none
}
}