-
Notifications
You must be signed in to change notification settings - Fork 0
/
slider.css
94 lines (92 loc) · 1.95 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
93
94
.field {
position: absolute;
width: 100%;
max-width: 300px;
padding: 10px;
margin-left: auto;
margin-right: 0;
margin-bottom: 50px;
box-shadow: 0px 10px 20px 0px rgba(255, 53, 153, 0.19), 0px 6px 6px 0px rgba(255, 53, 153, 0.23);
}
.field label {
margin-bottom: 10px;
display: block;
font-weight: bold;
font-size: 16px;
color: gray;
font: 1.5em sans-serif;
}
.inputslider {
position: relative;
}
.inputslider input {
display: none;
}
.inputslider .values {
position: relative;
margin-left: 14px;
margin-right: 14px;
height: 30px;
margin-bottom: 8px;
z-index: 1;
}
.inputslider .values span {
position: absolute;
top: 0;
background-color: #e6e9ed1c;
color: #434A54;
line-height: 20px;
padding: 2px 10px;
border-radius: 10px;
text-align: center;
white-space: nowrap;
display: block;
font: 12px sans-serif;
transform: translateX(-50%);
z-index: 1;
transition: all 0.2s ease;
}
.inputslider .values span.selected {
font: 18px sans-serif;
font-weight: bold;
background-color: #434A54;
color: rgba(255, 53, 153, 1);
z-index: 2;
}
.inputslider .area {
position: relative;
height: 28px;
}
.inputslider .area .track {
position: absolute;
top: 50%;
left: 0;
background-color: #E6E9ED;
width: 100%;
height: 6px;
border-radius: 3px;
z-index: 1;
transform: translateY(-50%);
}
.inputslider .area .fill {
position: absolute;
top: 50%;
left: 0;
background: #AAB2BD;
width: 0;
height: 6px;
border-radius: 3px;
z-index: 2;
transform: translateY(-50%);
}
.inputslider .area .knob {
position: absolute;
top: 0;
left: 0;
background-color: #434A54;
width: 28px;
height: 28px;
border-radius: 50%;
box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.1), 0px 7px 12px rgba(0, 0, 0, 0.12);
z-index: 3;
}