@sc-360-v2/storefront-cms-library 0.4.28 → 0.4.30

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.
@@ -23,6 +23,7 @@ $msd-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
23
23
  &--disabled {
24
24
  opacity: 0.6;
25
25
  pointer-events: none;
26
+ background-color: var(--_gray-100);
26
27
  }
27
28
  }
28
29
 
@@ -33,7 +34,7 @@ $msd-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
33
34
  gap: 14px;
34
35
  min-height: 40px;
35
36
  border: 1px solid $msd-border;
36
- background: $msd-bg;
37
+ background: var(--_base-white);
37
38
  border-radius: 4px;
38
39
  padding: 6px 8px;
39
40
  cursor: text;
@@ -67,7 +68,7 @@ $msd-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
67
68
  display: inline-flex;
68
69
  align-items: center;
69
70
  gap: 6px;
70
- padding: 2px 8px 5px 8px;
71
+ padding: 5px 8px 5px 8px;
71
72
  background: $msd-chip-bg;
72
73
  border-radius: 999px;
73
74
  line-height: 1;
@@ -96,6 +97,10 @@ $msd-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
96
97
  line-height: 1;
97
98
  padding: 0;
98
99
  margin: 0;
100
+ svg {
101
+ width: 10px;
102
+ height: 10px;
103
+ }
99
104
  &:hover {
100
105
  color: $msd-chip-remove-hover;
101
106
  }
@@ -110,6 +115,8 @@ $msd-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
110
115
  font-size: 14px;
111
116
  background: transparent;
112
117
  color: $msd-text;
118
+ line-height: 19px;
119
+
113
120
  &::placeholder {
114
121
  color: $msd-muted;
115
122
  }
@@ -122,39 +129,41 @@ $msd-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
122
129
  }
123
130
  .msd__clear,
124
131
  .msd__arrow {
132
+ width: 26px;
133
+ // height: 26px;
125
134
  border: 0;
126
135
  background: transparent;
127
136
  cursor: pointer;
128
137
  font-size: 12px;
129
138
  color: $msd-muted;
130
- padding: 4px 6px;
139
+ // padding: 4px 6px;
131
140
  border-radius: 4px;
132
- &:hover {
133
- background: #f8fafc;
134
- color: #374151;
135
- }
141
+ display: flex;
142
+ // &:hover {
143
+ // color: #374151;
144
+ // }
136
145
  }
137
146
 
138
147
  .msd__ellipsis {
139
148
  position: absolute;
140
- right: 33px; // leave room for the arrow
141
- top: 3px;
149
+ right: 30px; // leave room for the arrow
150
+ top: 5px;
142
151
  // transform: translateY(-50%);
143
152
  pointer-events: none;
144
153
  background: $msd-bg;
145
154
  padding-left: 6px;
146
- width: 30px;
155
+ width: 24px;
147
156
  }
148
157
 
149
158
  .msd__menu {
150
159
  position: absolute;
151
160
  z-index: 20;
152
- top: 100%;
161
+ top: 99%;
153
162
  left: 0;
154
163
  right: 0;
155
164
  background: $msd-bg;
156
165
  border: 1px solid $msd-border;
157
- border-radius: 10px;
166
+ border-radius: 4px;
158
167
  box-shadow: $msd-shadow;
159
168
  overflow: auto;
160
169
  padding: 6px;
@@ -194,7 +203,7 @@ $msd-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
194
203
  // background: #f1f5f9;
195
204
  // }
196
205
  &.is-selected {
197
- font-weight: 600;
206
+ font-weight: normal;
198
207
  @include BgColorLighter(var(--_thm-cs-at-py), 8%);
199
208
  color: var(--_thm-cs-at-py);
200
209
  // background: var(--_thm-cs-at-py);
@@ -229,6 +238,7 @@ $msd-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
229
238
  &::after {
230
239
  content: "";
231
240
  position: absolute;
241
+ top: 2px;
232
242
  inset: 0;
233
243
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="white" d="M7.629 13.296L3.7 9.367l1.414-1.414 2.515 2.515L14.886 3.21l1.414 1.415z"/></svg>')
234
244
  center/12px 12px no-repeat;
@@ -38,7 +38,6 @@ $defaultValues: (
38
38
  }
39
39
 
40
40
  .order-confirmation {
41
- @include prepareMediaQueries($defaultValues);
42
41
  display: flex;
43
42
  flex-direction: column;
44
43
  padding: prepareMediaVariable(--_ctm-dn-or-wt-pg);
@@ -60,6 +59,7 @@ $defaultValues: (
60
59
  --_ctm-mob-dn-or-wt-im-gp,
61
60
  var(--_ctm-tab-dn-or-wt-im-gp, var(--_ctm-dn-or-wt-im-gp))
62
61
  );
62
+ @include prepareMediaQueries($defaultValues);
63
63
 
64
64
  .each-order {
65
65
  border: 1px solid var(--_gray-200);
@@ -1,6 +1,6 @@
1
1
  @use "sass:map";
2
2
  @use "sass:list";
3
- @use "./functions.scss";
3
+ @use "./functions.scss" as *;
4
4
 
5
5
  [data-div-type="element"] {
6
6
  &[data-element-type="productImage"] {
@@ -166,6 +166,7 @@
166
166
  --text-high-contrast-rgb-value: 49, 49, 49;
167
167
  --detail-medium-contrast: rgb(234, 234, 234);
168
168
  --text-body: rgb(54, 49, 61);
169
+ overflow: hidden;
169
170
 
170
171
  position: relative;
171
172
  background-color: var(
@@ -731,8 +732,14 @@
731
732
  &[data-background-shape="Round"] {
732
733
  .left-button,
733
734
  .right-button {
734
- background-color: #f2f5f5;
735
- box-sizing: 0 4px 8px rgba(0, 0, 0, 0.1);
735
+ // background-color: var(
736
+ // --_ctm-mob-dn-pn-as-bd-cr,
737
+ // var(--_ctm-tab-dn-pn-as-bd-cr, var(--_ctm-dn-pn-as-bd-cr))
738
+ // );
739
+ &:not(:disabled):hover {
740
+ @include BgColorLighter(var(--_thm-py-bs-hr-se-bd-cr), 5%);
741
+ }
742
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
736
743
  }
737
744
  }
738
745
 
@@ -755,6 +762,32 @@
755
762
  cursor: pointer;
756
763
  outline: none;
757
764
  margin-left: 12px;
765
+ span {
766
+ display: flex;
767
+ svg {
768
+ width: calc(
769
+ var(
770
+ --_ctm-mob-dn-pn-as-aw-se,
771
+ var(--_ctm-tab-dn-pn-as-aw-se, var(--_ctm-dn-pn-as-aw-se))
772
+ ) *
773
+ 0.5
774
+ );
775
+ height: calc(
776
+ var(
777
+ --_ctm-mob-dn-pn-as-aw-se,
778
+ var(--_ctm-tab-dn-pn-as-aw-se, var(--_ctm-dn-pn-as-aw-se))
779
+ ) *
780
+ 0.5
781
+ );
782
+
783
+ path {
784
+ stroke: var(
785
+ --_ctm-mob-dn-pn-as-aw-cr,
786
+ var(--_ctm-tab-dn-pn-as-aw-cr, var(--_ctm-dn-pn-as-aw-cr))
787
+ );
788
+ }
789
+ }
790
+ }
758
791
  &:disabled {
759
792
  & svg {
760
793
  path {
@@ -782,7 +815,32 @@
782
815
  outline: none;
783
816
  margin-right: 12px;
784
817
  padding: 10px;
818
+ span {
819
+ display: flex;
820
+ svg {
821
+ width: calc(
822
+ var(
823
+ --_ctm-mob-dn-pn-as-aw-se,
824
+ var(--_ctm-tab-dn-pn-as-aw-se, var(--_ctm-dn-pn-as-aw-se))
825
+ ) *
826
+ 0.5
827
+ );
828
+ height: calc(
829
+ var(
830
+ --_ctm-mob-dn-pn-as-aw-se,
831
+ var(--_ctm-tab-dn-pn-as-aw-se, var(--_ctm-dn-pn-as-aw-se))
832
+ ) *
833
+ 0.5
834
+ );
785
835
 
836
+ path {
837
+ stroke: var(
838
+ --_ctm-mob-dn-pn-as-aw-cr,
839
+ var(--_ctm-tab-dn-pn-as-aw-cr, var(--_ctm-dn-pn-as-aw-cr))
840
+ );
841
+ }
842
+ }
843
+ }
786
844
  &:disabled {
787
845
  & svg {
788
846
  path {
@@ -25,7 +25,7 @@ $input-padding: 10px 12px;
25
25
  .input-group {
26
26
  // display: flex;
27
27
  display: grid;
28
- grid-template-columns: 1fr 1fr;
28
+ grid-template-columns: 1fr 1fr 90px;
29
29
  gap: 12px;
30
30
  height: fit-content;
31
31
  align-items: center;
@@ -105,57 +105,60 @@ $input-padding: 10px 12px;
105
105
  font-weight: 400;
106
106
  line-height: 20px;
107
107
  }
108
+ .msd {
109
+ width: 100%;
110
+ }
108
111
 
109
112
  .input-group-right-col {
110
113
  display: flex;
111
114
  gap: 16px;
112
- .msd {
113
- width: 100%;
115
+ max-width: 1200px;
116
+ }
117
+ .add-btn {
118
+ // background-color: $primary;
119
+ // color: $white;
120
+ padding: 10px 16px;
121
+ height: 40px;
122
+ gap: 6px;
123
+ // border-radius: 4px;
124
+ // font-weight: 600;
125
+ // font-size: 14px;
126
+ // cursor: pointer;
127
+ // transition: background-color 0.2s;
128
+ // display: flex;
129
+ // gap: 4px;
130
+ // line-height: 20px;
131
+ // justify-content: center;
132
+ svg path {
133
+ stroke: var(--_base-white);
114
134
  }
115
- .add-btn {
116
- // background-color: $primary;
117
- // color: $white;
118
- padding: 10px 16px;
119
- // border-radius: 4px;
120
- // font-weight: 600;
121
- // font-size: 14px;
122
- // cursor: pointer;
123
- // transition: background-color 0.2s;
124
- // display: flex;
125
- // gap: 4px;
126
- // line-height: 20px;
127
- // justify-content: center;
128
- svg path {
129
- stroke: var(--_base-white);
130
- }
131
- &.disabled {
132
- opacity: 0.4;
133
- pointer-events: none;
134
- }
135
- .spinner {
136
- margin-top: -3px;
137
- display: inline-block;
138
- }
139
-
140
- // .add-icon {
141
- // width: 20px;
142
- // height: 20px;
143
- // display: flex;
144
- // align-items: center;
145
- // justify-content: center;
146
-
147
- // svg {
148
- // width: 16px;
149
- // height: 16px;
150
- // path {
151
- // stroke: #fff;
152
- // }
153
- // }
154
- // }
155
- // &:hover {
156
- // background-color: $primary-hover;
157
- // }
135
+ &.disabled {
136
+ opacity: 0.4;
137
+ pointer-events: none;
158
138
  }
139
+ .spinner {
140
+ // margin-top: -3px;
141
+ display: inline-block;
142
+ }
143
+
144
+ // .add-icon {
145
+ // width: 20px;
146
+ // height: 20px;
147
+ // display: flex;
148
+ // align-items: center;
149
+ // justify-content: center;
150
+
151
+ // svg {
152
+ // width: 16px;
153
+ // height: 16px;
154
+ // path {
155
+ // stroke: #fff;
156
+ // }
157
+ // }
158
+ // }
159
+ // &:hover {
160
+ // background-color: $primary-hover;
161
+ // }
159
162
  }
160
163
  }
161
164
  .cart_products_wrapper {
@@ -104,10 +104,15 @@ $rai: "repeater-advertise-item";
104
104
  display: var(--_d-grid);
105
105
  row-gap: prepareMediaVariable(--_ctm-rep-lt-im-gp-lt);
106
106
  grid-template-columns: 100%;
107
- grid-template-rows: repeat(
108
- auto-fit,
109
- minmax(#{prepareMediaVariable(--_ctm-rep-lt-rw-mn-ht-lt)}, 1fr)
110
- );
107
+ // grid-template-rows: repeat(
108
+ // auto-fit,
109
+ // minmax(#{prepareMediaVariable(--_ctm-rep-lt-rw-mn-ht-lt)}, 1fr)
110
+ // );
111
+ // grid-template-rows: repeat(
112
+ // 1,
113
+ // minmax(#{prepareMediaVariable(--_ctm-rep-lt-rw-mn-ht-lt)}, 1fr)
114
+ // );
115
+ grid-auto-rows: minmax(#{prepareMediaVariable(--_ctm-rep-lt-rw-mn-ht-lt)}, auto);
111
116
  width: 100%;
112
117
 
113
118
  & > div {
@@ -51,11 +51,13 @@
51
51
  }
52
52
  }
53
53
  .shipping_address {
54
- display: flex;
54
+ display: grid;
55
+ grid-template-columns: auto auto auto;
55
56
  padding: 24px 0;
56
57
  border-bottom: 1px solid var(--_gray-200);
58
+
57
59
  .shipping {
58
- min-width: 45%;
60
+ // min-width: 45%;
59
61
  margin-right: 16px;
60
62
  border-right: 1px solid var(--_gray-200);
61
63
  &:last-of-type {
@@ -76,7 +78,7 @@
76
78
  }
77
79
  }
78
80
  .cart_main {
79
- width: 10%;
81
+ // width: 10%;
80
82
  display: flex;
81
83
  gap: 16px;
82
84
  align-items: center;