blob: 19db56b78ab2f09f315faa01fca7673bb19d02a8 (
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
// 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: @primary-color;
border: 0;
border-radius: 50%;
height: 1.2rem;
margin-top: -.4rem;
transition: transform .2s ease;
width: 1.2rem;
}
&::-moz-range-thumb {
background: @primary-color;
border: 0;
border-radius: 50%;
height: 1.2rem;
transition: transform .2s ease;
width: 1.2rem;
}
&::-ms-thumb {
background: @primary-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);
}
}
&:disabled,
&.disabled {
&::-webkit-slider-thumb {
background: @light-gray-color;
transform: scale(1);
}
&::-moz-range-thumb {
background: @light-gray-color;
transform: scale(1);
}
&::-ms-thumb {
background: @light-gray-color;
transform: scale(1);
}
}
// Slider Track
&::-webkit-slider-runnable-track {
background: @border-color;
border-radius: @border-radius;
height: .4rem;
width: 100%;
}
&::-moz-range-track {
background: @border-color;
border-radius: @border-radius;
height: .4rem;
width: 100%;
}
&::-ms-track {
background: @border-color;
border-radius: @border-radius;
height: .4rem;
width: 100%;
}
&::-ms-fill-lower {
background: @primary-color;
}
}
|