@trilogy-ds/styles 0.0.1-beta.9 → 0.0.3-beta-v4

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.
Files changed (94) hide show
  1. package/dist/default/trilogy-mangled.css +1 -1
  2. package/dist/default/trilogy-partials.css +1 -1
  3. package/dist/default/trilogy.css +1 -1
  4. package/framework/src/base/_color.scss +9 -39
  5. package/framework/src/base/_generic.scss +4 -1
  6. package/framework/src/base/_helpers.scss +13 -38
  7. package/framework/src/base/_loading.scss +8 -1
  8. package/framework/src/base/_reset.scss +8 -3
  9. package/framework/src/components/_accordion.scss +53 -88
  10. package/framework/src/components/_all.scss +1 -7
  11. package/framework/src/components/_autolayout.scss +302 -0
  12. package/framework/src/components/_breadcrumb.scss +39 -34
  13. package/framework/src/components/_card.scss +8 -79
  14. package/framework/src/components/_countdown.scss +49 -47
  15. package/framework/src/components/_divider.scss +10 -15
  16. package/framework/src/components/_fab.scss +25 -38
  17. package/framework/src/components/_modal.scss +161 -158
  18. package/framework/src/components/_otp.scss +10 -29
  19. package/framework/src/components/_pagination.scss +59 -161
  20. package/framework/src/components/_plus-symbol.scss +1 -1
  21. package/framework/src/components/_popover.scss +260 -260
  22. package/framework/src/components/_price.scss +119 -170
  23. package/framework/src/components/_product-tour.scss +2 -4
  24. package/framework/src/components/_progress-radial.scss +24 -19
  25. package/framework/src/components/_range.scss +73 -72
  26. package/framework/src/components/_segmented-control.scss +51 -53
  27. package/framework/src/components/_stepper.scss +42 -222
  28. package/framework/src/components/_tabs.scss +46 -81
  29. package/framework/src/components/_timeline.scss +27 -112
  30. package/framework/src/elements/_alert.scss +13 -10
  31. package/framework/src/elements/_all.scss +1 -4
  32. package/framework/src/elements/_autocomplete.scss +32 -0
  33. package/framework/src/elements/_badge.scss +67 -61
  34. package/framework/src/elements/_box.scss +64 -161
  35. package/framework/src/elements/_button.scss +15 -141
  36. package/framework/src/elements/_checkbox.scss +29 -26
  37. package/framework/src/elements/_chips.scss +69 -85
  38. package/framework/src/elements/_container.scss +7 -39
  39. package/framework/src/elements/_entry.scss +76 -88
  40. package/framework/src/elements/_form.scss +26 -23
  41. package/framework/src/elements/_icon.scss +4 -4
  42. package/framework/src/elements/_image.scss +50 -40
  43. package/framework/src/elements/_input-gauge.scss +32 -33
  44. package/framework/src/elements/_input-icons.scss +33 -31
  45. package/framework/src/elements/_link.scss +38 -65
  46. package/framework/src/elements/_list.scss +45 -44
  47. package/framework/src/elements/_loader.scss +2 -2
  48. package/framework/src/elements/_other.scss +0 -37
  49. package/framework/src/elements/_paragraph.scss +35 -69
  50. package/framework/src/elements/_progress.scss +33 -22
  51. package/framework/src/elements/_radio.scss +45 -31
  52. package/framework/src/elements/_select.scss +85 -304
  53. package/framework/src/elements/_sticker.scss +12 -27
  54. package/framework/src/elements/_switch.scss +101 -99
  55. package/framework/src/elements/_table.scss +175 -228
  56. package/framework/src/elements/_tag.scss +104 -105
  57. package/framework/src/elements/_textarea.scss +113 -105
  58. package/framework/src/elements/_title.scss +89 -87
  59. package/framework/src/elements/_toaster.scss +4 -5
  60. package/framework/src/grid/_columns.scss +257 -764
  61. package/framework/src/grid/_rows.scss +45 -38
  62. package/framework/src/layout/_all.scss +0 -1
  63. package/framework/src/layout/_hero.scss +89 -215
  64. package/framework/src/layout/_section.scss +5 -29
  65. package/framework/src/theming/_all.scss +3 -0
  66. package/framework/src/theming/buttons_partial.scss +32 -0
  67. package/framework/src/theming/common_partials.scss +10 -0
  68. package/framework/src/theming/links_partial.scss +20 -0
  69. package/framework/src/utilities/_a11y.scss +13 -0
  70. package/framework/src/utilities/_all.scss +4 -0
  71. package/framework/src/utilities/_background.scss +19 -0
  72. package/framework/src/utilities/_colors.scss +40 -0
  73. package/framework/src/utilities/_controls.scss +38 -49
  74. package/framework/src/utilities/_derived-variables.scss +4 -15
  75. package/framework/src/utilities/_initial-variables.scss +4 -36
  76. package/framework/src/utilities/_mixins.scss +483 -592
  77. package/framework/src/utilities/_pre.scss +1 -0
  78. package/package.json +3 -3
  79. package/framework/src/components/_autolayout2.scss +0 -38
  80. package/framework/src/components/_disclaimer.scss +0 -84
  81. package/framework/src/components/_dropdown.scss +0 -128
  82. package/framework/src/components/_level.scss +0 -120
  83. package/framework/src/components/_media.scss +0 -64
  84. package/framework/src/components/_menu.scss +0 -213
  85. package/framework/src/components/_search-modal.scss +0 -197
  86. package/framework/src/components/_slices.scss +0 -316
  87. package/framework/src/components/_slider.scss +0 -92
  88. package/framework/src/components/_switch.scss +0 -209
  89. package/framework/src/elements/_checkradio.scss +0 -173
  90. package/framework/src/elements/_dot.scss +0 -6
  91. package/framework/src/elements/_notification.scss +0 -151
  92. package/framework/src/elements/_options.scss +0 -146
  93. package/framework/src/elements/_timeline.scss +0 -283
  94. package/framework/src/layout/_toolbar.scss +0 -100
@@ -1,817 +1,354 @@
1
1
  @use 'sass:math';
2
2
 
3
- .column {
4
- display: block;
5
- flex-basis: 0;
6
- flex-grow: 1;
7
- flex-shrink: 1;
8
- padding: $column-gap-tablet-desktop;
9
-
10
- @include mobile {
11
- padding: $column-gap-mobile;
12
- }
13
-
14
- &.is-vcentered {
15
- align-self: center;
16
- }
17
-
18
- .columns.is-mobile > &.is-narrow {
19
- flex: none;
20
- }
21
-
22
- .columns.is-mobile > &.is-full {
23
- flex: none;
24
- width: 100%;
25
- }
26
-
27
- .columns.is-mobile > &.is-three-quarters {
28
- flex: none;
29
- width: 75%;
30
- }
31
-
32
- .columns.is-mobile > &.is-two-thirds {
33
- flex: none;
34
- width: 66.6666%;
35
- }
36
-
37
- .columns.is-mobile > &.is-half {
38
- flex: none;
39
- width: 50%;
40
- }
41
-
42
- .columns.is-mobile > &.is-one-third {
43
- flex: none;
44
- width: 33.3333%;
45
- }
3
+ $columnWidth: calc((100% / (var(--ColumnFraction))) - ((((var(--ColumnFraction)) - 1) / (var(--ColumnFraction))) * var(--ColumnGap)));
4
+ $offsetWidth: calc((100% / (var(--offset))) - ((((var(--offset)) - 1) / (var(--offset))) * var(--ColumnGap)) + var(--ColumnGap));
5
+
6
+ $columnSize: (
7
+ "1" : math.div(12, 1),
8
+ "2" : math.div(12, 2),
9
+ "3" : math.div(12, 3),
10
+ "4" : math.div(12, 4),
11
+ "5" : math.div(12, 5),
12
+ "6" : math.div(12, 6),
13
+ "7" : math.div(12, 7),
14
+ "8" : math.div(12, 8),
15
+ "9" : math.div(12, 9),
16
+ "10" : math.div(12, 10),
17
+ "11" : math.div(12, 11),
18
+ "12" : math.div(12, 12),
19
+ "full" : math.div(12, 12),
20
+ "half" : math.div(12, 6)
21
+ );
22
+
23
+ $columnNumber: 12;
24
+ %flex-none {
25
+ flex: none;
26
+ }
46
27
 
47
- .columns.is-mobile > &.is-one-quarter {
48
- flex: none;
49
- width: 25%;
50
- }
51
28
 
52
- .columns.is-mobile > &.is-one-fifth {
53
- flex: none;
54
- width: 20%;
55
- }
56
-
57
- .columns.is-mobile > &.is-two-fifths {
58
- flex: none;
59
- width: 40%;
60
- }
29
+ $gap: 4px,
30
+ 8px,
31
+ 12px,
32
+ 16px,
33
+ 24px,
34
+ 32px,
35
+ 40px,
36
+ 48px,
37
+ 54px,
38
+ 62px;
61
39
 
62
- .columns.is-mobile > &.is-three-fifths {
63
- flex: none;
64
- width: 60%;
65
- }
40
+ .columns {
41
+ display: flex;
42
+ --ColumnGap: 24px;
66
43
 
67
- .columns.is-mobile > &.is-four-fifths {
44
+ %flex-none {
68
45
  flex: none;
69
- width: 80%;
70
- }
71
-
72
- .columns.is-mobile > &.is-offset-three-quarters {
73
- margin-left: 75%;
74
- }
75
-
76
- .columns.is-mobile > &.is-offset-two-thirds {
77
- margin-left: 66.6666%;
78
- }
79
-
80
- .columns.is-mobile > &.is-offset-half {
81
- margin-left: 50%;
82
- }
83
-
84
- .columns.is-mobile > &.is-offset-one-third {
85
- margin-left: 33.3333%;
86
- }
87
-
88
- .columns.is-mobile > &.is-offset-one-quarter {
89
- margin-left: 25%;
90
46
  }
91
47
 
92
- .columns.is-mobile > &.is-offset-one-fifth {
93
- margin-left: 20%;
48
+ .column[class*="is-"]:not(.is-narrow) {
49
+ width: #{$columnWidth};
94
50
  }
95
51
 
96
- .columns.is-mobile > &.is-offset-two-fifths {
97
- margin-left: 40%;
98
- }
99
-
100
- .columns.is-mobile > &.is-offset-three-fifths {
101
- margin-left: 60%;
102
- }
103
-
104
- .columns.is-mobile > &.is-offset-four-fifths {
105
- margin-left: 80%;
106
- }
107
-
108
- @for $i from 1 through 12 {
109
- .columns.is-mobile > &.is-#{$i} {
52
+ @each $key, $value in $columnSize {
53
+ > .column.is-#{$key} {
110
54
  flex: none;
111
- width: percentage(math.div($i, 12));
112
- }
113
-
114
- .columns.is-mobile > &.is-offset-#{$i} {
115
- margin-left: percentage(math.div($i, 12));
55
+ --ColumnFraction: #{$value};
116
56
  }
117
57
  }
118
58
 
119
- @include mobile {
120
- &.is-narrow-mobile {
121
- flex: none;
122
- }
123
-
124
- &.is-full-mobile {
125
- flex: none;
126
- width: 100%;
127
- }
128
-
129
- &.is-three-quarters-mobile {
130
- flex: none;
131
- width: 75%;
132
- }
133
-
134
- &.is-two-thirds-mobile {
135
- flex: none;
136
- width: 66.6666%;
137
- }
138
-
139
- &.is-half-mobile {
140
- flex: none;
141
- width: 50%;
142
- }
143
-
144
- &.is-one-third-mobile {
145
- flex: none;
146
- width: 33.3333%;
147
- }
148
-
149
- &.is-one-quarter-mobile {
150
- flex: none;
151
- width: 25%;
152
- }
59
+ @for $i from 1 through length($gap) {
60
+ $item: nth($gap, $i);
61
+ &.is-mobile.has-gap-#{$i} {
62
+ gap: $item;
153
63
 
154
- &.is-one-fifth-mobile {
155
- flex: none;
156
- width: 20%;
157
- }
158
-
159
- &.is-two-fifths-mobile {
160
- flex: none;
161
- width: 40%;
64
+ > .column {
65
+ --ColumnGap: #{$item};
66
+ }
162
67
  }
163
68
 
164
- &.is-three-fifths-mobile {
165
- flex: none;
166
- width: 60%;
167
- }
69
+ @include tablet {
70
+ &.has-gap-#{$i}:not(.is-desktop) {
71
+ gap: $item;
168
72
 
169
- &.is-four-fifths-mobile {
170
- flex: none;
171
- width: 80%;
73
+ > .column {
74
+ --ColumnGap: #{$item};
75
+ }
76
+ }
172
77
  }
173
78
 
174
- &.is-offset-three-quarters-mobile {
175
- margin-left: 75%;
176
- }
79
+ @include desktop {
80
+ &.has-gap-#{$i},
81
+ &.has-gap-#{$i}-desktop {
82
+ gap: $item;
177
83
 
178
- &.is-offset-two-thirds-mobile {
179
- margin-left: 66.6666%;
84
+ > .column {
85
+ --ColumnGap: #{$item};
86
+ }
87
+ }
180
88
  }
181
89
 
182
- &.is-offset-half-mobile {
183
- margin-left: 50%;
184
- }
90
+ @include widescreen {
91
+ &.has-gap-#{$i}-widescreen {
92
+ gap: $item;
185
93
 
186
- &.is-offset-one-third-mobile {
187
- margin-left: 33.3333%;
94
+ > .column {
95
+ --ColumnGap: #{$item};
96
+ }
97
+ }
188
98
  }
189
99
 
190
- &.is-offset-one-quarter-mobile {
191
- margin-left: 25%;
192
- }
100
+ @include fullhd {
101
+ &.has-gap-#{$i}-fullhd {
102
+ gap: $item;
193
103
 
194
- &.is-offset-one-fifth-mobile {
195
- margin-left: 20%;
104
+ > .column {
105
+ --ColumnGap: #{$item};
106
+ }
107
+ }
196
108
  }
197
109
 
198
- &.is-offset-two-fifths-mobile {
199
- margin-left: 40%;
200
- }
110
+ }
201
111
 
202
- &.is-offset-three-fifths-mobile {
203
- margin-left: 60%;
204
- }
205
112
 
206
- &.is-offset-four-fifths-mobile {
207
- margin-left: 80%;
113
+ @include mobile {
114
+ &.is-peek {
115
+ padding-right: 15%;
208
116
  }
209
117
 
210
- @for $i from 1 through 12 {
211
- &.is-#{$i}-mobile {
118
+ @each $key, $value in $columnSize {
119
+ & > .column.is-#{$key}-mobile {
212
120
  flex: none;
213
- width: percentage(math.div($i, 12));
121
+ --ColumnFraction: #{$value};
214
122
  }
215
123
 
216
- &.is-offset-#{$i}-mobile {
217
- margin-left: percentage(math.div($i, 12));
124
+ &.is-mobile > .column.is-offset-#{$key}-mobile {
125
+ --offset: #{$value};
126
+ margin-left: $offsetWidth;
218
127
  }
219
128
  }
220
129
  }
221
130
 
222
131
  @include tablet {
223
- &.is-narrow,
224
- &.is-narrow-tablet {
225
- flex: none;
226
- }
227
-
228
- &.is-full,
229
- &.is-full-tablet {
230
- flex: none;
231
- width: 100%;
232
- }
233
-
234
- &.is-three-quarters,
235
- &.is-three-quarters-tablet {
236
- flex: none;
237
- width: 75%;
238
- }
239
-
240
- &.is-two-thirds,
241
- &.is-two-thirds-tablet {
242
- flex: none;
243
- width: 66.6666%;
244
- }
245
-
246
- &.is-half,
247
- &.is-half-tablet {
248
- flex: none;
249
- width: 50%;
250
- }
251
-
252
- &.is-one-third,
253
- &.is-one-third-tablet {
254
- flex: none;
255
- width: 33.3333%;
256
- }
257
-
258
- &.is-one-quarter,
259
- &.is-one-quarter-tablet {
260
- flex: none;
261
- width: 25%;
262
- }
263
-
264
- &.is-one-fifth,
265
- &.is-one-fifth-tablet {
266
- flex: none;
267
- width: 20%;
268
- }
269
-
270
- &.is-two-fifths,
271
- &.is-two-fifths-tablet {
272
- flex: none;
273
- width: 40%;
274
- }
275
-
276
- &.is-three-fifths,
277
- &.is-three-fifths-tablet {
278
- flex: none;
279
- width: 60%;
280
- }
281
-
282
- &.is-four-fifths,
283
- &.is-four-fifths-tablet {
284
- flex: none;
285
- width: 80%;
286
- }
287
-
288
- &.is-offset-three-quarters,
289
- &.is-offset-three-quarters-tablet {
290
- margin-left: 75%;
291
- }
292
-
293
- &.is-offset-two-thirds,
294
- &.is-offset-two-thirds-tablet {
295
- margin-left: 66.6666%;
296
- }
297
-
298
- &.is-offset-half,
299
- &.is-offset-half-tablet {
300
- margin-left: 50%;
301
- }
302
-
303
- &.is-offset-one-third,
304
- &.is-offset-one-third-tablet {
305
- margin-left: 33.3333%;
306
- }
307
-
308
- &.is-offset-one-quarter,
309
- &.is-offset-one-quarter-tablet {
310
- margin-left: 25%;
311
- }
312
-
313
- &.is-offset-one-fifth,
314
- &.is-offset-one-fifth-tablet {
315
- margin-left: 20%;
316
- }
317
-
318
- &.is-offset-two-fifths,
319
- &.is-offset-two-fifths-tablet {
320
- margin-left: 40%;
321
- }
322
-
323
- &.is-offset-three-fifths,
324
- &.is-offset-three-fifths-tablet {
325
- margin-left: 60%;
326
- }
327
-
328
- &.is-offset-four-fifths,
329
- &.is-offset-four-fifths-tablet {
330
- margin-left: 80%;
331
- }
332
-
333
- @for $i from 1 through 12 {
334
- &.is-#{$i},
335
- &.is-#{$i}-tablet {
132
+ @each $key, $value in $columnSize {
133
+ > .column.is-#{$key}-tablet {
336
134
  flex: none;
337
- width: percentage(math.div($i, 12));
135
+ --ColumnFraction: #{$value};
338
136
  }
339
137
 
340
- &.is-offset-#{$i},
341
- &.is-offset-#{$i}-tablet {
342
- margin-left: percentage(math.div($i, 12));
138
+ .column.is-offset-#{$key}-tablet {
139
+ --offset: #{$value};
140
+ margin-left: $offsetWidth;
343
141
  }
344
- }
345
- }
346
-
347
- @include touch {
348
- &.is-narrow-touch {
349
- flex: none;
350
- }
351
-
352
- &.is-full-touch {
353
- flex: none;
354
- width: 100%;
355
- }
356
-
357
- &.is-three-quarters-touch {
358
- flex: none;
359
- width: 75%;
360
- }
361
-
362
- &.is-two-thirds-touch {
363
- flex: none;
364
- width: 66.6666%;
365
- }
366
-
367
- &.is-half-touch {
368
- flex: none;
369
- width: 50%;
370
- }
371
-
372
- &.is-one-third-touch {
373
- flex: none;
374
- width: 33.3333%;
375
- }
376
-
377
- &.is-one-quarter-touch {
378
- flex: none;
379
- width: 25%;
380
- }
381
-
382
- &.is-one-fifth-touch {
383
- flex: none;
384
- width: 20%;
385
- }
386
-
387
- &.is-two-fifths-touch {
388
- flex: none;
389
- width: 40%;
390
- }
391
-
392
- &.is-three-fifths-touch {
393
- flex: none;
394
- width: 60%;
395
- }
396
-
397
- &.is-four-fifths-touch {
398
- flex: none;
399
- width: 80%;
400
- }
401
-
402
- &.is-offset-three-quarters-touch {
403
- margin-left: 75%;
404
- }
405
142
 
406
- &.is-offset-two-thirds-touch {
407
- margin-left: 66.6666%;
408
- }
409
-
410
- &.is-offset-half-touch {
411
- margin-left: 50%;
412
- }
413
-
414
- &.is-offset-one-third-touch {
415
- margin-left: 33.3333%;
416
- }
417
-
418
- &.is-offset-one-quarter-touch {
419
- margin-left: 25%;
420
- }
421
-
422
- &.is-offset-one-fifth-touch {
423
- margin-left: 20%;
143
+ .column.is-offset-#{$key} {
144
+ --offset: #{$value};
145
+ margin-left: $offsetWidth;
146
+ }
424
147
  }
425
148
 
426
- &.is-offset-two-fifths-touch {
427
- margin-left: 40%;
149
+ &.is-aligned-start {
150
+ align-items: start !important;
428
151
  }
429
152
 
430
- &.is-offset-three-fifths-touch {
431
- margin-left: 60%;
153
+ &.is-aligned-center {
154
+ align-items: center !important;
432
155
  }
433
156
 
434
- &.is-offset-four-fifths-touch {
435
- margin-left: 80%;
157
+ &.is-aligned-end {
158
+ align-items: end !important;
436
159
  }
160
+ }
437
161
 
438
- @for $i from 1 through 12 {
439
- &.is-#{$i}-touch {
162
+ @include touch {
163
+ @each $key, $value in $columnSize {
164
+ > .column.is-#{$key}-touch {
440
165
  flex: none;
441
- width: percentage(math.div($i, 12));
166
+ --ColumnFraction: #{$value};
442
167
  }
443
168
 
444
- &.is-offset-#{$i}-touch {
445
- margin-left: percentage(math.div($i, 12));
169
+ > .column.is-offset-#{$key}-touch {
170
+ --offset: #{$value};
171
+ margin-left: $offsetWidth;
446
172
  }
447
173
  }
174
+
448
175
  }
449
176
 
450
177
  @include desktop {
451
- &.is-narrow-desktop {
452
- flex: none;
453
- }
454
-
455
- &.is-full-desktop {
456
- flex: none;
457
- width: 100%;
458
- }
459
-
460
- &.is-three-quarters-desktop {
461
- flex: none;
462
- width: 75%;
463
- }
464
-
465
- &.is-two-thirds-desktop {
466
- flex: none;
467
- width: 66.6666%;
468
- }
469
-
470
- &.is-half-desktop {
471
- flex: none;
472
- width: 50%;
473
- }
474
-
475
- &.is-one-third-desktop {
476
- flex: none;
477
- width: 33.3333%;
478
- }
479
-
480
- &.is-one-quarter-desktop {
481
- flex: none;
482
- width: 25%;
483
- }
484
-
485
- &.is-one-fifth-desktop {
486
- flex: none;
487
- width: 20%;
488
- }
489
-
490
- &.is-two-fifths-desktop {
491
- flex: none;
492
- width: 40%;
493
- }
494
-
495
- &.is-three-fifths-desktop {
496
- flex: none;
497
- width: 60%;
498
- }
499
-
500
- &.is-four-fifths-desktop {
501
- flex: none;
502
- width: 80%;
503
- }
504
-
505
- &.is-offset-three-quarters-desktop {
506
- margin-left: 75%;
507
- }
508
-
509
- &.is-offset-two-thirds-desktop {
510
- margin-left: 66.6666%;
511
- }
512
-
513
- &.is-offset-half-desktop {
514
- margin-left: 50%;
515
- }
516
-
517
- &.is-offset-one-third-desktop {
518
- margin-left: 33.3333%;
519
- }
520
-
521
- &.is-offset-one-quarter-desktop {
522
- margin-left: 25%;
523
- }
524
-
525
- &.is-offset-one-fifth-desktop {
526
- margin-left: 20%;
527
- }
528
-
529
- &.is-offset-two-fifths-desktop {
530
- margin-left: 40%;
531
- }
532
-
533
- &.is-offset-three-fifths-desktop {
534
- margin-left: 60%;
535
- }
536
-
537
- &.is-offset-four-fifths-desktop {
538
- margin-left: 80%;
539
- }
540
-
541
- @for $i from 1 through 12 {
542
- &.is-#{$i}-desktop {
178
+ @each $key, $value in $columnSize {
179
+ > .column.is-#{$key}-desktop {
543
180
  flex: none;
544
- width: percentage(math.div($i, 12));
181
+ --ColumnFraction: #{$value};
545
182
  }
546
183
 
547
- &.is-offset-#{$i}-desktop {
548
- margin-left: percentage(math.div($i, 12));
184
+ > .column.is-offset-#{$key}-desktop {
185
+ --offset: #{$value};
186
+ margin-left: $offsetWidth;
549
187
  }
550
188
  }
189
+
551
190
  }
552
191
 
553
192
  @include widescreen {
554
- &.is-narrow-widescreen {
555
- flex: none;
556
- }
557
-
558
- &.is-full-widescreen {
559
- flex: none;
560
- width: 100%;
561
- }
562
-
563
- &.is-three-quarters-widescreen {
564
- flex: none;
565
- width: 75%;
566
- }
567
-
568
- &.is-two-thirds-widescreen {
569
- flex: none;
570
- width: 66.6666%;
571
- }
572
-
573
- &.is-half-widescreen {
574
- flex: none;
575
- width: 50%;
576
- }
577
-
578
- &.is-one-third-widescreen {
579
- flex: none;
580
- width: 33.3333%;
581
- }
582
-
583
- &.is-one-quarter-widescreen {
584
- flex: none;
585
- width: 25%;
586
- }
587
-
588
- &.is-one-fifth-widescreen {
589
- flex: none;
590
- width: 20%;
591
- }
592
-
593
- &.is-two-fifths-widescreen {
594
- flex: none;
595
- width: 40%;
596
- }
597
-
598
- &.is-three-fifths-widescreen {
599
- flex: none;
600
- width: 60%;
601
- }
193
+ @each $key, $value in $columnSize {
194
+ > .column.is-#{$key}-widescreen {
195
+ flex: none;
196
+ --ColumnFraction: #{$value};
197
+ }
602
198
 
603
- &.is-four-fifths-widescreen {
604
- flex: none;
605
- width: 80%;
199
+ > .is-offset-#{$key}-widescreen {
200
+ --offset: #{$value};
201
+ margin-left: $offsetWidth;
202
+ }
606
203
  }
607
204
 
608
- &.is-offset-three-quarters-widescreen {
609
- margin-left: 75%;
610
- }
205
+ }
611
206
 
612
- &.is-offset-two-thirds-widescreen {
613
- margin-left: 66.6666%;
614
- }
207
+ @include fullhd {
208
+ @each $key, $value in $columnSize {
209
+ > .column.is-#{$key}-fullhd {
210
+ flex: none;
211
+ --ColumnFraction: #{$value};
212
+ }
615
213
 
616
- &.is-offset-half-widescreen {
617
- margin-left: 50%;
214
+ > .column.is-offset-#{$key}-fullhd {
215
+ --offset: #{$value};
216
+ margin-left: $offsetWidth;
217
+ }
618
218
  }
619
219
 
620
- &.is-offset-one-third-widescreen {
621
- margin-left: 33.3333%;
622
- }
220
+ }
623
221
 
624
- &.is-offset-one-quarter-widescreen {
625
- margin-left: 25%;
626
- }
222
+ @include mobile {
223
+ --ColumnGap: 16px;
224
+ &:not(.is-mobile) {
225
+ flex-direction: column;
627
226
 
628
- &.is-offset-one-fifth-widescreen {
629
- margin-left: 20%;
227
+ > .column,
228
+ > .column[class*="is-"] {
229
+ --ColumnFraction: 1;
230
+ }
630
231
  }
631
232
 
632
- &.is-offset-two-fifths-widescreen {
633
- margin-left: 40%;
233
+ &.is-aligned-start {
234
+ align-items: unset !important;
634
235
  }
635
236
 
636
- &.is-offset-three-fifths-widescreen {
637
- margin-left: 60%;
237
+ &.is-aligned-center {
238
+ align-items: unset !important;
638
239
  }
639
240
 
640
- &.is-offset-four-fifths-widescreen {
641
- margin-left: 80%;
241
+ &.is-aligned-end {
242
+ align-items: unset !important;
642
243
  }
244
+ }
643
245
 
644
- @for $i from 1 through 12 {
645
- &.is-#{$i}-widescreen {
646
- flex: none;
647
- width: percentage(math.div($i, 12));
648
- }
246
+ @include tablet-only {
247
+ &.is-desktop {
248
+ flex-direction: column;
649
249
 
650
- &.is-offset-#{$i}-widescreen {
651
- margin-left: percentage(math.div($i, 12));
250
+ > .column,
251
+ > .column[class*="is-"] {
252
+ --ColumnFraction: 1;
652
253
  }
653
254
  }
654
255
  }
256
+ }
655
257
 
656
- @include fullhd {
657
- &.is-narrow-fullhd {
658
- flex: none;
659
- }
660
-
661
- &.is-full-fullhd {
662
- flex: none;
663
- width: 100%;
664
- }
665
-
666
- &.is-three-quarters-fullhd {
667
- flex: none;
668
- width: 75%;
669
- }
670
-
671
- &.is-two-thirds-fullhd {
672
- flex: none;
673
- width: 66.6666%;
674
- }
258
+ .column {
259
+ display: block;
260
+ flex-basis: 0;
261
+ flex-grow: 1;
262
+ flex-shrink: 1;
675
263
 
676
- &.is-half-fullhd {
264
+ @include mobile {
265
+ &.is-narrow-mobile {
677
266
  flex: none;
678
- width: 50%;
679
267
  }
268
+ }
680
269
 
681
- &.is-one-third-fullhd {
270
+ @include tablet {
271
+ &.is-narrow,
272
+ &.is-narrow-tablet {
682
273
  flex: none;
683
- width: 33.3333%;
684
274
  }
275
+ }
685
276
 
686
- &.is-one-quarter-fullhd {
277
+ @include touch {
278
+ &.is-narrow-touch {
687
279
  flex: none;
688
- width: 25%;
689
280
  }
281
+ }
690
282
 
691
- &.is-one-fifth-fullhd {
283
+ @include desktop {
284
+ &.is-narrow-desktop {
692
285
  flex: none;
693
- width: 20%;
694
286
  }
287
+ }
695
288
 
696
- &.is-two-fifths-fullhd {
289
+ @include widescreen {
290
+ &.is-narrow-widescreen {
697
291
  flex: none;
698
- width: 40%;
699
292
  }
700
293
 
701
- &.is-three-fifths-fullhd {
702
- flex: none;
703
- width: 60%;
704
- }
294
+ }
705
295
 
706
- &.is-four-fifths-fullhd {
296
+ @include fullhd {
297
+ &.is-narrow-fullhd {
707
298
  flex: none;
708
- width: 80%;
709
- }
710
-
711
- &.is-offset-three-quarters-fullhd {
712
- margin-left: 75%;
713
- }
714
-
715
- &.is-offset-two-thirds-fullhd {
716
- margin-left: 66.6666%;
717
- }
718
-
719
- &.is-offset-half-fullhd {
720
- margin-left: 50%;
721
- }
722
-
723
- &.is-offset-one-third-fullhd {
724
- margin-left: 33.3333%;
725
- }
726
-
727
- &.is-offset-one-quarter-fullhd {
728
- margin-left: 25%;
729
- }
730
-
731
- &.is-offset-one-fifth-fullhd {
732
- margin-left: 20%;
733
- }
734
-
735
- &.is-offset-two-fifths-fullhd {
736
- margin-left: 40%;
737
- }
738
-
739
- &.is-offset-three-fifths-fullhd {
740
- margin-left: 60%;
741
- }
742
-
743
- &.is-offset-four-fifths-fullhd {
744
- margin-left: 80%;
745
- }
746
-
747
- @for $i from 1 through 12 {
748
- &.is-#{$i}-fullhd {
749
- flex: none;
750
- width: percentage(math.div($i, 12));
751
- }
752
-
753
- &.is-offset-#{$i}-fullhd {
754
- margin-left: percentage(math.div($i, 12));
755
- }
756
299
  }
757
300
  }
758
301
  }
759
302
 
760
303
  .columns {
761
- margin-left: -$column-gap-tablet-desktop;
762
- margin-right: -$column-gap-tablet-desktop;
763
- margin-top: -$column-gap-tablet-desktop;
304
+ gap: 24px;
764
305
 
765
- &.is-inlined {
306
+ &.is-scrollable {
766
307
  position: relative;
767
- width: 100%;
768
308
  padding-bottom: 8px;
769
309
  flex-wrap: nowrap;
770
310
  overflow-x: auto;
771
311
  display: flex !important;
772
312
  scroll-behavior: smooth;
773
313
  scroll-snap-type: x mandatory;
314
+ margin: -8px;
315
+ padding: 8px;
316
+ scroll-padding: 8px;
774
317
 
775
- >.column {
318
+ > .column {
776
319
  scroll-snap-align: start;
777
- }
778
320
 
779
- &::-webkit-scrollbar {
780
- height: 8px;
321
+ &:last-child {
322
+ scroll-snap-align: end;
323
+ }
781
324
  }
782
325
 
783
- &::-webkit-scrollbar-track {
784
- background-color: getColor('grey-disabled');
785
- border-radius: 8px;
786
- margin: 0 8px;
326
+ &:not(.has-scrollbar) {
327
+ &::-webkit-scrollbar {
328
+ scrollbar-width: none;
329
+ }
787
330
  }
788
331
 
789
- &::-webkit-scrollbar-thumb {
790
- background: getColor('alternate');
791
- border-radius: 8px;
792
- }
793
- }
332
+ &.has-scrollbar {
333
+ &::-webkit-scrollbar {
334
+ height: 8px;
335
+ }
794
336
 
795
- &:last-child {
796
- margin-bottom: -$column-gap-tablet-desktop;
797
- }
337
+ &::-webkit-scrollbar-track {
338
+ background-color: getColor('neutral');
339
+ border-radius: 8px;
340
+ margin: 0 8px;
341
+ }
798
342
 
799
- &:not(:last-child) {
800
- margin-bottom: calc(15px - #{$column-gap-tablet-desktop});
343
+ &::-webkit-scrollbar-thumb {
344
+ background-color: getColor('main-fade');
345
+ border-radius: var(--radius);
346
+ }
347
+ }
801
348
  }
802
349
 
803
350
  @include mobile {
804
- margin-left: -$column-gap-mobile;
805
- margin-right: -$column-gap-mobile;
806
- margin-top: -$column-gap-mobile;
807
-
808
- &:last-child {
809
- margin-bottom: -$column-gap-mobile;
810
- }
811
-
812
- &:not(:last-child) {
813
- margin-bottom: calc(15px - #{$column-gap-mobile});
814
- }
351
+ gap: 16px;
815
352
  }
816
353
 
817
354
  // Modifiers
@@ -820,26 +357,34 @@
820
357
  }
821
358
 
822
359
  &.is-gapless {
823
- margin-left: 0;
824
- margin-right: 0;
825
- margin-top: 0;
360
+ gap: 0;
361
+ }
826
362
 
827
- & > .column {
828
- margin: 0;
829
- padding: 0 !important;
363
+ &.is-mobile {
364
+ display: flex;
365
+
366
+ &.is-aligned-start {
367
+ align-items: start !important;
830
368
  }
831
369
 
832
- &:not(:last-child) {
833
- margin-bottom: 15px;
370
+ &.is-aligned-center {
371
+ align-items: center !important;
834
372
  }
835
373
 
836
- &:last-child {
837
- margin-bottom: 0;
374
+ &.is-aligned-end {
375
+ align-items: end !important;
838
376
  }
839
- }
840
377
 
841
- &.is-mobile {
842
- display: flex;
378
+ @each $key, $value in $columnSize {
379
+ .column.is-offset-#{$key} {
380
+ --offset: #{$value};
381
+ margin-left: $offsetWidth;
382
+ }
383
+ }
384
+
385
+ .column.is-narrow {
386
+ flex: none;
387
+ }
843
388
  }
844
389
 
845
390
  &.is-multiline {
@@ -865,88 +410,36 @@
865
410
  // Responsiveness
866
411
  @include tablet {
867
412
  &:not(.is-desktop) {
868
- display: flex;
413
+ flex-direction: row;
869
414
  }
870
415
  }
871
416
 
872
417
  @include desktop {
873
418
  // Modifiers
874
419
  &.is-desktop {
875
- display: flex;
420
+ flex-direction: row;
876
421
  }
877
422
  }
878
- }
879
-
880
- @if $variable-columns {
881
- .columns.is-variable {
882
- --columnGap: 7.5px;
883
-
884
- margin-left: calc(-1 * var(--columnGap));
885
- margin-right: calc(-1 * var(--columnGap));
886
-
887
- > .column {
888
- padding-left: var(--columnGap);
889
- padding-right: var(--columnGap);
423
+ @include mobile {
424
+ &.is-fullbleed {
425
+ width: 100vw !important;
426
+ margin-left: 50%;
427
+ transform: translateX(-50%);
428
+ padding: 24px;
890
429
  }
891
-
892
- @for $i from 0 through 12 {
893
- &.is-#{$i} {
894
- --columnGap: #{$i * 2.5px};
895
- }
896
-
897
- @include mobile {
898
- &.is-#{$i}-mobile {
899
- --columnGap: #{$i * 2.5px};
900
- }
901
- }
902
-
903
- @include tablet {
904
- &.is-#{$i}-tablet {
905
- --columnGap: #{$i * 2.5px};
906
- }
907
- }
908
-
909
- @include tablet-only {
910
- &.is-#{$i}-tablet-only {
911
- --columnGap: #{$i * 2.5px};
912
- }
913
- }
914
-
915
- @include touch {
916
- &.is-#{$i}-touch {
917
- --columnGap: #{$i * 2.5px};
918
- }
919
- }
920
-
921
- @include desktop {
922
- &.is-#{$i}-desktop {
923
- --columnGap: #{$i * 2.5px};
924
- }
925
- }
926
-
927
- @include desktop-only {
928
- &.is-#{$i}-desktop-only {
929
- --columnGap: #{$i * 2.5px};
930
- }
931
- }
932
-
933
- @include widescreen {
934
- &.is-#{$i}-widescreen {
935
- --columnGap: #{$i * 2.5px};
936
- }
937
- }
938
-
939
- @include widescreen-only {
940
- &.is-#{$i}-widescreen-only {
941
- --columnGap: #{$i * 2.5px};
942
- }
943
- }
944
-
945
- @include fullhd {
946
- &.is-#{$i}-fullhd {
947
- --columnGap: #{$i * 2.5px};
948
- }
949
- }
430
+ &.is-fullbleed {
431
+ scroll-padding: 24px;
432
+ }
433
+ &.is-fullbleed.is-scrollable .column {
434
+ scroll-snap-align: start;
435
+ scroll-padding: 24px;
436
+ }
437
+ .scroll-view {
438
+ overflow: inherit;
950
439
  }
951
440
  }
952
441
  }
442
+
443
+ :root {
444
+ --slider-size: min(100%, 1348px);
445
+ }