-
Notifications
You must be signed in to change notification settings - Fork 0
/
range.css
110 lines (109 loc) · 2.28 KB
/
range.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
/* modified from http://danielstern.ca/range.css/#/ */
input[type="range"] {
width: 100%;
height: 10px;
margin: 3.2px 10px;
padding: 5px 0;
background-color: transparent;
-webkit-appearance: none;
}
input[type="range"]:focus {
outline: none;
}
input[type="range"]::-webkit-slider-runnable-track {
z-index: 0;
position: relative;
background: rgba(33, 33, 33, 0.2);
border: 0;
border-radius: 19.9px;
width: 100%;
height: 5.6px;
cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
margin-top: -3.2px;
width: 15px;
height: 15px;
background: #fafafa;
z-index: 2;
mix-blend-mode: normal;
position: relative;
border: 0;
border-radius: 50px;
cursor: pointer;
-webkit-appearance: none;
}
input[type="range"]:focus::-webkit-slider-runnable-track {
background: rgba(33,33,33,0.3)
}
input[type="range"]::-moz-range-track {
z-index: 0;
position: relative;
background: rgba(33, 33, 33, 0.7);
mix-blend-mode: overlay;
border: 0;
border-radius: 19.9px;
width: 100%;
height: 5.6px;
cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
width: 15px;
height: 15px;
background: #fafafa;
z-index: 2;
mix-blend-mode: normal;
position: relative;
border: 0;
border-radius: 50px;
cursor: pointer;
}
input[type="range"]::-ms-track {
background: transparent;
border-color: transparent;
border-width: 3.2px 0;
color: transparent;
width: 100%;
height: 5.6px;
cursor: pointer;
}
input[type="range"]::-ms-fill-lower {
background: rgba(33,33,33,0.3)
border: 0;
border-radius: 39.8px;
}
input[type="range"]::-ms-fill-upper {
z-index: 0;
position: relative;
background: rgba(33, 33, 33, 0.8);
mix-blend-mode: overlay;
border: 0;
border-radius: 39.8px;
}
input[type="range"]::-ms-thumb {
width: 15px;
height: 15px;
background: #fafafa;
z-index: 2;
mix-blend-mode: normal;
position: relative;
border: 0;
border-radius: 50px;
cursor: pointer;
margin-top: 0px;
/*Needed to keep the Edge thumb centred*/
}
input[type="range"]:focus::-ms-fill-lower {
z-index: 0;
position: relative;
background: rgba(33, 0, 0, 0.8);
mix-blend-mode: overlay;
}
input[type="range"]:focus::-ms-fill-upper {
background: rgba(33,33,33,0.3)
}
@supports (-ms-ime-align: auto) {
input[type="range"] {
margin: 0;
}
}