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