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