@total_onion/onion-library 2.0.264 → 3.0.0

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 (33) hide show
  1. package/components/block-carousel-multi-layout-v3/carousel-multi-layout-v3.js +13 -1
  2. package/components/component-responsive-image-v3/responsive-image-v3.scss +1 -0
  3. package/onion-utils.mjs +0 -49
  4. package/package.json +10 -18
  5. package/components/block-post-type-filter-grid-v3/group_64690c62487bc.json +0 -4389
  6. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/better-reviews-widget.vue +0 -15
  7. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/buy-now-widget.vue +0 -72
  8. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/divider-widget.vue +0 -11
  9. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/global-image-widget.vue +0 -23
  10. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/media-widget.vue +0 -23
  11. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-author-widget.vue +0 -15
  12. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-category-widget.vue +0 -20
  13. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-component.vue +0 -73
  14. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-headline-widget.vue +0 -16
  15. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-image-widget.vue +0 -60
  16. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-info-description.vue +0 -15
  17. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-info-subtitle.vue +0 -15
  18. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-link-widget.vue +0 -47
  19. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-publish-widget.vue +0 -44
  20. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-tags-widget.vue +0 -19
  21. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-text-alternative-style.vue +0 -18
  22. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-title-widget.vue +0 -20
  23. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/pre-render-posts-html.twig +0 -17
  24. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/ptfg-posts.twig +0 -474
  25. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/ptfg-utils.vue +0 -41
  26. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/shopify-add-to-cart.vue +0 -25
  27. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/spacer-widget.vue +0 -13
  28. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/text-search.vue +0 -10
  29. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3.js +0 -14
  30. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3.php +0 -17
  31. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3.scss +0 -762
  32. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3.twig +0 -139
  33. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3.vue +0 -811
@@ -1,762 +0,0 @@
1
- @use '../fields-core-mixins-v3/core-mixins-v3';
2
- @use '../fields-core-functions-v3/core-functions-v3';
3
- @use '../../breakpoints';
4
- @use '../component-grid-layout-element-v3/grid-layout-element-v3';
5
- @use '../component-element-positioning-v3/element-positioning-v3';
6
-
7
- .post-type-filter-grid-v3 {
8
- z-index: 10;
9
- position: relative;
10
- pointer-events: all;
11
- background-color: var(--block-background-colour);
12
-
13
- &__main-container {
14
- display: grid;
15
- column-gap: var(--global-inline-spacing);
16
- grid-template:
17
- 'filter '
18
- 'sort'
19
- 'markettoggle'
20
- 'grid'
21
- 'loadmore' / 1fr;
22
-
23
- &--hide-filters {
24
- grid-template:
25
- 'markettoggle'
26
- 'grid'
27
- 'loadmore' / 1fr;
28
- }
29
-
30
- @include core-mixins-v3.device(breakpoints.$tabPortrait) {
31
- grid-template:
32
- 'filter markettoggle grid'
33
- 'sort markettoggle grid'
34
- '... loadmore' / 1fr 4fr;
35
-
36
- &--hide-filters {
37
- grid-template:
38
- 'markettoggle'
39
- 'grid'
40
- 'loadmore' / 1fr;
41
- }
42
-
43
- &[data-layout='2'] {
44
- grid-template:
45
- 'filter '
46
- 'sort'
47
- 'markettoggle'
48
- 'grid'
49
- 'loadmore' / 1fr;
50
- }
51
- &[data-layout='3'] {
52
- grid-template:
53
- 'filter '
54
- 'sort'
55
- 'markettoggle'
56
- 'grid'
57
- 'loadmore' / 1fr;
58
- }
59
- }
60
- }
61
-
62
- &__filter {
63
- position: relative;
64
- position: sticky;
65
- top: 10px;
66
- z-index: 200;
67
- display: grid;
68
- top: core-functions-v3.fluidSize(80, 'mobile');
69
- background-color: var(--filter-background-colour-mobile);
70
- place-items: center;
71
-
72
- &[data-layout='2'] {
73
- width: 100%;
74
- padding-bottom: calc(var(--global-inline-spacing) / 2);
75
- }
76
-
77
- @include core-mixins-v3.device(breakpoints.$tabPortrait) {
78
- top: core-functions-v3.fluidSize(140, 'portrait');
79
- }
80
-
81
- @include core-mixins-v3.device(breakpoints.$tabLandscape) {
82
- background-color: var(--filter-background-colour);
83
- top: 0;
84
- }
85
- }
86
-
87
- &__filter-container {
88
- position: relative;
89
- height: 0;
90
- overflow: hidden;
91
- width: 100%;
92
- background-color: var(--filter-background-colour-mobile);
93
-
94
- @include core-mixins-v3.device(breakpoints.$tabPortrait) {
95
- height: auto;
96
- background-color: transparent;
97
-
98
- &[data-layout='2'] {
99
- display: flex;
100
- gap: core-functions-v3.fluidSize(20, 'desktop');
101
- grid-auto-flow: column;
102
- grid-auto-columns: max-content;
103
- justify-content: flex-start;
104
- grid-auto-flow: row;
105
- width: auto;
106
- max-width: 100%;
107
- grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
108
- }
109
- }
110
-
111
- &--open {
112
- height: auto;
113
- position: absolute;
114
- top: 100%;
115
- box-shadow: 0px 4px 4px 0px #00000045;
116
- display: flex;
117
- flex-wrap: wrap;
118
- gap: 10px;
119
- }
120
- }
121
-
122
- &__open-filter-toggle {
123
- position: relative;
124
- position: sticky;
125
- width: 100%;
126
- cursor: pointer;
127
-
128
- &--open {
129
- color: white;
130
- }
131
- }
132
-
133
- button.post-type-filter-grid-v3__open-filter-toggle {
134
- @include core-mixins-v3.device(breakpoints.$tabPortrait) {
135
- display: none;
136
- }
137
-
138
- @include core-mixins-v3.device(breakpoints.$tabLandscape) {
139
- display: none;
140
- }
141
- }
142
-
143
- &__filter-top-level-category-name {
144
- position: relative;
145
-
146
- &::after {
147
- transition: transform 0.3s;
148
- content: '';
149
- width: 0.8em;
150
- height: 0.8em;
151
- background-color: var(--theme-primary-text-colour);
152
- position: absolute;
153
- translate: 160%;
154
- right: 0;
155
- clip-path: polygon(100% 0, 0 0, 50% 100%);
156
- rotate: 180deg;
157
- bottom: core-functions-v3.fluidSize(3, 'static');
158
- transform-origin: center;
159
- }
160
- }
161
-
162
- &__filter-categories {
163
- display: grid;
164
- top: 0;
165
- gap: core-functions-v3.fluidSize(10, 'mobile');
166
- grid-template-columns: 1fr;
167
- padding-bottom: var(--global-inline-spacing);
168
- width: 100%;
169
-
170
- &[data-layout='2'] {
171
- padding-bottom: unset;
172
- }
173
-
174
- @include core-mixins-v3.device(breakpoints.$tabPortrait) {
175
- grid-template-columns: 1fr;
176
- position: relative;
177
- gap: core-functions-v3.fluidSize(20, 'portrait');
178
-
179
- &[data-layout='2'] {
180
- grid-auto-flow: column;
181
- grid-auto-columns: 1fr;
182
- width: max-content;
183
- margin: unset;
184
- }
185
- }
186
- @include core-mixins-v3.device(breakpoints.$tabLandscape) {
187
- gap: core-functions-v3.fluidSize(30, 'desktop');
188
- }
189
- }
190
-
191
- &__filter-category {
192
- flex-direction: column;
193
- width: 100%;
194
-
195
- &.active {
196
- .post-type-filter-grid-v3__filter-subcategory-list {
197
- max-height: 1000px;
198
- }
199
-
200
- .post-type-filter-grid-v3__filter-top-level-category-name {
201
- &::after {
202
- rotate: 0deg;
203
- }
204
- }
205
- }
206
- }
207
-
208
- &__filter-subcategory-list {
209
- list-style-type: none;
210
- display: flex;
211
- flex-wrap: wrap;
212
- width: 100%;
213
- gap: core-functions-v3.fluidSize(var(--filter-category-gap), 'mobile');
214
- transition: 0.3s;
215
- max-height: 0px;
216
- overflow: hidden;
217
- &::-webkit-scrollbar {
218
- display: none;
219
- }
220
-
221
- @include core-mixins-v3.device(breakpoints.$tabPortrait) {
222
- gap: core-functions-v3.fluidSize(
223
- var(--filter-category-gap),
224
- 'portrait'
225
- );
226
- }
227
-
228
- @include core-mixins-v3.device(breakpoints.$tabLandscape) {
229
- gap: core-functions-v3.fluidSize(
230
- var(--filter-category-gap),
231
- 'desktop'
232
- );
233
- }
234
-
235
- &[data-layout='2'] {
236
- @include core-mixins-v3.device(breakpoints.$tabLandscape) {
237
- grid-auto-flow: column;
238
- }
239
- }
240
- }
241
-
242
- &__filter-subcategory-list-item {
243
- width: auto;
244
-
245
- @include core-mixins-v3.device(breakpoints.$tabLandscape) {
246
- width: initial;
247
- }
248
-
249
- &[data-layout='2'] {
250
- margin: unset;
251
- @include core-mixins-v3.device(breakpoints.$tabPortrait) {
252
- margin: auto;
253
- }
254
- @include core-mixins-v3.device(breakpoints.$tabLandscape) {
255
- margin: auto;
256
- }
257
- }
258
- }
259
- &__filter-subcategory-button-icon {
260
- width: 1em;
261
- }
262
-
263
- &__sort-container {
264
- grid-area: sort;
265
- }
266
-
267
- &__sort {
268
- display: none;
269
- position: relative;
270
- width: max-content;
271
-
272
- &:hover {
273
- cursor: pointer;
274
- }
275
- }
276
- &--micro-gap {
277
- .post-type-filter-grid-v3__grid {
278
- gap: core-functions-v3.fluidSize(
279
- var(--micro-grid-gap-amount),
280
- 'static'
281
- );
282
- }
283
- }
284
- &__market-toggle {
285
- background: var(--black);
286
- align-items: center;
287
- display: inline-flex;
288
- gap: core-functions-v3.fluidSize(10, 'static');
289
- padding: core-functions-v3.fluidSize(15, 'static')
290
- core-functions-v3.fluidSize(10, 'static');
291
- @include core-mixins-v3.device(breakpoints.$tabPortrait) {
292
- padding: core-functions-v3.fluidSize(15, 'static');
293
- }
294
- }
295
- &__switch {
296
- align-items: center;
297
- display: inline-flex;
298
- gap: core-functions-v3.fluidSize(10, 'static');
299
- @include core-mixins-v3.device(breakpoints.$tabPortrait) {
300
- gap: core-functions-v3.fluidSize(20, 'static');
301
- }
302
- margin: auto;
303
- }
304
-
305
- &__switch-toggle {
306
- display: inline-block;
307
- position: relative;
308
- height: core-functions-v3.fluidSize(26, 'static');
309
- width: core-functions-v3.fluidSize(50, 'static');
310
- @include core-mixins-v3.device(breakpoints.$tabPortrait) {
311
- height: core-functions-v3.fluidSize(34, 'static');
312
- width: core-functions-v3.fluidSize(68, 'static');
313
- }
314
-
315
- input {
316
- opacity: 0;
317
- width: 0;
318
- height: 0;
319
- }
320
-
321
- .switch-slider {
322
- background-color: var(--palette-default-1);
323
- border-radius: core-functions-v3.fluidSize(34, 'static');
324
- bottom: 0;
325
- cursor: pointer;
326
- height: core-functions-v3.fluidSize(26, 'static');
327
- left: 0;
328
- top: 0;
329
- position: absolute;
330
- right: 0;
331
- transition: 0.4s;
332
- width: core-functions-v3.fluidSize(50, 'static');
333
- @include core-mixins-v3.device(breakpoints.$tabPortrait) {
334
- height: core-functions-v3.fluidSize(34, 'static');
335
- width: core-functions-v3.fluidSize(68, 'static');
336
- }
337
-
338
- &::before {
339
- background-color: var(--black);
340
- border-radius: 50%;
341
- bottom: core-functions-v3.fluidSize(2, 'static');
342
- content: '';
343
- height: core-functions-v3.fluidSize(22, 'static');
344
- right: core-functions-v3.fluidSize(2, 'static');
345
- position: absolute;
346
- transition: 0.4s;
347
- width: core-functions-v3.fluidSize(22, 'static');
348
- @include core-mixins-v3.device(breakpoints.$tabPortrait) {
349
- height: core-functions-v3.fluidSize(30, 'static');
350
- width: core-functions-v3.fluidSize(30, 'static');
351
- }
352
- }
353
- }
354
-
355
- input:checked + .switch-slider::before {
356
- transform: translateX(core-functions-v3.fluidSize(-24, 'static'));
357
- @include core-mixins-v3.device(breakpoints.$tabPortrait) {
358
- transform: translateX(
359
- core-functions-v3.fluidSize(-34, 'static')
360
- );
361
- }
362
- }
363
-
364
- input:checked + .switch-slider {
365
- background-color: var(--palette-default-1);
366
- }
367
- }
368
-
369
- &__switch-text {
370
- color: var(--palette-default-5);
371
- font-family: var(--tertiary-font-family);
372
- font-size: core-functions-v3.fluidSize(10, 'static');
373
- text-transform: uppercase;
374
- @include core-mixins-v3.device(breakpoints.$tabPortrait) {
375
- font-size: core-functions-v3.fluidSize(11, 'static');
376
- }
377
- }
378
-
379
- &__grid {
380
- grid-area: grid;
381
- display: grid;
382
- background-color: var(--grid-background-colour);
383
- grid-template-columns: repeat(var(--columns-mobile), 1fr);
384
- color: var(--theme-primary-text-colour);
385
- gap: calc(var(--global-inline-spacing) * var(--gap-multiplier-mobile));
386
- border: core-functions-v3.fluidSize(var(--grid-border-width), 'static')
387
- solid var(--grid-border-colour);
388
-
389
- @include core-mixins-v3.device(breakpoints.$tabPortrait) {
390
- padding-top: unset;
391
- grid-template-columns: repeat(var(--columns-portrait), 1fr);
392
- gap: calc(
393
- var(--global-inline-spacing) * var(--gap-multiplier-portrait)
394
- );
395
- }
396
-
397
- @include core-mixins-v3.device(breakpoints.$tabLandscape) {
398
- gap: calc(var(--global-inline-spacing) * var(--gap-multiplier));
399
- grid-template-columns: repeat(var(--columns-desktop), 1fr);
400
- }
401
- }
402
-
403
- &__featured-post {
404
- background: var(--featured-post-background-colour);
405
- }
406
-
407
- &__post-container {
408
- display: grid;
409
- width: 100%;
410
- z-index: 1;
411
- position: relative;
412
- padding: calc(
413
- var(--global-inline-spacing) * var(--post-container-padding-mobile)
414
- );
415
- place-self: var(--block-container-vertical-align);
416
- background-color: var(--post-container-background-colour);
417
- grid-auto-rows: var(--post-container-grid-auto-rows, auto);
418
- grid-auto-columns: var(--post-container-grid-auto-columns, auto);
419
- grid-template-rows: var(--post-container-grid-template-rows, auto);
420
- grid-template-columns: var(
421
- --post-container-grid-template-columns,
422
- auto
423
- );
424
- gap: calc(
425
- var(--global-inline-spacing) *
426
- (var(--post-container-grid-gap-mobile))
427
- );
428
-
429
- @include core-mixins-v3.device(breakpoints.$tabPortrait) {
430
- gap: calc(
431
- var(--global-inline-spacing) *
432
- (var(--post-container-grid-gap-portrait))
433
- );
434
- }
435
-
436
- @include core-mixins-v3.device(breakpoints.$tabLandscape) {
437
- padding: calc(
438
- var(--global-inline-spacing) * var(--post-container-padding)
439
- );
440
- gap: calc(
441
- var(--global-inline-spacing) *
442
- (var(--post-container-grid-gap-desktop))
443
- );
444
- }
445
- }
446
-
447
- &__post-image-container-link {
448
- display: grid;
449
- grid-template: 'main' / 1fr;
450
- width: 100%;
451
- z-index: 2;
452
- max-width: initial;
453
- position: relative;
454
-
455
- &--show-alt-image-on-hover {
456
- &:hover {
457
- .post-type-filter-grid-v3__post-image {
458
- opacity: 0;
459
- }
460
-
461
- .post-type-filter-grid-v3__post-image--secondary {
462
- opacity: 1;
463
- }
464
- }
465
- }
466
- &--set-as-background-image {
467
- position: absolute;
468
- inset: 0;
469
- grid-area: unset;
470
- img {
471
- height: 100%;
472
- object-fit: cover;
473
- }
474
- }
475
- }
476
-
477
- &__info-item {
478
- @include grid-layout-element-v3.gridLayoutElement();
479
- z-index: 2;
480
-
481
- &:not(.post-type-filter-grid-v3__post-link, .post-type-filter-grid-v3__product-buy-now, .post-type-filter-grid-v3__post-image-container-link, .post-type-filter-grid-v3__post-tags, .post-type-filter-grid-v3__shopify) {
482
- * {
483
- width: 100%;
484
- }
485
- }
486
- }
487
-
488
- &__post-tags {
489
- pointer-events: none;
490
- }
491
-
492
- &__post-image,
493
- &__post-image--secondary,
494
- &__global-image,
495
- &__media-image {
496
- opacity: 1;
497
- z-index: 1;
498
- transition: opacity 0.3s;
499
- position: relative;
500
- margin-inline: auto;
501
- width: var(--post-image-width-mobile);
502
- object-fit: var(--post-image-fit-style);
503
- aspect-ratio: var(--post-image-aspect-ratio);
504
- border-radius: var(--post-image-border-radius);
505
- border: 0px solid transparent;
506
- @include core-mixins-v3.device(breakpoints.$tabPortrait) {
507
- width: var(--post-image-width-portrait);
508
- }
509
- @include core-mixins-v3.device(breakpoints.$tabLandscape) {
510
- width: var(--post-image-width-desktop);
511
- }
512
- &--image_accent {
513
- @include element-positioning-v3.elementPositioning();
514
- width: var(--post-image-width-mobile);
515
- @include core-mixins-v3.device(breakpoints.$tabLandscape) {
516
- width: var(--post-image-width-desktop);
517
- }
518
- }
519
- }
520
- &__global-image {
521
- @include grid-layout-element-v3.gridLayoutElement();
522
- width: 100%;
523
- max-width: var(--global-image-max-width-mobile, 100%);
524
- z-index: var(--global-image-z-index, 1);
525
- position: var(--global-image-position, relative);
526
- object-fit: var(--global-image-fit-style, cover);
527
- height: var(--global-image-height, auto);
528
- @include core-mixins-v3.device(breakpoints.$tabLandscape) {
529
- max-width: var(--global-image-max-width-desktop, 100%);
530
- }
531
- }
532
-
533
- &__media-image-container {
534
- position: relative;
535
- width: 100%;
536
- }
537
-
538
- &__post-image--secondary {
539
- opacity: 0;
540
- z-index: 0;
541
- position: absolute;
542
- width: 100%;
543
- height: 100%;
544
- object-fit: contain;
545
- }
546
-
547
- &__post-text-container {
548
- display: grid;
549
- z-index: 2;
550
- }
551
-
552
- &__post-title {
553
- display: flex;
554
- gap: 1.5em;
555
- flex-direction: row;
556
- justify-content: space-between;
557
- * {
558
- width: 100%;
559
- }
560
- }
561
- &__post-headline {
562
- width: 100%;
563
- }
564
- &__post-title-icon {
565
- width: 1em;
566
- }
567
-
568
- &__post-category {
569
- background: var(--black);
570
- color: var(--white);
571
- display: flex;
572
- gap: core-functions-v3.fluidSize(15, 'static');
573
- padding: core-functions-v3.fluidSize(10, 'static');
574
- width: fit-content;
575
-
576
- &--item {
577
- margin: 0;
578
- }
579
- }
580
-
581
- &__cta {
582
- gap: 0.5em;
583
- }
584
-
585
- &__icon-image {
586
- width: 1em;
587
-
588
- * {
589
- fill: inherit;
590
- }
591
- }
592
-
593
- &__spacer {
594
- z-index: 2;
595
- width: 100%;
596
- background-color: var(--spacer-bg-colour);
597
- height: calc(
598
- var(--global-inline-spacing) * var(--spacer-size-mult-mobile)
599
- );
600
-
601
- @include core-mixins-v3.device(breakpoints.$tabPortrait) {
602
- height: calc(
603
- var(--global-inline-spacing) * var(--spacer-size-mult-portrait)
604
- );
605
- }
606
-
607
- @include core-mixins-v3.device(breakpoints.$tabLandscape) {
608
- height: calc(
609
- var(--global-inline-spacing) * var(--spacer-size-mult)
610
- );
611
- }
612
- }
613
- &__post-link,
614
- &__better-reviews {
615
- max-width: max-content;
616
- }
617
- &__cta-style-post-colour,
618
- &__cta-style-post-text-colour-style {
619
- padding-block: core-functions-v3.fluidSize(10, 'mobile');
620
- padding-inline: core-functions-v3.fluidSize(20, 'mobile');
621
- @include core-mixins-v3.device(breakpoints.$tabPortrait) {
622
- padding-block: core-functions-v3.fluidSize(10, 'portrait');
623
- padding-inline: core-functions-v3.fluidSize(20, 'portrait');
624
- }
625
- @include core-mixins-v3.device(breakpoints.$tabLandscape) {
626
- padding-block: core-functions-v3.fluidSize(10, 'desktop');
627
- padding-inline: core-functions-v3.fluidSize(20, 'desktop');
628
- }
629
- }
630
- &__cta-style-post-colour {
631
- color: var(--post-colour);
632
- border: 1px solid var(--post-colour);
633
- * {
634
- stroke: var(--post-colour);
635
- fill: var(--post-colour);
636
- }
637
- &:hover {
638
- color: var(--post-colour);
639
- * {
640
- stroke: var(--post-colour);
641
- fill: var(--post-colour);
642
- }
643
- }
644
- }
645
- &__cta-style-post-text-colour-style {
646
- color: var(--post-text-colour-style);
647
- border: 1px solid var(--post-text-colour-style);
648
- * {
649
- stroke: var(--post-text-colour-style);
650
- fill: var(--post-text-colour-style);
651
- }
652
- &:hover {
653
- color: var(--post-text-colour-style);
654
- * {
655
- stroke: var(--post-text-colour-style);
656
- fill: var(--post-text-colour-style);
657
- }
658
- }
659
- }
660
-
661
- &__post-tags {
662
- display: flex;
663
- justify-content: flex-start;
664
- flex-wrap: wrap;
665
- align-items: flex-start;
666
- z-index: 2;
667
- }
668
-
669
- &__load-more-container {
670
- grid-area: loadmore;
671
- width: 100%;
672
- display: flex;
673
- justify-content: center;
674
- flex-direction: column;
675
- align-items: center;
676
- z-index: 2;
677
- margin-top: core-functions-v3.fluidSize(115, 'mobile');
678
- &:has(.show-spinner) {
679
- pointer-events: none;
680
- }
681
- @include core-mixins-v3.device(breakpoints.$tabPortrait) {
682
- margin-top: core-functions-v3.fluidSize(90, 'portrait');
683
- }
684
-
685
- @include core-mixins-v3.device(breakpoints.$tabLandscape) {
686
- margin-top: core-functions-v3.fluidSize(80, 'desktop');
687
- }
688
- }
689
- &__load-more-button {
690
- .cmpl-cta-span.hide-text {
691
- display: none;
692
- }
693
- }
694
- .loader {
695
- --spinner-size: 20px;
696
- width: var(--spinner-size);
697
- height: var(--spinner-size);
698
- border: 2px solid #fff;
699
- border-bottom-color: transparent;
700
- border-radius: 50%;
701
- display: none;
702
- box-sizing: border-box;
703
- animation: rotation 1s linear infinite;
704
- &.show-spinner {
705
- display: inline-block;
706
- }
707
- }
708
-
709
- @keyframes rotation {
710
- 0% {
711
- transform: rotate(0deg);
712
- }
713
- 100% {
714
- transform: rotate(360deg);
715
- }
716
- }
717
- &__load-more-icon {
718
- width: 1em;
719
- }
720
-
721
- &__show-all {
722
- z-index: 2;
723
- position: relative;
724
- width: auto;
725
- place-self: flex-end;
726
- margin-bottom: unset;
727
- cursor: pointer;
728
- width: 100%;
729
-
730
- @include core-mixins-v3.device(breakpoints.$tabPortrait) {
731
- width: initial;
732
- }
733
-
734
- @include core-mixins-v3.device(breakpoints.$tabLandscape) {
735
- &[data-layout='2'] {
736
- grid-column: 1;
737
- width: max-content;
738
- }
739
- }
740
- }
741
-
742
- // filter elements transition effect. If more effects are needed, add them in ACF and replace 'fade' in css by new transition name
743
- .fade-move,
744
- .fade-enter-active,
745
- .fade-leave-active {
746
- transition: opacity 0.5s ease;
747
- }
748
-
749
- .fade-enter-from,
750
- .fade-leave-to {
751
- opacity: 0;
752
- transform: translateX(30px);
753
- }
754
-
755
- .fade-leave-active {
756
- position: absolute;
757
- }
758
-
759
- &.shopify-add-to-cart {
760
- text-align: center;
761
- }
762
- }