@trilogy-ds/styles 0.0.1-beta-112 → 0.0.1-beta-117

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 (56) 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 -17
  5. package/framework/src/base/_generic.scss +1 -1
  6. package/framework/src/base/_helpers.scss +2 -5
  7. package/framework/src/components/_accordion.scss +13 -6
  8. package/framework/src/components/_all.scss +1 -1
  9. package/framework/src/components/_autolayout.scss +290 -0
  10. package/framework/src/components/_card.scss +1 -1
  11. package/framework/src/components/_divider.scss +11 -15
  12. package/framework/src/components/_fab.scss +20 -19
  13. package/framework/src/components/_modal.scss +7 -3
  14. package/framework/src/components/_pagination.scss +48 -121
  15. package/framework/src/components/_plus-symbol.scss +1 -1
  16. package/framework/src/components/_price.scss +32 -27
  17. package/framework/src/components/_segmented-control.scss +2 -2
  18. package/framework/src/components/_stepper.scss +2 -2
  19. package/framework/src/components/_tabs.scss +2 -1
  20. package/framework/src/components/_timeline.scss +26 -118
  21. package/framework/src/elements/_alert.scss +1 -3
  22. package/framework/src/elements/_all.scss +0 -1
  23. package/framework/src/elements/_autocomplete.scss +3 -3
  24. package/framework/src/elements/_badge.scss +10 -7
  25. package/framework/src/elements/_box.scss +2 -2
  26. package/framework/src/elements/_button.scss +2 -2
  27. package/framework/src/elements/_chips.scss +3 -3
  28. package/framework/src/elements/_entry.scss +1 -1
  29. package/framework/src/elements/_form.scss +16 -15
  30. package/framework/src/elements/_icon.scss +1 -1
  31. package/framework/src/elements/_loader.scss +1 -1
  32. package/framework/src/elements/_other.scss +0 -37
  33. package/framework/src/elements/_progress.scss +5 -5
  34. package/framework/src/elements/_sticker.scss +1 -1
  35. package/framework/src/elements/_switch.scss +4 -4
  36. package/framework/src/elements/_table.scss +11 -11
  37. package/framework/src/elements/_tag.scss +3 -3
  38. package/framework/src/elements/_textarea.scss +20 -2
  39. package/framework/src/elements/_toaster.scss +2 -2
  40. package/framework/src/grid/_columns.scss +284 -751
  41. package/framework/src/grid/_rows.scss +44 -42
  42. package/framework/src/layout/_section.scss +1 -18
  43. package/framework/src/theming/buttons_partial.scss +2 -2
  44. package/framework/src/theming/common_partials.scss +1 -1
  45. package/framework/src/utilities/_a11y.scss +13 -0
  46. package/framework/src/utilities/_all.scss +1 -0
  47. package/framework/src/utilities/_background.scss +7 -3
  48. package/framework/src/utilities/_colors.scss +27 -10
  49. package/framework/src/utilities/_derived-variables.scss +3 -3
  50. package/framework/src/utilities/_initial-variables.scss +1 -29
  51. package/framework/src/utilities/_mixins.scss +10 -10
  52. package/package.json +3 -3
  53. package/framework/src/components/_autolayout2.scss +0 -38
  54. package/framework/src/components/_level.scss +0 -120
  55. package/framework/src/components/_media.scss +0 -64
  56. package/framework/src/elements/_dot.scss +0 -6
@@ -1,449 +1,344 @@
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
- }
46
-
47
- .columns.is-mobile > &.is-one-quarter {
48
- flex: none;
49
- width: 25%;
50
- }
51
-
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
- }
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
+ "gapless" : 0,
8
+ "1" : math.div(12, 1),
9
+ "2" : math.div(12, 2),
10
+ "3" : math.div(12, 3),
11
+ "4" : math.div(12, 4),
12
+ "5" : math.div(12, 5),
13
+ "6" : math.div(12, 6),
14
+ "7" : math.div(12, 7),
15
+ "8" : math.div(12, 8),
16
+ "9" : math.div(12, 9),
17
+ "10" : math.div(12, 10),
18
+ "11" : math.div(12, 11),
19
+ "12" : math.div(12, 12),
20
+ "full" : math.div(12, 12),
21
+ "half" : math.div(12, 6)
22
+ );
23
+
24
+ $columnNumber : 12;
25
+ %flex-none {
26
+ flex: none;
27
+ }
61
28
 
62
- .columns.is-mobile > &.is-three-fifths {
63
- flex: none;
64
- width: 60%;
65
- }
66
29
 
67
- .columns.is-mobile > &.is-four-fifths {
30
+ $gap :
31
+ 4px,
32
+ 8px,
33
+ 12px,
34
+ 16px,
35
+ 24px,
36
+ 32px,
37
+ 40px,
38
+ 48px,
39
+ 54px,
40
+ 62px
41
+ ;
42
+
43
+ .columns{
44
+ display: flex;
45
+ --ColumnGap: 24px;
46
+
47
+ %flex-none {
68
48
  flex: none;
69
- width: 80%;
70
49
  }
71
50
 
72
- .columns.is-mobile > &.is-offset-three-quarters {
73
- margin-left: 75%;
51
+ @for $i from 1 through $columnNumber {
52
+ &.has-#{$i}-cols > .column { @extend %flex-none; }
74
53
  }
75
54
 
76
- .columns.is-mobile > &.is-offset-two-thirds {
77
- margin-left: 66.6666%;
55
+ .column[class*="is-"]:not(.is-narrow){
56
+ width: #{$columnWidth};
78
57
  }
79
58
 
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
- }
91
-
92
- .columns.is-mobile > &.is-offset-one-fifth {
93
- margin-left: 20%;
94
- }
95
59
 
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
60
 
104
- .columns.is-mobile > &.is-offset-four-fifths {
105
- margin-left: 80%;
61
+ &.has-1-cols > .column:not(.is-narrow),
62
+ &.has-2-cols > .column:not(.is-narrow),
63
+ &.has-3-cols > .column:not(.is-narrow),
64
+ &.has-4-cols > .column:not(.is-narrow),
65
+ &.has-5-cols > .column:not(.is-narrow),
66
+ &.has-6-cols > .column:not(.is-narrow),
67
+ &.has-7-cols > .column:not(.is-narrow),
68
+ &.has-8-cols > .column:not(.is-narrow),
69
+ &.has-9-cols > .column:not(.is-narrow),
70
+ &.has-10-cols > .column:not(.is-narrow),
71
+ &.has-11-cols > .column:not(.is-narrow),
72
+ &.has-12-cols > .column:not(.is-narrow)
73
+ {
74
+ width: #{$columnWidth};
106
75
  }
107
76
 
108
77
  @for $i from 1 through 12 {
109
- .columns.is-mobile > &.is-#{$i} {
78
+ &.has-#{$i}-cols > .column{
79
+ --ColumnFraction: #{$i};
110
80
  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));
116
81
  }
117
82
  }
118
83
 
119
- @include mobile {
120
- &.is-narrow-mobile {
84
+ @each $key, $value in $columnSize{
85
+ > .column.is-#{$key} {
121
86
  flex: none;
87
+ --ColumnFraction: #{$value};
122
88
  }
123
89
 
124
- &.is-full-mobile {
125
- flex: none;
126
- width: 100%;
90
+ .column.is-offset-#{$key} {
91
+ --offset: #{$value};
92
+ margin-left: $offsetWidth;
127
93
  }
94
+ }
128
95
 
129
- &.is-three-quarters-mobile {
130
- flex: none;
131
- width: 75%;
132
- }
133
96
 
134
- &.is-two-thirds-mobile {
135
- flex: none;
136
- width: 66.6666%;
137
- }
138
97
 
139
- &.is-half-mobile {
140
- flex: none;
141
- width: 50%;
142
- }
143
98
 
144
- &.is-one-third-mobile {
145
- flex: none;
146
- width: 33.3333%;
99
+ @for $i from 1 through length($gap) {
100
+ $item: nth($gap, $i);
101
+ &.is-mobile.has-gap-#{$i} {
102
+ gap: $item;
103
+ .column {
104
+ --ColumnGap: #{$item};
105
+ }
147
106
  }
148
107
 
149
- &.is-one-quarter-mobile {
150
- flex: none;
151
- width: 25%;
108
+ @include tablet{
109
+ &.has-gap-#{$i}:not(.is-desktop) {
110
+ gap: $item;
111
+ .column {
112
+ --ColumnGap: #{$item};
113
+ }
114
+ }
152
115
  }
153
116
 
154
- &.is-one-fifth-mobile {
155
- flex: none;
156
- width: 20%;
117
+ @include desktop{
118
+ &.has-gap-#{$i},
119
+ &.has-gap-#{$i}-desktop {
120
+ gap: $item;
121
+ .column {
122
+ --ColumnGap: #{$item};
123
+ }
124
+ }
157
125
  }
158
126
 
159
- &.is-two-fifths-mobile {
160
- flex: none;
161
- width: 40%;
127
+ @include widescreen{
128
+ &.has-gap-#{$i}-widescreen {
129
+ gap: $item;
130
+ .column {
131
+ --ColumnGap: #{$item};
132
+ }
133
+ }
162
134
  }
163
135
 
164
- &.is-three-fifths-mobile {
165
- flex: none;
166
- width: 60%;
136
+ @include fullhd{
137
+ &.has-gap-#{$i}-fullhd {
138
+ gap: $item;
139
+ .column {
140
+ --ColumnGap: #{$item};
141
+ }
142
+ }
167
143
  }
168
144
 
169
- &.is-four-fifths-mobile {
170
- flex: none;
171
- width: 80%;
172
- }
145
+ }
173
146
 
174
- &.is-offset-three-quarters-mobile {
175
- margin-left: 75%;
176
- }
177
147
 
178
- &.is-offset-two-thirds-mobile {
179
- margin-left: 66.6666%;
180
- }
181
148
 
182
- &.is-offset-half-mobile {
183
- margin-left: 50%;
149
+ @include mobile{
150
+ &.is-peek{
151
+ padding-right: 15%;
184
152
  }
185
-
186
- &.is-offset-one-third-mobile {
187
- margin-left: 33.3333%;
153
+ @for $i from 0 through 12 {
154
+ &.has-#{$i}-cols-mobile > .column{
155
+ --ColumnFraction: #{$i};
156
+ flex: none;
157
+ }
188
158
  }
189
159
 
190
- &.is-offset-one-quarter-mobile {
191
- margin-left: 25%;
192
- }
160
+ @each $key, $value in $columnSize{
161
+ & > .column.is-#{$key}-mobile {
162
+ flex: none;
163
+ --ColumnFraction: #{$value};
164
+ }
193
165
 
194
- &.is-offset-one-fifth-mobile {
195
- margin-left: 20%;
166
+ &.is-mobile > .column.is-offset-#{$key}-mobile {
167
+ --offset: #{$value};
168
+ margin-left: $offsetWidth;
169
+ }
196
170
  }
197
171
 
198
- &.is-offset-two-fifths-mobile {
199
- margin-left: 40%;
200
- }
172
+ }
201
173
 
202
- &.is-offset-three-fifths-mobile {
203
- margin-left: 60%;
204
- }
174
+ @include tablet{
205
175
 
206
- &.is-offset-four-fifths-mobile {
207
- margin-left: 80%;
176
+ @for $i from 0 through 12 {
177
+ &.has-#{$i}-cols-tablet > .column{
178
+ --ColumnFraction: #{$i};
179
+ flex: none;
180
+ }
208
181
  }
209
182
 
210
- @for $i from 1 through 12 {
211
- &.is-#{$i}-mobile {
183
+ @each $key, $value in $columnSize{
184
+ > .column.is-#{$key}-tablet {
212
185
  flex: none;
213
- width: percentage(math.div($i, 12));
186
+ --ColumnFraction: #{$value};
214
187
  }
215
188
 
216
- &.is-offset-#{$i}-mobile {
217
- margin-left: percentage(math.div($i, 12));
189
+ .column.is-offset-#{$key}-tablet {
190
+ --offset: #{$value};
191
+ margin-left: $offsetWidth;
218
192
  }
219
193
  }
220
- }
221
-
222
- @include tablet {
223
- &.is-narrow,
224
- &.is-narrow-tablet {
225
- flex: none;
226
- }
227
194
 
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
- }
195
+ }
239
196
 
240
- &.is-two-thirds,
241
- &.is-two-thirds-tablet {
242
- flex: none;
243
- width: 66.6666%;
244
- }
197
+ @include touch{
245
198
 
246
- &.is-half,
247
- &.is-half-tablet {
248
- flex: none;
249
- width: 50%;
199
+ @for $i from 0 through 12 {
200
+ &.has-#{$i}-cols-touch > .column{
201
+ --ColumnFraction: #{$i};
202
+ flex: none;
203
+ }
250
204
  }
251
205
 
252
- &.is-one-third,
253
- &.is-one-third-tablet {
254
- flex: none;
255
- width: 33.3333%;
256
- }
206
+ @each $key, $value in $columnSize{
207
+ > .column.is-#{$key}-touch {
208
+ flex: none;
209
+ --ColumnFraction: #{$value};
210
+ }
257
211
 
258
- &.is-one-quarter,
259
- &.is-one-quarter-tablet {
260
- flex: none;
261
- width: 25%;
212
+ > .column.is-offset-#{$key}-touch {
213
+ --offset: #{$value};
214
+ margin-left: $offsetWidth;
215
+ }
262
216
  }
263
217
 
264
- &.is-one-fifth,
265
- &.is-one-fifth-tablet {
266
- flex: none;
267
- width: 20%;
268
- }
218
+ }
269
219
 
270
- &.is-two-fifths,
271
- &.is-two-fifths-tablet {
272
- flex: none;
273
- width: 40%;
274
- }
220
+ @include desktop{
275
221
 
276
- &.is-three-fifths,
277
- &.is-three-fifths-tablet {
278
- flex: none;
279
- width: 60%;
222
+ @for $i from 0 through 12 {
223
+ &.has-#{$i}-cols-desktop > .column{
224
+ --ColumnFraction: #{$i};
225
+ flex: none;
226
+ }
280
227
  }
281
228
 
282
- &.is-four-fifths,
283
- &.is-four-fifths-tablet {
284
- flex: none;
285
- width: 80%;
286
- }
229
+ @each $key, $value in $columnSize{
230
+ > .column.is-#{$key}-desktop {
231
+ flex: none;
232
+ --ColumnFraction: #{$value};
233
+ }
287
234
 
288
- &.is-offset-three-quarters,
289
- &.is-offset-three-quarters-tablet {
290
- margin-left: 75%;
235
+ > .column.is-offset-#{$key}-desktop {
236
+ --offset: #{$value};
237
+ margin-left: $offsetWidth;
238
+ }
291
239
  }
292
240
 
293
- &.is-offset-two-thirds,
294
- &.is-offset-two-thirds-tablet {
295
- margin-left: 66.6666%;
296
- }
241
+ }
297
242
 
298
- &.is-offset-half,
299
- &.is-offset-half-tablet {
300
- margin-left: 50%;
301
- }
243
+ @include widescreen{
302
244
 
303
- &.is-offset-one-third,
304
- &.is-offset-one-third-tablet {
305
- margin-left: 33.3333%;
245
+ @for $i from 0 through 12 {
246
+ &.has-#{$i}-cols-widescreen > .column{
247
+ --ColumnFraction: #{$i};
248
+ flex: none;
249
+ }
306
250
  }
307
251
 
308
- &.is-offset-one-quarter,
309
- &.is-offset-one-quarter-tablet {
310
- margin-left: 25%;
311
- }
252
+ @each $key, $value in $columnSize{
253
+ > .column.is-#{$key}-widescreen{
254
+ flex: none;
255
+ --ColumnFraction: #{$value};
256
+ }
312
257
 
313
- &.is-offset-one-fifth,
314
- &.is-offset-one-fifth-tablet {
315
- margin-left: 20%;
258
+ > .is-offset-#{$key}-widescreen {
259
+ --offset: #{$value};
260
+ margin-left: $offsetWidth;
261
+ }
316
262
  }
317
263
 
318
- &.is-offset-two-fifths,
319
- &.is-offset-two-fifths-tablet {
320
- margin-left: 40%;
321
- }
264
+ }
322
265
 
323
- &.is-offset-three-fifths,
324
- &.is-offset-three-fifths-tablet {
325
- margin-left: 60%;
326
- }
266
+ @include fullhd{
327
267
 
328
- &.is-offset-four-fifths,
329
- &.is-offset-four-fifths-tablet {
330
- margin-left: 80%;
268
+ @for $i from 0 through 12 {
269
+ &.has-#{$i}-cols-fullhd > .column{
270
+ --ColumnFraction: #{$i};
271
+ flex: none;
272
+ }
331
273
  }
332
274
 
333
- @for $i from 1 through 12 {
334
- &.is-#{$i},
335
- &.is-#{$i}-tablet {
275
+ @each $key, $value in $columnSize{
276
+ > .column.is-#{$key}-fullhd{
336
277
  flex: none;
337
- width: percentage(math.div($i, 12));
278
+ --ColumnFraction: #{$value};
338
279
  }
339
280
 
340
- &.is-offset-#{$i},
341
- &.is-offset-#{$i}-tablet {
342
- margin-left: percentage(math.div($i, 12));
281
+ > .column.is-offset-#{$key}-fullhd {
282
+ --offset: #{$value};
283
+ margin-left: $offsetWidth;
343
284
  }
344
285
  }
286
+
345
287
  }
346
288
 
347
- @include touch {
348
- &.is-narrow-touch {
349
- flex: none;
289
+ @include mobile {
290
+ --ColumnGap: 16px;
291
+ &:not(.is-mobile){
292
+ flex-direction: column;
293
+ > .column,
294
+ > .column[class*="is-"]{
295
+ --ColumnFraction: 1;
296
+ }
350
297
  }
351
-
352
- &.is-full-touch {
353
- flex: none;
354
- width: 100%;
298
+ }
299
+ @include tablet-only{
300
+ &.is-desktop{
301
+ flex-direction: column;
302
+ > .column,
303
+ > .column[class*="is-"]{
304
+ --ColumnFraction: 1;
305
+ }
355
306
  }
307
+ }
356
308
 
357
- &.is-three-quarters-touch {
358
- flex: none;
359
- width: 75%;
360
- }
361
309
 
362
- &.is-two-thirds-touch {
363
- flex: none;
364
- width: 66.6666%;
365
- }
366
310
 
367
- &.is-half-touch {
368
- flex: none;
369
- width: 50%;
370
- }
311
+ }
371
312
 
372
- &.is-one-third-touch {
373
- flex: none;
374
- width: 33.3333%;
375
- }
376
313
 
377
- &.is-one-quarter-touch {
378
- flex: none;
379
- width: 25%;
380
- }
381
314
 
382
- &.is-one-fifth-touch {
383
- flex: none;
384
- width: 20%;
385
- }
315
+ .column {
316
+ display: block;
317
+ flex-basis: 0;
318
+ flex-grow: 1;
319
+ flex-shrink: 1;
320
+ &.is-vcentered {
321
+ align-self: center;
322
+ }
386
323
 
387
- &.is-two-fifths-touch {
388
- flex: none;
389
- width: 40%;
390
- }
391
324
 
392
- &.is-three-fifths-touch {
325
+ @include mobile {
326
+ &.is-narrow-mobile {
393
327
  flex: none;
394
- width: 60%;
395
328
  }
329
+ }
396
330
 
397
- &.is-four-fifths-touch {
331
+ @include tablet {
332
+ &.is-narrow,
333
+ &.is-narrow-tablet {
398
334
  flex: none;
399
- width: 80%;
400
335
  }
401
336
 
402
- &.is-offset-three-quarters-touch {
403
- margin-left: 75%;
404
- }
405
-
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%;
424
- }
425
-
426
- &.is-offset-two-fifths-touch {
427
- margin-left: 40%;
428
- }
429
-
430
- &.is-offset-three-fifths-touch {
431
- margin-left: 60%;
432
- }
433
-
434
- &.is-offset-four-fifths-touch {
435
- margin-left: 80%;
436
- }
437
-
438
- @for $i from 1 through 12 {
439
- &.is-#{$i}-touch {
440
- flex: none;
441
- width: percentage(math.div($i, 12));
442
- }
337
+ }
443
338
 
444
- &.is-offset-#{$i}-touch {
445
- margin-left: percentage(math.div($i, 12));
446
- }
339
+ @include touch {
340
+ &.is-narrow-touch {
341
+ flex: none;
447
342
  }
448
343
  }
449
344
 
@@ -451,103 +346,6 @@
451
346
  &.is-narrow-desktop {
452
347
  flex: none;
453
348
  }
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 {
543
- flex: none;
544
- width: percentage(math.div($i, 12));
545
- }
546
-
547
- &.is-offset-#{$i}-desktop {
548
- margin-left: percentage(math.div($i, 12));
549
- }
550
- }
551
349
  }
552
350
 
553
351
  @include widescreen {
@@ -555,263 +353,66 @@
555
353
  flex: none;
556
354
  }
557
355
 
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
- }
602
-
603
- &.is-four-fifths-widescreen {
604
- flex: none;
605
- width: 80%;
606
- }
607
-
608
- &.is-offset-three-quarters-widescreen {
609
- margin-left: 75%;
610
- }
611
-
612
- &.is-offset-two-thirds-widescreen {
613
- margin-left: 66.6666%;
614
- }
615
-
616
- &.is-offset-half-widescreen {
617
- margin-left: 50%;
618
- }
619
-
620
- &.is-offset-one-third-widescreen {
621
- margin-left: 33.3333%;
622
- }
623
-
624
- &.is-offset-one-quarter-widescreen {
625
- margin-left: 25%;
626
- }
627
-
628
- &.is-offset-one-fifth-widescreen {
629
- margin-left: 20%;
630
- }
631
-
632
- &.is-offset-two-fifths-widescreen {
633
- margin-left: 40%;
634
- }
635
-
636
- &.is-offset-three-fifths-widescreen {
637
- margin-left: 60%;
638
- }
639
-
640
- &.is-offset-four-fifths-widescreen {
641
- margin-left: 80%;
642
- }
643
-
644
- @for $i from 1 through 12 {
645
- &.is-#{$i}-widescreen {
646
- flex: none;
647
- width: percentage(math.div($i, 12));
648
- }
649
-
650
- &.is-offset-#{$i}-widescreen {
651
- margin-left: percentage(math.div($i, 12));
652
- }
653
- }
654
356
  }
655
357
 
656
358
  @include fullhd {
657
359
  &.is-narrow-fullhd {
658
360
  flex: none;
659
361
  }
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
- }
675
-
676
- &.is-half-fullhd {
677
- flex: none;
678
- width: 50%;
679
- }
680
-
681
- &.is-one-third-fullhd {
682
- flex: none;
683
- width: 33.3333%;
684
- }
685
-
686
- &.is-one-quarter-fullhd {
687
- flex: none;
688
- width: 25%;
689
- }
690
-
691
- &.is-one-fifth-fullhd {
692
- flex: none;
693
- width: 20%;
694
- }
695
-
696
- &.is-two-fifths-fullhd {
697
- flex: none;
698
- width: 40%;
699
- }
700
-
701
- &.is-three-fifths-fullhd {
702
- flex: none;
703
- width: 60%;
704
- }
705
-
706
- &.is-four-fifths-fullhd {
707
- 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
- }
757
362
  }
758
363
  }
759
364
 
760
365
  .columns {
761
- margin-left: -$column-gap-tablet-desktop;
762
- margin-right: -$column-gap-tablet-desktop;
763
- margin-top: -$column-gap-tablet-desktop;
366
+ gap : 24px;
764
367
 
765
- &.is-inlined {
368
+ &.is-scrollable {
766
369
  position: relative;
767
- width: 100%;
768
370
  padding-bottom: 8px;
769
371
  flex-wrap: nowrap;
770
372
  overflow-x: auto;
771
373
  display: flex !important;
772
374
  scroll-behavior: smooth;
773
375
  scroll-snap-type: x mandatory;
376
+ margin: -8px;
377
+ padding: 8px;
378
+ scroll-padding: 8px;
774
379
 
775
- > .column {
380
+ >.column {
776
381
  scroll-snap-align: start;
382
+ &:last-child{
383
+ scroll-snap-align: end;
384
+ }
777
385
  }
778
-
779
- &::-webkit-scrollbar {
780
- height: 8px;
386
+ &:not(.has-scrollbar){
387
+ &::-webkit-scrollbar {
388
+ scrollbar-width: none;
389
+ }
781
390
  }
391
+ &.has-scrollbar{
392
+ &::-webkit-scrollbar {
393
+ height: 8px;
394
+ }
782
395
 
783
- &::-webkit-scrollbar-track {
784
- background-color: getBGColor('font');
785
- border-radius: var(--radius);
786
- margin: 0 8px;
787
- }
396
+ &::-webkit-scrollbar-track {
397
+ background-color: getColor('neutral');
398
+ border-radius: 8px;
399
+ margin: 0 8px;
400
+ }
788
401
 
789
- &::-webkit-scrollbar-thumb {
790
- background: getColor('main');
791
- border-radius: var(--radius);
402
+ &::-webkit-scrollbar-thumb {
403
+ background-color: getColor('main-fade');
404
+ border-radius: var(--radius);
405
+ }
792
406
  }
793
407
  }
794
408
 
795
- &:last-child {
796
- margin-bottom: -$column-gap-tablet-desktop;
797
- }
798
-
799
409
  &:not(:last-child) {
800
- margin-bottom: calc(15px - #{$column-gap-tablet-desktop});
410
+ margin-bottom: $column-gap-tablet-desktop;
801
411
  }
802
412
 
803
413
  @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
- }
414
+ gap : 16px;
811
415
 
812
- &:not(:last-child) {
813
- margin-bottom: calc(15px - #{$column-gap-mobile});
814
- }
815
416
  }
816
417
 
817
418
  // Modifiers
@@ -820,22 +421,7 @@
820
421
  }
821
422
 
822
423
  &.is-gapless {
823
- margin-left: 0;
824
- margin-right: 0;
825
- margin-top: 0;
826
-
827
- & > .column {
828
- margin: 0;
829
- padding: 0 !important;
830
- }
831
-
832
- &:not(:last-child) {
833
- margin-bottom: 15px;
834
- }
835
-
836
- &:last-child {
837
- margin-bottom: 0;
838
- }
424
+ gap: 0;
839
425
  }
840
426
 
841
427
  &.is-mobile {
@@ -865,88 +451,35 @@
865
451
  // Responsiveness
866
452
  @include tablet {
867
453
  &:not(.is-desktop) {
868
- display: flex;
454
+ flex-direction: row;
869
455
  }
870
456
  }
871
457
 
872
458
  @include desktop {
873
459
  // Modifiers
874
460
  &.is-desktop {
875
- display: flex;
461
+ flex-direction: row;
876
462
  }
877
463
  }
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);
464
+ @include mobile{
465
+ &.is-fullbleed {
466
+ width: 100vw !important;
467
+ margin-left: 50%;
468
+ transform: translateX(-50%);
469
+ padding: 24px;
890
470
  }
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
- }
471
+ &.is-fullbleed {
472
+ scroll-padding: 24px;
473
+ }
474
+ &.is-fullbleed.is-scrollable .column{
475
+ scroll-snap-align: start;
476
+ scroll-padding: 24px;
477
+ }
478
+ .scroll-view{
479
+ overflow: inherit;
950
480
  }
951
481
  }
952
482
  }
483
+ :root{
484
+ --slider-size:min(100%, 1348px);
485
+ }