@sc-360-v2/storefront-cms-library 0.5.15 → 0.5.16

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.
package/dist/coupon.scss CHANGED
@@ -18,11 +18,13 @@ $resizeActive: '[data-cms-element-resizer="true"]';
18
18
  )
19
19
  );
20
20
  margin: var(--_ctm-mob-lt-mn, var(--_ctm-tab-lt-mn, var(--_ctm-lt-mn)));
21
+
21
22
  & > div {
22
23
  &.wrapper {
23
24
  width: 100%;
24
25
  }
25
26
  }
27
+
26
28
  .coupon_code {
27
29
  background-color: var(
28
30
  --_ctm-mob-dn-cn-cr-bd-cr,
@@ -68,6 +70,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
68
70
  height: auto;
69
71
  position: sticky;
70
72
  top: 10px;
73
+
71
74
  // margin-bottom: 24px;
72
75
  .coupon_code_header {
73
76
  // font-size: 16px;
@@ -126,6 +129,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
126
129
  border-bottom: 1px dashed var(--_gray-300);
127
130
  }
128
131
  }
132
+
129
133
  .coupon_code_body {
130
134
  padding: var(
131
135
  --_ctm-mob-dn-cn-wt-cr-pg,
@@ -141,14 +145,17 @@ $resizeActive: '[data-cms-element-resizer="true"]';
141
145
  --_ctm-mob-dn-cn-wt-cr-im-gp,
142
146
  var(--_ctm-tab-dn-cn-wt-cr-im-gp, var(--_ctm-dn-cn-wt-cr-im-gp))
143
147
  );
148
+
144
149
  .apply_coupon_code_flex {
145
150
  display: flex;
146
151
  gap: var(
147
152
  --_ctm-mob-dn-cn-wt-cr-im-gp,
148
153
  var(--_ctm-tab-dn-cn-wt-cr-im-gp, var(--_ctm-dn-cn-wt-cr-im-gp))
149
154
  );
155
+
150
156
  .cpn__sale__icon {
151
157
  margin-top: 4px;
158
+
152
159
  .icon {
153
160
  svg {
154
161
  width: var(
@@ -159,6 +166,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
159
166
  --_ctm-mob-dn-cn-wt-in-se,
160
167
  var(--_ctm-tab-dn-cn-wt-in-se, var(--_ctm-dn-cn-wt-in-se))
161
168
  );
169
+
162
170
  path {
163
171
  stroke: var(
164
172
  --_ctm-mob-dn-cn-wt-in-c1,
@@ -168,11 +176,13 @@ $resizeActive: '[data-cms-element-resizer="true"]';
168
176
  }
169
177
  }
170
178
  }
179
+
171
180
  .apply_coupon_code {
172
181
  display: flex;
173
182
  flex-direction: column;
174
183
  justify-content: center;
175
184
  gap: 4px;
185
+
176
186
  .cpn_sale_text {
177
187
  // font-size: 14px;
178
188
  font-family: var(
@@ -216,6 +226,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
216
226
  // color: var(--_gray-900);
217
227
  // line-height: 20px;
218
228
  }
229
+
219
230
  .cpn_sale_desc {
220
231
  font-family: var(
221
232
  --_ctm-mob-dn-cn-wt-dn-ft-fy,
@@ -254,6 +265,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
254
265
  --_ctm-mob-dn-cn-wt-dn-tt-an,
255
266
  var(--_ctm-tab-dn-cn-wt-dn-tt-an, var(--_ctm-dn-cn-wt-dn-tt-an))
256
267
  );
268
+
257
269
  // font-size: 14px;
258
270
  // font-weight: 400;
259
271
  // color: var(--_gray-500);
@@ -299,25 +311,51 @@ $resizeActive: '[data-cms-element-resizer="true"]';
299
311
  }
300
312
  }
301
313
  }
314
+
302
315
  .apply_coupon_code_btn {
303
316
  padding: 12px;
304
317
  white-space: nowrap;
305
318
  }
319
+
306
320
  .btn__with__text[data-btn-name="applyButton"] {
307
321
  width: 100%;
322
+
308
323
  &[data-show-shadow="false"] {
309
324
  --_show-shadow: none;
310
325
  }
326
+
311
327
  &[data-icon-position="left"] {
312
328
  --_sf-fd-bn: row;
313
329
  }
330
+
314
331
  &[data-icon-position="right"] {
315
332
  --_sf-fd-bn: row-reverse;
316
333
  }
334
+
317
335
  &[data-icon-position="center"] {
318
336
  --_sf-fd-bn: row;
319
337
  }
320
338
 
339
+ &[data-element-style="Icon"] {
340
+ &[data-icon-position="left"] {
341
+ .add_order_button {
342
+ justify-content: start;
343
+ }
344
+ }
345
+
346
+ &[data-icon-position="right"] {
347
+ .add_order_button {
348
+ justify-content: end;
349
+ }
350
+ }
351
+
352
+ &[data-icon-position="center"] {
353
+ .add_order_button {
354
+ justify-content: center;
355
+ }
356
+ }
357
+ }
358
+
321
359
  &:hover {
322
360
  --_sf-hr-bd-cr: #{prepareMediaVariable(--_ctm-dn-as-ay-bn-hr-se-bd-cr)};
323
361
  --_sf-hr-br-cr: #{prepareMediaVariable(--_ctm-dn-as-ay-bn-hr-se-br-cr)};
@@ -351,9 +389,11 @@ $resizeActive: '[data-cms-element-resizer="true"]';
351
389
  // for pading and width
352
390
  --_sf-hr-pg: #{prepareMediaVariable(--_ctm-dn-as-ay-bn-hr-se-pg)};
353
391
  --_sf-hr-wh: #{prepareMediaVariable(--_ctm-dn-as-ay-bn-hr-se-wh)};
392
+
354
393
  &[data-hover-show-shadow="false"] {
355
394
  --_hover-show-shadow: none;
356
395
  }
396
+
357
397
  &[data-hover-show-icon="false"] {
358
398
  --_hover-show-icon: none;
359
399
  }
@@ -384,6 +424,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
384
424
  var(--_sf-hr-sw-cr, prepareMediaVariable(--_ctm-dn-as-ay-bn-dt-se-sw-cr));
385
425
  width: 140px;
386
426
  display: flex;
427
+
387
428
  &[data-show-border="true"] {
388
429
  // width: 100%;
389
430
  border-color: var(
@@ -441,6 +482,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
441
482
 
442
483
  .icon {
443
484
  display: var(--_hover-show-icon, var(--_show-icon, flex));
485
+
444
486
  svg {
445
487
  width: var(--_sf-hr-in-se, prepareMediaVariable(--_ctm-dn-as-ay-bn-dt-se-in-se));
446
488
  height: var(--_sf-hr-in-se, prepareMediaVariable(--_ctm-dn-as-ay-bn-dt-se-in-se));
@@ -450,11 +492,16 @@ $resizeActive: '[data-cms-element-resizer="true"]';
450
492
  }
451
493
  }
452
494
  }
495
+
453
496
  [data-element-style="Text"] {
454
497
  display: inline-block;
455
498
  width: 100%;
456
499
  }
457
500
 
501
+ &[data-show-icon="false"] {
502
+ --_show-icon: none;
503
+ }
504
+
458
505
  .icon--hover {
459
506
  // position: absolute;
460
507
  // inset: 0;
@@ -474,15 +521,18 @@ $resizeActive: '[data-cms-element-resizer="true"]';
474
521
  }
475
522
  }
476
523
  }
524
+
477
525
  .coupon_code_apply_section {
478
526
  display: flex;
479
527
  flex-direction: column;
480
528
  gap: 16px;
529
+
481
530
  .coupon_code_fields_wrapper {
482
531
  display: flex;
483
532
  align-items: center;
484
533
  justify-content: space-between;
485
534
  gap: 12px;
535
+
486
536
  input {
487
537
  // border: 1px solid #d0d5dd;
488
538
  // padding: 12px;
@@ -571,26 +621,32 @@ $resizeActive: '[data-cms-element-resizer="true"]';
571
621
  transition:
572
622
  outline 0.2s ease,
573
623
  border 0.2s ease;
624
+
574
625
  &:focus {
575
626
  outline: 0 none;
576
627
  outline-offset: 0;
577
628
  box-shadow:
578
629
  0px 1px 2px rgba(16, 24, 40, 0.05),
579
- 0px 0px 0px 2px var(--primary-100);
580
- border: 1px solid var(--primary-300);
630
+ 0px 0px 0px 2px var(--_primary-100);
631
+ border: 1px solid var(--_primary-300);
581
632
  }
582
633
  }
634
+
583
635
  .btn__with__text[data-btn-name="applyButton"] {
584
636
  width: 100%;
637
+
585
638
  &[data-show-shadow="false"] {
586
639
  --_show-shadow: none;
587
640
  }
641
+
588
642
  &[data-icon-position="left"] {
589
643
  --_sf-fd-bn: row;
590
644
  }
645
+
591
646
  &[data-icon-position="right"] {
592
647
  --_sf-fd-bn: row-reverse;
593
648
  }
649
+
594
650
  &[data-icon-position="center"] {
595
651
  --_sf-fd-bn: row;
596
652
  }
@@ -628,9 +684,11 @@ $resizeActive: '[data-cms-element-resizer="true"]';
628
684
  // for pading and width
629
685
  --_sf-hr-pg: #{prepareMediaVariable(--_ctm-dn-as-ay-bn-hr-se-pg)};
630
686
  --_sf-hr-wh: #{prepareMediaVariable(--_ctm-dn-as-ay-bn-hr-se-wh)};
687
+
631
688
  &[data-hover-show-shadow="false"] {
632
689
  --_hover-show-shadow: none;
633
690
  }
691
+
634
692
  &[data-hover-show-icon="false"] {
635
693
  --_hover-show-icon: none;
636
694
  }
@@ -642,7 +700,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
642
700
  );
643
701
 
644
702
  padding: var(--_sf-hr-pg, prepareMediaVariable(--_ctm-dn-as-ay-bn-dt-se-pg));
645
- width: var(--_sf-hr-wh, prepareMediaVariable(--_ctm-dn-as-ay-bn-dt-se-wh));
703
+ // width: var(--_sf-hr-wh, prepareMediaVariable(--_ctm-dn-as-ay-bn-dt-se-wh));
646
704
  display: flex;
647
705
  flex-direction: var(--_sf-fd-bn);
648
706
  align-items: center;
@@ -661,6 +719,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
661
719
  var(--_sf-hr-sw-cr, prepareMediaVariable(--_ctm-dn-as-ay-bn-dt-se-sw-cr));
662
720
  width: 140px;
663
721
  display: flex;
722
+
664
723
  &[data-show-border="true"] {
665
724
  // width: 100%;
666
725
  border-color: var(
@@ -681,7 +740,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
681
740
 
682
741
  .txt {
683
742
  display: flex;
684
-
743
+ white-space: nowrap;
685
744
  color: var(--_sf-hr-cr, prepareMediaVariable(--_ctm-dn-as-ay-bn-dt-se-cr));
686
745
 
687
746
  font-family: var(
@@ -724,6 +783,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
724
783
 
725
784
  .icon {
726
785
  display: var(--_hover-show-icon, var(--_show-icon, flex));
786
+
727
787
  svg {
728
788
  width: var(--_sf-hr-in-se, prepareMediaVariable(--_ctm-dn-as-ay-bn-dt-se-in-se));
729
789
  height: var(--_sf-hr-in-se, prepareMediaVariable(--_ctm-dn-as-ay-bn-dt-se-in-se));
@@ -736,6 +796,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
736
796
  }
737
797
  }
738
798
  }
799
+
739
800
  [data-element-style="Text"] {
740
801
  display: inline-block;
741
802
  width: 100%;
@@ -759,27 +820,33 @@ $resizeActive: '[data-cms-element-resizer="true"]';
759
820
  display: none;
760
821
  }
761
822
  }
823
+
762
824
  .coupon-search-btn {
763
825
  white-space: nowrap;
764
826
  padding: prepareMediaVariable(--_ctm-dn-as-ay-bn-dt-se-pg);
827
+
765
828
  &:disabled {
766
829
  cursor: not-allowed;
767
830
  opacity: 0.5;
768
831
  }
769
832
  }
770
833
  }
834
+
771
835
  .couponCode_divider {
772
836
  border: 1px dashed #d0d5dd;
773
837
  }
838
+
774
839
  .coupon-list {
775
840
  display: flex;
776
841
  flex-direction: column;
777
842
  gap: 24px;
843
+
778
844
  .coupon-item {
779
845
  display: flex;
780
846
  flex-direction: row;
781
847
  gap: 12px;
782
848
  justify-content: space-between;
849
+
783
850
  input {
784
851
  width: 18px;
785
852
  display: flex;
@@ -787,13 +854,16 @@ $resizeActive: '[data-cms-element-resizer="true"]';
787
854
  position: relative;
788
855
  top: -9px;
789
856
  }
857
+
790
858
  input[type="checkbox"] {
791
859
  accent-color: rgb(36 61 198);
792
860
  }
861
+
793
862
  .coupon-info {
794
863
  display: flex;
795
864
  flex-direction: column;
796
865
  gap: 6px;
866
+
797
867
  .coupon-title {
798
868
  // font-size: 16px;
799
869
  // font-weight: 700;
@@ -836,10 +906,12 @@ $resizeActive: '[data-cms-element-resizer="true"]';
836
906
  var(--_ctm-tab-dn-cn-wt-cn-tt-tt-an, var(--_ctm-dn-cn-wt-cn-tt-tt-an))
837
907
  );
838
908
  }
909
+
839
910
  .coupon-currency {
840
911
  display: flex;
841
912
  align-items: center;
842
913
  gap: 8px;
914
+
843
915
  .coupon-desc {
844
916
  // font-size: 14px;
845
917
  // font-weight: 400;
@@ -882,6 +954,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
882
954
  var(--_ctm-tab-dn-cn-wt-sd-te-tt-an, var(--_ctm-dn-cn-wt-sd-te-tt-an))
883
955
  );
884
956
  }
957
+
885
958
  .currency_span {
886
959
  // font-size: 14px;
887
960
  // font-weight: 400;
@@ -926,18 +999,22 @@ $resizeActive: '[data-cms-element-resizer="true"]';
926
999
  }
927
1000
  }
928
1001
  }
1002
+
929
1003
  .btn__with__text[data-btn-name="removeButton"] {
930
1004
  // width: 100%;
931
1005
 
932
1006
  &[data-show-shadow="false"] {
933
1007
  --_show-shadow: none;
934
1008
  }
1009
+
935
1010
  &[data-icon-position="left"] {
936
1011
  --_sf-fd-bn: row;
937
1012
  }
1013
+
938
1014
  &[data-icon-position="right"] {
939
1015
  --_sf-fd-bn: row-reverse;
940
1016
  }
1017
+
941
1018
  &[data-icon-position="center"] {
942
1019
  --_sf-fd-bn: row;
943
1020
  }
@@ -975,9 +1052,11 @@ $resizeActive: '[data-cms-element-resizer="true"]';
975
1052
  // for pading and width
976
1053
  --_sf-hr-pg: #{prepareMediaVariable(--_ctm-dn-as-re-bn-hr-se-pg)};
977
1054
  --_sf-hr-wh: #{prepareMediaVariable(--_ctm-dn-as-re-bn-hr-se-wh)};
1055
+
978
1056
  &[data-hover-show-shadow="false"] {
979
1057
  --_hover-show-shadow: none;
980
1058
  }
1059
+
981
1060
  &[data-hover-show-icon="false"] {
982
1061
  --_hover-show-icon: none;
983
1062
  }
@@ -1015,6 +1094,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1015
1094
  width: 140px;
1016
1095
  display: flex;
1017
1096
  height: 48px;
1097
+
1018
1098
  &[data-show-border="true"] {
1019
1099
  // width: 100%;
1020
1100
  border-color: var(
@@ -1078,6 +1158,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1078
1158
 
1079
1159
  .icon {
1080
1160
  display: var(--_hover-show-icon, var(--_show-icon, flex));
1161
+
1081
1162
  svg {
1082
1163
  width: var(
1083
1164
  --_sf-hr-in-se,
@@ -1096,6 +1177,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1096
1177
  }
1097
1178
  }
1098
1179
  }
1180
+
1099
1181
  [data-element-style="Text"] {
1100
1182
  display: inline-block;
1101
1183
  width: 100%;
@@ -1119,14 +1201,17 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1119
1201
  display: none;
1120
1202
  }
1121
1203
  }
1204
+
1122
1205
  .remove-btn {
1123
1206
  padding: prepareMediaVariable(--_ctm-dn-as-re-bn-dt-se-pg);
1124
1207
  }
1125
1208
  }
1126
1209
  }
1210
+
1127
1211
  .coupon-footer-section {
1128
1212
  display: flex;
1129
1213
  justify-content: space-between;
1214
+
1130
1215
  .coupon-savings {
1131
1216
  .title {
1132
1217
  font-size: 14px;
@@ -1134,6 +1219,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1134
1219
  line-height: 20px;
1135
1220
  color: #344054;
1136
1221
  }
1222
+
1137
1223
  .price {
1138
1224
  font-size: 16px;
1139
1225
  font-weight: 700;
@@ -1141,6 +1227,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1141
1227
  color: #101828;
1142
1228
  }
1143
1229
  }
1230
+
1144
1231
  .apply-coupon-primary-btn {
1145
1232
  width: 158px;
1146
1233
  height: 48px;
@@ -498,16 +498,16 @@
498
498
  }
499
499
 
500
500
  .embla__container {
501
- overflow: hidden;
501
+ // overflow: hidden;
502
502
  height: var(--_ctm-height);
503
503
  // min-height: var(--_ctm-height);
504
504
 
505
- grid-template-columns: repeat(
506
- var(--_ctm-mob-lt-is-pr-rw, var(--_ctm-tab-lt-is-pr-rw, var(--_ctm-lt-is-pr-rw))),
507
- 1fr
508
- );
505
+ grid-template-columns: repeat(1, 1fr);
509
506
  grid-template-rows: unset;
510
507
  grid-auto-flow: row;
508
+ .embla__slide {
509
+ aspect-ratio: 7 / 2;
510
+ }
511
511
  }
512
512
  }
513
513
  }