@trilogy-ds/styles 0.0.1-beta.5 → 0.0.1-beta.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -0
- package/dist/default/trilogy-mangled.css +1 -1
- package/dist/default/trilogy-partials.css +1 -1
- package/dist/default/trilogy.css +1 -1
- package/framework/src/base/_color.scss +14 -36
- package/framework/src/base/_generic.scss +4 -1
- package/framework/src/base/_helpers.scss +20 -37
- package/framework/src/base/_loading.scss +8 -1
- package/framework/src/base/_reset.scss +8 -3
- package/framework/src/components/_accordion.scss +40 -86
- package/framework/src/components/_all.scss +0 -6
- package/framework/src/components/_breadcrumb.scss +39 -34
- package/framework/src/components/_card.scss +7 -78
- package/framework/src/components/_countdown.scss +49 -47
- package/framework/src/components/_divider.scss +2 -2
- package/framework/src/components/_fab.scss +12 -26
- package/framework/src/components/_level.scss +1 -1
- package/framework/src/components/_media.scss +2 -2
- package/framework/src/components/_modal.scss +167 -166
- package/framework/src/components/_otp.scss +9 -28
- package/framework/src/components/_pagination.scss +104 -133
- package/framework/src/components/_plus-symbol.scss +1 -1
- package/framework/src/components/_popover.scss +255 -255
- package/framework/src/components/_price.scss +196 -166
- package/framework/src/components/_product-tour.scss +2 -4
- package/framework/src/components/_range.scss +73 -72
- package/framework/src/components/_segmented-control.scss +37 -51
- package/framework/src/components/_stepper.scss +18 -142
- package/framework/src/components/_tabs.scss +32 -59
- package/framework/src/components/_timeline.scss +52 -45
- package/framework/src/elements/_alert.scss +5 -8
- package/framework/src/elements/_all.scss +1 -3
- package/framework/src/elements/_autocomplete.scss +32 -0
- package/framework/src/elements/_badge.scss +54 -59
- package/framework/src/elements/_box.scss +8 -115
- package/framework/src/elements/_button.scss +15 -133
- package/framework/src/elements/_checkbox.scss +21 -27
- package/framework/src/elements/_chips.scss +74 -83
- package/framework/src/elements/_dot.scss +1 -1
- package/framework/src/elements/_entry.scss +76 -88
- package/framework/src/elements/_form.scss +17 -15
- package/framework/src/elements/_icon.scss +3 -3
- package/framework/src/elements/_input-gauge.scss +32 -33
- package/framework/src/elements/_input-icons.scss +33 -31
- package/framework/src/elements/_link.scss +38 -65
- package/framework/src/elements/_list.scss +38 -46
- package/framework/src/elements/_loader.scss +1 -1
- package/framework/src/elements/_other.scss +2 -2
- package/framework/src/elements/_paragraph.scss +4 -26
- package/framework/src/elements/_progress.scss +12 -21
- package/framework/src/elements/_radio.scss +2 -2
- package/framework/src/elements/_select.scss +84 -301
- package/framework/src/elements/_sticker.scss +12 -27
- package/framework/src/elements/_switch.scss +85 -88
- package/framework/src/elements/_table.scss +173 -226
- package/framework/src/elements/_tag.scss +104 -105
- package/framework/src/elements/_textarea.scss +95 -105
- package/framework/src/elements/_title.scss +89 -87
- package/framework/src/elements/_toaster.scss +3 -4
- package/framework/src/grid/_columns.scss +5 -5
- package/framework/src/layout/_all.scss +0 -1
- package/framework/src/layout/_hero.scss +109 -207
- package/framework/src/layout/_section.scss +7 -14
- package/framework/src/theming/_all.scss +3 -0
- package/framework/src/theming/buttons_partial.scss +30 -0
- package/framework/src/theming/common_partials.scss +9 -0
- package/framework/src/theming/links_partial.scss +20 -0
- package/framework/src/utilities/_all.scss +3 -0
- package/framework/src/utilities/_background.scss +15 -0
- package/framework/src/utilities/_controls.scss +37 -48
- package/framework/src/utilities/_derived-variables.scss +3 -14
- package/framework/src/utilities/_initial-variables.scss +22 -26
- package/framework/src/utilities/_mixins.scss +481 -593
- package/framework/src/utilities/_pre.scss +1 -0
- package/package.json +3 -2
- package/framework/src/components/_disclaimer.scss +0 -84
- package/framework/src/components/_dropdown.scss +0 -128
- package/framework/src/components/_menu.scss +0 -213
- package/framework/src/components/_search-modal.scss +0 -197
- package/framework/src/components/_slices.scss +0 -316
- package/framework/src/components/_slider.scss +0 -92
- package/framework/src/components/_switch.scss +0 -209
- package/framework/src/elements/_checkradio.scss +0 -173
- package/framework/src/elements/_notification.scss +0 -151
- package/framework/src/elements/_options.scss +0 -146
- package/framework/src/elements/_timeline.scss +0 -283
- package/framework/src/layout/_toolbar.scss +0 -100
|
@@ -1,315 +1,98 @@
|
|
|
1
|
-
[data-blur-select] {
|
|
2
|
-
position: absolute;
|
|
3
|
-
z-index: zindex('large');
|
|
4
|
-
min-width: 100%;
|
|
5
|
-
min-height: 100%;
|
|
6
|
-
left:0;
|
|
7
|
-
top: 0;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
@mixin arrow-style($isDisabled:false, $direction:"up") {
|
|
12
|
-
$color: getColor('font');
|
|
13
|
-
@if($isDisabled) { $color: getColor('grey') }
|
|
14
|
-
|
|
15
|
-
@include arrow($color,$direction);
|
|
16
|
-
right: 16px;
|
|
17
|
-
margin-left: 16px;
|
|
18
|
-
top: calc(50% - 7px);
|
|
19
|
-
}
|
|
20
1
|
|
|
21
2
|
.select {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
max-width: 100%;
|
|
25
|
-
position: relative;
|
|
26
|
-
font-family: $body-family;
|
|
27
|
-
border-radius: 4px;
|
|
28
|
-
background-color: getColor('background');
|
|
29
|
-
display: block;
|
|
30
|
-
font-size: 1em;
|
|
31
|
-
max-width: 100%;
|
|
32
|
-
outline: none;
|
|
33
|
-
cursor: pointer;
|
|
34
|
-
height: 56px;
|
|
35
|
-
|
|
36
|
-
select {
|
|
37
|
-
height: 100%;
|
|
38
|
-
border: 1px solid transparent;
|
|
39
|
-
border-radius: 3px;
|
|
40
|
-
max-width: 100%;
|
|
41
|
-
width: 100%;
|
|
42
|
-
font-size: 1em;
|
|
43
|
-
font-family: $body-family;
|
|
44
|
-
color: getColor('font');
|
|
45
|
-
cursor: pointer;
|
|
46
|
-
-webkit-appearance: none;
|
|
47
|
-
-moz-appearance: none;
|
|
48
|
-
appearance: none;
|
|
49
|
-
z-index: 10;
|
|
50
|
-
background-color: transparent;
|
|
51
|
-
opacity: 100;
|
|
52
|
-
outline: none;
|
|
53
|
-
padding-left: $spacing-4;
|
|
54
|
-
&::-ms-expand {
|
|
55
|
-
display: none !important;
|
|
56
|
-
}
|
|
57
|
-
&:focus, &:hover {
|
|
58
|
-
outline: 1px auto getColor('alternate');
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
label {
|
|
64
|
-
position: absolute;
|
|
65
|
-
top: 50%;
|
|
66
|
-
transform: translate(0, -50%);
|
|
67
|
-
left: 16px !important;
|
|
68
|
-
color: getColor('grey') !important
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&.select-native {
|
|
72
|
-
.icon {
|
|
73
|
-
position: absolute;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
&.has-icon {
|
|
77
|
-
select {
|
|
78
|
-
padding-left: 50px;
|
|
79
|
-
&:not(.no-label) {
|
|
80
|
-
padding-bottom: 5px;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.has-dynamic-placeholder {
|
|
87
|
-
label {
|
|
88
|
-
top: 18px;
|
|
89
|
-
color: getColor('grey') !important
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
&-value {
|
|
95
|
-
position: absolute ;
|
|
96
|
-
left: 16px;
|
|
97
|
-
top: 50%;
|
|
98
|
-
transform: translateY(-20%);
|
|
99
|
-
|
|
100
|
-
&.no-label {
|
|
101
|
-
transform: translateY(-50%);
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
3
|
+
position: relative;
|
|
4
|
+
input { cursor: pointer;}
|
|
106
5
|
|
|
6
|
+
.field.focus .control input:first-child,
|
|
7
|
+
.field.focus .input.select-native {
|
|
8
|
+
border: 2px solid currentColor;
|
|
9
|
+
}
|
|
107
10
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
border: 1px solid getColor('grey-disabled');
|
|
111
|
-
cursor:default ;
|
|
112
|
-
label {
|
|
113
|
-
color: #565656 !important;
|
|
114
|
-
}
|
|
115
|
-
.icon {
|
|
116
|
-
color: #565656;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
.icon {
|
|
123
|
-
height: 100%;
|
|
124
|
-
width: 50px;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
&.has-icon {
|
|
128
|
-
label {
|
|
129
|
-
left: 50px !important;
|
|
130
|
-
}
|
|
131
|
-
.select-value {
|
|
132
|
-
left: 50px !important;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
&:not(.is-loading) {
|
|
138
|
-
&:not(.select-disabled) {
|
|
139
|
-
&::after {
|
|
140
|
-
@include arrow-style(false,"down")
|
|
141
|
-
}
|
|
142
|
-
&:not(.select-native):hover, &:not(.select-native):focus {
|
|
143
|
-
outline: 1px auto getColor('alternate');
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
&.select-disabled {
|
|
147
|
-
&::after {
|
|
148
|
-
@include arrow-style(true,"down")
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
&.select-show-options:not(.is-loading) {
|
|
155
|
-
outline: 1px auto getColor('alternate');
|
|
156
|
-
&::after {
|
|
157
|
-
@include arrow-style()
|
|
158
|
-
}
|
|
159
|
-
&:hover {
|
|
160
|
-
&::after {
|
|
161
|
-
border-color: getColor('font');
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
// Colors
|
|
167
|
-
@each $name in $colors-brand {
|
|
168
|
-
$brandName: getColorBrandName($name);
|
|
169
|
-
$color: getColor($name);
|
|
170
|
-
|
|
171
|
-
&.is-#{$brandName} {
|
|
172
|
-
&:not(:hover) {
|
|
173
|
-
outline: 1px auto $color;
|
|
174
|
-
}
|
|
175
|
-
&:hover,
|
|
176
|
-
&.is-hovered {
|
|
177
|
-
outline: 1px auto getVariantColor($name, 1);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
// Sizes
|
|
183
|
-
&.is-small {
|
|
184
|
-
@include control-small;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
&.is-large {
|
|
188
|
-
@include control-large;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
&.is-loading {
|
|
193
|
-
&::after {
|
|
194
|
-
@include spinner;
|
|
195
|
-
margin-top: 0;
|
|
196
|
-
position: absolute;
|
|
197
|
-
right: 0.625em;
|
|
198
|
-
top: 0.625em;
|
|
199
|
-
transform: none;
|
|
200
|
-
}
|
|
201
|
-
&.is-small::after {
|
|
202
|
-
font-size: $size-small;
|
|
203
|
-
}
|
|
204
|
-
&.is-large::after {
|
|
205
|
-
font-size: $size-large;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.select-options {
|
|
211
|
-
position: absolute;
|
|
212
|
-
margin-top: 8px;
|
|
213
|
-
display: flex;
|
|
214
|
-
flex-direction: column;
|
|
215
|
-
align-items: flex-start;
|
|
216
|
-
background: getColor('background');
|
|
217
|
-
box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
|
|
11
|
+
&-options {
|
|
12
|
+
box-shadow: 0 0 8px #0000001a;
|
|
218
13
|
border-radius: 4px;
|
|
219
|
-
overflow:
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
z-index:
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
position: absolute;
|
|
16
|
+
top: 64px;
|
|
17
|
+
z-index: 1001;
|
|
18
|
+
left: 0;
|
|
19
|
+
right: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.radio-tile {
|
|
23
|
+
input:checked {
|
|
24
|
+
&~label.radio-label {
|
|
25
|
+
font-weight: $weight-black ;
|
|
26
|
+
&:after {
|
|
27
|
+
content: "" !important;
|
|
28
|
+
mask-image: url('./assets/icons/all/check.svg') !important;
|
|
29
|
+
background-color: getColor('main') !important;
|
|
30
|
+
mask-size: 18px !important;
|
|
31
|
+
top: 25px !important;
|
|
32
|
+
right: 18px !important;
|
|
33
|
+
height:18px !important;
|
|
34
|
+
width: 18px !important
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
label.radio-label {
|
|
40
|
+
border:none !important;
|
|
41
|
+
border-radius: 0 !important;
|
|
42
|
+
height: 52px;
|
|
43
|
+
&:before { display: none; }
|
|
44
|
+
@include hover
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&.focus label.radio-label { @include hoverRules(); }
|
|
48
|
+
|
|
49
|
+
.icon.is-medium {
|
|
50
|
+
font-size: $text-20 !important;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.control:not(.has-icons-left.has-icons-right) {
|
|
55
|
+
.select-native.multiple.input {
|
|
56
|
+
padding-left:0 !important;
|
|
57
|
+
select option {padding-left: 16px;}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&-native {
|
|
62
|
+
position: relative;
|
|
63
|
+
select {
|
|
64
|
+
width: 100%;
|
|
65
|
+
border:none;
|
|
66
|
+
height: 100%;
|
|
67
|
+
background-color: transparent;
|
|
68
|
+
-webkit-appearance: none;
|
|
69
|
+
-moz-appearance: none;
|
|
70
|
+
text-indent: 1px;
|
|
71
|
+
outline: none;
|
|
72
|
+
color: getColor('main');
|
|
73
|
+
font-size: $text-16 !important;
|
|
259
74
|
}
|
|
260
75
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
background-color: #E4EAED;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
&:not([data-is-disabled='true']){
|
|
268
|
-
cursor: pointer;
|
|
269
|
-
}
|
|
76
|
+
&.input {
|
|
77
|
+
padding-top: 0px !important;
|
|
78
|
+
padding-bottom: 0px !important;
|
|
270
79
|
}
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
[data-is-open-options="false"] {
|
|
274
|
-
display: none;
|
|
275
|
-
}
|
|
276
80
|
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
//AutoComplete
|
|
282
|
-
.is-autocomplete {
|
|
283
|
-
.autocomplete-menu {
|
|
284
|
-
display: none;
|
|
81
|
+
&.multiple.input{
|
|
82
|
+
height: auto !important;
|
|
83
|
+
padding-right: 0 !important;
|
|
84
|
+
select { padding-top: 0 !important; }
|
|
285
85
|
}
|
|
86
|
+
}
|
|
286
87
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
background-color: getColor('background');
|
|
296
|
-
z-index: 10000;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
.autocomplete-item {
|
|
300
|
-
cursor: pointer;
|
|
301
|
-
padding: 3.75px calc(15px - 10px);
|
|
302
|
-
|
|
303
|
-
&.is-active, &[data-autocomplete-item-hover] {
|
|
304
|
-
background-color: rgba(16,157,185,.08);
|
|
305
|
-
border-top: 1px solid getColor('alternate');
|
|
306
|
-
border-bottom: 1px solid getColor('alternate');
|
|
307
|
-
margin-left: -10px;
|
|
308
|
-
margin-right: -10px;
|
|
309
|
-
padding: 2.75px 15px;
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
}
|
|
88
|
+
&-trilogy_modal_open {
|
|
89
|
+
position: fixed;
|
|
90
|
+
top:0;
|
|
91
|
+
left:0;
|
|
92
|
+
right:0;
|
|
93
|
+
bottom:0;
|
|
94
|
+
z-index: 1000;
|
|
95
|
+
}
|
|
313
96
|
}
|
|
314
97
|
|
|
315
98
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
$sticker-height: 35px;
|
|
2
|
-
$sticker-radius: $radius-large;
|
|
3
2
|
|
|
4
3
|
.sticker {
|
|
5
|
-
border-radius:
|
|
4
|
+
border-radius: 9999px;
|
|
6
5
|
font-size: 16px;
|
|
7
6
|
flex-grow: 0;
|
|
8
7
|
display: inline-flex;
|
|
@@ -16,58 +15,44 @@ $sticker-radius: $radius-large;
|
|
|
16
15
|
&:not(.is-hat) {
|
|
17
16
|
width: fit-content;
|
|
18
17
|
|
|
19
|
-
@include mobile{
|
|
20
|
-
border-radius: 16px;
|
|
18
|
+
@include mobile {
|
|
21
19
|
font-size: 12px;
|
|
22
20
|
padding: $spacing-1 $spacing-2;
|
|
23
21
|
height: auto;
|
|
24
22
|
line-height: 15px;
|
|
25
23
|
|
|
26
|
-
&.is-flag {
|
|
27
|
-
border-radius: 0 $sticker-radius 0 0;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
24
|
}
|
|
31
25
|
}
|
|
32
26
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
background-color: getColor('main');
|
|
27
|
+
&.is-accent {
|
|
28
|
+
background-color: getColor('alternate');
|
|
36
29
|
color: getColor('background') !important;
|
|
37
30
|
}
|
|
38
31
|
|
|
39
|
-
&.is-
|
|
40
|
-
|
|
32
|
+
&.is-info {
|
|
33
|
+
background-color: getColor('info');
|
|
34
|
+
color: getColor('background') !important;
|
|
41
35
|
}
|
|
42
36
|
|
|
43
|
-
&.is-outlined,
|
|
44
37
|
&.is-inverted {
|
|
45
38
|
background-color: white !important;
|
|
46
39
|
border-style: solid;
|
|
47
40
|
border-width: 2px;
|
|
48
41
|
border-color: currentColor;
|
|
49
|
-
color:
|
|
50
|
-
|
|
51
|
-
&.is-primary {
|
|
52
|
-
color: getColor('main') !important;
|
|
53
|
-
}
|
|
42
|
+
color: currentColor;
|
|
54
43
|
}
|
|
55
44
|
|
|
56
45
|
&.is-small {
|
|
57
|
-
border-radius: 16px;
|
|
58
46
|
font-size: 12px;
|
|
59
47
|
padding: $spacing-1 $spacing-2;
|
|
60
48
|
height: auto;
|
|
61
49
|
line-height: 15px;
|
|
62
50
|
|
|
63
|
-
&.is-flag {
|
|
64
|
-
border-radius: 0 $sticker-radius 0 0;
|
|
65
|
-
}
|
|
66
51
|
}
|
|
67
52
|
|
|
68
53
|
// deprecated
|
|
69
54
|
&.is-stretched {
|
|
70
|
-
border-radius:
|
|
55
|
+
border-radius: var(--radius) 0;
|
|
71
56
|
padding: 0 10px;
|
|
72
57
|
position: relative;
|
|
73
58
|
margin-right: 10px;
|
|
@@ -87,12 +72,12 @@ $sticker-radius: $radius-large;
|
|
|
87
72
|
}
|
|
88
73
|
|
|
89
74
|
&::before {
|
|
90
|
-
border-radius:
|
|
75
|
+
border-radius: var(--radius) 0 0 var(--radius);
|
|
91
76
|
left: -6px;
|
|
92
77
|
}
|
|
93
78
|
|
|
94
79
|
&::after {
|
|
95
|
-
border-radius: 0
|
|
80
|
+
border-radius: 0 var(--radius) var(--radius) 0;
|
|
96
81
|
right: -7px;
|
|
97
82
|
}
|
|
98
83
|
}
|
|
@@ -111,7 +96,7 @@ $sticker-radius: $radius-large;
|
|
|
111
96
|
.has-hat-mobile {
|
|
112
97
|
.is-hat {
|
|
113
98
|
display: inline-block;
|
|
114
|
-
border-radius:
|
|
99
|
+
border-radius: var(--radius) var(--radius) 0 0;
|
|
115
100
|
position: absolute;
|
|
116
101
|
top: -$sticker-height;
|
|
117
102
|
left: 0;
|
|
@@ -1,108 +1,105 @@
|
|
|
1
1
|
.switch {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
position: relative;
|
|
3
|
+
margin: 8px;
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
input {
|
|
6
|
+
display: none;
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
background-color: getColor('grey-disabled');
|
|
16
|
-
}
|
|
17
|
-
}
|
|
8
|
+
&:disabled ~ label,
|
|
9
|
+
&:disabled:checked ~ label {
|
|
10
|
+
cursor: not-allowed;
|
|
11
|
+
&:before {
|
|
12
|
+
background-color: getColor('disabled');
|
|
13
|
+
}
|
|
14
|
+
}
|
|
18
15
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
&:disabled ~ label {
|
|
17
|
+
&:after {
|
|
18
|
+
$colorSvg: encodecolor(getColorValue('neutral-dark'));
|
|
19
|
+
content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-width="3.2" fill="none"><path d="M12.6 12.6L31.4 31.4M12.6 31.4L31.4 12.6"/></svg>');
|
|
20
|
+
}
|
|
21
|
+
}
|
|
25
22
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
23
|
+
&:disabled:checked ~ label {
|
|
24
|
+
&:after {
|
|
25
|
+
$colorSvg: encodecolor(getColorValue('neutral-dark'));
|
|
26
|
+
content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" fill="none"><path d="M11.3 22.4L18.1 29.3L32.7 14.7"/></svg>');
|
|
27
|
+
}
|
|
32
28
|
}
|
|
29
|
+
}
|
|
33
30
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
31
|
+
label {
|
|
32
|
+
width: 100%;
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
padding: $spacing-1;
|
|
37
|
+
padding-right: 60px;
|
|
41
38
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
39
|
+
&:before {
|
|
40
|
+
content: '';
|
|
41
|
+
position: absolute;
|
|
42
|
+
top: 50%;
|
|
43
|
+
transform: translateY(-50%);
|
|
44
|
+
right: 0;
|
|
45
|
+
border-radius: 9999px;
|
|
46
|
+
width: 44px;
|
|
47
|
+
height: 22px;
|
|
48
|
+
background-color: getBGColor('font');
|
|
49
|
+
margin-left: 16px;
|
|
50
|
+
}
|
|
54
51
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
52
|
+
&:after {
|
|
53
|
+
$colorSvg: encodecolor(getBGColorValue('font'));
|
|
54
|
+
content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-width="3.2" fill="none"><path d="M12.6 12.6L31.4 31.4M12.6 31.4L31.4 12.6"/></svg>');
|
|
55
|
+
position: absolute;
|
|
56
|
+
top: 50%;
|
|
57
|
+
transform: translateY(-50%);
|
|
58
|
+
right: calc(44px - 18px - 2px);
|
|
59
|
+
border-radius: 9999px;
|
|
60
|
+
width: 18px;
|
|
61
|
+
height: 18px;
|
|
62
|
+
background-color: getColorValue('background');
|
|
63
|
+
transition: 0.3s;
|
|
68
64
|
}
|
|
65
|
+
}
|
|
69
66
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
67
|
+
input:checked {
|
|
68
|
+
& ~ label {
|
|
69
|
+
font-weight: bold;
|
|
73
70
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
71
|
+
&:before {
|
|
72
|
+
background-color: getColorValue('main');
|
|
73
|
+
}
|
|
77
74
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
75
|
+
&:after {
|
|
76
|
+
right: 2px;
|
|
77
|
+
$colorSvg: encodecolor(getColorValue('main'));
|
|
78
|
+
content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" fill="none"><path d="M11.3 22.4L18.1 29.3L32.7 14.7"/></svg>');
|
|
79
|
+
background-color: getColorValue('background');
|
|
80
|
+
}
|
|
85
81
|
}
|
|
82
|
+
}
|
|
86
83
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
84
|
+
&.is-reversed {
|
|
85
|
+
label {
|
|
86
|
+
flex-direction: row-reverse;
|
|
87
|
+
padding-right: 0;
|
|
88
|
+
padding-left: 60px;
|
|
92
89
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
90
|
+
&:before {
|
|
91
|
+
left: 0;
|
|
92
|
+
margin-left: 0;
|
|
93
|
+
margin-right: 16px;
|
|
94
|
+
}
|
|
98
95
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
96
|
+
&:after {
|
|
97
|
+
left: 2px;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
103
100
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
101
|
+
input:checked ~ label:after {
|
|
102
|
+
left: calc(44px - 18px - 2px);
|
|
107
103
|
}
|
|
104
|
+
}
|
|
108
105
|
}
|