-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrange.css
More file actions
47 lines (41 loc) · 1022 Bytes
/
range.css
File metadata and controls
47 lines (41 loc) · 1022 Bytes
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
input[type="range"] {
appearance: none;
height: 10px;
border-radius: 4px;
background-color: var(--clr-control);
box-shadow: var(--clr-control) 0 0 0 1px;
outline: 0;
}
input[type="range"]::-ms-slider-thumb {
background-color: #FF6600;
}
input[type="range"]::-webkit-slider-thumb {
appearance: none;
width: 22px;
height: 20px;
border-radius: 4px;
background-color: var(--clr-accent);
box-shadow: rgba(0,0,0,.5) -1px 0 2px;
transition: .2s;
}
input[type="range"]::-moz-range-thumb {
width: 22px;
height: 20px;
border: 0;
border-radius: 4px;
background: var(--clr-accent);
box-shadow: rgba(0,0,0,.5) 0 1px 2px;
transition: .2s;
}
input[type="range"]:focus {
box-shadow: var(--clr-accent) 0 0 0 2px;
}
input[type="range"]:disabled {
background-color: transparent;
box-shadow: var(--clr-control) 0 0 0 2px inset !important;
}
input[type="range"]:disabled::-webkit-slider-thumb,
input[type="range"]:disabled::-moz-range-thumb {
background-color: var(--clr-control) !important;
box-shadow: none;
}