@total_onion/onion-library 2.0.56 → 2.0.59
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/components/block-featured-image-gallery-v3/featured-image-gallery-v3.twig +9 -17
- package/components/block-product-info-v3/product-info-v3/product-abv.twig +1 -1
- package/components/block-product-info-v3/product-info-v3/product-name.twig +1 -1
- package/components/block-product-info-v3/product-info-v3/product-volume.twig +1 -1
- package/components/fields-product-info-v3/group_689098dd3a131.json +157 -75
- package/package.json +1 -1
- package/public/assetList.mjs +3 -0
- package/public/block-featured-image-gallery-v3/featured-image-gallery-v3.css +62 -0
- package/public/block-responsive-table-v3/responsive-table-v3.css +48 -0
|
@@ -1,29 +1,21 @@
|
|
|
1
1
|
{% set blockId = block.id %}
|
|
2
2
|
{% set images = fields.images %}
|
|
3
|
-
{% set blockClassName = '
|
|
3
|
+
{% set blockClassName = 'featured-image-gallery-v3' %}
|
|
4
4
|
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} lazy" data-assetkey="{{blockClassName}}">
|
|
5
5
|
|
|
6
|
+
{% set image = get_image(images[0].image) %}
|
|
7
|
+
{% set srcset = gt_image_srcset(image) %}
|
|
8
|
+
{% set mainImageSrc = gt_image_mainsrc(image) %}
|
|
9
|
+
<img loading="lazy" class="{{blockClassName}}__featured-image" srcset="{{srcset}}" width="500" height="500" src="{{mainImageSrc}}" sizes="(min-width: 1366px) 50vw, (min-width: 1024px) 400px, 90vw" alt="{{image.alt}}">
|
|
6
10
|
|
|
7
|
-
{% if not cloudflare_config.use_cloudflare_images %}
|
|
8
|
-
<img loading="lazy" class="{{blockClassName}}__featured-image" srcset="{{get_image(images[0].image).srcset}}" width="500" height="500" src="{{get_image(images[0]).src}}" sizes="(min-width: 1366px) 50vw, (min-width: 1024px) 400px, 90vw" alt="{{get_image(images[0]).alt}}">
|
|
9
|
-
{% else %}
|
|
10
|
-
{% set image = get_image(images[0].image) %}
|
|
11
|
-
{% set srcset = gt_cf_srcset(image) %}
|
|
12
|
-
{% set mainImageSrc = gt_cf_mainsrc(image) %}
|
|
13
|
-
<img loading="lazy" class="{{blockClassName}}__featured-image" srcset="{{srcset}}" width="500" height="500" src="{{mainImageSrc}}" sizes="(min-width: 1366px) 50vw, (min-width: 1024px) 400px, 90vw" alt="{{image.alt}}">
|
|
14
|
-
{% endif %}
|
|
15
11
|
|
|
16
12
|
<div class="{{blockClassName}}__other-images">
|
|
17
13
|
{% for image in images %}
|
|
18
14
|
<div class="{{blockClassName}}__image-wrapper">
|
|
19
|
-
{%
|
|
20
|
-
|
|
21
|
-
{%
|
|
22
|
-
|
|
23
|
-
{% set srcset = gt_cf_srcset(image) %}
|
|
24
|
-
{% set mainImageSrc = gt_cf_mainsrc(image) %}
|
|
25
|
-
<img loading="lazy" class="{{blockClassName}}__image" srcset="{{srcset}}" width="500" height="500" src="{{mainImageSrc}}" sizes="(min-width: 1366px) 20vw, (min-width: 1024px) 20vw, 50vw " alt="{{image.alt}}">
|
|
26
|
-
{% endif %}
|
|
15
|
+
{% set image = get_image(image.image) %}
|
|
16
|
+
{% set srcset = gt_image_srcset(image) %}
|
|
17
|
+
{% set mainImageSrc = gt_image_mainsrc(image) %}
|
|
18
|
+
<img loading="lazy" class="{{blockClassName}}__image" srcset="{{srcset}}" width="500" height="500" src="{{mainImageSrc}}" sizes="(min-width: 1366px) 20vw, (min-width: 1024px) 20vw, 50vw " alt="{{image.alt}}">
|
|
27
19
|
</div>
|
|
28
20
|
{% endfor %}
|
|
29
21
|
</div>
|
|
@@ -10,5 +10,5 @@
|
|
|
10
10
|
}
|
|
11
11
|
</style>
|
|
12
12
|
<div class="{{blockClassName}}__content-container {{textEditorContainerClasses}} {{blockClassName}}__info-item {{block.id}}">
|
|
13
|
-
<{{elementType|default('p')}} data-pattern-post-info="abv" class="{{blockClassName}}__product-abv {{textEditorElementClasses}} {{block.id}}">{{post.product_abv}}</{{elementType|default('p')}}>
|
|
13
|
+
<{{elementType|default('p')}} data-pattern-post-info="abv" class="{{blockClassName}}__product-abv {{textEditorElementClasses}} {{block.id}}"><span class="{{blockClassName}}__product-abv--label">{{post.product_abv_label}}</span> {{post.product_abv}}</{{elementType|default('p')}}>
|
|
14
14
|
</div>
|
|
@@ -10,5 +10,5 @@
|
|
|
10
10
|
}
|
|
11
11
|
</style>
|
|
12
12
|
<div class="{{blockClassName}}__content-container {{textEditorContainerClasses}} {{blockClassName}}__info-item {{block.id}}">
|
|
13
|
-
<{{elementType|default('p')}} data-pattern-post-info="name" class="{{blockClassName}}__product-name {{textEditorElementClasses}} {{block.id}}">{{post.
|
|
13
|
+
<{{elementType|default('p')}} data-pattern-post-info="name" class="{{blockClassName}}__product-name {{textEditorElementClasses}} {{block.id}}">{{post.product_name}}</{{elementType|default('p')}}>
|
|
14
14
|
</div>
|
|
@@ -10,5 +10,5 @@
|
|
|
10
10
|
}
|
|
11
11
|
</style>
|
|
12
12
|
<div class="{{blockClassName}}__content-container {{textEditorContainerClasses}} {{blockClassName}}__info-item {{block.id}}">
|
|
13
|
-
<{{elementType|default('p')}} data-pattern-post-info="volume" class="{{blockClassName}}__product-volume {{textEditorElementClasses}} {{block.id}}">{{post.product_volume}}</{{elementType|default('p')}}>
|
|
13
|
+
<{{elementType|default('p')}} data-pattern-post-info="volume" class="{{blockClassName}}__product-volume {{textEditorElementClasses}} {{block.id}}"><span class="{{blockClassName}}__product-volume--label">{{post.product_volume_label}}</span> {{post.product_volume}}</{{elementType|default('p')}}>
|
|
14
14
|
</div>
|
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
"key": "group_689098dd3a131",
|
|
3
3
|
"title": "Fields: Product Info v3",
|
|
4
4
|
"fields": [
|
|
5
|
+
{
|
|
6
|
+
"key": "field_68db9dab6da56",
|
|
7
|
+
"label": "General Info",
|
|
8
|
+
"name": "",
|
|
9
|
+
"aria-label": "",
|
|
10
|
+
"type": "tab",
|
|
11
|
+
"instructions": "",
|
|
12
|
+
"required": 0,
|
|
13
|
+
"conditional_logic": 0,
|
|
14
|
+
"wrapper": {
|
|
15
|
+
"width": "",
|
|
16
|
+
"class": "",
|
|
17
|
+
"id": ""
|
|
18
|
+
},
|
|
19
|
+
"wpml_cf_preferences": 3,
|
|
20
|
+
"placement": "top",
|
|
21
|
+
"endpoint": 0,
|
|
22
|
+
"no_preference": 0,
|
|
23
|
+
"selected": 0
|
|
24
|
+
},
|
|
5
25
|
{
|
|
6
26
|
"key": "field_689098dd4ff5c",
|
|
7
27
|
"label": "Product logo",
|
|
@@ -187,6 +207,27 @@
|
|
|
187
207
|
"prepend": "",
|
|
188
208
|
"append": ""
|
|
189
209
|
},
|
|
210
|
+
{
|
|
211
|
+
"key": "field_68ee7b3a99137",
|
|
212
|
+
"label": "ABV Label",
|
|
213
|
+
"name": "product_abv_label",
|
|
214
|
+
"aria-label": "",
|
|
215
|
+
"type": "text",
|
|
216
|
+
"instructions": "",
|
|
217
|
+
"required": 0,
|
|
218
|
+
"conditional_logic": 0,
|
|
219
|
+
"wrapper": {
|
|
220
|
+
"width": "50",
|
|
221
|
+
"class": "",
|
|
222
|
+
"id": ""
|
|
223
|
+
},
|
|
224
|
+
"wpml_cf_preferences": 2,
|
|
225
|
+
"default_value": "",
|
|
226
|
+
"maxlength": "",
|
|
227
|
+
"placeholder": "",
|
|
228
|
+
"prepend": "",
|
|
229
|
+
"append": ""
|
|
230
|
+
},
|
|
190
231
|
{
|
|
191
232
|
"key": "field_689e80a3fb542",
|
|
192
233
|
"label": "Volume",
|
|
@@ -209,6 +250,27 @@
|
|
|
209
250
|
"prepend": "",
|
|
210
251
|
"append": ""
|
|
211
252
|
},
|
|
253
|
+
{
|
|
254
|
+
"key": "field_68ee7b4799138",
|
|
255
|
+
"label": "Volume Label",
|
|
256
|
+
"name": "product_volume_label",
|
|
257
|
+
"aria-label": "",
|
|
258
|
+
"type": "text",
|
|
259
|
+
"instructions": "",
|
|
260
|
+
"required": 0,
|
|
261
|
+
"conditional_logic": 0,
|
|
262
|
+
"wrapper": {
|
|
263
|
+
"width": "50",
|
|
264
|
+
"class": "",
|
|
265
|
+
"id": ""
|
|
266
|
+
},
|
|
267
|
+
"wpml_cf_preferences": 2,
|
|
268
|
+
"default_value": "",
|
|
269
|
+
"maxlength": "",
|
|
270
|
+
"placeholder": "",
|
|
271
|
+
"prepend": "",
|
|
272
|
+
"append": ""
|
|
273
|
+
},
|
|
212
274
|
{
|
|
213
275
|
"key": "field_689098dd52322",
|
|
214
276
|
"label": "Whisky type",
|
|
@@ -254,6 +316,86 @@
|
|
|
254
316
|
"placeholder": "",
|
|
255
317
|
"new_lines": ""
|
|
256
318
|
},
|
|
319
|
+
{
|
|
320
|
+
"key": "field_689098dd539f4",
|
|
321
|
+
"label": "History",
|
|
322
|
+
"name": "product_history",
|
|
323
|
+
"aria-label": "",
|
|
324
|
+
"type": "textarea",
|
|
325
|
+
"instructions": "",
|
|
326
|
+
"required": 0,
|
|
327
|
+
"conditional_logic": 0,
|
|
328
|
+
"wrapper": {
|
|
329
|
+
"width": "",
|
|
330
|
+
"class": "",
|
|
331
|
+
"id": ""
|
|
332
|
+
},
|
|
333
|
+
"wpml_cf_preferences": 2,
|
|
334
|
+
"user_roles": [
|
|
335
|
+
"all"
|
|
336
|
+
],
|
|
337
|
+
"default_value": "",
|
|
338
|
+
"maxlength": "",
|
|
339
|
+
"rows": "",
|
|
340
|
+
"placeholder": "",
|
|
341
|
+
"new_lines": "",
|
|
342
|
+
"acfe_textarea_code": 0
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"key": "field_689098dd545b8",
|
|
346
|
+
"label": "Related Products",
|
|
347
|
+
"name": "related_products",
|
|
348
|
+
"aria-label": "",
|
|
349
|
+
"type": "relationship",
|
|
350
|
+
"instructions": "",
|
|
351
|
+
"required": 0,
|
|
352
|
+
"conditional_logic": 0,
|
|
353
|
+
"wrapper": {
|
|
354
|
+
"width": "",
|
|
355
|
+
"class": "",
|
|
356
|
+
"id": ""
|
|
357
|
+
},
|
|
358
|
+
"wpml_cf_preferences": 3,
|
|
359
|
+
"post_type": [
|
|
360
|
+
"product"
|
|
361
|
+
],
|
|
362
|
+
"post_status": "",
|
|
363
|
+
"taxonomy": "",
|
|
364
|
+
"filters": [
|
|
365
|
+
"search"
|
|
366
|
+
],
|
|
367
|
+
"return_format": "object",
|
|
368
|
+
"acfe_add_post": 0,
|
|
369
|
+
"acfe_edit_post": 0,
|
|
370
|
+
"acfe_bidirectional": {
|
|
371
|
+
"acfe_bidirectional_enabled": "0"
|
|
372
|
+
},
|
|
373
|
+
"min": "",
|
|
374
|
+
"max": "",
|
|
375
|
+
"elements": "",
|
|
376
|
+
"bidirectional": 0,
|
|
377
|
+
"bidirectional_target": []
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"key": "field_68db9e096da57",
|
|
381
|
+
"label": "Tasting Notes",
|
|
382
|
+
"name": "",
|
|
383
|
+
"aria-label": "",
|
|
384
|
+
"type": "tab",
|
|
385
|
+
"instructions": "",
|
|
386
|
+
"required": 0,
|
|
387
|
+
"conditional_logic": 0,
|
|
388
|
+
"wrapper": {
|
|
389
|
+
"width": "",
|
|
390
|
+
"class": "",
|
|
391
|
+
"id": ""
|
|
392
|
+
},
|
|
393
|
+
"wpml_cf_preferences": 3,
|
|
394
|
+
"placement": "top",
|
|
395
|
+
"endpoint": 0,
|
|
396
|
+
"no_preference": 0,
|
|
397
|
+
"selected": 0
|
|
398
|
+
},
|
|
257
399
|
{
|
|
258
400
|
"key": "field_6899cb3c882b9",
|
|
259
401
|
"label": "Cask type Label",
|
|
@@ -339,7 +481,7 @@
|
|
|
339
481
|
"append": ""
|
|
340
482
|
},
|
|
341
483
|
{
|
|
342
|
-
"key": "
|
|
484
|
+
"key": "field_68ee7b1399135",
|
|
343
485
|
"label": "Colour Label",
|
|
344
486
|
"name": "product_colour_label",
|
|
345
487
|
"aria-label": "",
|
|
@@ -360,7 +502,7 @@
|
|
|
360
502
|
"append": ""
|
|
361
503
|
},
|
|
362
504
|
{
|
|
363
|
-
"key": "
|
|
505
|
+
"key": "field_68ee7b2499136",
|
|
364
506
|
"label": "Colour",
|
|
365
507
|
"name": "product_colour",
|
|
366
508
|
"aria-label": "",
|
|
@@ -423,9 +565,9 @@
|
|
|
423
565
|
"append": ""
|
|
424
566
|
},
|
|
425
567
|
{
|
|
426
|
-
"key": "
|
|
427
|
-
"label": "
|
|
428
|
-
"name": "
|
|
568
|
+
"key": "field_6899cbcd36210",
|
|
569
|
+
"label": "Finish Label",
|
|
570
|
+
"name": "product_finish_label",
|
|
429
571
|
"aria-label": "",
|
|
430
572
|
"type": "text",
|
|
431
573
|
"instructions": "",
|
|
@@ -444,9 +586,9 @@
|
|
|
444
586
|
"append": ""
|
|
445
587
|
},
|
|
446
588
|
{
|
|
447
|
-
"key": "
|
|
448
|
-
"label": "
|
|
449
|
-
"name": "
|
|
589
|
+
"key": "field_689098dd53649",
|
|
590
|
+
"label": "Finish",
|
|
591
|
+
"name": "product_finish",
|
|
450
592
|
"aria-label": "",
|
|
451
593
|
"type": "text",
|
|
452
594
|
"instructions": "",
|
|
@@ -465,9 +607,9 @@
|
|
|
465
607
|
"append": ""
|
|
466
608
|
},
|
|
467
609
|
{
|
|
468
|
-
"key": "
|
|
469
|
-
"label": "
|
|
470
|
-
"name": "
|
|
610
|
+
"key": "field_6899cbab3620f",
|
|
611
|
+
"label": "Taste Label",
|
|
612
|
+
"name": "product_taste_label",
|
|
471
613
|
"aria-label": "",
|
|
472
614
|
"type": "text",
|
|
473
615
|
"instructions": "",
|
|
@@ -486,9 +628,9 @@
|
|
|
486
628
|
"append": ""
|
|
487
629
|
},
|
|
488
630
|
{
|
|
489
|
-
"key": "
|
|
490
|
-
"label": "
|
|
491
|
-
"name": "
|
|
631
|
+
"key": "field_689098dd53233",
|
|
632
|
+
"label": "Taste",
|
|
633
|
+
"name": "product_taste",
|
|
492
634
|
"aria-label": "",
|
|
493
635
|
"type": "text",
|
|
494
636
|
"instructions": "",
|
|
@@ -547,66 +689,6 @@
|
|
|
547
689
|
"placeholder": "",
|
|
548
690
|
"prepend": "",
|
|
549
691
|
"append": ""
|
|
550
|
-
},
|
|
551
|
-
{
|
|
552
|
-
"key": "field_689098dd539f4",
|
|
553
|
-
"label": "History",
|
|
554
|
-
"name": "product_history",
|
|
555
|
-
"aria-label": "",
|
|
556
|
-
"type": "textarea",
|
|
557
|
-
"instructions": "",
|
|
558
|
-
"required": 0,
|
|
559
|
-
"conditional_logic": 0,
|
|
560
|
-
"wrapper": {
|
|
561
|
-
"width": "",
|
|
562
|
-
"class": "",
|
|
563
|
-
"id": ""
|
|
564
|
-
},
|
|
565
|
-
"wpml_cf_preferences": 2,
|
|
566
|
-
"user_roles": [
|
|
567
|
-
"all"
|
|
568
|
-
],
|
|
569
|
-
"default_value": "",
|
|
570
|
-
"maxlength": "",
|
|
571
|
-
"rows": "",
|
|
572
|
-
"placeholder": "",
|
|
573
|
-
"new_lines": "",
|
|
574
|
-
"acfe_textarea_code": 0
|
|
575
|
-
},
|
|
576
|
-
{
|
|
577
|
-
"key": "field_689098dd545b8",
|
|
578
|
-
"label": "Related Products",
|
|
579
|
-
"name": "related_products",
|
|
580
|
-
"aria-label": "",
|
|
581
|
-
"type": "relationship",
|
|
582
|
-
"instructions": "",
|
|
583
|
-
"required": 0,
|
|
584
|
-
"conditional_logic": 0,
|
|
585
|
-
"wrapper": {
|
|
586
|
-
"width": "",
|
|
587
|
-
"class": "",
|
|
588
|
-
"id": ""
|
|
589
|
-
},
|
|
590
|
-
"wpml_cf_preferences": 3,
|
|
591
|
-
"post_type": [
|
|
592
|
-
"product"
|
|
593
|
-
],
|
|
594
|
-
"post_status": "",
|
|
595
|
-
"taxonomy": "",
|
|
596
|
-
"filters": [
|
|
597
|
-
"search"
|
|
598
|
-
],
|
|
599
|
-
"return_format": "object",
|
|
600
|
-
"acfe_add_post": 0,
|
|
601
|
-
"acfe_edit_post": 0,
|
|
602
|
-
"acfe_bidirectional": {
|
|
603
|
-
"acfe_bidirectional_enabled": "0"
|
|
604
|
-
},
|
|
605
|
-
"min": "",
|
|
606
|
-
"max": "",
|
|
607
|
-
"elements": "",
|
|
608
|
-
"bidirectional": 0,
|
|
609
|
-
"bidirectional_target": []
|
|
610
692
|
}
|
|
611
693
|
],
|
|
612
694
|
"location": [
|
|
@@ -635,5 +717,5 @@
|
|
|
635
717
|
"acfe_display_title": "",
|
|
636
718
|
"acfe_meta": "",
|
|
637
719
|
"acfe_note": "",
|
|
638
|
-
"modified":
|
|
720
|
+
"modified": 1760459614
|
|
639
721
|
}
|
package/package.json
CHANGED
package/public/assetList.mjs
CHANGED
|
@@ -27,5 +27,8 @@ const dynamicAssets = [
|
|
|
27
27
|
"./components/block-betterreviews-display-v3/betterreviews-display-v3.scss",
|
|
28
28
|
"./components/block-accordion-v3/accordion-v3.scss",
|
|
29
29
|
"./components/block-accent-image-v3/accent-image-v3.scss",
|
|
30
|
+
"./components/block-featured-image-gallery-v3/featured-image-gallery-v3.scss",
|
|
31
|
+
"./components/block-responsive-table-v3/responsive-table-v3.scss",
|
|
32
|
+
"./components/block-product-info-v3/product-info-v3.scss",
|
|
30
33
|
];
|
|
31
34
|
export default dynamicAssets;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
.featured-image-gallery-v3 {
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-template: "featured" "other"/1fr;
|
|
4
|
+
grid-gap: calc(var(--column-gap) / var(--design-reference) * var(--screen-width));
|
|
5
|
+
}
|
|
6
|
+
@media screen and (min-width: 768px) {
|
|
7
|
+
.featured-image-gallery-v3 {
|
|
8
|
+
grid-template: "featured other"/1fr 1fr;
|
|
9
|
+
grid-gap: calc(10 / var(--design-reference) * var(--screen-width));
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
.featured-image-gallery-v3__featured-image {
|
|
13
|
+
grid-area: featured;
|
|
14
|
+
-o-object-fit: cover;
|
|
15
|
+
object-fit: cover;
|
|
16
|
+
aspect-ratio: 1;
|
|
17
|
+
}
|
|
18
|
+
@media screen and (min-width: 768px) {
|
|
19
|
+
.featured-image-gallery-v3__featured-image {
|
|
20
|
+
width: 100%;
|
|
21
|
+
height: auto;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
.featured-image-gallery-v3__other-images {
|
|
25
|
+
grid-area: other;
|
|
26
|
+
align-self: stretch;
|
|
27
|
+
justify-self: stretch;
|
|
28
|
+
place-self: stretch;
|
|
29
|
+
display: grid;
|
|
30
|
+
grid-gap: calc(8 / var(--design-reference) * var(--screen-width));
|
|
31
|
+
grid-template-columns: 1fr 1fr 1fr;
|
|
32
|
+
grid-template-rows: 1fr;
|
|
33
|
+
grid-auto-rows: 1fr;
|
|
34
|
+
}
|
|
35
|
+
@media screen and (min-width: 768px) {
|
|
36
|
+
.featured-image-gallery-v3__other-images {
|
|
37
|
+
grid-auto-rows: initial;
|
|
38
|
+
grid-gap: calc(10 / var(--design-reference) * var(--screen-width));
|
|
39
|
+
grid-template-rows: 1fr 1fr 1fr;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
.featured-image-gallery-v3__image-wrapper {
|
|
43
|
+
display: flex;
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
box-shadow: 0px 0px 8px transparent;
|
|
46
|
+
transition: box-shadow 0.2s;
|
|
47
|
+
}
|
|
48
|
+
.featured-image-gallery-v3__image-wrapper:hover {
|
|
49
|
+
box-shadow: 0px 0px 8px white;
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
}
|
|
52
|
+
.featured-image-gallery-v3__image {
|
|
53
|
+
-o-object-fit: cover;
|
|
54
|
+
object-fit: cover;
|
|
55
|
+
aspect-ratio: 1;
|
|
56
|
+
width: 100%;
|
|
57
|
+
height: auto;
|
|
58
|
+
transition: transform 0.5s ease-out, filter 0.5s;
|
|
59
|
+
}
|
|
60
|
+
.featured-image-gallery-v3__image:hover {
|
|
61
|
+
filter: contrast(105%);
|
|
62
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
.responsive-table-v3__wrapper {
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-auto-flow: column;
|
|
4
|
+
grid-gap: calc(var(--global-inline-spacing) * var(--table-spacing-gap-desktop));
|
|
5
|
+
gap: calc(var(--global-inline-spacing) * var(--table-spacing-gap-desktop));
|
|
6
|
+
overflow: auto;
|
|
7
|
+
}
|
|
8
|
+
.responsive-table-v3__headings {
|
|
9
|
+
display: grid;
|
|
10
|
+
grid-auto-flow: column;
|
|
11
|
+
grid-column: 1/var(--headings);
|
|
12
|
+
grid-template-columns: subgrid;
|
|
13
|
+
}
|
|
14
|
+
.responsive-table-v3__heading {
|
|
15
|
+
grid-row: 1;
|
|
16
|
+
background-color: var(--background-column-headers);
|
|
17
|
+
padding: calc(5 / var(--design-reference) * var(--screen-width));
|
|
18
|
+
}
|
|
19
|
+
@media screen and (min-width: 768px) {
|
|
20
|
+
.responsive-table-v3__heading {
|
|
21
|
+
padding: calc(5 / var(--design-reference) * var(--screen-width));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
@media screen and (min-width: 1024px) {
|
|
25
|
+
.responsive-table-v3__heading {
|
|
26
|
+
padding: calc(5 / var(--design-reference) * var(--screen-width));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
.responsive-table-v3__item {
|
|
30
|
+
display: grid;
|
|
31
|
+
grid-auto-flow: column;
|
|
32
|
+
grid-column: 1/var(--headings);
|
|
33
|
+
grid-template-columns: subgrid;
|
|
34
|
+
}
|
|
35
|
+
.responsive-table-v3__item-value {
|
|
36
|
+
background-color: var(--background-colour-items);
|
|
37
|
+
padding: calc(5 / var(--design-reference) * var(--screen-width));
|
|
38
|
+
}
|
|
39
|
+
@media screen and (min-width: 768px) {
|
|
40
|
+
.responsive-table-v3__item-value {
|
|
41
|
+
padding: calc(5 / var(--design-reference) * var(--screen-width));
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
@media screen and (min-width: 1024px) {
|
|
45
|
+
.responsive-table-v3__item-value {
|
|
46
|
+
padding: calc(5 / var(--design-reference) * var(--screen-width));
|
|
47
|
+
}
|
|
48
|
+
}
|