blob: 17c3b3a4489108d1d1c47530ec9121faf40c0d9e (
plain)
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
|
/**
* Range
* --------------------------------------------------
*/
.range input{
display: inline-block;
overflow: hidden;
margin-top: 5px;
margin-bottom: 5px;
padding-right: 2px;
padding-left: 1px;
width: auto;
height: $range-slider-height + 15;
outline: none;
background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, $range-default-track-bg), color-stop(100%, $range-default-track-bg));
background: linear-gradient(to right, $range-default-track-bg 0%, $range-default-track-bg 100%);
background-position: center;
background-size: 99% $range-track-height;
background-repeat: no-repeat;
-webkit-appearance: none;
&::-webkit-slider-thumb {
position: relative;
width: $range-slider-width;
height: $range-slider-height;
border-radius: $range-slider-border-radius;
background-color: $toggle-handle-off-bg-color;
box-shadow: $range-slider-box-shadow;
cursor: pointer;
-webkit-appearance: none;
border: 0;
}
&::-webkit-slider-thumb:before{
/* what creates the colorful line on the left side of the slider */
position: absolute;
top: ($range-slider-height / 2) - ($range-track-height / 2);
left: -2001px;
width: 2000px;
height: $range-track-height;
background: $dark;
content: ' ';
}
&::-webkit-slider-thumb:after {
/* create a larger (but hidden) hit area */
position: absolute;
top: -15px;
left: -15px;
padding: 30px;
content: ' ';
//background: red;
//opacity: .5;
}
&::-ms-track{
background: transparent;
border-color: transparent;
border-width: 11px 0 16px;
color:transparent;
margin-top:20px;
}
&::-ms-thumb {
width: $range-slider-width;
height: $range-slider-height;
border-radius: $range-slider-border-radius;
background-color: $toggle-handle-off-bg-color;
border-color:$toggle-handle-off-bg-color;
box-shadow: $range-slider-box-shadow;
margin-left:1px;
margin-right:1px;
outline:none;
}
&::-ms-fill-lower{
height: $range-track-height;
background:$dark;
}
&::-ms-fill-upper {
height: $range-track-height;
background:$range-default-track-bg;
}
}
.range {
@include display-flex();
@include align-items(center);
padding: 2px 11px;
&.range-light {
input { @include range-style($range-light-track-bg); }
}
&.range-stable {
input { @include range-style($range-stable-track-bg); }
}
&.range-positive {
input { @include range-style($range-positive-track-bg); }
}
&.range-calm {
input { @include range-style($range-calm-track-bg); }
}
&.range-balanced {
input { @include range-style($range-balanced-track-bg); }
}
&.range-assertive {
input { @include range-style($range-assertive-track-bg); }
}
&.range-energized {
input { @include range-style($range-energized-track-bg); }
}
&.range-royal {
input { @include range-style($range-royal-track-bg); }
}
&.range-dark {
input { @include range-style($range-dark-track-bg); }
}
}
.range .icon {
@include flex(0);
display: block;
min-width: $range-icon-size;
text-align: center;
font-size: $range-icon-size;
}
.range input {
@include flex(1);
display: block;
margin-right: 10px;
margin-left: 10px;
}
.range-label {
@include flex(0, 0, auto);
display: block;
white-space: nowrap;
}
.range-label:first-child {
padding-left: 5px;
}
.range input + .range-label {
padding-right: 5px;
padding-left: 0;
}
// WP range height must be auto
.platform-windowsphone{
.range input{
height:auto;
}
}
|