-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslider.css
51 lines (51 loc) · 1.41 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
label.slider {
display: inline-block;
box-sizing: border-box;
position: relative;
width: auto;
height: 30px;
padding: 0 4px;
text-align: center;
background: var(--slider-background-color, grey);
border: solid medium var(--slider-border-color, lightgrey);
border-radius: 15px;
}
.sliderOption {
display: inline-block;
position: relative;
top: -25%;
margin: 0;
appearance: none;
width: 22px;
height: 22px;
}
.sliderOption:checked {
width: 20px;
background: var(--slider-color, lightblue);
height: 20px;
border-radius: 50%;
opacity: 100%;
transition: background-color 0.5s;
}
.slider .sliderOption:first-child:checked{
background: var(--slider-first-color, salmon);
}
.slider .sliderOption:last-child:checked{
background: var(--slider-last-color, lightgreen);
}
.sliderOption:checked::after {
position: relative;
content: attr(value);
color: var(--slider-text-color, #2A382A);
font-size: 12pt;
font-weight: bold;
left: 5px;
top: 1.5px;
}
.sliderOption:checked[data-letter]::after {
content: attr(data-letter);
}
.sliderOption:checked[data-letter=" "] {
left: 0px;
top: 0px;
}