-
-
Notifications
You must be signed in to change notification settings - Fork 437
Expand file tree
/
Copy path_slider.scss
More file actions
77 lines (67 loc) · 1.5 KB
/
_slider.scss
File metadata and controls
77 lines (67 loc) · 1.5 KB
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
.Slider-wrapper {
position: relative;
}
.Slider-wrapper--vert {
transform: rotate(-90deg);
}
.Slider {
position: relative;
width: 100%;
-webkit-appearance: none;
&:focus {
outline: 0;
}
&::-webkit-slider-runnable-track {
background-color: var(--color-background);
width: 100%;
height: 0.83vw;
}
&::-webkit-slider-thumb {
background-color: var(--color-background-lightest);
border: 2px solid var(--color-background-lightest);
border-radius: 100%;
margin-top: -2.2vw;
width: 5vw;
height: 5vw;
-webkit-appearance: none;
-webkit-app-region: no-drag;
}
}
.Slider--blue {
&::-webkit-slider-thumb {
background-color: var(--color-long-round);
border: 2px solid var(--color-long-round);
-webkit-app-region: no-drag;
}
}
.Slider--green {
&::-webkit-slider-thumb {
background-color: var(--color-short-round);
border: 2px solid var(--color-short-round);
-webkit-app-region: no-drag;
}
}
.Slider--red {
&::-webkit-slider-thumb {
background-color: var(--color-focus-round);
border: 2px solid var(--color-focus-round);
-webkit-app-region: no-drag;
}
}
.Slider-bar {
position: absolute;
top: calc(50% + 0.83vw);
height: 0.83vw;
}
.Slider-bar--blue {
background-color: var(--color-long-round);
}
.Slider-bar--blueGrey {
background-color: var(--color-background-lightest);
}
.Slider-bar--green {
background-color: var(--color-short-round);
}
.Slider-bar--red {
background-color: var(--color-focus-round);
}