-
Notifications
You must be signed in to change notification settings - Fork 0
/
input-range.css
88 lines (71 loc) · 1.36 KB
/
input-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
input-range {
/* Mandatory */
display: inline-flex;
align-items: center;
justify-content: center;
position: relative;
box-sizing: border-box;
user-select: none;
padding: 0;
margin: 0;
/* Mandatory - custom */
width: 128px;
height: 12px;
}
input-range * {
/* Mandatory */
box-sizing: border-box;
margin: 0;
padding: 0;
}
input-track {
/* Mandatory */
display: flex;
width: 100%;
overflow: hidden;
/* Mandatory - custom*/
height: 100%;
/* custom */
background-color: #D4D4D4;
}
input-lower {
/* Mandatory */
display: block;
height: 100%;
width: 50%; /* JS action */
/* custom - here */
}
input-upper {
/* Mandatory */
display: block;
height: 100%;
flex-grow: 1;
/* custom - here */
}
input-thumb {
/* Mandatory */
display: block;
position: absolute;
touch-action: none;
/* Mandatory */
top: 50%;
left: 0; /* IE11 */
transform: translate(-50%, -50%);
/* Mandatory - custom */
height: 100%;
width: 12px;
/* custom */
background-color: black;
}
input-range[disabled] {
/* Mandatory */
pointer-events: none;
}
input-range[disabled] input-track {
/* custom */
background-color: #E5E5E5;
}
input-range[disabled] input-thumb{
/* custom */
background-color: #C2C2C2;
}