@trilogy-ds/styles 0.0.1-beta-sc-2 → 0.0.1-beta-151
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/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/_helpers.scss +1 -1
- package/framework/src/components/_accordion.scss +4 -4
- package/framework/src/components/_divider.scss +0 -1
- package/framework/src/components/_modal.scss +57 -52
- package/framework/src/components/_otp.scss +1 -1
- package/framework/src/components/_price.scss +6 -71
- package/framework/src/components/_progress-radial.scss +24 -24
- package/framework/src/components/_segmented-control.scss +14 -2
- package/framework/src/components/_tabs.scss +16 -24
- package/framework/src/elements/_badge.scss +40 -18
- package/framework/src/elements/_box.scss +39 -37
- package/framework/src/elements/_image.scss +50 -40
- package/framework/src/elements/_list.scss +33 -24
- package/framework/src/elements/_paragraph.scss +32 -44
- package/framework/src/elements/_progress.scss +20 -0
- package/framework/src/elements/_radio.scss +43 -37
- package/framework/src/elements/_switch.scss +6 -0
- package/framework/src/elements/_table.scss +15 -15
- package/framework/src/elements/_tag.scss +2 -2
- package/framework/src/grid/_columns.scss +109 -89
- package/framework/src/grid/_rows.scss +19 -14
- package/framework/src/layout/_hero.scss +0 -28
- package/framework/src/theming/common_partials.scss +1 -0
- package/framework/src/utilities/_mixins.scss +8 -6
- package/package.json +1 -1
|
@@ -3,40 +3,39 @@
|
|
|
3
3
|
$columnWidth: calc((100% / (var(--ColumnFraction))) - ((((var(--ColumnFraction)) - 1) / (var(--ColumnFraction))) * var(--ColumnGap)));
|
|
4
4
|
$offsetWidth: calc((100% / (var(--offset))) - ((((var(--offset)) - 1) / (var(--offset))) * var(--ColumnGap)) + var(--ColumnGap));
|
|
5
5
|
|
|
6
|
-
$columnSize
|
|
7
|
-
"1"
|
|
8
|
-
"2"
|
|
9
|
-
"3"
|
|
10
|
-
"4"
|
|
11
|
-
"5"
|
|
12
|
-
"6"
|
|
13
|
-
"7"
|
|
14
|
-
"8"
|
|
15
|
-
"9"
|
|
16
|
-
"10"
|
|
17
|
-
"11"
|
|
18
|
-
"12"
|
|
19
|
-
"full"
|
|
20
|
-
"half"
|
|
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
21
|
);
|
|
22
22
|
|
|
23
|
+
$columnNumber: 12;
|
|
23
24
|
%flex-none {
|
|
24
25
|
flex: none;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
|
|
28
|
-
$gap
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
62px
|
|
39
|
-
;
|
|
29
|
+
$gap: 4px,
|
|
30
|
+
8px,
|
|
31
|
+
12px,
|
|
32
|
+
16px,
|
|
33
|
+
24px,
|
|
34
|
+
32px,
|
|
35
|
+
40px,
|
|
36
|
+
48px,
|
|
37
|
+
54px,
|
|
38
|
+
62px;
|
|
40
39
|
|
|
41
40
|
.columns {
|
|
42
41
|
display: flex;
|
|
@@ -46,62 +45,62 @@ $gap :
|
|
|
46
45
|
flex: none;
|
|
47
46
|
}
|
|
48
47
|
|
|
49
|
-
.column[class*="is-"]:not(.is-narrow){
|
|
50
|
-
width:
|
|
48
|
+
.column[class*="is-"]:not(.is-narrow) {
|
|
49
|
+
width: #{$columnWidth};
|
|
51
50
|
}
|
|
52
51
|
|
|
53
|
-
@each $key, $value in $columnSize{
|
|
52
|
+
@each $key, $value in $columnSize {
|
|
54
53
|
> .column.is-#{$key} {
|
|
55
54
|
flex: none;
|
|
56
55
|
--ColumnFraction: #{$value};
|
|
57
56
|
}
|
|
58
|
-
|
|
59
|
-
.column.is-offset-#{$key} {
|
|
60
|
-
--offset: #{$value};
|
|
61
|
-
margin-left: $offsetWidth;
|
|
62
|
-
}
|
|
63
57
|
}
|
|
64
58
|
|
|
65
59
|
@for $i from 1 through length($gap) {
|
|
66
60
|
$item: nth($gap, $i);
|
|
67
61
|
&.is-mobile.has-gap-#{$i} {
|
|
68
62
|
gap: $item;
|
|
63
|
+
|
|
69
64
|
.column {
|
|
70
65
|
--ColumnGap: #{$item};
|
|
71
66
|
}
|
|
72
67
|
}
|
|
73
68
|
|
|
74
|
-
@include tablet{
|
|
69
|
+
@include tablet {
|
|
75
70
|
&.has-gap-#{$i}:not(.is-desktop) {
|
|
76
71
|
gap: $item;
|
|
72
|
+
|
|
77
73
|
.column {
|
|
78
74
|
--ColumnGap: #{$item};
|
|
79
75
|
}
|
|
80
76
|
}
|
|
81
77
|
}
|
|
82
78
|
|
|
83
|
-
@include desktop{
|
|
79
|
+
@include desktop {
|
|
84
80
|
&.has-gap-#{$i},
|
|
85
81
|
&.has-gap-#{$i}-desktop {
|
|
86
82
|
gap: $item;
|
|
83
|
+
|
|
87
84
|
.column {
|
|
88
85
|
--ColumnGap: #{$item};
|
|
89
86
|
}
|
|
90
87
|
}
|
|
91
88
|
}
|
|
92
89
|
|
|
93
|
-
@include widescreen{
|
|
90
|
+
@include widescreen {
|
|
94
91
|
&.has-gap-#{$i}-widescreen {
|
|
95
92
|
gap: $item;
|
|
93
|
+
|
|
96
94
|
.column {
|
|
97
95
|
--ColumnGap: #{$item};
|
|
98
96
|
}
|
|
99
97
|
}
|
|
100
98
|
}
|
|
101
99
|
|
|
102
|
-
@include fullhd{
|
|
100
|
+
@include fullhd {
|
|
103
101
|
&.has-gap-#{$i}-fullhd {
|
|
104
102
|
gap: $item;
|
|
103
|
+
|
|
105
104
|
.column {
|
|
106
105
|
--ColumnGap: #{$item};
|
|
107
106
|
}
|
|
@@ -111,13 +110,12 @@ $gap :
|
|
|
111
110
|
}
|
|
112
111
|
|
|
113
112
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
&.is-peek{
|
|
113
|
+
@include mobile {
|
|
114
|
+
&.is-peek {
|
|
117
115
|
padding-right: 15%;
|
|
118
116
|
}
|
|
119
117
|
|
|
120
|
-
@each $key, $value in $columnSize{
|
|
118
|
+
@each $key, $value in $columnSize {
|
|
121
119
|
& > .column.is-#{$key}-mobile {
|
|
122
120
|
flex: none;
|
|
123
121
|
--ColumnFraction: #{$value};
|
|
@@ -131,9 +129,8 @@ $gap :
|
|
|
131
129
|
|
|
132
130
|
}
|
|
133
131
|
|
|
134
|
-
@include tablet{
|
|
135
|
-
|
|
136
|
-
@each $key, $value in $columnSize{
|
|
132
|
+
@include tablet {
|
|
133
|
+
@each $key, $value in $columnSize {
|
|
137
134
|
> .column.is-#{$key}-tablet {
|
|
138
135
|
flex: none;
|
|
139
136
|
--ColumnFraction: #{$value};
|
|
@@ -145,11 +142,21 @@ $gap :
|
|
|
145
142
|
}
|
|
146
143
|
}
|
|
147
144
|
|
|
148
|
-
|
|
145
|
+
&.is-aligned-start {
|
|
146
|
+
align-items: start !important;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&.is-aligned-center {
|
|
150
|
+
align-items: center !important;
|
|
151
|
+
}
|
|
149
152
|
|
|
150
|
-
|
|
153
|
+
&.is-aligned-end {
|
|
154
|
+
align-items: end !important;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
151
157
|
|
|
152
|
-
|
|
158
|
+
@include touch {
|
|
159
|
+
@each $key, $value in $columnSize {
|
|
153
160
|
> .column.is-#{$key}-touch {
|
|
154
161
|
flex: none;
|
|
155
162
|
--ColumnFraction: #{$value};
|
|
@@ -163,9 +170,8 @@ $gap :
|
|
|
163
170
|
|
|
164
171
|
}
|
|
165
172
|
|
|
166
|
-
@include desktop{
|
|
167
|
-
|
|
168
|
-
@each $key, $value in $columnSize{
|
|
173
|
+
@include desktop {
|
|
174
|
+
@each $key, $value in $columnSize {
|
|
169
175
|
> .column.is-#{$key}-desktop {
|
|
170
176
|
flex: none;
|
|
171
177
|
--ColumnFraction: #{$value};
|
|
@@ -179,10 +185,9 @@ $gap :
|
|
|
179
185
|
|
|
180
186
|
}
|
|
181
187
|
|
|
182
|
-
@include widescreen{
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
> .column.is-#{$key}-widescreen{
|
|
188
|
+
@include widescreen {
|
|
189
|
+
@each $key, $value in $columnSize {
|
|
190
|
+
> .column.is-#{$key}-widescreen {
|
|
186
191
|
flex: none;
|
|
187
192
|
--ColumnFraction: #{$value};
|
|
188
193
|
}
|
|
@@ -195,10 +200,9 @@ $gap :
|
|
|
195
200
|
|
|
196
201
|
}
|
|
197
202
|
|
|
198
|
-
@include fullhd{
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
> .column.is-#{$key}-fullhd{
|
|
203
|
+
@include fullhd {
|
|
204
|
+
@each $key, $value in $columnSize {
|
|
205
|
+
> .column.is-#{$key}-fullhd {
|
|
202
206
|
flex: none;
|
|
203
207
|
--ColumnFraction: #{$value};
|
|
204
208
|
}
|
|
@@ -213,41 +217,44 @@ $gap :
|
|
|
213
217
|
|
|
214
218
|
@include mobile {
|
|
215
219
|
--ColumnGap: 16px;
|
|
216
|
-
&:not(.is-mobile){
|
|
220
|
+
&:not(.is-mobile) {
|
|
217
221
|
flex-direction: column;
|
|
222
|
+
|
|
218
223
|
> .column,
|
|
219
|
-
> .column[class*="is-"]{
|
|
224
|
+
> .column[class*="is-"] {
|
|
220
225
|
--ColumnFraction: 1;
|
|
221
226
|
}
|
|
222
227
|
}
|
|
228
|
+
|
|
229
|
+
&.is-aligned-start {
|
|
230
|
+
align-items: unset !important;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
&.is-aligned-center {
|
|
234
|
+
align-items: unset !important;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
&.is-aligned-end {
|
|
238
|
+
align-items: unset !important;
|
|
239
|
+
}
|
|
223
240
|
}
|
|
224
|
-
@include tablet-only{
|
|
225
|
-
&.is-desktop{
|
|
241
|
+
@include tablet-only {
|
|
242
|
+
&.is-desktop {
|
|
226
243
|
flex-direction: column;
|
|
244
|
+
|
|
227
245
|
> .column,
|
|
228
|
-
> .column[class*="is-"]{
|
|
246
|
+
> .column[class*="is-"] {
|
|
229
247
|
--ColumnFraction: 1;
|
|
230
248
|
}
|
|
231
249
|
}
|
|
232
250
|
}
|
|
233
|
-
|
|
234
|
-
&.is-mobile>.column.is-narrow{
|
|
235
|
-
flex: none;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
251
|
}
|
|
239
252
|
|
|
240
|
-
|
|
241
|
-
|
|
242
253
|
.column {
|
|
243
254
|
display: block;
|
|
244
255
|
flex-basis: 0;
|
|
245
256
|
flex-grow: 1;
|
|
246
257
|
flex-shrink: 1;
|
|
247
|
-
&.is-vcentered {
|
|
248
|
-
align-self: center;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
258
|
|
|
252
259
|
@include mobile {
|
|
253
260
|
&.is-narrow-mobile {
|
|
@@ -260,7 +267,6 @@ $gap :
|
|
|
260
267
|
&.is-narrow-tablet {
|
|
261
268
|
flex: none;
|
|
262
269
|
}
|
|
263
|
-
|
|
264
270
|
}
|
|
265
271
|
|
|
266
272
|
@include touch {
|
|
@@ -290,7 +296,7 @@ $gap :
|
|
|
290
296
|
}
|
|
291
297
|
|
|
292
298
|
.columns {
|
|
293
|
-
gap
|
|
299
|
+
gap: 24px;
|
|
294
300
|
|
|
295
301
|
&.is-scrollable {
|
|
296
302
|
position: relative;
|
|
@@ -304,18 +310,21 @@ $gap :
|
|
|
304
310
|
padding: 8px;
|
|
305
311
|
scroll-padding: 8px;
|
|
306
312
|
|
|
307
|
-
|
|
313
|
+
> .column {
|
|
308
314
|
scroll-snap-align: start;
|
|
309
|
-
|
|
315
|
+
|
|
316
|
+
&:last-child {
|
|
310
317
|
scroll-snap-align: end;
|
|
311
318
|
}
|
|
312
319
|
}
|
|
313
|
-
|
|
320
|
+
|
|
321
|
+
&:not(.has-scrollbar) {
|
|
314
322
|
&::-webkit-scrollbar {
|
|
315
323
|
scrollbar-width: none;
|
|
316
324
|
}
|
|
317
325
|
}
|
|
318
|
-
|
|
326
|
+
|
|
327
|
+
&.has-scrollbar {
|
|
319
328
|
&::-webkit-scrollbar {
|
|
320
329
|
height: 8px;
|
|
321
330
|
}
|
|
@@ -338,7 +347,7 @@ $gap :
|
|
|
338
347
|
}
|
|
339
348
|
|
|
340
349
|
@include mobile {
|
|
341
|
-
gap
|
|
350
|
+
gap: 16px;
|
|
342
351
|
|
|
343
352
|
}
|
|
344
353
|
|
|
@@ -349,11 +358,21 @@ $gap :
|
|
|
349
358
|
|
|
350
359
|
&.is-gapless {
|
|
351
360
|
gap: 0;
|
|
352
|
-
--ColumnGap: 0px; // must be px because is used in calc.
|
|
353
361
|
}
|
|
354
362
|
|
|
355
363
|
&.is-mobile {
|
|
356
364
|
display: flex;
|
|
365
|
+
|
|
366
|
+
@each $key, $value in $columnSize {
|
|
367
|
+
.column.is-offset-#{$key} {
|
|
368
|
+
--offset: #{$value};
|
|
369
|
+
margin-left: $offsetWidth;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.column.is-narrow {
|
|
374
|
+
flex: none;
|
|
375
|
+
}
|
|
357
376
|
}
|
|
358
377
|
|
|
359
378
|
&.is-multiline {
|
|
@@ -389,7 +408,7 @@ $gap :
|
|
|
389
408
|
flex-direction: row;
|
|
390
409
|
}
|
|
391
410
|
}
|
|
392
|
-
@include mobile{
|
|
411
|
+
@include mobile {
|
|
393
412
|
&.is-fullbleed {
|
|
394
413
|
width: 100vw !important;
|
|
395
414
|
margin-left: 50%;
|
|
@@ -399,15 +418,16 @@ $gap :
|
|
|
399
418
|
&.is-fullbleed {
|
|
400
419
|
scroll-padding: 24px;
|
|
401
420
|
}
|
|
402
|
-
&.is-fullbleed.is-scrollable .column{
|
|
421
|
+
&.is-fullbleed.is-scrollable .column {
|
|
403
422
|
scroll-snap-align: start;
|
|
404
423
|
scroll-padding: 24px;
|
|
405
424
|
}
|
|
406
|
-
.scroll-view{
|
|
425
|
+
.scroll-view {
|
|
407
426
|
overflow: inherit;
|
|
408
427
|
}
|
|
409
428
|
}
|
|
410
429
|
}
|
|
411
|
-
|
|
412
|
-
|
|
430
|
+
|
|
431
|
+
:root {
|
|
432
|
+
--slider-size: min(100%, 1348px);
|
|
413
433
|
}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
54px,
|
|
12
|
-
62px
|
|
13
|
-
;
|
|
1
|
+
$gap: 4px,
|
|
2
|
+
8px,
|
|
3
|
+
12px,
|
|
4
|
+
16px,
|
|
5
|
+
24px,
|
|
6
|
+
32px,
|
|
7
|
+
40px,
|
|
8
|
+
48px,
|
|
9
|
+
54px,
|
|
10
|
+
62px;
|
|
14
11
|
|
|
15
12
|
|
|
16
13
|
.rows {
|
|
@@ -21,10 +18,17 @@ $gap :
|
|
|
21
18
|
height: 100%;
|
|
22
19
|
gap: 24px;
|
|
23
20
|
|
|
24
|
-
@include mobile{
|
|
21
|
+
@include mobile {
|
|
25
22
|
gap: 16px;
|
|
26
23
|
}
|
|
27
24
|
|
|
25
|
+
@for $i from 1 through length($gap) {
|
|
26
|
+
$item: nth($gap, $i);
|
|
27
|
+
&.has-gap-#{$i} {
|
|
28
|
+
gap: $item;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
28
32
|
&.is-aligned-end {
|
|
29
33
|
justify-content: flex-end;
|
|
30
34
|
}
|
|
@@ -42,6 +46,7 @@ $gap :
|
|
|
42
46
|
display: block;
|
|
43
47
|
flex-grow: 1;
|
|
44
48
|
flex-shrink: 1;
|
|
49
|
+
|
|
45
50
|
&.is-narrow {
|
|
46
51
|
flex-grow: 0;
|
|
47
52
|
}
|
|
@@ -127,30 +127,6 @@ $overlap-desktop: 30px;
|
|
|
127
127
|
padding-top: 80px;
|
|
128
128
|
padding-bottom: 80px;
|
|
129
129
|
}
|
|
130
|
-
|
|
131
|
-
.suptitle {
|
|
132
|
-
display: none;
|
|
133
|
-
|
|
134
|
-
@include desktop {
|
|
135
|
-
display: block;
|
|
136
|
-
margin-bottom: 30px;
|
|
137
|
-
font-size: 19px;
|
|
138
|
-
text-transform: uppercase;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.title {
|
|
143
|
-
font-size: 32px;
|
|
144
|
-
margin-bottom: 25px;
|
|
145
|
-
|
|
146
|
-
@include desktop {
|
|
147
|
-
font-size: 52px;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.button {
|
|
152
|
-
width: auto;
|
|
153
|
-
}
|
|
154
130
|
}
|
|
155
131
|
|
|
156
132
|
&.is-overlapped {
|
|
@@ -163,8 +139,4 @@ $overlap-desktop: 30px;
|
|
|
163
139
|
}
|
|
164
140
|
}
|
|
165
141
|
}
|
|
166
|
-
|
|
167
|
-
&.is-centered {
|
|
168
|
-
text-align: center;
|
|
169
|
-
}
|
|
170
142
|
}
|
|
@@ -379,6 +379,13 @@
|
|
|
379
379
|
}
|
|
380
380
|
|
|
381
381
|
@mixin checkbox-and-radio($type) {
|
|
382
|
+
//TILES WRAPPER
|
|
383
|
+
.#{$type}-tiles {
|
|
384
|
+
display: flex;
|
|
385
|
+
gap: 16px;
|
|
386
|
+
flex-wrap: wrap;
|
|
387
|
+
}
|
|
388
|
+
|
|
382
389
|
//BOTH
|
|
383
390
|
.#{$type},
|
|
384
391
|
.#{$type}-tile {
|
|
@@ -480,9 +487,6 @@
|
|
|
480
487
|
position: relative;
|
|
481
488
|
max-width: 160px;
|
|
482
489
|
display: inline-block;
|
|
483
|
-
margin: 0;
|
|
484
|
-
margin-right: 16px;
|
|
485
|
-
margin-top: 16px;
|
|
486
490
|
text-align: center;
|
|
487
491
|
|
|
488
492
|
input:disabled,
|
|
@@ -523,7 +527,6 @@
|
|
|
523
527
|
}
|
|
524
528
|
|
|
525
529
|
input {
|
|
526
|
-
|
|
527
530
|
&:not(:disabled):not(:checked) ~ label.radio-label {
|
|
528
531
|
@include label-states;
|
|
529
532
|
}
|
|
@@ -568,8 +571,7 @@
|
|
|
568
571
|
justify-content: space-between;
|
|
569
572
|
align-items: center;
|
|
570
573
|
max-width: unset;
|
|
571
|
-
width:
|
|
572
|
-
margin: 16px 0;
|
|
574
|
+
width: 100%;
|
|
573
575
|
position: relative;
|
|
574
576
|
|
|
575
577
|
&.is-narrow {
|