@total_onion/onion-library 2.0.35 → 2.0.37
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-responsive-table-v3/group_6617ecc987ddd.json +458 -0
- package/components/block-responsive-table-v3/responsive-table-v3.js +7 -0
- package/components/block-responsive-table-v3/responsive-table-v3.php +14 -0
- package/components/block-responsive-table-v3/responsive-table-v3.scss +51 -0
- package/components/block-responsive-table-v3/responsive-table-v3.twig +45 -0
- package/components/component-accent-image-v3/accent-image-v3.twig +61 -56
- package/package.json +1 -1
|
@@ -0,0 +1,458 @@
|
|
|
1
|
+
{
|
|
2
|
+
"key": "group_6617ecc987ddd",
|
|
3
|
+
"title": "Block: Responsive Table v3",
|
|
4
|
+
"fields": [
|
|
5
|
+
{
|
|
6
|
+
"key": "field_6617ecc9e0805",
|
|
7
|
+
"label": "Content",
|
|
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
|
+
"user_roles": [
|
|
21
|
+
"all"
|
|
22
|
+
],
|
|
23
|
+
"placement": "top",
|
|
24
|
+
"endpoint": 0,
|
|
25
|
+
"no_preference": 0,
|
|
26
|
+
"selected": 0
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"key": "field_661f9ea2d7059",
|
|
30
|
+
"label": "Headings",
|
|
31
|
+
"name": "headings",
|
|
32
|
+
"aria-label": "",
|
|
33
|
+
"type": "repeater",
|
|
34
|
+
"instructions": "",
|
|
35
|
+
"required": 0,
|
|
36
|
+
"conditional_logic": 0,
|
|
37
|
+
"wrapper": {
|
|
38
|
+
"width": "",
|
|
39
|
+
"class": "",
|
|
40
|
+
"id": ""
|
|
41
|
+
},
|
|
42
|
+
"wpml_cf_preferences": 3,
|
|
43
|
+
"user_roles": [
|
|
44
|
+
"all"
|
|
45
|
+
],
|
|
46
|
+
"layout": "block",
|
|
47
|
+
"pagination": 0,
|
|
48
|
+
"min": 0,
|
|
49
|
+
"max": 0,
|
|
50
|
+
"collapsed": "",
|
|
51
|
+
"button_label": "Add Row",
|
|
52
|
+
"rows_per_page": 20,
|
|
53
|
+
"acfe_repeater_stylised_button": 0,
|
|
54
|
+
"sub_fields": [
|
|
55
|
+
{
|
|
56
|
+
"key": "field_661f9eb4d705a",
|
|
57
|
+
"label": "Heading",
|
|
58
|
+
"name": "heading",
|
|
59
|
+
"aria-label": "",
|
|
60
|
+
"type": "text",
|
|
61
|
+
"instructions": "",
|
|
62
|
+
"required": 0,
|
|
63
|
+
"conditional_logic": 0,
|
|
64
|
+
"wrapper": {
|
|
65
|
+
"width": "",
|
|
66
|
+
"class": "",
|
|
67
|
+
"id": ""
|
|
68
|
+
},
|
|
69
|
+
"wpml_cf_preferences": 2,
|
|
70
|
+
"default_value": "",
|
|
71
|
+
"maxlength": "",
|
|
72
|
+
"placeholder": "",
|
|
73
|
+
"prepend": "",
|
|
74
|
+
"append": "",
|
|
75
|
+
"parent_repeater": "field_661f9ea2d7059"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"key": "field_661fac6493d8e",
|
|
81
|
+
"label": "Items",
|
|
82
|
+
"name": "items",
|
|
83
|
+
"aria-label": "",
|
|
84
|
+
"type": "repeater",
|
|
85
|
+
"instructions": "",
|
|
86
|
+
"required": 0,
|
|
87
|
+
"conditional_logic": 0,
|
|
88
|
+
"wrapper": {
|
|
89
|
+
"width": "",
|
|
90
|
+
"class": "",
|
|
91
|
+
"id": ""
|
|
92
|
+
},
|
|
93
|
+
"wpml_cf_preferences": 3,
|
|
94
|
+
"user_roles": [
|
|
95
|
+
"all"
|
|
96
|
+
],
|
|
97
|
+
"layout": "block",
|
|
98
|
+
"pagination": 0,
|
|
99
|
+
"min": 0,
|
|
100
|
+
"max": 0,
|
|
101
|
+
"collapsed": "",
|
|
102
|
+
"button_label": "Add Row",
|
|
103
|
+
"rows_per_page": 20,
|
|
104
|
+
"acfe_repeater_stylised_button": 0,
|
|
105
|
+
"sub_fields": [
|
|
106
|
+
{
|
|
107
|
+
"key": "field_661fed2a7739a",
|
|
108
|
+
"label": "Item",
|
|
109
|
+
"name": "item",
|
|
110
|
+
"aria-label": "",
|
|
111
|
+
"type": "repeater",
|
|
112
|
+
"instructions": "",
|
|
113
|
+
"required": 0,
|
|
114
|
+
"conditional_logic": 0,
|
|
115
|
+
"wrapper": {
|
|
116
|
+
"width": "",
|
|
117
|
+
"class": "",
|
|
118
|
+
"id": ""
|
|
119
|
+
},
|
|
120
|
+
"wpml_cf_preferences": 3,
|
|
121
|
+
"layout": "block",
|
|
122
|
+
"pagination": 0,
|
|
123
|
+
"min": 0,
|
|
124
|
+
"max": 0,
|
|
125
|
+
"collapsed": "",
|
|
126
|
+
"button_label": "Add Row",
|
|
127
|
+
"rows_per_page": 20,
|
|
128
|
+
"parent_repeater": "field_661fac6493d8e",
|
|
129
|
+
"acfe_repeater_stylised_button": 0,
|
|
130
|
+
"sub_fields": [
|
|
131
|
+
{
|
|
132
|
+
"key": "field_6620fa81c99a8",
|
|
133
|
+
"label": "Item value",
|
|
134
|
+
"name": "item_value",
|
|
135
|
+
"aria-label": "",
|
|
136
|
+
"type": "wysiwyg",
|
|
137
|
+
"instructions": "",
|
|
138
|
+
"required": 0,
|
|
139
|
+
"conditional_logic": 0,
|
|
140
|
+
"wrapper": {
|
|
141
|
+
"width": "",
|
|
142
|
+
"class": "",
|
|
143
|
+
"id": ""
|
|
144
|
+
},
|
|
145
|
+
"wpml_cf_preferences": 2,
|
|
146
|
+
"default_value": "",
|
|
147
|
+
"acfe_wysiwyg_auto_init": 0,
|
|
148
|
+
"acfe_wysiwyg_height": 300,
|
|
149
|
+
"acfe_wysiwyg_max_height": "",
|
|
150
|
+
"acfe_wysiwyg_valid_elements": "",
|
|
151
|
+
"acfe_wysiwyg_custom_style": "",
|
|
152
|
+
"acfe_wysiwyg_disable_wp_style": 0,
|
|
153
|
+
"acfe_wysiwyg_autoresize": 0,
|
|
154
|
+
"acfe_wysiwyg_disable_resize": 0,
|
|
155
|
+
"acfe_wysiwyg_remove_path": 0,
|
|
156
|
+
"acfe_wysiwyg_menubar": 0,
|
|
157
|
+
"acfe_wysiwyg_transparent": 0,
|
|
158
|
+
"acfe_wysiwyg_merge_toolbar": 0,
|
|
159
|
+
"acfe_wysiwyg_custom_toolbar": 0,
|
|
160
|
+
"tabs": "visual",
|
|
161
|
+
"toolbar": "formatselect_align_bold_italic_underline_link_removeformat",
|
|
162
|
+
"media_upload": 0,
|
|
163
|
+
"delay": 0,
|
|
164
|
+
"acfe_wysiwyg_min_height": 300,
|
|
165
|
+
"acfe_wysiwyg_toolbar_buttons": [],
|
|
166
|
+
"parent_repeater": "field_661fed2a7739a"
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
}
|
|
170
|
+
]
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"key": "field_661ff114afbc0",
|
|
174
|
+
"label": "Table Settings",
|
|
175
|
+
"name": "",
|
|
176
|
+
"aria-label": "",
|
|
177
|
+
"type": "tab",
|
|
178
|
+
"instructions": "",
|
|
179
|
+
"required": 0,
|
|
180
|
+
"conditional_logic": 0,
|
|
181
|
+
"wrapper": {
|
|
182
|
+
"width": "",
|
|
183
|
+
"class": "",
|
|
184
|
+
"id": ""
|
|
185
|
+
},
|
|
186
|
+
"wpml_cf_preferences": 3,
|
|
187
|
+
"user_roles": [
|
|
188
|
+
"all"
|
|
189
|
+
],
|
|
190
|
+
"placement": "top",
|
|
191
|
+
"endpoint": 0,
|
|
192
|
+
"no_preference": 0,
|
|
193
|
+
"selected": 0
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"key": "field_661d6c6e1d10e",
|
|
197
|
+
"label": "Background Colour Headers",
|
|
198
|
+
"name": "background_column_headers",
|
|
199
|
+
"aria-label": "",
|
|
200
|
+
"type": "color_picker",
|
|
201
|
+
"instructions": "",
|
|
202
|
+
"required": 0,
|
|
203
|
+
"conditional_logic": 0,
|
|
204
|
+
"wrapper": {
|
|
205
|
+
"width": "",
|
|
206
|
+
"class": "",
|
|
207
|
+
"id": ""
|
|
208
|
+
},
|
|
209
|
+
"wpml_cf_preferences": 3,
|
|
210
|
+
"user_roles": [
|
|
211
|
+
"all"
|
|
212
|
+
],
|
|
213
|
+
"default_value": "",
|
|
214
|
+
"enable_opacity": 0,
|
|
215
|
+
"return_format": "string",
|
|
216
|
+
"display": "default",
|
|
217
|
+
"button_label": "Select Color",
|
|
218
|
+
"color_picker": true,
|
|
219
|
+
"absolute": false,
|
|
220
|
+
"input": true,
|
|
221
|
+
"allow_null": true,
|
|
222
|
+
"theme_colors": false,
|
|
223
|
+
"colors": []
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"key": "field_661ff6e53541b",
|
|
227
|
+
"label": "Background Colour Items",
|
|
228
|
+
"name": "background_colour_items",
|
|
229
|
+
"aria-label": "",
|
|
230
|
+
"type": "color_picker",
|
|
231
|
+
"instructions": "",
|
|
232
|
+
"required": 0,
|
|
233
|
+
"conditional_logic": 0,
|
|
234
|
+
"wrapper": {
|
|
235
|
+
"width": "",
|
|
236
|
+
"class": "",
|
|
237
|
+
"id": ""
|
|
238
|
+
},
|
|
239
|
+
"wpml_cf_preferences": 3,
|
|
240
|
+
"user_roles": [
|
|
241
|
+
"all"
|
|
242
|
+
],
|
|
243
|
+
"default_value": "",
|
|
244
|
+
"enable_opacity": 0,
|
|
245
|
+
"return_format": "string",
|
|
246
|
+
"display": "default",
|
|
247
|
+
"button_label": "Select Color",
|
|
248
|
+
"color_picker": true,
|
|
249
|
+
"absolute": false,
|
|
250
|
+
"input": true,
|
|
251
|
+
"allow_null": true,
|
|
252
|
+
"theme_colors": false,
|
|
253
|
+
"colors": []
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"key": "field_661ffbf23ba2f",
|
|
257
|
+
"label": "Table Spacing gap",
|
|
258
|
+
"name": "table_spacing_gap",
|
|
259
|
+
"aria-label": "",
|
|
260
|
+
"type": "number",
|
|
261
|
+
"instructions": "",
|
|
262
|
+
"required": 0,
|
|
263
|
+
"conditional_logic": 0,
|
|
264
|
+
"wrapper": {
|
|
265
|
+
"width": "",
|
|
266
|
+
"class": "",
|
|
267
|
+
"id": ""
|
|
268
|
+
},
|
|
269
|
+
"wpml_cf_preferences": 3,
|
|
270
|
+
"user_roles": [
|
|
271
|
+
"all"
|
|
272
|
+
],
|
|
273
|
+
"default_value": "0.5",
|
|
274
|
+
"min": 0,
|
|
275
|
+
"max": 4,
|
|
276
|
+
"placeholder": "",
|
|
277
|
+
"step": "0.125",
|
|
278
|
+
"prepend": "",
|
|
279
|
+
"append": ""
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"key": "field_6617edbb6d83c",
|
|
283
|
+
"label": "Block Settings",
|
|
284
|
+
"name": "",
|
|
285
|
+
"aria-label": "",
|
|
286
|
+
"type": "tab",
|
|
287
|
+
"instructions": "",
|
|
288
|
+
"required": 0,
|
|
289
|
+
"conditional_logic": 0,
|
|
290
|
+
"wrapper": {
|
|
291
|
+
"width": "",
|
|
292
|
+
"class": "",
|
|
293
|
+
"id": ""
|
|
294
|
+
},
|
|
295
|
+
"wpml_cf_preferences": 3,
|
|
296
|
+
"user_roles": [
|
|
297
|
+
"all"
|
|
298
|
+
],
|
|
299
|
+
"placement": "top",
|
|
300
|
+
"endpoint": 0,
|
|
301
|
+
"no_preference": 0,
|
|
302
|
+
"selected": 0
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"key": "field_6617ee196d83d",
|
|
306
|
+
"label": "Block",
|
|
307
|
+
"name": "",
|
|
308
|
+
"aria-label": "",
|
|
309
|
+
"type": "accordion",
|
|
310
|
+
"instructions": "",
|
|
311
|
+
"required": 0,
|
|
312
|
+
"conditional_logic": 0,
|
|
313
|
+
"wrapper": {
|
|
314
|
+
"width": "",
|
|
315
|
+
"class": "",
|
|
316
|
+
"id": ""
|
|
317
|
+
},
|
|
318
|
+
"wpml_cf_preferences": 3,
|
|
319
|
+
"user_roles": [
|
|
320
|
+
"all"
|
|
321
|
+
],
|
|
322
|
+
"open": 0,
|
|
323
|
+
"multi_expand": 0,
|
|
324
|
+
"endpoint": 0
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"key": "field_6617ee366d83e",
|
|
328
|
+
"label": "Block Settings",
|
|
329
|
+
"name": "block_settings",
|
|
330
|
+
"aria-label": "",
|
|
331
|
+
"type": "clone",
|
|
332
|
+
"instructions": "",
|
|
333
|
+
"required": 0,
|
|
334
|
+
"conditional_logic": 0,
|
|
335
|
+
"wrapper": {
|
|
336
|
+
"width": "",
|
|
337
|
+
"class": "",
|
|
338
|
+
"id": ""
|
|
339
|
+
},
|
|
340
|
+
"wpml_cf_preferences": 3,
|
|
341
|
+
"clone": [
|
|
342
|
+
"group_689f649af2ac4"
|
|
343
|
+
],
|
|
344
|
+
"display": "seamless",
|
|
345
|
+
"layout": "block",
|
|
346
|
+
"prefix_label": 0,
|
|
347
|
+
"prefix_name": 0,
|
|
348
|
+
"acfe_seamless_style": 0,
|
|
349
|
+
"acfe_clone_modal": 0,
|
|
350
|
+
"acfe_clone_modal_close": 0,
|
|
351
|
+
"acfe_clone_modal_button": "",
|
|
352
|
+
"acfe_clone_modal_size": "large"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"key": "field_6617ee9f749c9",
|
|
356
|
+
"label": "Block end",
|
|
357
|
+
"name": "",
|
|
358
|
+
"aria-label": "",
|
|
359
|
+
"type": "accordion",
|
|
360
|
+
"instructions": "",
|
|
361
|
+
"required": 0,
|
|
362
|
+
"conditional_logic": 0,
|
|
363
|
+
"wrapper": {
|
|
364
|
+
"width": "",
|
|
365
|
+
"class": "",
|
|
366
|
+
"id": ""
|
|
367
|
+
},
|
|
368
|
+
"wpml_cf_preferences": 3,
|
|
369
|
+
"user_roles": [
|
|
370
|
+
"all"
|
|
371
|
+
],
|
|
372
|
+
"open": 0,
|
|
373
|
+
"multi_expand": 0,
|
|
374
|
+
"endpoint": 1
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"key": "field_6617f00de88a6",
|
|
378
|
+
"label": "Block Padding",
|
|
379
|
+
"name": "",
|
|
380
|
+
"aria-label": "",
|
|
381
|
+
"type": "tab",
|
|
382
|
+
"instructions": "",
|
|
383
|
+
"required": 0,
|
|
384
|
+
"conditional_logic": 0,
|
|
385
|
+
"wrapper": {
|
|
386
|
+
"width": "",
|
|
387
|
+
"class": "",
|
|
388
|
+
"id": ""
|
|
389
|
+
},
|
|
390
|
+
"wpml_cf_preferences": 3,
|
|
391
|
+
"user_roles": [
|
|
392
|
+
"all"
|
|
393
|
+
],
|
|
394
|
+
"placement": "top",
|
|
395
|
+
"endpoint": 0,
|
|
396
|
+
"no_preference": 0,
|
|
397
|
+
"selected": 0
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"key": "field_6617f032e88a7",
|
|
401
|
+
"label": "block padding fields",
|
|
402
|
+
"name": "block_padding_fields",
|
|
403
|
+
"aria-label": "",
|
|
404
|
+
"type": "clone",
|
|
405
|
+
"instructions": "",
|
|
406
|
+
"required": 0,
|
|
407
|
+
"conditional_logic": 0,
|
|
408
|
+
"wrapper": {
|
|
409
|
+
"width": "",
|
|
410
|
+
"class": "",
|
|
411
|
+
"id": ""
|
|
412
|
+
},
|
|
413
|
+
"wpml_cf_preferences": 3,
|
|
414
|
+
"user_roles": [
|
|
415
|
+
"all"
|
|
416
|
+
],
|
|
417
|
+
"clone": [
|
|
418
|
+
"group_638f4148bc10b"
|
|
419
|
+
],
|
|
420
|
+
"display": "seamless",
|
|
421
|
+
"layout": "block",
|
|
422
|
+
"prefix_label": 0,
|
|
423
|
+
"prefix_name": 0,
|
|
424
|
+
"acfe_seamless_style": 0,
|
|
425
|
+
"acfe_clone_modal": 0,
|
|
426
|
+
"acfe_clone_modal_close": 0,
|
|
427
|
+
"acfe_clone_modal_button": "",
|
|
428
|
+
"acfe_clone_modal_size": "large"
|
|
429
|
+
}
|
|
430
|
+
],
|
|
431
|
+
"location": [
|
|
432
|
+
[
|
|
433
|
+
{
|
|
434
|
+
"param": "block",
|
|
435
|
+
"operator": "==",
|
|
436
|
+
"value": "acf\/responsive-table-v3"
|
|
437
|
+
}
|
|
438
|
+
]
|
|
439
|
+
],
|
|
440
|
+
"menu_order": 0,
|
|
441
|
+
"position": "normal",
|
|
442
|
+
"style": "default",
|
|
443
|
+
"label_placement": "top",
|
|
444
|
+
"instruction_placement": "label",
|
|
445
|
+
"hide_on_screen": "",
|
|
446
|
+
"active": true,
|
|
447
|
+
"description": "",
|
|
448
|
+
"show_in_rest": 0,
|
|
449
|
+
"acfe_autosync": [
|
|
450
|
+
"json"
|
|
451
|
+
],
|
|
452
|
+
"acfml_field_group_mode": "localization",
|
|
453
|
+
"acfe_form": 0,
|
|
454
|
+
"acfe_display_title": "",
|
|
455
|
+
"acfe_meta": "",
|
|
456
|
+
"acfe_note": "",
|
|
457
|
+
"modified": 1760027002
|
|
458
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
acf_register_block_type(
|
|
4
|
+
array(
|
|
5
|
+
'name' => 'responsive-table-v3',
|
|
6
|
+
'title' => __('Responsive table v3', 'Global-theme Admin'),
|
|
7
|
+
'render_callback' => 'athena_block_render_post_object_v3',
|
|
8
|
+
'category' => 'common',
|
|
9
|
+
'icon' => get_svg_icon_content('brick.svg'),
|
|
10
|
+
'keywords' => array('content', 'text'),
|
|
11
|
+
'mode' => 'preview',
|
|
12
|
+
'supports' => array('align' => false, 'anchor' => true),
|
|
13
|
+
)
|
|
14
|
+
);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
@use 'Assets/scss/modules/library-modules/core-mixins/core-mixins';
|
|
2
|
+
@use 'Assets/scss/modules/library-modules/core-functions/core-functions';
|
|
3
|
+
@use 'Assets/scss/theme/breakpoints';
|
|
4
|
+
@use 'Assets/scss/blocks/responsive-table/responsive-table-extra';
|
|
5
|
+
|
|
6
|
+
.responsive-table-v3 {
|
|
7
|
+
&__wrapper {
|
|
8
|
+
display: grid;
|
|
9
|
+
grid-auto-flow: column;
|
|
10
|
+
gap: calc(
|
|
11
|
+
var(--global-inline-spacing) * var(--table-spacing-gap-desktop)
|
|
12
|
+
);
|
|
13
|
+
overflow: auto;
|
|
14
|
+
}
|
|
15
|
+
&__headings {
|
|
16
|
+
display: grid;
|
|
17
|
+
grid-auto-flow: column;
|
|
18
|
+
grid-column: 1/ (var(--headings));
|
|
19
|
+
grid-template-columns: subgrid;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&__heading {
|
|
23
|
+
grid-row: 1;
|
|
24
|
+
background-color: var(--background-column-headers);
|
|
25
|
+
padding: core-functions.fluidSize(5, 'mobile');
|
|
26
|
+
@include core-mixins.device(breakpoints.$tabPortrait) {
|
|
27
|
+
padding: core-functions.fluidSize(5, 'portrait');
|
|
28
|
+
}
|
|
29
|
+
@include core-mixins.device(breakpoints.$tabLandscape) {
|
|
30
|
+
padding: core-functions.fluidSize(5, 'desktop');
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
&__item {
|
|
34
|
+
display: grid;
|
|
35
|
+
grid-auto-flow: column;
|
|
36
|
+
grid-column: 1/ (var(--headings));
|
|
37
|
+
grid-template-columns: subgrid;
|
|
38
|
+
}
|
|
39
|
+
&__item-value {
|
|
40
|
+
background-color: var(--background-colour-items);
|
|
41
|
+
padding: core-functions.fluidSize(5, 'mobile');
|
|
42
|
+
@include core-mixins.device(breakpoints.$tabPortrait) {
|
|
43
|
+
padding: core-functions.fluidSize(5, 'portrait');
|
|
44
|
+
}
|
|
45
|
+
@include core-mixins.device(breakpoints.$tabLandscape) {
|
|
46
|
+
padding: core-functions.fluidSize(5, 'desktop');
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@include responsive-table-extra.additionalStyles();
|
|
51
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{% set blockClassName = "responsive-table-v3" %}
|
|
2
|
+
{% set classNameEntryPoint = include('entry-points/entry-point-classes.twig', { fields, block }, with_context = false) %}
|
|
3
|
+
{% set htmlEntryPoint = include('entry-points/entry-point-html-v3.twig', { fields, block, blockClassName, options, environment, is_preview, nav_menus }, with_context = false) %}
|
|
4
|
+
{% set dataAttributeEntryPoint = include('entry-points/entry-point-data-attribute.twig', { fields, block }, with_context = false) %}
|
|
5
|
+
{% set styleEntryPoint = include('entry-points/entry-point-style-v3.twig', { fields, block, displaytype, is_preview }, with_context = false) %}
|
|
6
|
+
{% set previewEntryPoint = include('entry-points/entry-point-preview-info.twig', { fields, block, displaytype, is_preview }, with_context = false) %}
|
|
7
|
+
|
|
8
|
+
{% set columnsLimit = fields.headings|length %}
|
|
9
|
+
{% set TabCellFlexDirection = fields.table_cell_direction|ru %}
|
|
10
|
+
{% set columnCount = '--headings: ' ~ (columnsLimit + 1) ~ ';' %}
|
|
11
|
+
{% set bgColourHeader = '--background-column-headers: ' ~ fields.background_column_headers|ru ~ ';' %}
|
|
12
|
+
{% set bgColourItems = '--background-colour-items:' ~ fields.background_colour_items|ru ~ ';' %}
|
|
13
|
+
{% set spacingGapDesktop = '--table-spacing-gap-desktop:' ~ fields.table_spacing_gap|ru ~ ';' %}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
{% set textStyle = include('components/text-style.twig', {field, post}) %}
|
|
17
|
+
|
|
18
|
+
{% set elementStyles = textStyle %}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
{% set sectionStyles = styleEntryPoint ~ elementStyles ~ columnCount ~ bgColourItems ~ bgColourHeader ~ spacingGapDesktop %}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{block.className}} {{classNameEntryPoint}} lazy-fade" {{dataAttributeEntryPoint}} data-jsload="false" data-blockid="{{block.id}}" style="{{sectionStyles}}" data-assetkey="{{blockClassName}}">
|
|
25
|
+
<div class="{{ blockClassName }}__wrapper" style=" {{columnCount}}" aria-hidden="true">
|
|
26
|
+
<div class="{{ blockClassName }}__headings ">
|
|
27
|
+
{% for field in fields.headings %}
|
|
28
|
+
<div class="{{ blockClassName }}__heading" aria-hidden="true">
|
|
29
|
+
{{field.heading}}</div>
|
|
30
|
+
{% endfor %}
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
{% for field in fields.items %}
|
|
34
|
+
<div class="{{ blockClassName }}__item" aria-hidden="true">
|
|
35
|
+
{% for element in field.item|slice(0, columnsLimit) %}
|
|
36
|
+
<div class="{{ blockClassName }}__item-value">{{element.item_value}}</div>
|
|
37
|
+
{% endfor %}
|
|
38
|
+
</div>
|
|
39
|
+
|
|
40
|
+
{% endfor %}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</div>
|
|
44
|
+
{{htmlEntryPoint}}
|
|
45
|
+
</section>
|
|
@@ -1,74 +1,79 @@
|
|
|
1
1
|
{% if fields.accent_image_v3.enable_accent_image_v3 %}
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
2
|
+
{% for image in fields.accent_image_v3.accent_images %}
|
|
3
|
+
{% set accentImage = get_image(image.accent_image_v3_image) %}
|
|
4
|
+
{% set rotationDesktop = image.desktop_positioning.image_rotation_desktop|default(0) %}
|
|
5
|
+
{% set rotationMobile = image.mobile_positioning.image_rotation_mobile|default(rotationDesktop) %}
|
|
6
|
+
{% set opacity = image.accent_image_opacity|default(1) %}
|
|
7
|
+
{% set borderRadius = image.accent_image_border_radius|default('0px') %}
|
|
8
|
+
{% set zIndex = image.accent_z_index %}
|
|
9
|
+
{% set mobileSettings = image.mobile_positioning %}
|
|
10
|
+
{% set oneHundredWidth = image.set_width_and_height_to_100 %}
|
|
11
|
+
{% set imageFitStyle = image.image_fit_style|ru %}
|
|
12
|
+
{% if image.use_desktop_positioning_for_mobile %}
|
|
13
|
+
{% set mobileSettings = image.desktop_positioning %}
|
|
14
|
+
{% endif %}
|
|
15
|
+
{% set mobilePositioning = mobileSettings.horizontal_offset ~ '% ' ~ mobileSettings.vertical_offset ~ '%' %}
|
|
16
|
+
{% set desktopPositioning = image.desktop_positioning.horizontal_offset ~ '% ' ~ image.desktop_positioning.vertical_offset ~ '%' %}
|
|
17
|
+
{% set desktopWidth = 'calc(' ~ image.desktop_accent_image_width ~ '/ var(--desktop-design-reference) * var(--screen-width-desktop))' %}
|
|
18
|
+
{% set mobileWidth = 'calc(' ~ image.mobile_accent_image_width ~ '/ var(--mobile-design-reference) * var(--screen-width-mobile))' %}
|
|
19
|
+
{% if oneHundredWidth %}
|
|
20
|
+
{% set desktopWidth = '100%' %}
|
|
21
|
+
{% set mobileWidth = '100%' %}
|
|
22
|
+
{% endif %}
|
|
23
|
+
{% set accentImageContainerElement = 'div' %}
|
|
24
|
+
{% set accentImageCtaType = image.accent_image_cta_type|ru %}
|
|
25
|
+
{% if image.enable_accent_image_cta %}
|
|
26
|
+
{% if image.accent_image_cta_type|ru == 'link' %}
|
|
27
|
+
{% set accentImageContainerElement = 'a' %}
|
|
28
|
+
{% endif %}
|
|
29
|
+
{% endif %}
|
|
30
30
|
{% set suffix = block.id ~ '-' ~ loop.index %}
|
|
31
31
|
{% if image.animations.enable_animations %}
|
|
32
|
-
{{include('components/animations-style.twig', { fields: image, suffix }, with_context = false)}}
|
|
32
|
+
{{include('components/animations-style-v3.twig', { fields: image, suffix }, with_context = false)}}
|
|
33
33
|
{% endif %}
|
|
34
|
-
|
|
34
|
+
<style>
|
|
35
35
|
.loaded .{{block.id}}-{{loop.index}}.{{blockClassName}}__accent-image {
|
|
36
|
-
{{include('components/animations.twig', { fields: image, block: block, blockClassName: blockClassName, suffix }, with_context = false)}}
|
|
37
|
-
animation: var(--animation-name) var(--animation-duration)
|
|
38
|
-
var(--animation-delay) var(--animation-easing)
|
|
39
|
-
var(--animation-repeat) var(--animation-fill-mode)
|
|
40
|
-
var(--animation-direction);
|
|
36
|
+
{{include('components/animations-v3.twig', { fields: image, block: block, blockClassName: blockClassName, suffix }, with_context = false)}}
|
|
37
|
+
animation: var(--animation-name) var(--animation-duration) var(--animation-delay) var(--animation-easing) var(--animation-repeat) var(--animation-fill-mode) var(--animation-direction);
|
|
41
38
|
}
|
|
42
39
|
.{{block.id}}-{{loop.index}}.{{blockClassName}}__accent-image {
|
|
43
|
-
z-index: {{zIndex}}
|
|
40
|
+
z-index: {{zIndex}}
|
|
41
|
+
;
|
|
44
42
|
grid-area: main;
|
|
45
43
|
pointer-events: {{image.enable_accent_image_cta ? 'all' : 'none'}};
|
|
46
44
|
position: absolute;
|
|
47
45
|
place-self: {{mobileSettings.vertical_snap|ru}}
|
|
48
|
-
{{mobileSettings.horizontal_snap|ru}}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
{{mobileSettings.horizontal_snap|ru}}
|
|
47
|
+
;
|
|
48
|
+
width: {{mobileWidth}}
|
|
49
|
+
;
|
|
50
|
+
height: {{mobileWidth}}
|
|
51
|
+
;
|
|
52
|
+
translate: {{mobilePositioning}}
|
|
53
|
+
;
|
|
52
54
|
}
|
|
53
55
|
.{{block.id}}-{{loop.index}}.{{blockClassName}}__accent-image .{{blockClassName}}__image-element.element {
|
|
54
56
|
width: 100%;
|
|
55
57
|
height: 100%;
|
|
56
58
|
display: flex;
|
|
57
|
-
object-fit: {{imageFitStyle}}
|
|
58
|
-
|
|
59
|
+
object-fit: {{imageFitStyle}}
|
|
60
|
+
;
|
|
61
|
+
border-radius: {{borderRadius}}
|
|
62
|
+
;
|
|
59
63
|
border: 0 solid transparent;
|
|
60
|
-
opacity: {{opacity}}
|
|
64
|
+
opacity: {{opacity}}
|
|
65
|
+
;
|
|
61
66
|
rotate: {{rotationMobile ~ 'deg'}};
|
|
62
67
|
}
|
|
63
68
|
.{{blockClassName}}__image-number {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
z-index: 99;
|
|
70
|
+
position: absolute;
|
|
71
|
+
font-size: 40px;
|
|
72
|
+
left: 50%;
|
|
73
|
+
top: 50%;
|
|
74
|
+
transform: translate(-50%, -50%);
|
|
75
|
+
color: white;
|
|
76
|
+
text-shadow: 1px 1px 1px blue;
|
|
72
77
|
}
|
|
73
78
|
@media screen and (min-width: 768px) {
|
|
74
79
|
.{{block.id}}-{{loop.index}}.{{blockClassName}}__accent-image {
|
|
@@ -90,7 +95,7 @@
|
|
|
90
95
|
}
|
|
91
96
|
}
|
|
92
97
|
</style>
|
|
93
|
-
|
|
98
|
+
<{{accentImageContainerElement}}
|
|
94
99
|
{{accentImageCtaType == 'link' ? 'href="' ~ image.accent_image_link.url ~ '" ' ~ 'target="' ~ image.accent_image_link.target ~ '" ' : ''}}
|
|
95
100
|
class="{{block.id}}-{{ loop.index }} {{blockClassName}}__accent-image">
|
|
96
101
|
<img
|
|
@@ -101,9 +106,9 @@
|
|
|
101
106
|
alt="{{ accentImage.alt }}"
|
|
102
107
|
loading="lazy"
|
|
103
108
|
/>
|
|
104
|
-
{% if fields.accent_image_v3.show_image_number and is_preview%}
|
|
109
|
+
{% if fields.accent_image_v3.show_image_number and is_preview %}
|
|
105
110
|
<div class="{{blockClassName}}__image-number">{{ loop.index }}</div>
|
|
106
111
|
{% endif %}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
{% endif %}
|
|
112
|
+
</{{accentImageContainerElement}}>
|
|
113
|
+
{% endfor %}
|
|
114
|
+
{% endif %}
|