-
Notifications
You must be signed in to change notification settings - Fork 2
/
slider.css
92 lines (81 loc) · 1.94 KB
/
slider.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
input[type=range] {
/*removes default webkit styles*/
-webkit-appearance: none;
/*fix for FF unable to apply focus style bug */
border: 0px solid transparent;
/*required for proper track sizing in FF*/
width: 150px;
background: transparent;
padding: 7px;
}
input[type=range]::-webkit-slider-runnable-track {
width: 150px;
height: 1px;
background: black;
border: none;
border-radius: 0px;
}
input[type=range]::-webkit-slider-thumb {
-webkit-appearance: none;
border: none;
height: 16px;
width: 16px;
border-radius: 50%;
background: black;
margin-top: -7px;
}
input[type=range]:focus {
outline: none;
}
input[type=range]::-moz-range-track {
width: 150px;
height: 1px;
background: black;
border: none;
border-radius: 0px;
padding: 0px;
}
input[type=range]::-moz-range-thumb {
border: none;
height: 16px;
width: 16px;
border-radius: 50%;
background: black;
}
/*hide the outline behind the border*/
input[type=range]:-moz-focusring{
outline: 0px solid transparent;
outline-offset: -1px;
}
input[type=range]::-ms-track {
width: 150px;
height: 1px;
/*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */
background: black;
/*leave room for the larger thumb to overflow with a transparent border */
border-color: transparent;
border-width: 0px 0;
/*remove default tick marks*/
color: transparent;
}
input[type=range]::-ms-fill-lower {
background: transparent;
border-radius: 10px;
}
input[type=range]::-ms-fill-upper {
background: transparent;
border-radius: 10px;
}
input[type=range]::-ms-thumb {
border: none;
height: 16px;
width: 16px;
border-radius: 50%;
background: black;
}
input[type=range]:focus::-ms-fill-lower {
background: transparent;
}
input[type=range]:focus::-ms-fill-upper {
background: transparent;
}