@sc-360-v2/storefront-cms-library 0.1.94 → 0.1.96

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 (49) hide show
  1. package/dist/amount-estimator.scss +444 -4
  2. package/dist/builder.js +1 -1
  3. package/dist/bulk-variant-picker.scss +629 -19
  4. package/dist/container.scss +9 -0
  5. package/dist/editor-core.scss +97 -8
  6. package/dist/functions.js +1 -1
  7. package/dist/gallery-slider-temp.scss +463 -348
  8. package/dist/grid.scss +20 -2
  9. package/dist/image-temp.scss +1 -1
  10. package/dist/menu.scss +89 -0
  11. package/dist/payment-methods.scss +175 -11
  12. package/dist/pickup-locations.scss +443 -11
  13. package/dist/product-actions.scss +905 -77
  14. package/dist/product-basic-elements.scss +37 -6
  15. package/dist/product-highlights.scss +114 -4
  16. package/dist/product-image.scss +472 -339
  17. package/dist/product-inventory.scss +559 -14
  18. package/dist/product-options.scss +156 -0
  19. package/dist/product-price.scss +695 -289
  20. package/dist/product-promotions.scss +1118 -17
  21. package/dist/product.scss +32 -172
  22. package/dist/productDetails.scss +28 -0
  23. package/dist/quantity-selector.scss +58 -4
  24. package/dist/repeater-item.scss +22 -0
  25. package/dist/repeater.scss +113 -0
  26. package/dist/section.scss +16 -0
  27. package/dist/shipping-estimator.scss +13 -5
  28. package/dist/stack.scss +7 -1
  29. package/dist/store-locations.scss +442 -14
  30. package/dist/tooltip.scss +276 -0
  31. package/dist/types/builder/enums/index.d.ts +9 -2
  32. package/dist/types/builder/tools/element-edit/amountEstimator.d.ts +2 -1
  33. package/dist/types/builder/tools/element-edit/index.d.ts +3 -1
  34. package/dist/types/builder/tools/element-edit/productActions.d.ts +1 -0
  35. package/dist/types/builder/tools/element-edit/productDetails.d.ts +6 -31
  36. package/dist/types/builder/tools/element-edit/productDetailsOLd.d.ts +42 -0
  37. package/dist/types/builder/tools/element-edit/productOptions.d.ts +59 -0
  38. package/dist/types/builder/tools/element-edit/repeater.d.ts +2 -1
  39. package/dist/types/helper/helper-functions.d.ts +1 -0
  40. package/dist/uom-selector.scss +501 -4
  41. package/dist/variable.scss +9 -1
  42. package/dist/variant-picker.scss +672 -19
  43. package/dist/volume-pricing.scss +473 -19
  44. package/dist/widget.scss +25 -3
  45. package/package.json +1 -1
  46. package/dist/App.scss +0 -31
  47. package/dist/mixin.scss +0 -9
  48. package/dist/modal.module.scss +0 -121
  49. package/dist/range-slider.module.scss +0 -85
@@ -1,6 +1,5 @@
1
1
  @use "sass:map";
2
2
  @use "sass:list";
3
-
4
3
  [data-div-type="element"] {
5
4
  &[data-element-type="gallerySlider"] {
6
5
  // width: var(--_sf-nw-wh, var(--_tst-lt-wh));
@@ -14,14 +13,14 @@
14
13
  1 * (var(--_ctm-lt-ht, var(--_tst-lt-ht)) / var(--_ctm-lt-wh, var(--_tst-lt-wh)))
15
14
  );
16
15
 
17
- &[data-view-state="full"] {
18
- width: auto;
19
- // height: 100%;
20
- margin: 0;
21
- justify-self: stretch !important;
22
- align-self: stretch !important;
23
- cursor: auto;
24
- }
16
+ // &[data-view-state="full"] {
17
+ // width: auto;
18
+ // // height: 100%;
19
+ // margin: 0;
20
+ // justify-self: stretch !important;
21
+ // align-self: stretch !important;
22
+ // cursor: auto;
23
+ // }
25
24
 
26
25
  & > .wrapper {
27
26
  width: 100%;
@@ -59,75 +58,6 @@
59
58
  var(--_ctm-dn-gy-wt-se-sw-cr, var(--_tst-dn-gy-wt-se-sw-cr))
60
59
  );
61
60
 
62
- .embla__dots {
63
- display: flex;
64
- flex-wrap: wrap;
65
- justify-content: center;
66
- align-items: center;
67
- margin-right: calc((2.6rem - 1.4rem) / 2 * -1);
68
- gap: 6px;
69
- margin-top: 16px;
70
-
71
- &[data-control-type="Bottom-Overflow"] {
72
- position: absolute;
73
- bottom: 10px;
74
- left: 50%;
75
- transform: translateX(-50%);
76
- width: 75%;
77
- }
78
- .embla__dot {
79
- -webkit-tap-highlight-color: rgba(var(--text-high-contrast-rgb-value), 0.5);
80
- -webkit-appearance: none;
81
- appearance: none;
82
- background-color: var(--_ctm-dn-pn-ds-or-dt-cr, var(--_tst-dn-pn-ds-or-dt-cr));
83
- touch-action: manipulation;
84
- display: inline-flex;
85
- text-decoration: none;
86
- cursor: pointer;
87
- border: 0;
88
- padding: 0;
89
- margin: 0;
90
- // width: 0.6rem;
91
- // height: 0.6rem;
92
- width: var(--_ctm-dn-pn-ds-dt-se, var(--_tst-dn-pn-ds-dt-se));
93
- height: var(--_ctm-dn-pn-ds-dt-se, var(--_tst-dn-pn-ds-dt-se));
94
- display: flex;
95
- align-items: center;
96
- justify-content: center;
97
- border-radius: 50%;
98
- }
99
- .embla__dot:after {
100
- // box-shadow: inset 0 0 0 0.2rem var(--detail-medium-contrast);
101
- width: var(--_ctm-dn-pn-ds-dt-se, var(--_tst-dn-pn-ds-dt-se));
102
- height: var(--_ctm-dn-pn-ds-dt-se, var(--_tst-dn-pn-ds-dt-se));
103
- border-radius: 50%;
104
- display: flex;
105
- align-items: center;
106
- content: "";
107
- }
108
- .embla__dot--selected:after {
109
- box-shadow: inset 0 0 0 1px var(--text-body);
110
- background-color: var(--_ctm-dn-pn-ds-ct-dt-cr, var(--_tst-dn-pn-ds-ct-dt-cr));
111
- }
112
- &[data-slider-control="Pagination Line"] {
113
- .embla__dot {
114
- width: var(--_ctm-dn-pn-le-le-wh, var(--_ctm-dn-pn-le-le-wh));
115
- height: var(--_ctm-dn-pn-le-le-ht, var(--_tst-dn-pn-le-le-ht));
116
- background-color: var(--_ctm-dn-pn-le-or-le-cr, var(--_ctm-dn-pn-le-or-le-cr));
117
-
118
- border-radius: 6px;
119
- }
120
- .embla__dot--selected:after {
121
- box-shadow: inset 0 0 0 1px var(--text-body);
122
- border-radius: 6px;
123
- width: var(--_ctm-dn-pn-le-le-wh, var(--_ctm-dn-pn-le-le-wh));
124
- height: var(--_ctm-dn-pn-le-le-ht, var(--_tst-dn-pn-le-le-ht));
125
- // background-color: #fff;
126
- background-color: var(--_ctm-dn-pn-le-ct-le-cr, var(--_tst-dn-pn-le-ct-le-cr));
127
- }
128
- }
129
- }
130
-
131
61
  .gallery-header {
132
62
  // text-align: var(--_ctm-dn-gy-lt-an, var(--_tst-dn-gy-lt-an));
133
63
  // line-height: var(--_ctm-dn-gy-lt-tt-ad-dn-sg, var(--_tst-dn-gy-lt-tt-ad-dn-sg));
@@ -178,79 +108,6 @@
178
108
  // margin-bottom: var(--_mb-4);
179
109
  // }
180
110
  }
181
- .arrow-navigation {
182
- display: flex;
183
- position: absolute;
184
- top: 50%;
185
- left: 50%;
186
- width: 100%;
187
- justify-content: space-between;
188
- transform: translate(-50%, -50%);
189
- // padding-left: 20px;
190
- &[data-control-type="Side"] {
191
- .left-button,
192
- .right-button {
193
- background-color: transparent;
194
- }
195
- }
196
- &[data-background-shape="Round"] {
197
- .left-button,
198
- .right-button {
199
- background-color: #f2f5f5;
200
- box-sizing: 0 4px 8px rgba(0, 0, 0, 0.1);
201
- }
202
- }
203
- &[data-control-type="Bottom-Overflow"] {
204
- transform: translateX(-50%);
205
- width: 100%;
206
- justify-content: center;
207
- gap: 12px;
208
- top: unset;
209
- bottom: 6px;
210
- }
211
- &[data-control-type="Bottom"] {
212
- transform: unset;
213
- position: static;
214
- width: 100%;
215
- justify-content: center;
216
- gap: 12px;
217
- }
218
- .left-button {
219
- padding: 20px;
220
- border-radius: 50%;
221
- border: none;
222
- width: 40px;
223
- height: 40px;
224
- display: flex;
225
- align-items: center;
226
- justify-content: center;
227
- cursor: pointer;
228
- outline: none;
229
- margin-left: 12px;
230
- }
231
- .right-button {
232
- border-radius: 50%;
233
- border: none;
234
- width: 40px;
235
- height: 40px;
236
- display: flex;
237
- align-items: center;
238
- justify-content: center;
239
- cursor: pointer;
240
- outline: none;
241
- margin-right: 12px;
242
- }
243
- .icon {
244
- display: flex;
245
- svg {
246
- width: var(--_ctm-dn-pn-as-aw-se, var(--_tst-dn-pn-as-aw-se));
247
- height: var(--_ctm-dn-pn-as-aw-se, var(--_tst-dn-pn-as-aw-se));
248
- path {
249
- stroke: var(--_ctm-dn-pn-as-aw-cr, var(--_tst-dn-pn-as-aw-cr));
250
- }
251
- }
252
- }
253
- }
254
111
  }
255
112
 
256
113
  &[data-text-position="top"] {
@@ -330,256 +187,514 @@
330
187
  }
331
188
  }
332
189
  }
190
+ }
191
+ }
192
+ .embla {
193
+ width: 100%;
194
+ height: 100%;
195
+ position: relative;
196
+ display: flex;
197
+ flex-direction: column;
198
+ // overflow: hidden;
199
+
200
+ .embla__viewport {
201
+ width: 100%;
202
+ height: 100%;
203
+ position: relative;
204
+ display: flex;
205
+ flex-direction: column;
206
+
207
+ overflow: hidden;
333
208
 
334
- .embla__viewport {
209
+ .embla__container {
335
210
  width: 100%;
336
211
  height: 100%;
337
- position: relative;
338
- display: flex;
339
- flex-direction: column;
340
-
341
- overflow: hidden;
342
- &[data-control-type="Side"] {
343
- width: 70%;
344
- margin: 0 auto;
212
+ display: grid;
213
+ grid-template-rows: 100%;
214
+ // grid-template-columns: 100%;
215
+ grid-template-columns: repeat(var(--_ctm-lt-is-pr-se), calc(100% / var(--_ctm-lt-is-pr-se)));
216
+ grid-auto-flow: column;
217
+ gap: var(--_ctm-lt-im-gp);
345
218
 
346
- .left-button,
347
- .right-button {
348
- background-color: transparent;
349
- }
219
+ .embla__slide {
220
+ width: 100%;
221
+ height: 100%;
350
222
  }
351
223
  }
352
- .embla {
353
- width: 100%;
354
- }
224
+ }
225
+ &:not([data-display-style="Column"]) {
355
226
  .embla__container {
356
- width: "100%";
357
- height: 100%;
358
- display: grid;
359
-
360
- grid-auto-flow: column;
361
- gap: calc(var(--_embla-gap) * 1px);
362
- // grid-auto-columns: calc(100%);
363
- grid-auto-columns: calc((100% / var(--_ctm-lt-is-pr-se)) - var(--_ctm-lt-im-gp));
364
- // gap: var(--_ctm-lt-im-gp);
365
-
366
- // &[data-control-type="Side"] {
367
- // .left-button {
368
- // background-color: transparent;
369
- // }
370
- // }
371
- }
372
- .embla__slide {
373
- width: 100%;
374
- height: 100%;
227
+ grid-auto-columns: calc(100% / var(--_ctm-lt-is-pr-se));
375
228
  }
229
+ }
376
230
 
377
- .gallery__slide {
378
- width: 100%;
379
- height: 100%;
380
- display: flex;
381
- // flex-direction: column;
231
+ &[data-display-style="Grid"][data-scroll-direction="Vertical"] {
232
+ // overflow: unset;
382
233
 
383
- background-color: var(--_ctm-dn-im-se-bd-cr, var(--_tst-dn-im-se-bd-cr));
384
- border-color: var(--_ctm-dn-im-se-br-cr, var(--_tst-dn-im-se-br-cr));
385
- border-style: var(--_ctm-dn-im-se-br-se, var(--_tst-dn-im-se-br-se));
386
- border-width: var(--_ctm-dn-im-se-br-wh, var(--_tst-dn-im-se-br-wh));
387
- border-radius: var(--_ctm-dn-im-se-br-rs, var(--_tst-dn-im-se-br-rs));
388
- box-shadow: var(
389
- --_show-shadow,
390
- var(--_ctm-dn-im-se-sw-ae, var(--_tst-dn-im-se-sw-ae))
391
- var(--_ctm-dn-im-se-sw-br, var(--_tst-dn-im-se-sw-br))
392
- var(--_ctm-dn-im-se-sw-sd, var(--_tst-dn-im-se-sw-sd))
393
- var(--_ctm-dn-im-se-sw-cr, var(--_tst-dn-im-se-sw-cr))
394
- );
395
- gap: var(--_ctm-dn-im-lt-gy-tt-ad-im-sg, var(--_tst-dn-gy-lt-tt-ad-im-sg));
234
+ .embla__viewport {
235
+ overflow: unset;
236
+ height: 80%;
237
+ flex-grow: 1;
238
+ &:not([data-is-builder-type="true"]) {
239
+ height: var(--_ctm-height);
240
+ }
396
241
 
397
- .gallery-header {
398
- // text-align: var(--_ctm-dn-gy-lt-an, var(--_tst-dn-gy-lt-an));
399
- // line-height: var(--_ctm-dn-gy-lt-tt-ad-dn-sg, var(--_tst-dn-gy-lt-tt-ad-dn-sg));
400
- display: flex;
401
- flex-direction: column;
242
+ .embla__container {
243
+ overflow: unset;
244
+ height: var(--_ctm-height);
245
+ // min-height: var(--_ctm-height);
402
246
 
403
- gap: var(--_ctm-dn-im-tt-cr-lt-te-ad-dn-sg);
404
- padding-block: var(--_ctm-dn-im-tt-cr-lt-tt-vl-pg);
405
- padding-inline: var(--_ctm-dn-im-tt-cr-lt-tt-hl-pg);
406
- background-color: var(--_ctm-dn-im-tt-cr-dn-bd-cr, var(--_tst-dn-im-se-cr-dn-bd-cr));
407
- width: 100%;
408
- border-color: var(--_ctm-dn-im-tt-cr-dn-br-cr, var(--_tst-dn-im-tt-cr-dn-br-cr));
409
- border-style: var(--_ctm-dn-im-tt-cr-dn-br-se, var(--_tst-dn-im-tt-cr-dn-br-se));
410
- border-width: var(--_ctm-dn-im-tt-cr-dn-br-wh, var(--_tst-dn-im-tt-cr-dn-br-wh));
411
- border-radius: var(--_ctm-dn-im-tt-cr-dn-br-rs, var(--_tst-dn-im-tt-cr-dn-br-rs));
412
- box-shadow: var(
413
- --_show-shadow,
414
- var(--_ctm-dn-im-tt-cr-dn-sw-ae, var(--_tst-dn-im-tt-cr-dn-sw-ae))
415
- var(--_ctm-dn-im-tt-cr-dn-sw-br, var(--_tst-dn-im-tt-cr-dn-sw-br))
416
- var(--_ctm-dn-im-tt-cr-dn-sw-sd, var(--_tst-dn-im-tt-cr-dn-sw-sd))
417
- var(--_ctm-dn-im-tt-cr-dn-sw-cr, var(--_tst-dn-gy-wt-sw-cr))
418
- );
247
+ grid-template-columns: repeat(var(--_ctm-lt-is-pr-rw), 1fr);
248
+ grid-template-rows: unset;
419
249
 
420
- & h3 {
421
- color: var(--_ctm-dn-im-se-cr, var(--_tst-dn-im-se-cr));
422
- font-family: var(--_ctm-dn-im-se-ft-fy, var(--_tst-dn-im-se-ft-fy)), sans-serif;
423
- font-size: var(--_ctm-dn-im-se-ft-se, var(--_tst-dn-im-se-ft-se));
424
- font-weight: var(--_ctm-dn-im-se-ft-wt, var(--_tst-dn-im-se-ft-wt));
425
- font-style: var(--_ctm-dn-im-se-ft-se-ic, var(--_tst-dn-im-se-ft-se-ic));
426
- text-align: var(--_ctm-dn-im-se-tt-an, var(--_tst-dn-im-se-se-an));
427
- letter-spacing: var(--_ctm-dn-im-se-lr-sg, var(--_tst-dn-im-se-lr-sg));
428
- line-height: var(--_ctm-dn-im-se-le-ht, var(--_tst-dn-im-se-le-ht));
429
- text-decoration: var(--_ctm-dn-im-se-ue,);
250
+ grid-auto-flow: row;
251
+ &[data-overflow-hidden="true"] {
252
+ overflow: hidden;
430
253
  }
431
- & p {
432
- color: var(--_ctm-dn-im-se-cr-dc, var(--_tst-dn-im-se-cr-dc));
433
- font-family: var(--_ctm-dn-im-se-ft-fy-dc, var(--_tst-dn-im-se-ft-fy-dc)), sans-serif;
434
- font-size: var(--_ctm-dn-im-se-ft-se-dc, var(--_tst-dn-im-se-ft-se-dc));
435
- font-weight: var(--_ctm-dn-im-se-ft-wt-dc, var(--_tst-dn-im-se-ft-wt-dc));
436
- font-style: var(--_ctm-dn-im-se-ft-se-ic-dc, var(--_tst-dn-im-se-ft-se-ic-dc));
437
- text-align: var(--_ctm-dn-im-se-tt-an-dc, var(--_tst-dn-im-se-se-an-dc));
438
- letter-spacing: var(--_ctm-dn-im-se-lr-sg-dc, var(--_tst-dn-im-se-lr-sg-dc));
439
- line-height: var(--_ctm-dn-im-se-le-ht-dc, var(--_tst-dn-im-se-le-ht-dc));
440
- text-decoration: var(--_ctm-dn-im-se-ue-dc,);
441
- }
442
- // h3 {
443
- // margin-bottom: var(--_mb-4);
444
- // }
445
254
  }
255
+ }
256
+ }
446
257
 
447
- &[data-text-position="On Image"] {
448
- .gallery-header {
449
- width: 100%;
450
- // height: 100%;
451
- position: absolute;
452
- }
453
-
454
- &[data-widget-alignment="top"] {
455
- // align-items: flex-start;
258
+ &[data-display-style="Grid"][data-scroll-direction="Horizontal"] {
259
+ .embla__viewport {
260
+ .embla__container {
261
+ grid-template-rows: repeat(var(--_ctm-lt-is-pr-cn), calc(100% / var(--_ctm-lt-is-pr-cn)));
262
+ }
263
+ }
264
+ }
456
265
 
457
- .gallery-header {
458
- top: 0;
266
+ &[data-display-style="Rows"] {
267
+ // overflow: unset;
459
268
 
460
- justify-content: flex-start;
461
- }
462
- }
463
- &[data-widget-alignment="center"] {
464
- // align-items: center;
269
+ .embla__viewport {
270
+ overflow: unset;
271
+ height: 80%;
272
+ flex-grow: 1;
273
+ &:not([data-is-builder-type="true"]) {
274
+ height: var(--_ctm-height);
275
+ }
465
276
 
466
- .gallery-header {
467
- top: 50%;
468
- transform: translateY(-50%);
469
- justify-content: center;
470
- }
471
- }
472
- &[data-widget-alignment="bottom"] {
473
- // align-items: flex-end;
474
- .gallery-header {
475
- bottom: 0;
277
+ .embla__container {
278
+ overflow: hidden;
279
+ height: var(--_ctm-height);
280
+ // min-height: var(--_ctm-height);
476
281
 
477
- justify-content: flex-end;
478
- }
479
- }
480
- }
282
+ grid-template-columns: repeat(var(--_ctm-lt-is-pr-rw), 1fr);
283
+ grid-template-rows: unset;
481
284
 
482
- &[data-text-position="top"] {
483
- flex-direction: column;
285
+ grid-auto-flow: row;
484
286
  }
287
+ }
288
+ }
485
289
 
486
- &[data-text-position="bottom"] {
487
- flex-direction: column-reverse;
488
- }
489
- &[data-text-position="left"] {
490
- flex-direction: row;
290
+ &[data-display-style="Column"] {
291
+ // overflow: unset;
491
292
 
492
- .gallery-header {
493
- width: fit-content;
293
+ .embla__viewport {
294
+ .embla__container {
295
+ display: flex;
296
+ .embla__slide {
297
+ width: unset;
494
298
  height: 100%;
299
+ aspect-ratio: 1 / 2;
495
300
  }
496
- &[data-widget-alignment="top"] {
497
- align-items: flex-start;
301
+ }
302
+ }
303
+ }
304
+ &[data-display-style="Masonry"] {
305
+ // overflow: unset;
498
306
 
499
- .gallery-header {
500
- justify-content: flex-start;
307
+ .embla__viewport {
308
+ overflow: hidden;
309
+ height: 80%;
310
+ flex-grow: 1;
311
+ &:not([data-is-builder-type="true"]) {
312
+ height: var(--_ctm-height);
313
+ }
314
+ .embla__container {
315
+ overflow: unset;
316
+
317
+ display: block;
318
+ column-count: var(--_ctm-lt-is-pr-rw);
319
+ gap: unset;
320
+ column-gap: var(--_ctm-lt-im-gp);
321
+ // height: auto;
322
+
323
+ height: auto;
324
+
325
+ .embla__slide {
326
+ // break-inside: avoid;
327
+ margin-bottom: var(--_ctm-lt-im-gp);
328
+ height: unset;
329
+ .gallery__slide {
330
+ height: unset;
501
331
  }
502
332
  }
503
- &[data-widget-alignment="center"] {
504
- align-items: center;
333
+ }
334
+ }
335
+ }
505
336
 
506
- .gallery-header {
507
- justify-content: center;
337
+ .arrow-navigation {
338
+ display: flex;
339
+ position: absolute;
340
+ top: 50%;
341
+ left: 50%;
342
+ width: 100%;
343
+ justify-content: space-between;
344
+ transform: translate(-50%, -50%);
345
+ // padding-left: 20px;
346
+ &[data-control-type="Side"] {
347
+ .left-button,
348
+ .right-button {
349
+ background-color: transparent;
350
+ }
351
+ }
352
+ &[data-background-shape="Round"] {
353
+ .left-button,
354
+ .right-button {
355
+ background-color: #f2f5f5;
356
+ box-sizing: 0 4px 8px rgba(0, 0, 0, 0.1);
357
+ }
358
+ }
359
+ &[data-control-type="Bottom-Overflow"] {
360
+ transform: translateX(-50%);
361
+ width: 100%;
362
+ justify-content: center;
363
+ gap: 12px;
364
+ top: unset;
365
+ bottom: 6px;
366
+ }
367
+ &[data-control-type="Bottom"] {
368
+ transform: unset;
369
+ position: static;
370
+ width: 100%;
371
+ justify-content: center;
372
+ gap: 12px;
373
+ margin-top: 10px;
374
+ }
375
+ .left-button {
376
+ padding: 20px;
377
+ border-radius: 50%;
378
+ border: none;
379
+ width: 40px;
380
+ height: 40px;
381
+ display: flex;
382
+ align-items: center;
383
+ justify-content: center;
384
+ cursor: pointer;
385
+ outline: none;
386
+ margin-left: 12px;
387
+ &:disabled {
388
+ & svg {
389
+ path {
390
+ stroke: rgb(192, 192, 192);
508
391
  }
509
392
  }
510
- &[data-widget-alignment="bottom"] {
511
- align-items: flex-end;
512
-
513
- .gallery-header {
514
- justify-content: flex-end;
393
+ }
394
+ }
395
+ .right-button {
396
+ border-radius: 50%;
397
+ border: none;
398
+ width: 40px;
399
+ height: 40px;
400
+ display: flex;
401
+ align-items: center;
402
+ justify-content: center;
403
+ cursor: pointer;
404
+ outline: none;
405
+ margin-right: 12px;
406
+ &:disabled {
407
+ & svg {
408
+ path {
409
+ stroke: rgb(192, 192, 192);
515
410
  }
516
411
  }
517
412
  }
518
- &[data-text-position="right"] {
519
- flex-direction: row-reverse;
520
- .gallery-header {
521
- width: fit-content;
522
- height: 100%;
413
+ }
414
+ .icon {
415
+ display: flex;
416
+ svg {
417
+ width: var(--_ctm-dn-pn-as-aw-se, var(--_tst-dn-pn-as-aw-se));
418
+ height: var(--_ctm-dn-pn-as-aw-se, var(--_tst-dn-pn-as-aw-se));
419
+ path {
420
+ stroke: var(--_ctm-dn-pn-as-aw-cr, var(--_tst-dn-pn-as-aw-cr));
523
421
  }
422
+ }
423
+ }
424
+ }
524
425
 
525
- &[data-widget-alignment="top"] {
526
- align-items: flex-start;
426
+ &[data-control-type="Side"] {
427
+ .embla__viewport {
428
+ width: calc(100% - 120px);
429
+ margin-inline: auto;
430
+ }
431
+ }
527
432
 
528
- .gallery-header {
529
- justify-content: flex-start;
530
- }
531
- }
532
- &[data-widget-alignment="center"] {
533
- align-items: center;
433
+ &[data-thumbnail-placement="top"] {
434
+ flex-direction: column-reverse;
435
+ }
436
+ &[data-thumbnail-placement="bottom"] {
437
+ flex-direction: column;
438
+ }
439
+ &[data-thumbnail-placement="left"] {
440
+ flex-direction: row-reverse;
534
441
 
535
- .gallery-header {
536
- justify-content: center;
537
- }
538
- }
539
- &[data-widget-alignment="bottom"] {
540
- align-items: flex-end;
442
+ .embla__thumbs {
443
+ width: var(--_ctm-lt-tl-se);
444
+ height: 100%;
541
445
 
542
- .gallery-header {
543
- justify-content: flex-end;
544
- }
545
- }
446
+ & .embla__thumbs__container {
447
+ flex-direction: column;
448
+ height: 100%;
546
449
  }
450
+ }
451
+ }
452
+ &[data-thumbnail-placement="right"] {
453
+ flex-direction: row;
454
+ .embla__thumbs {
455
+ width: var(--_ctm-lt-tl-se);
456
+ height: 100%;
547
457
 
548
- & > img {
549
- width: 100%;
458
+ & .embla__thumbs__container {
459
+ flex-direction: column;
550
460
  height: 100%;
551
- // object-fit: cover;
461
+ }
462
+ }
463
+ }
552
464
 
553
- object-fit: var(--_ctm-dn-im-se-ot-ft, var(--_tst-dn-im-se-ot-ft));
554
- margin-bottom: 12px;
465
+ .embla__thumbs {
466
+ width: 100%;
467
+ height: var(--_ctm-lt-tl-se);
468
+ position: relative;
469
+ display: grid;
470
+ grid-template-columns: 1fr;
471
+ overflow: hidden;
472
+ // margin: 10px;
473
+ padding: 10px;
474
+
475
+ .embla__thumbs__viewport {
476
+ width: 100%;
477
+ height: 100%;
478
+ position: relative;
479
+ display: flex;
480
+ flex-direction: column;
555
481
 
556
- &[data-has-title="true"] {
557
- height: 85%;
482
+ overflow: hidden;
483
+ }
484
+ .embla__thumbs__container {
485
+ display: flex;
486
+ flex-direction: row;
487
+ margin-left: calc(var(--thumbs-slide-spacing) * -1);
488
+ gap: var(--_ctm-lt-tl-sg);
489
+ width: 100%;
490
+ // justify-content: center;
491
+ // height: 200px;
492
+
493
+ .embla__thumbs__slide {
494
+ min-width: var(--_ctm-lt-tl-se);
495
+ max-width: var(--_ctm-lt-tl-se);
496
+ height: var(--_ctm-lt-tl-se);
497
+ & img {
498
+ width: 100%;
499
+ height: 100%;
558
500
  }
501
+ }
502
+ }
503
+ }
504
+ }
505
+
506
+ .gallery__slide {
507
+ width: 100%;
508
+ height: 100%;
509
+ display: flex;
510
+ // flex-direction: column;
511
+
512
+ background-color: var(--_ctm-dn-im-se-bd-cr, var(--_tst-dn-im-se-bd-cr));
513
+ border-color: var(--_ctm-dn-im-se-br-cr, var(--_tst-dn-im-se-br-cr));
514
+ border-style: var(--_ctm-dn-im-se-br-se, var(--_tst-dn-im-se-br-se));
515
+ border-width: var(--_ctm-dn-im-se-br-wh, var(--_tst-dn-im-se-br-wh));
516
+ border-radius: var(--_ctm-dn-im-se-br-rs, var(--_tst-dn-im-se-br-rs));
517
+ box-shadow: var(
518
+ --_show-shadow,
519
+ var(--_ctm-dn-im-se-sw-ae, var(--_tst-dn-im-se-sw-ae))
520
+ var(--_ctm-dn-im-se-sw-br, var(--_tst-dn-im-se-sw-br))
521
+ var(--_ctm-dn-im-se-sw-sd, var(--_tst-dn-im-se-sw-sd))
522
+ var(--_ctm-dn-im-se-sw-cr, var(--_tst-dn-im-se-sw-cr))
523
+ );
524
+ gap: var(--_ctm-dn-im-lt-gy-tt-ad-im-sg, var(--_tst-dn-gy-lt-tt-ad-im-sg));
525
+ .gallery-header {
526
+ // text-align: var(--_ctm-dn-gy-lt-an, var(--_tst-dn-gy-lt-an));
527
+ // line-height: var(--_ctm-dn-gy-lt-tt-ad-dn-sg, var(--_tst-dn-gy-lt-tt-ad-dn-sg));
528
+ display: flex;
529
+ flex-direction: column;
530
+
531
+ gap: var(--_ctm-dn-im-tt-cr-lt-te-ad-dn-sg);
532
+ padding-block: var(--_ctm-dn-im-tt-cr-lt-tt-vl-pg);
533
+ padding-inline: var(--_ctm-dn-im-tt-cr-lt-tt-hl-pg);
534
+ background-color: var(--_ctm-dn-im-tt-cr-dn-bd-cr, var(--_tst-dn-im-se-cr-dn-bd-cr));
535
+ width: 100%;
536
+ border-color: var(--_ctm-dn-im-tt-cr-dn-br-cr, var(--_tst-dn-im-tt-cr-dn-br-cr));
537
+ border-style: var(--_ctm-dn-im-tt-cr-dn-br-se, var(--_tst-dn-im-tt-cr-dn-br-se));
538
+ border-width: var(--_ctm-dn-im-tt-cr-dn-br-wh, var(--_tst-dn-im-tt-cr-dn-br-wh));
539
+ border-radius: var(--_ctm-dn-im-tt-cr-dn-br-rs, var(--_tst-dn-im-tt-cr-dn-br-rs));
540
+ box-shadow: var(
541
+ --_show-shadow,
542
+ var(--_ctm-dn-im-tt-cr-dn-sw-ae, var(--_tst-dn-im-tt-cr-dn-sw-ae))
543
+ var(--_ctm-dn-im-tt-cr-dn-sw-br, var(--_tst-dn-im-tt-cr-dn-sw-br))
544
+ var(--_ctm-dn-im-tt-cr-dn-sw-sd, var(--_tst-dn-im-tt-cr-dn-sw-sd))
545
+ var(--_ctm-dn-im-tt-cr-dn-sw-cr, var(--_tst-dn-gy-wt-sw-cr))
546
+ );
547
+
548
+ & h3 {
549
+ color: var(--_ctm-dn-im-se-cr, var(--_tst-dn-im-se-cr));
550
+ font-family: var(--_ctm-dn-im-se-ft-fy, var(--_tst-dn-im-se-ft-fy)), sans-serif;
551
+ font-size: var(--_ctm-dn-im-se-ft-se, var(--_tst-dn-im-se-ft-se));
552
+ font-weight: var(--_ctm-dn-im-se-ft-wt, var(--_tst-dn-im-se-ft-wt));
553
+ font-style: var(--_ctm-dn-im-se-ft-se-ic, var(--_tst-dn-im-se-ft-se-ic));
554
+ text-align: var(--_ctm-dn-im-se-tt-an, var(--_tst-dn-im-se-se-an));
555
+ letter-spacing: var(--_ctm-dn-im-se-lr-sg, var(--_tst-dn-im-se-lr-sg));
556
+ line-height: var(--_ctm-dn-im-se-le-ht, var(--_tst-dn-im-se-le-ht));
557
+ text-decoration: var(--_ctm-dn-im-se-ue,);
558
+ }
559
+ & p {
560
+ color: var(--_ctm-dn-im-se-cr-dc, var(--_tst-dn-im-se-cr-dc));
561
+ font-family: var(--_ctm-dn-im-se-ft-fy-dc, var(--_tst-dn-im-se-ft-fy-dc)), sans-serif;
562
+ font-size: var(--_ctm-dn-im-se-ft-se-dc, var(--_tst-dn-im-se-ft-se-dc));
563
+ font-weight: var(--_ctm-dn-im-se-ft-wt-dc, var(--_tst-dn-im-se-ft-wt-dc));
564
+ font-style: var(--_ctm-dn-im-se-ft-se-ic-dc, var(--_tst-dn-im-se-ft-se-ic-dc));
565
+ text-align: var(--_ctm-dn-im-se-tt-an-dc, var(--_tst-dn-im-se-se-an-dc));
566
+ letter-spacing: var(--_ctm-dn-im-se-lr-sg-dc, var(--_tst-dn-im-se-lr-sg-dc));
567
+ line-height: var(--_ctm-dn-im-se-le-ht-dc, var(--_tst-dn-im-se-le-ht-dc));
568
+ text-decoration: var(--_ctm-dn-im-se-ue-dc,);
569
+ }
570
+ // h3 {
571
+ // margin-bottom: var(--_mb-4);
572
+ // }
573
+ }
574
+ &[data-text-position="On Image"] {
575
+ .gallery-header {
576
+ width: 100%;
577
+ // height: 100%;
578
+ position: absolute;
579
+ }
580
+
581
+ &[data-widget-alignment="top"] {
582
+ // align-items: flex-start;
583
+
584
+ .gallery-header {
585
+ top: 0;
559
586
 
560
- /* display: block; */
587
+ justify-content: flex-start;
561
588
  }
562
589
  }
590
+ &[data-widget-alignment="center"] {
591
+ // align-items: center;
563
592
 
564
- .embla-thumbs {
565
- --thumbs-slide-spacing: 0.8rem;
566
- --thumbs-slide-height: 6rem;
567
- margin-top: var(--thumbs-slide-spacing);
593
+ .gallery-header {
594
+ top: 50%;
595
+ transform: translateY(-50%);
596
+ justify-content: center;
597
+ }
568
598
  }
569
- .embla-thumbs__viewport {
570
- overflow: hidden;
571
- margin: 20px;
599
+ &[data-widget-alignment="bottom"] {
600
+ // align-items: flex-end;
601
+ .gallery-header {
602
+ bottom: 0;
603
+
604
+ justify-content: flex-end;
605
+ }
572
606
  }
573
- .embla-thumbs__container {
574
- display: flex;
575
- flex-direction: row;
576
- margin-left: calc(var(--thumbs-slide-spacing) * -1);
607
+ }
608
+
609
+ &[data-text-position="top"] {
610
+ flex-direction: column;
611
+ }
612
+
613
+ &[data-text-position="bottom"] {
614
+ flex-direction: column-reverse;
615
+ }
616
+ &[data-text-position="left"] {
617
+ flex-direction: row;
618
+
619
+ .gallery-header {
620
+ width: fit-content;
621
+ height: 100%;
577
622
  }
578
- .embla-thumbs__slide {
579
- flex: 0 0 22%;
580
- min-width: 0;
581
- padding-left: var(--thumbs-slide-spacing);
582
- cursor: pointer;
623
+ &[data-widget-alignment="top"] {
624
+ align-items: flex-start;
625
+
626
+ .gallery-header {
627
+ justify-content: flex-start;
628
+ }
583
629
  }
630
+ &[data-widget-alignment="center"] {
631
+ align-items: center;
632
+
633
+ .gallery-header {
634
+ justify-content: center;
635
+ }
636
+ }
637
+ &[data-widget-alignment="bottom"] {
638
+ align-items: flex-end;
639
+
640
+ .gallery-header {
641
+ justify-content: flex-end;
642
+ }
643
+ }
644
+ }
645
+ &[data-text-position="right"] {
646
+ flex-direction: row-reverse;
647
+ .gallery-header {
648
+ width: fit-content;
649
+ height: 100%;
650
+ }
651
+
652
+ &[data-widget-alignment="top"] {
653
+ align-items: flex-start;
654
+
655
+ .gallery-header {
656
+ justify-content: flex-start;
657
+ }
658
+ }
659
+ &[data-widget-alignment="center"] {
660
+ align-items: center;
661
+
662
+ .gallery-header {
663
+ justify-content: center;
664
+ }
665
+ }
666
+ &[data-widget-alignment="bottom"] {
667
+ align-items: flex-end;
668
+
669
+ .gallery-header {
670
+ justify-content: flex-end;
671
+ }
672
+ }
673
+ }
674
+ & > img {
675
+ width: 100%;
676
+ height: 100%;
677
+ // object-fit: cover;
678
+
679
+ // object-fit: var(--_ctm-dn-im-se-ot-ft, var(--_tst-dn-im-se-ot-ft));
680
+ // object-fit: cover;
681
+
682
+ &[data-has-title="true"] {
683
+ height: 85%;
684
+ }
685
+
686
+ /* display: block; */
687
+ }
688
+ }
689
+
690
+ .load__more__div {
691
+ display: flex;
692
+ justify-content: center;
693
+ margin-block: 12px;
694
+ & > button {
695
+ padding-inline: 24px;
696
+ border: 1px solid gray;
697
+ padding-block: 12px;
698
+ border-radius: 6px;
584
699
  }
585
700
  }