blob: f2fa26b4a94bd0b299f7ed45f9d51e79c3998b27 (
plain) (
blame)
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
|
// Sliders
// Credit: https://css-tricks.com/styling-cross-browser-compatible-range-inputs-css/
.slider {
appearance: none;
background: transparent;
display: block;
width: 100%;
height: 2.4rem;
// Slider Thumb
&::-webkit-slider-thumb {
-webkit-appearance: none;
background: @core-color;
border-radius: 50%;
height: 1.2rem;
margin-top: -.4rem;
transition: transform .2s ease;
width: 1.2rem;
}
&::-moz-range-thumb {
background: @core-color;
border: 0;
border-radius: 50%;
height: 1.2rem;
transition: transform .2s ease;
width: 1.2rem;
}
&::-ms-thumb {
background: @core-color;
border: 0;
border-radius: 50%;
height: 1.2rem;
transition: transform .2s ease;
width: 1.2rem;
}
&:active {
&::-webkit-slider-thumb {
transform: scale(1.25);
}
&::-moz-range-thumb {
transform: scale(1.25);
}
&::-ms-thumb {
transform: scale(1.25);
}
}
// Slider Track
&::-webkit-slider-runnable-track {
background: @core-border-color;
border-radius: @border-radius;
height: .4rem;
width: 100%;
}
&::-moz-range-track {
background: @core-border-color;
border-radius: @border-radius;
height: .4rem;
width: 100%;
}
&::-ms-track {
background: @core-border-color;
border-radius: @border-radius;
height: .4rem;
width: 100%;
}
&::-ms-fill-lower {
background: @core-color;
}
}
|