@sc-360-v2/storefront-cms-library 0.5.49 → 0.5.50

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.
@@ -1,757 +0,0 @@
1
- @use "sass:map";
2
- @use "sass:list";
3
-
4
- $resizerId: "[data-cms-tool='cms-element-resizer']";
5
- $resizeActive: '[data-cms-element-resizer="true"]';
6
- [data-div-type="element"] {
7
- &[data-element-type="allocationDetails"] {
8
- // width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
9
- width: var(
10
- --_sf-el-wh-st-mx,
11
- calc(
12
- 1% * var(--_ctm-mob-ele-nw-wh-vl, var(--_ctm-tab-ele-nw-wh-vl, var(--_ctm-ele-nw-wh-vl)))
13
- )
14
- );
15
- margin: var(--_ctm-lt-mn, --_tst-lt-mn);
16
-
17
- & > div {
18
- &.wrapper {
19
- width: 100%;
20
- }
21
- }
22
- .product__showcase {
23
- background-color: rgb(247, 246, 243);
24
- width: 100%;
25
- padding: 50px;
26
- // height: 100vh;/
27
- // overflow-y: auto;
28
-
29
- .main__header {
30
- display: flex;
31
- justify-content: space-between;
32
- padding: 16px 0;
33
- margin-bottom: 16px;
34
- border-bottom: var(--Gray-500, #eaecf0) 1px solid;
35
- .profile_heading {
36
- margin-bottom: 10px;
37
- }
38
- .section__title {
39
- color: var(--Gray-900, #101828);
40
-
41
- font-size: 20px;
42
- font-style: normal;
43
- font-weight: 700;
44
- line-height: 30px;
45
- margin: 0px;
46
- h3 {
47
- display: flex;
48
- align-items: center;
49
- font-size: 20px;
50
- .text__secondary {
51
- color: var(--Gray-iron-500, #70707b);
52
- font-size: 16px;
53
-
54
- font-size: 16px;
55
- font-style: normal;
56
- font-weight: 400;
57
- line-height: 18px;
58
- padding-left: 8px;
59
- .text__primary {
60
- color: #243dc6;
61
- font-size: 16px;
62
- }
63
- }
64
- }
65
- .section__desc {
66
- color: var(--Gray-iron-500, #70707b);
67
-
68
- font-size: 16px;
69
- font-style: normal;
70
- font-weight: 400;
71
- line-height: 18px;
72
- margin: 0px;
73
- span {
74
- color: var(--Gray-900, #101828);
75
-
76
- font-size: 16px;
77
- font-style: normal;
78
- font-weight: 600;
79
- line-height: 24px;
80
- }
81
- }
82
- }
83
- .button__group {
84
- display: flex;
85
- gap: 12px;
86
- }
87
- .product__views {
88
- display: flex;
89
- background-color: #fff;
90
- border: 1px solid var(--_gray-300);
91
- border-radius: 6px;
92
- height: 40px;
93
- overflow: hidden;
94
-
95
- .btn {
96
- display: inline-block;
97
- padding: 8px;
98
- display: flex;
99
- align-items: center;
100
- justify-content: center;
101
- cursor: pointer;
102
- button {
103
- display: flex;
104
- }
105
- &:hover {
106
- background-color: var(--_gray-100);
107
- }
108
- &.active {
109
- background-color: #ced4f6;
110
- button {
111
- svg {
112
- path {
113
- stroke: var(--_primary-500);
114
- }
115
- }
116
- }
117
- }
118
- &:first-child {
119
- border-right: 1px solid var(--_gray-200);
120
- }
121
- }
122
- }
123
- }
124
- // products header styles
125
- .showcase__header {
126
- display: flex;
127
- justify-content: space-between;
128
- padding: 16px 0;
129
- margin-bottom: 16px;
130
- border-bottom: var(--Gray-200, #eaecf0) 1px solid;
131
-
132
- .section__title {
133
- color: var(--Gray-900, #101828);
134
-
135
- font-size: 20px;
136
- font-style: normal;
137
- font-weight: 700;
138
- line-height: 30px;
139
- margin: 0px;
140
- h3 {
141
- display: flex;
142
- align-items: center;
143
- font-size: 20px;
144
- .text__secondary {
145
- color: var(--Gray-iron-500, #70707b);
146
- font-size: 16px;
147
-
148
- font-size: 16px;
149
- font-style: normal;
150
- font-weight: 400;
151
- line-height: 18px;
152
- padding-left: 8px;
153
- .text__primary {
154
- color: #243dc6;
155
- font-size: 16px;
156
- }
157
- }
158
- }
159
- .section__desc {
160
- color: var(--Gray-iron-500, #70707b);
161
-
162
- font-size: 16px;
163
- font-style: normal;
164
- font-weight: 400;
165
- line-height: 18px;
166
- margin: 0px;
167
- span {
168
- color: var(--Gray-900, #101828);
169
-
170
- font-size: 16px;
171
- font-style: normal;
172
- font-weight: 600;
173
- line-height: 24px;
174
- }
175
- }
176
- }
177
- .button__group {
178
- display: flex;
179
- gap: 12px;
180
- }
181
- .product__views {
182
- display: flex;
183
- background-color: #fff;
184
- border: 1px solid var(--_gray-300);
185
- border-radius: 6px;
186
- height: 40px;
187
- overflow: hidden;
188
-
189
- .btn {
190
- display: inline-block;
191
- padding: 8px;
192
- display: flex;
193
- align-items: center;
194
- justify-content: center;
195
- cursor: pointer;
196
- button {
197
- display: flex;
198
- }
199
- &:hover {
200
- background-color: var(--_gray-100);
201
- }
202
- &.active {
203
- background-color: #ced4f6;
204
- button {
205
- svg {
206
- path {
207
- stroke: var(--_primary-500);
208
- }
209
- }
210
- }
211
- }
212
- &:first-child {
213
- border-right: 1px solid var(--_gray-200);
214
- }
215
- }
216
- }
217
- }
218
-
219
- // add to cart button styles
220
- .primary__btn {
221
- display: flex;
222
- gap: 8px;
223
- height: 44px;
224
- padding: 8px 14px;
225
- background-color: var(--_primary-500);
226
- border-radius: 6px;
227
- color: #fff;
228
- font-weight: 600;
229
- height: 40px;
230
- display: inline-flex;
231
- cursor: pointer;
232
- &:hover {
233
- background-color: var(--_primary-500);
234
- }
235
- &.disable__btn {
236
- cursor: not-allowed;
237
- opacity: 0.5;
238
- }
239
- }
240
-
241
- // product list styles
242
- .showcase__product__list {
243
- &.grid_view {
244
- grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
245
- gap: 24px;
246
- .product__card {
247
- flex-direction: column;
248
- .card__img__container {
249
- width: 100%;
250
- }
251
- }
252
- }
253
- &.list_view {
254
- grid-template-columns: auto;
255
- .product__card {
256
- flex-direction: row;
257
- align-items: center;
258
- gap: 24px;
259
- .card__img__container {
260
- width: 250px;
261
- }
262
- }
263
- }
264
- display: grid;
265
-
266
- .product__card {
267
- // product card styles
268
- display: flex;
269
- gap: 24px;
270
- border: 1px solid var(--gray-200);
271
-
272
- gap: 12px;
273
- margin-bottom: 24px;
274
- .card__img__container {
275
- height: 300px;
276
- background-color: #fff;
277
- display: flex;
278
- align-items: flex-start;
279
- justify-content: center;
280
- border-radius: 6px;
281
- img {
282
- max-height: 100%;
283
- max-width: 100%;
284
- }
285
- }
286
- .price_details {
287
- .prod_price_info {
288
- .product__title {
289
- font-size: 16px;
290
- color: var(--_gray-700);
291
- margin-bottom: 4px;
292
- word-break: break-word;
293
- }
294
-
295
- .product__desc {
296
- font-size: 14px;
297
- color: var(--_gray-500);
298
- white-space: nowrap;
299
- overflow: hidden;
300
- text-overflow: clip;
301
- }
302
- .product__price {
303
- position: relative;
304
- margin-block: 20px;
305
- .discounted__price {
306
- font-size: 20px;
307
- color: var(--_gray-900);
308
- font-weight: 600;
309
- }
310
- .offer__price {
311
- position: absolute;
312
- font-size: 16px;
313
- color: #797583;
314
- margin-left: 4px;
315
- }
316
- }
317
- }
318
- .product__hilights {
319
- display: flex;
320
- align-items: center;
321
- font-weight: 700;
322
- font-size: 16px;
323
- gap: 4px;
324
- margin-bottom: 20px;
325
- .product__list__item {
326
- display: flex;
327
- align-items: center;
328
- gap: 4px;
329
-
330
- .svg_icon {
331
- display: flex;
332
- }
333
-
334
- &:not(:last-child)::after {
335
- content: "";
336
- display: inline-block;
337
- height: 18px;
338
- width: 2px;
339
- background-color: var(--_gray-200);
340
- margin-inline: 6px;
341
- }
342
- }
343
- }
344
- }
345
- }
346
- }
347
- }
348
-
349
- .embla {
350
- width: 100%;
351
- height: 100%;
352
- position: relative;
353
- display: flex;
354
- flex-direction: column;
355
- // overflow: hidden;
356
-
357
- .embla__viewport {
358
- width: 100%;
359
- height: 100%;
360
- position: relative;
361
- display: flex;
362
- flex-direction: column;
363
-
364
- overflow: hidden;
365
-
366
- .embla__container {
367
- width: 100%;
368
- height: 100%;
369
- display: grid;
370
- grid-template-rows: 100%;
371
-
372
- grid-template-columns: repeat(
373
- var(--_ctm-mob-lt-is-pr-se, var(--_ctm-tab-lt-is-pr-se, var(--_ctm-lt-is-pr-se))),
374
- calc(
375
- 100% /
376
- var(--_ctm-mob-lt-is-pr-se, var(--_ctm-tab-lt-is-pr-se, var(--_ctm-lt-is-pr-se)))
377
- )
378
- );
379
-
380
- grid-auto-flow: column;
381
- gap: var(--_ctm-mob-lt-im-gp, var(--_ctm-tab-lt-im-gp, var(--_ctm-lt-im-gp)));
382
-
383
- &[data-control-type="Bottom"][data-slider-control="Arrows"] {
384
- height: calc(
385
- 100% - calc(
386
- var(
387
- --_ctm-mob-dn-pn-as-aw-se,
388
- var(--_ctm-tab-dn-pn-as-aw-se, var(--_ctm-dn-pn-as-aw-se))
389
- ) +
390
- 10px
391
- )
392
- );
393
- }
394
-
395
- &[data-control-type="Bottom"][data-slider-control="Pagination Line"] {
396
- height: calc(
397
- 100% - calc(
398
- var(
399
- --_ctm-mob-dn-pn-le-le-ht,
400
- var(--_ctm-tab-dn-pn-le-le-ht, var(--_ctm-dn-pn-le-le-ht))
401
- ) +
402
- 20px
403
- )
404
- );
405
- }
406
-
407
- &[data-control-type="Bottom"][data-slider-control="Dots"] {
408
- height: calc(
409
- 100% - calc(
410
- var(
411
- --_ctm-mob-dn-pn-ds-dt-se,
412
- var(--_ctm-tab-dn-pn-ds-dt-se, var(--_ctm-dn-pn-ds-dt-se))
413
- ) +
414
- 20px
415
- )
416
- );
417
- }
418
-
419
- .embla__slide {
420
- width: 100%;
421
- height: 100%;
422
- }
423
- }
424
- }
425
- &:not([data-display-style="Column"]) {
426
- .embla__container {
427
- grid-auto-columns: calc(
428
- 100% / var(--_ctm-mob-lt-is-pr-se, var(--_ctm-tab-lt-is-pr-se, var(--_ctm-lt-is-pr-se)))
429
- );
430
- }
431
- }
432
-
433
- .arrow-navigation {
434
- display: flex;
435
- position: absolute;
436
- top: 50%;
437
- left: 50%;
438
- width: 100%;
439
- justify-content: space-between;
440
- transform: translate(-50%, -50%);
441
- // padding-left: 20px;
442
- &[data-control-type="Side"] {
443
- .left-button,
444
- .right-button {
445
- background-color: transparent;
446
- }
447
- }
448
- &[data-background-shape="Round"] {
449
- .left-button,
450
- .right-button {
451
- background-color: #f2f5f5;
452
- box-sizing: 0 4px 8px rgba(0, 0, 0, 0.1);
453
- }
454
- }
455
- &[data-control-type="Bottom-Overflow"] {
456
- transform: translateX(-50%);
457
- width: 100%;
458
- justify-content: center;
459
- gap: 12px;
460
- top: unset;
461
- bottom: 6px;
462
- }
463
- &[data-control-type="Bottom"] {
464
- transform: unset;
465
- position: static;
466
- width: 100%;
467
- justify-content: center;
468
- gap: 12px;
469
- margin-top: 10px;
470
- }
471
- .left-button {
472
- padding: 10px;
473
- border-radius: 50%;
474
- border: none;
475
- width: var(
476
- --_ctm-mob-dn-pn-as-aw-se,
477
- var(--_ctm-tab-dn-pn-as-aw-se, var(--_ctm-dn-pn-as-aw-se))
478
- );
479
- height: var(
480
- --_ctm-mob-dn-pn-as-aw-se,
481
- var(--_ctm-tab-dn-pn-as-aw-se, var(--_ctm-dn-pn-as-aw-se))
482
- );
483
-
484
- display: flex;
485
- align-items: center;
486
- justify-content: center;
487
- cursor: pointer;
488
- outline: none;
489
- margin-left: 12px;
490
- &:disabled {
491
- & svg {
492
- path {
493
- stroke: rgb(192, 192, 192);
494
- }
495
- }
496
- }
497
- }
498
- .right-button {
499
- border-radius: 50%;
500
- border: none;
501
- width: var(
502
- --_ctm-mob-dn-pn-as-aw-se,
503
- var(--_ctm-tab-dn-pn-as-aw-se, var(--_ctm-dn-pn-as-aw-se))
504
- );
505
- height: var(
506
- --_ctm-mob-dn-pn-as-aw-se,
507
- var(--_ctm-tab-dn-pn-as-aw-se, var(--_ctm-dn-pn-as-aw-se))
508
- );
509
-
510
- display: flex;
511
- align-items: center;
512
- justify-content: center;
513
- cursor: pointer;
514
- outline: none;
515
- margin-right: 12px;
516
- padding: 10px;
517
-
518
- &:disabled {
519
- & svg {
520
- path {
521
- stroke: rgb(192, 192, 192);
522
- }
523
- }
524
- }
525
- }
526
- .icon {
527
- display: flex;
528
-
529
- svg {
530
- width: calc(
531
- var(
532
- --_ctm-mob-dn-pn-as-aw-se,
533
- var(--_ctm-tab-dn-pn-as-aw-se, var(--_ctm-dn-pn-as-aw-se))
534
- ) *
535
- 0.5
536
- );
537
- height: calc(
538
- var(
539
- --_ctm-mob-dn-pn-as-aw-se,
540
- var(--_ctm-tab-dn-pn-as-aw-se, var(--_ctm-dn-pn-as-aw-se))
541
- ) *
542
- 0.5
543
- );
544
-
545
- path {
546
- stroke: var(
547
- --_ctm-mob-dn-pn-as-aw-cr,
548
- var(--_ctm-tab-dn-pn-as-aw-cr, var(--_ctm-dn-pn-as-aw-cr))
549
- );
550
- }
551
- }
552
- }
553
- }
554
-
555
- &[data-control-type="Side"] {
556
- .embla__viewport {
557
- width: calc(100% - 120px);
558
- margin-inline: auto;
559
- }
560
- .left-button {
561
- position: absolute;
562
- left: 0;
563
- top: 50%;
564
- transform: translateY(-50%);
565
- }
566
- .right-button {
567
- position: absolute;
568
-
569
- right: 0;
570
- top: 50%;
571
- transform: translateY(-50%);
572
- }
573
- }
574
-
575
- &[data-thumbnail-placement="top"] {
576
- flex-direction: column-reverse;
577
- }
578
- &[data-thumbnail-placement="bottom"] {
579
- flex-direction: column;
580
- }
581
- &[data-thumbnail-placement="left"] {
582
- flex-direction: row-reverse;
583
-
584
- .embla__thumbs {
585
- width: var(--_ctm-lt-tl-se);
586
- height: 100%;
587
-
588
- & .embla__thumbs__container {
589
- flex-direction: column;
590
- height: 100%;
591
- }
592
- }
593
- }
594
- &[data-thumbnail-placement="right"] {
595
- flex-direction: row;
596
- .embla__thumbs {
597
- width: var(--_ctm-mob-lt-tl-se, var(--_ctm-tab-lt-tl-se, var(--_ctm-lt-tl-se)));
598
-
599
- height: 100%;
600
-
601
- & .embla__thumbs__container {
602
- flex-direction: column;
603
- height: 100%;
604
- }
605
- }
606
- }
607
- .embla__dots {
608
- display: flex;
609
- flex-wrap: wrap;
610
- justify-content: center;
611
- align-items: center;
612
- margin-right: calc((2.6rem - 1.4rem) / 2 * -1);
613
- gap: 6px;
614
-
615
- &[data-control-type="Bottom-Overflow"] {
616
- position: absolute;
617
- bottom: 10px;
618
- left: 50%;
619
- transform: translateX(-50%);
620
- width: 75%;
621
- }
622
- .embla__dot {
623
- -webkit-tap-highlight-color: rgba(var(--text-high-contrast-rgb-value), 0.5);
624
- -webkit-appearance: none;
625
- appearance: none;
626
- background-color: var(
627
- --_ctm-mob-dn-pn-ds-or-dt-cr,
628
- var(--_ctm-tab-dn-pn-ds-or-dt-cr, var(--_ctm-dn-pn-ds-or-dt-cr))
629
- );
630
-
631
- touch-action: manipulation;
632
- display: inline-flex;
633
- text-decoration: none;
634
- cursor: pointer;
635
- border: 0;
636
- padding: 0;
637
- margin: 0;
638
- // width: 0.6rem;
639
- // height: 0.6rem;
640
- width: var(
641
- --_ctm-mob-dn-pn-ds-dt-se,
642
- var(--_ctm-tab-dn-pn-ds-dt-se, var(--_ctm-dn-pn-ds-dt-se))
643
- );
644
- height: var(
645
- --_ctm-mob-dn-pn-ds-dt-se,
646
- var(--_ctm-tab-dn-pn-ds-dt-se, var(--_ctm-dn-pn-ds-dt-se))
647
- );
648
-
649
- display: flex;
650
- align-items: center;
651
- justify-content: center;
652
- border-radius: 50%;
653
- }
654
- .embla__dot:after {
655
- // box-shadow: inset 0 0 0 0.2rem var(--detail-medium-contrast);
656
- width: var(
657
- --_ctm-mob-dn-pn-ds-dt-se,
658
- var(--_ctm-tab-dn-pn-ds-dt-se, var(--_ctm-dn-pn-ds-dt-se))
659
- );
660
- height: var(
661
- --_ctm-mob-dn-pn-ds-dt-se,
662
- var(--_ctm-tab-dn-pn-ds-dt-se, var(--_ctm-dn-pn-ds-dt-se))
663
- );
664
-
665
- border-radius: 50%;
666
- display: flex;
667
- align-items: center;
668
- content: "";
669
- }
670
- .embla__dot--selected:after {
671
- box-shadow: inset 0 0 0 1px var(--text-body);
672
- background-color: var(
673
- --_ctm-mob-dn-pn-ds-ct-dt-cr,
674
- var(--_ctm-tab-dn-pn-ds-ct-dt-cr, var(--_ctm-dn-pn-ds-ct-dt-cr))
675
- );
676
- }
677
- &[data-slider-control="Pagination Line"] {
678
- .embla__dot {
679
- width: var(
680
- --_ctm-mob-dn-pn-le-le-wh,
681
- var(--_ctm-tab-dn-pn-le-le-wh, var(--_ctm-dn-pn-le-le-wh))
682
- );
683
- height: var(
684
- --_ctm-mob-dn-pn-le-le-ht,
685
- var(--_ctm-tab-dn-pn-le-le-ht, var(--_ctm-dn-pn-le-le-ht))
686
- );
687
- background-color: var(
688
- --_ctm-mob-dn-pn-le-or-le-cr,
689
- var(--_ctm-tab-dn-pn-le-or-le-cr, var(--_ctm-dn-pn-le-or-le-cr))
690
- );
691
- border-radius: 6px;
692
- }
693
-
694
- .embla__dot--selected:after {
695
- box-shadow: inset 0 0 0 1px var(--text-body);
696
- border-radius: 6px;
697
- width: var(
698
- --_ctm-mob-dn-pn-le-le-wh,
699
- var(--_ctm-tab-dn-pn-le-le-wh, var(--_ctm-dn-pn-le-le-wh))
700
- );
701
- height: var(
702
- --_ctm-mob-dn-pn-le-le-ht,
703
- var(--_ctm-tab-dn-pn-le-le-ht, var(--_ctm-dn-pn-le-le-ht))
704
- );
705
- background-color: var(
706
- --_ctm-mob-dn-pn-le-ct-le-cr,
707
- var(--_ctm-tab-dn-pn-le-ct-le-cr, var(--_ctm-dn-pn-le-ct-le-cr))
708
- );
709
- }
710
- }
711
- }
712
-
713
- .embla__thumbs {
714
- width: 100%;
715
- height: var(--_ctm-mob-lt-tl-se, var(--_ctm-tab-lt-tl-se, var(--_ctm-lt-tl-se)));
716
-
717
- position: relative;
718
- display: grid;
719
- grid-template-columns: 1fr;
720
- overflow: hidden;
721
- // margin: 10px;
722
- padding: 10px;
723
-
724
- .embla__thumbs__viewport {
725
- width: 100%;
726
- height: 100%;
727
- position: relative;
728
- display: flex;
729
- flex-direction: column;
730
-
731
- overflow: hidden;
732
- }
733
- .embla__thumbs__container {
734
- display: flex;
735
- flex-direction: row;
736
- margin-left: calc(var(--thumbs-slide-spacing) * -1);
737
- gap: var(--_ctm-mob-lt-tl-sg, var(--_ctm-tab-lt-tl-sg, var(--_ctm-lt-tl-sg)));
738
-
739
- width: 100%;
740
- // justify-content: center;
741
- // height: 200px;
742
-
743
- .embla__thumbs__slide {
744
- min-width: var(--_ctm-mob-lt-tl-se, var(--_ctm-tab-lt-tl-se, var(--_ctm-lt-tl-se)));
745
- max-width: var(--_ctm-mob-lt-tl-se, var(--_ctm-tab-lt-tl-se, var(--_ctm-lt-tl-se)));
746
- height: var(--_ctm-mob-lt-tl-se, var(--_ctm-tab-lt-tl-se, var(--_ctm-lt-tl-se)));
747
-
748
- & img {
749
- width: 100%;
750
- height: 100%;
751
- }
752
- }
753
- }
754
- }
755
- }
756
- }
757
- }