@sc-360-v2/storefront-cms-library 0.1.93 → 0.1.95

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 (41) hide show
  1. package/README.md +12 -12
  2. package/dist/amount-estimator.scss +438 -4
  3. package/dist/builder.js +1 -1
  4. package/dist/bulk-variant-picker.scss +725 -19
  5. package/dist/gallery-slider-temp.scss +455 -340
  6. package/dist/globals.scss +94 -94
  7. package/dist/menu.scss +89 -0
  8. package/dist/payment-methods.scss +170 -11
  9. package/dist/pickup-locations.scss +437 -11
  10. package/dist/product-actions.scss +881 -77
  11. package/dist/product-highlights.scss +108 -4
  12. package/dist/product-image.scss +466 -338
  13. package/dist/product-inventory.scss +550 -14
  14. package/dist/product-options.scss +156 -0
  15. package/dist/product-price.scss +686 -284
  16. package/dist/product-promotions.scss +1112 -17
  17. package/dist/product.scss +18 -172
  18. package/dist/quantity-selector.scss +52 -4
  19. package/dist/repeater-item.scss +21 -0
  20. package/dist/repeater.scss +106 -0
  21. package/dist/shipping-estimator.scss +7 -5
  22. package/dist/stack.scss +7 -2
  23. package/dist/store-locations.scss +436 -14
  24. package/dist/tooltip.scss +276 -0
  25. package/dist/types/builder/enums/index.d.ts +9 -2
  26. package/dist/types/builder/tools/element-edit/amountEstimator.d.ts +2 -1
  27. package/dist/types/builder/tools/element-edit/index.d.ts +3 -1
  28. package/dist/types/builder/tools/element-edit/productActions.d.ts +1 -0
  29. package/dist/types/builder/tools/element-edit/productDetails.d.ts +6 -31
  30. package/dist/types/builder/tools/element-edit/productDetailsOLd.d.ts +42 -0
  31. package/dist/types/builder/tools/element-edit/productOptions.d.ts +59 -0
  32. package/dist/types/builder/tools/element-edit/repeater.d.ts +2 -1
  33. package/dist/uom-selector.scss +495 -4
  34. package/dist/variant-picker.scss +767 -19
  35. package/dist/volume-pricing.scss +468 -19
  36. package/dist/widget.scss +24 -3
  37. package/package.json +1 -1
  38. package/dist/App.scss +0 -31
  39. package/dist/mixin.scss +0 -9
  40. package/dist/modal.module.scss +0 -121
  41. package/dist/range-slider.module.scss +0 -85
@@ -1,20 +1,30 @@
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;
@@ -48,75 +58,6 @@
48
58
  var(--_ctm-dn-gy-wt-se-sw-cr, var(--_tst-dn-gy-wt-se-sw-cr))
49
59
  );
50
60
 
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
61
  .gallery-header {
121
62
  // text-align: var(--_ctm-dn-gy-lt-an, var(--_tst-dn-gy-lt-an));
122
63
  // line-height: var(--_ctm-dn-gy-lt-tt-ad-dn-sg, var(--_tst-dn-gy-lt-tt-ad-dn-sg));
@@ -167,79 +108,6 @@
167
108
  // margin-bottom: var(--_mb-4);
168
109
  // }
169
110
  }
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
111
  }
244
112
 
245
113
  &[data-text-position="top"] {
@@ -319,254 +187,514 @@
319
187
  }
320
188
  }
321
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;
322
208
 
323
- .embla__viewport {
209
+ .embla__container {
324
210
  width: 100%;
325
211
  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;
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);
334
218
 
335
- .left-button,
336
- .right-button {
337
- background-color: transparent;
338
- }
219
+ .embla__slide {
220
+ width: 100%;
221
+ height: 100%;
339
222
  }
340
223
  }
341
- .embla {
342
- width: 100%;
343
- }
224
+ }
225
+ &:not([data-display-style="Column"]) {
344
226
  .embla__container {
345
- width: "100%";
346
- height: 100%;
347
- display: grid;
227
+ grid-auto-columns: calc(100% / var(--_ctm-lt-is-pr-se));
228
+ }
229
+ }
348
230
 
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;
231
+ &[data-display-style="Grid"][data-scroll-direction="Vertical"] {
232
+ // overflow: unset;
366
233
 
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;
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);
383
240
  }
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
241
 
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
- );
242
+ .embla__container {
243
+ overflow: unset;
244
+ height: var(--_ctm-height);
245
+ // min-height: var(--_ctm-height);
406
246
 
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
- }
247
+ grid-template-columns: repeat(var(--_ctm-lt-is-pr-rw), 1fr);
248
+ grid-template-rows: unset;
433
249
 
434
- &[data-text-position="On Image"] {
435
- .gallery-header {
436
- width: 100%;
437
- // height: 100%;
438
- position: absolute;
250
+ grid-auto-flow: row;
251
+ &[data-overflow-hidden="true"] {
252
+ overflow: hidden;
439
253
  }
254
+ }
255
+ }
256
+ }
440
257
 
441
- &[data-widget-alignment="top"] {
442
- // 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
+ }
443
265
 
444
- .gallery-header {
445
- top: 0;
266
+ &[data-display-style="Rows"] {
267
+ // overflow: unset;
446
268
 
447
- justify-content: flex-start;
448
- }
449
- }
450
- &[data-widget-alignment="center"] {
451
- // 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
+ }
452
276
 
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;
277
+ .embla__container {
278
+ overflow: hidden;
279
+ height: var(--_ctm-height);
280
+ // min-height: var(--_ctm-height);
463
281
 
464
- justify-content: flex-end;
465
- }
466
- }
467
- }
282
+ grid-template-columns: repeat(var(--_ctm-lt-is-pr-rw), 1fr);
283
+ grid-template-rows: unset;
468
284
 
469
- &[data-text-position="top"] {
470
- flex-direction: column;
285
+ grid-auto-flow: row;
471
286
  }
287
+ }
288
+ }
472
289
 
473
- &[data-text-position="bottom"] {
474
- flex-direction: column-reverse;
475
- }
476
- &[data-text-position="left"] {
477
- flex-direction: row;
290
+ &[data-display-style="Column"] {
291
+ // overflow: unset;
478
292
 
479
- .gallery-header {
480
- width: fit-content;
293
+ .embla__viewport {
294
+ .embla__container {
295
+ display: flex;
296
+ .embla__slide {
297
+ width: unset;
481
298
  height: 100%;
299
+ aspect-ratio: 1 / 2;
482
300
  }
483
- &[data-widget-alignment="top"] {
484
- align-items: flex-start;
301
+ }
302
+ }
303
+ }
304
+ &[data-display-style="Masonry"] {
305
+ // overflow: unset;
485
306
 
486
- .gallery-header {
487
- 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;
488
331
  }
489
332
  }
490
- &[data-widget-alignment="center"] {
491
- align-items: center;
333
+ }
334
+ }
335
+ }
492
336
 
493
- .gallery-header {
494
- 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);
495
391
  }
496
392
  }
497
- &[data-widget-alignment="bottom"] {
498
- align-items: flex-end;
499
-
500
- .gallery-header {
501
- 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);
502
410
  }
503
411
  }
504
412
  }
505
- &[data-text-position="right"] {
506
- flex-direction: row-reverse;
507
- .gallery-header {
508
- width: fit-content;
509
- 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));
510
421
  }
422
+ }
423
+ }
424
+ }
511
425
 
512
- &[data-widget-alignment="top"] {
513
- align-items: flex-start;
426
+ &[data-control-type="Side"] {
427
+ .embla__viewport {
428
+ width: calc(100% - 120px);
429
+ margin-inline: auto;
430
+ }
431
+ }
514
432
 
515
- .gallery-header {
516
- justify-content: flex-start;
517
- }
518
- }
519
- &[data-widget-alignment="center"] {
520
- 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;
521
441
 
522
- .gallery-header {
523
- justify-content: center;
524
- }
525
- }
526
- &[data-widget-alignment="bottom"] {
527
- align-items: flex-end;
442
+ .embla__thumbs {
443
+ width: var(--_ctm-lt-tl-se);
444
+ height: 100%;
528
445
 
529
- .gallery-header {
530
- justify-content: flex-end;
531
- }
446
+ & .embla__thumbs__container {
447
+ flex-direction: column;
448
+ height: 100%;
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%;
457
+
458
+ & .embla__thumbs__container {
459
+ flex-direction: column;
460
+ height: 100%;
461
+ }
462
+ }
463
+ }
464
+
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;
481
+
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%;
532
500
  }
533
501
  }
534
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
+ );
535
547
 
536
- .embla__slide > img {
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 {
537
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;
586
+
587
+ justify-content: flex-start;
588
+ }
589
+ }
590
+ &[data-widget-alignment="center"] {
591
+ // align-items: center;
592
+
593
+ .gallery-header {
594
+ top: 50%;
595
+ transform: translateY(-50%);
596
+ justify-content: center;
597
+ }
598
+ }
599
+ &[data-widget-alignment="bottom"] {
600
+ // align-items: flex-end;
601
+ .gallery-header {
602
+ bottom: 0;
603
+
604
+ justify-content: flex-end;
605
+ }
606
+ }
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;
538
621
  height: 100%;
539
- // object-fit: cover;
622
+ }
623
+ &[data-widget-alignment="top"] {
624
+ align-items: flex-start;
540
625
 
541
- object-fit: var(--_ctm-dn-im-se-ot-ft, var(--_tst-dn-im-se-ot-ft));
542
- margin-bottom: 12px;
626
+ .gallery-header {
627
+ justify-content: flex-start;
628
+ }
629
+ }
630
+ &[data-widget-alignment="center"] {
631
+ align-items: center;
543
632
 
544
- &[data-has-title="true"] {
545
- height: 85%;
633
+ .gallery-header {
634
+ justify-content: center;
546
635
  }
636
+ }
637
+ &[data-widget-alignment="bottom"] {
638
+ align-items: flex-end;
547
639
 
548
- /* display: block; */
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%;
549
650
  }
550
651
 
551
- .embla-thumbs {
552
- --thumbs-slide-spacing: 0.8rem;
553
- --thumbs-slide-height: 6rem;
554
- margin-top: var(--thumbs-slide-spacing);
652
+ &[data-widget-alignment="top"] {
653
+ align-items: flex-start;
654
+
655
+ .gallery-header {
656
+ justify-content: flex-start;
657
+ }
555
658
  }
556
- .embla-thumbs__viewport {
557
- overflow: hidden;
558
- margin: 20px;
659
+ &[data-widget-alignment="center"] {
660
+ align-items: center;
661
+
662
+ .gallery-header {
663
+ justify-content: center;
664
+ }
559
665
  }
560
- .embla-thumbs__container {
561
- display: flex;
562
- flex-direction: row;
563
- margin-left: calc(var(--thumbs-slide-spacing) * -1);
666
+ &[data-widget-alignment="bottom"] {
667
+ align-items: flex-end;
668
+
669
+ .gallery-header {
670
+ justify-content: flex-end;
671
+ }
564
672
  }
565
- .embla-thumbs__slide {
566
- flex: 0 0 22%;
567
- min-width: 0;
568
- padding-left: var(--thumbs-slide-spacing);
569
- cursor: pointer;
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%;
570
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;
571
699
  }
572
700
  }