@sc-360-v2/storefront-cms-library 0.3.36 → 0.3.38

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.
@@ -278,43 +278,11 @@ $resizeActive: '[data-cms-element-resizer="true"]';
278
278
  align-items: flex-start;
279
279
  justify-content: center;
280
280
  border-radius: 6px;
281
- img {
282
- max-height: 100%;
283
- max-width: 100%;
284
- }
285
281
  }
286
282
  .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
- }
283
+ display: flex;
284
+ flex-direction: column;
285
+ gap: 8px;
318
286
  .product__hilights {
319
287
  display: flex;
320
288
  align-items: center;
@@ -341,6 +309,408 @@ $resizeActive: '[data-cms-element-resizer="true"]';
341
309
  }
342
310
  }
343
311
  }
312
+ .product__name {
313
+ font-weight: 6000;
314
+ }
315
+ .brand__container {
316
+ display: flex;
317
+ align-items: center;
318
+ gap: 8px;
319
+ color: #696464;
320
+ }
321
+ }
322
+ }
323
+ }
324
+ }
325
+
326
+ .embla {
327
+ width: 100%;
328
+ height: 100%;
329
+ position: relative;
330
+ display: flex;
331
+ flex-direction: column;
332
+ // overflow: hidden;
333
+
334
+ .embla__viewport {
335
+ width: 100%;
336
+ height: 100%;
337
+ position: relative;
338
+ display: flex;
339
+ flex-direction: column;
340
+
341
+ overflow: hidden;
342
+
343
+ .embla__container {
344
+ width: 100%;
345
+ height: 100%;
346
+ display: grid;
347
+ grid-template-rows: 100%;
348
+
349
+ grid-template-columns: repeat(
350
+ var(--_ctm-mob-lt-is-pr-se, var(--_ctm-tab-lt-is-pr-se, var(--_ctm-lt-is-pr-se))),
351
+ calc(
352
+ 100% /
353
+ var(--_ctm-mob-lt-is-pr-se, var(--_ctm-tab-lt-is-pr-se, var(--_ctm-lt-is-pr-se)))
354
+ )
355
+ );
356
+
357
+ grid-auto-flow: column;
358
+ gap: var(--_ctm-mob-lt-im-gp, var(--_ctm-tab-lt-im-gp, var(--_ctm-lt-im-gp)));
359
+
360
+ &[data-control-type="Bottom"][data-slider-control="Arrows"] {
361
+ height: calc(100% - calc(50px + 10px));
362
+ }
363
+
364
+ &[data-control-type="Bottom"][data-slider-control="Pagination Line"] {
365
+ height: calc(100% - calc(50px + 20px));
366
+ }
367
+
368
+ &[data-control-type="Bottom"][data-slider-control="Dots"] {
369
+ height: calc(
370
+ 100% - calc(
371
+ var(
372
+ --_ctm-mob-dn-pn-ds-dt-se,
373
+ var(--_ctm-tab-dn-pn-ds-dt-se, var(--_ctm-dn-pn-ds-dt-se))
374
+ ) +
375
+ 20px
376
+ )
377
+ );
378
+ }
379
+
380
+ .embla__slide {
381
+ width: 100%;
382
+ height: 100%;
383
+ & > img {
384
+ width: 100%;
385
+ height: 100%;
386
+ }
387
+ }
388
+ }
389
+ }
390
+ &:not([data-display-style="Column"]) {
391
+ .embla__container {
392
+ grid-auto-columns: calc(
393
+ 100% / var(--_ctm-mob-lt-is-pr-se, var(--_ctm-tab-lt-is-pr-se, var(--_ctm-lt-is-pr-se)))
394
+ );
395
+ }
396
+ }
397
+
398
+ .arrow-navigation {
399
+ display: flex;
400
+ position: absolute;
401
+ top: 50%;
402
+ left: 50%;
403
+ width: 100%;
404
+ justify-content: space-between;
405
+ transform: translate(-50%, -50%);
406
+ // padding-left: 20px;
407
+ &[data-control-type="Side"] {
408
+ .left-button,
409
+ .right-button {
410
+ background-color: transparent;
411
+ }
412
+ }
413
+ &[data-background-shape="Round"] {
414
+ .left-button,
415
+ .right-button {
416
+ background-color: #f2f5f5;
417
+ box-sizing: 0 4px 8px rgba(0, 0, 0, 0.1);
418
+ }
419
+ }
420
+ &[data-control-type="Bottom-Overflow"] {
421
+ transform: translateX(-50%);
422
+ width: 100%;
423
+ justify-content: center;
424
+ gap: 12px;
425
+ top: unset;
426
+ bottom: 6px;
427
+ }
428
+ &[data-control-type="Bottom"] {
429
+ transform: unset;
430
+ position: static;
431
+ width: 100%;
432
+ justify-content: center;
433
+ gap: 12px;
434
+ margin-top: 10px;
435
+ }
436
+ .left-button {
437
+ padding: 10px;
438
+ border-radius: 50%;
439
+ border: none;
440
+ width: var(
441
+ --_ctm-mob-dn-pn-as-aw-se,
442
+ var(--_ctm-tab-dn-pn-as-aw-se, var(--_ctm-dn-pn-as-aw-se))
443
+ );
444
+ height: var(
445
+ --_ctm-mob-dn-pn-as-aw-se,
446
+ var(--_ctm-tab-dn-pn-as-aw-se, var(--_ctm-dn-pn-as-aw-se))
447
+ );
448
+
449
+ display: flex;
450
+ align-items: center;
451
+ justify-content: center;
452
+ cursor: pointer;
453
+ outline: none;
454
+ margin-left: 12px;
455
+ &:disabled {
456
+ & svg {
457
+ path {
458
+ stroke: rgb(157, 153, 153);
459
+ }
460
+ }
461
+ }
462
+ }
463
+ .right-button {
464
+ border-radius: 50%;
465
+ border: none;
466
+ width: var(
467
+ --_ctm-mob-dn-pn-as-aw-se,
468
+ var(--_ctm-tab-dn-pn-as-aw-se, var(--_ctm-dn-pn-as-aw-se))
469
+ );
470
+ height: var(
471
+ --_ctm-mob-dn-pn-as-aw-se,
472
+ var(--_ctm-tab-dn-pn-as-aw-se, var(--_ctm-dn-pn-as-aw-se))
473
+ );
474
+
475
+ display: flex;
476
+ align-items: center;
477
+ justify-content: center;
478
+ cursor: pointer;
479
+ outline: none;
480
+ margin-right: 12px;
481
+ padding: 10px;
482
+
483
+ &:disabled {
484
+ & svg {
485
+ path {
486
+ stroke: rgb(157, 153, 153);
487
+ }
488
+ }
489
+ }
490
+ }
491
+ .icon {
492
+ display: flex;
493
+
494
+ svg {
495
+ width: calc(
496
+ var(
497
+ --_ctm-mob-dn-pn-as-aw-se,
498
+ var(--_ctm-tab-dn-pn-as-aw-se, var(--_ctm-dn-pn-as-aw-se))
499
+ ) *
500
+ 0.5
501
+ );
502
+ height: calc(
503
+ var(
504
+ --_ctm-mob-dn-pn-as-aw-se,
505
+ var(--_ctm-tab-dn-pn-as-aw-se, var(--_ctm-dn-pn-as-aw-se))
506
+ ) *
507
+ 0.5
508
+ );
509
+
510
+ path {
511
+ stroke: rgb(56, 55, 55);
512
+ }
513
+ }
514
+ }
515
+ }
516
+
517
+ &[data-control-type="Side"] {
518
+ .embla__viewport {
519
+ width: calc(100% - 120px);
520
+ margin-inline: auto;
521
+ }
522
+ .left-button {
523
+ position: absolute;
524
+ left: 0;
525
+ top: 50%;
526
+ transform: translateY(-50%);
527
+ }
528
+ .right-button {
529
+ position: absolute;
530
+
531
+ right: 0;
532
+ top: 50%;
533
+ transform: translateY(-50%);
534
+ }
535
+ }
536
+
537
+ &[data-thumbnail-placement="top"] {
538
+ flex-direction: column-reverse;
539
+ }
540
+ &[data-thumbnail-placement="bottom"] {
541
+ flex-direction: column;
542
+ }
543
+ &[data-thumbnail-placement="left"] {
544
+ flex-direction: row-reverse;
545
+
546
+ .embla__thumbs {
547
+ width: var(--_ctm-lt-tl-se);
548
+ height: 100%;
549
+
550
+ & .embla__thumbs__container {
551
+ flex-direction: column;
552
+ height: 100%;
553
+ }
554
+ }
555
+ }
556
+ &[data-thumbnail-placement="right"] {
557
+ flex-direction: row;
558
+ .embla__thumbs {
559
+ width: var(--_ctm-mob-lt-tl-se, var(--_ctm-tab-lt-tl-se, var(--_ctm-lt-tl-se)));
560
+
561
+ height: 100%;
562
+
563
+ & .embla__thumbs__container {
564
+ flex-direction: column;
565
+ height: 100%;
566
+ }
567
+ }
568
+ }
569
+ .embla__dots {
570
+ display: flex;
571
+ flex-wrap: wrap;
572
+ justify-content: center;
573
+ align-items: center;
574
+ margin-right: calc((2.6rem - 1.4rem) / 2 * -1);
575
+ gap: 6px;
576
+
577
+ &[data-control-type="Bottom-Overflow"] {
578
+ position: absolute;
579
+ bottom: 10px;
580
+ left: 50%;
581
+ transform: translateX(-50%);
582
+ width: 75%;
583
+ }
584
+ .embla__dot {
585
+ -webkit-tap-highlight-color: rgba(var(--text-high-contrast-rgb-value), 0.5);
586
+ -webkit-appearance: none;
587
+ appearance: none;
588
+ background-color: var(
589
+ --_ctm-mob-dn-pn-ds-or-dt-cr,
590
+ var(--_ctm-tab-dn-pn-ds-or-dt-cr, var(--_ctm-dn-pn-ds-or-dt-cr))
591
+ );
592
+
593
+ touch-action: manipulation;
594
+ display: inline-flex;
595
+ text-decoration: none;
596
+ cursor: pointer;
597
+ border: 0;
598
+ padding: 0;
599
+ margin: 0;
600
+ // width: 0.6rem;
601
+ // height: 0.6rem;
602
+ width: var(
603
+ --_ctm-mob-dn-pn-ds-dt-se,
604
+ var(--_ctm-tab-dn-pn-ds-dt-se, var(--_ctm-dn-pn-ds-dt-se))
605
+ );
606
+ height: var(
607
+ --_ctm-mob-dn-pn-ds-dt-se,
608
+ var(--_ctm-tab-dn-pn-ds-dt-se, var(--_ctm-dn-pn-ds-dt-se))
609
+ );
610
+
611
+ display: flex;
612
+ align-items: center;
613
+ justify-content: center;
614
+ border-radius: 50%;
615
+ }
616
+ .embla__dot:after {
617
+ // box-shadow: inset 0 0 0 0.2rem var(--detail-medium-contrast);
618
+ width: var(
619
+ --_ctm-mob-dn-pn-ds-dt-se,
620
+ var(--_ctm-tab-dn-pn-ds-dt-se, var(--_ctm-dn-pn-ds-dt-se))
621
+ );
622
+ height: var(
623
+ --_ctm-mob-dn-pn-ds-dt-se,
624
+ var(--_ctm-tab-dn-pn-ds-dt-se, var(--_ctm-dn-pn-ds-dt-se))
625
+ );
626
+
627
+ border-radius: 50%;
628
+ display: flex;
629
+ align-items: center;
630
+ content: "";
631
+ }
632
+ .embla__dot--selected:after {
633
+ box-shadow: inset 0 0 0 1px var(--text-body);
634
+ background-color: var(
635
+ --_ctm-mob-dn-pn-ds-ct-dt-cr,
636
+ var(--_ctm-tab-dn-pn-ds-ct-dt-cr, var(--_ctm-dn-pn-ds-ct-dt-cr))
637
+ );
638
+ }
639
+ &[data-slider-control="Pagination Line"] {
640
+ .embla__dot {
641
+ width: var(
642
+ --_ctm-mob-dn-pn-le-le-wh,
643
+ var(--_ctm-tab-dn-pn-le-le-wh, var(--_ctm-dn-pn-le-le-wh))
644
+ );
645
+ height: var(
646
+ --_ctm-mob-dn-pn-le-le-ht,
647
+ var(--_ctm-tab-dn-pn-le-le-ht, var(--_ctm-dn-pn-le-le-ht))
648
+ );
649
+ background-color: var(
650
+ --_ctm-mob-dn-pn-le-or-le-cr,
651
+ var(--_ctm-tab-dn-pn-le-or-le-cr, var(--_ctm-dn-pn-le-or-le-cr))
652
+ );
653
+ border-radius: 6px;
654
+ }
655
+
656
+ .embla__dot--selected:after {
657
+ box-shadow: inset 0 0 0 1px var(--text-body);
658
+ border-radius: 6px;
659
+ width: var(
660
+ --_ctm-mob-dn-pn-le-le-wh,
661
+ var(--_ctm-tab-dn-pn-le-le-wh, var(--_ctm-dn-pn-le-le-wh))
662
+ );
663
+ height: var(
664
+ --_ctm-mob-dn-pn-le-le-ht,
665
+ var(--_ctm-tab-dn-pn-le-le-ht, var(--_ctm-dn-pn-le-le-ht))
666
+ );
667
+ background-color: var(
668
+ --_ctm-mob-dn-pn-le-ct-le-cr,
669
+ var(--_ctm-tab-dn-pn-le-ct-le-cr, var(--_ctm-dn-pn-le-ct-le-cr))
670
+ );
671
+ }
672
+ }
673
+ }
674
+
675
+ .embla__thumbs {
676
+ width: 100%;
677
+ height: var(--_ctm-mob-lt-tl-se, var(--_ctm-tab-lt-tl-se, var(--_ctm-lt-tl-se)));
678
+
679
+ position: relative;
680
+ display: grid;
681
+ grid-template-columns: 1fr;
682
+ overflow: hidden;
683
+ // margin: 10px;
684
+ padding: 10px;
685
+
686
+ .embla__thumbs__viewport {
687
+ width: 100%;
688
+ height: 100%;
689
+ position: relative;
690
+ display: flex;
691
+ flex-direction: column;
692
+
693
+ overflow: hidden;
694
+ }
695
+ .embla__thumbs__container {
696
+ display: flex;
697
+ flex-direction: row;
698
+ margin-left: calc(var(--thumbs-slide-spacing) * -1);
699
+ gap: var(--_ctm-mob-lt-tl-sg, var(--_ctm-tab-lt-tl-sg, var(--_ctm-lt-tl-sg)));
700
+
701
+ width: 100%;
702
+ // justify-content: center;
703
+ // height: 200px;
704
+
705
+ .embla__thumbs__slide {
706
+ min-width: var(--_ctm-mob-lt-tl-se, var(--_ctm-tab-lt-tl-se, var(--_ctm-lt-tl-se)));
707
+ max-width: var(--_ctm-mob-lt-tl-se, var(--_ctm-tab-lt-tl-se, var(--_ctm-lt-tl-se)));
708
+ height: var(--_ctm-mob-lt-tl-se, var(--_ctm-tab-lt-tl-se, var(--_ctm-lt-tl-se)));
709
+
710
+ & img {
711
+ width: 100%;
712
+ height: 100%;
713
+ }
344
714
  }
345
715
  }
346
716
  }