_range-slider.scss
1.8 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/*range slider start */
.range-slider {
min-height: 200px;
display: flex;
align-items: center;
margin-left: 15px;
b{
margin-top: -10px;
}
}
#RGB {
height: 10px;
background: rgb(128, 128, 128);
}
#RC .slider-selection {
background: #FF8282;
}
#RC .slider-handle {
background: red;
}
#GC .slider-selection {
background: #428041;
}
#GC .slider-handle {
background: green;
}
#BC .slider-selection {
background: #8283FF;
}
#BC .slider-handle {
border-bottom-color: blue;
}
#R,
#G,
#B {
width: 300px;
}
.range-slider-contain {
position: absolute;
bottom: 15px;
}
.slider-handle {
top: -5px;
background-image: linear-gradient(to bottom, $primary-color 0%, $primary-color 100%);
box-shadow: none;
}
.slider-tick,
.slider-track {
background-image: linear-gradient(to bottom, #BDC3C7 0%, #BDC3C7 100%)
}
.slider-handle.custom::before {
line-height: 15px;
font-size: 35px;
color: $primary-color;
}
#slider12a,
#slider12c {
.slider-track-high {
background: green;
}
}
#slider12b,
#slider12c {
.slider-track-low {
background: red;
}
}
#slider12c .slider-selection {
background: yellow;
}
.slider-selection.tick-slider-selection {
background-image: linear-gradient(to bottom, lighten($primary-color,10%) 0%, lighten($primary-color,10%) 100%);
}
.slider-tick.in-selection {
background-image: linear-gradient(to bottom, lighten($primary-color,10%) 0%, lighten($primary-color,10%) 100%);
}
.slider.slider-horizontal {
.slider-track {
height: 2px;
}
.slider-tick,
.slider-handle {
top: -5px;
cursor: pointer;
}
}
/*range slider end */
.slider.slider-horizontal .slider-track {
width: 90%;
margin-top: -5px;
top: 50%;
left: 10px;
}