@sc-360-v2/storefront-cms-library 0.3.65 → 0.3.66
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/builder.js +1 -1
- package/dist/cart-details.scss +2 -11
- package/dist/checkout.scss +2 -0
- package/dist/emtpy-templates.scss +0 -1
- package/dist/modal.scss +197 -198
- package/dist/product-actions.scss +4 -0
- package/dist/widget.scss +1 -0
- package/package.json +1 -1
package/dist/cart-details.scss
CHANGED
|
@@ -158,13 +158,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
|
|
|
158
158
|
--_ctm-mob-dn-ct-an-ss-cr,
|
|
159
159
|
var(--_ctm-tab-dn-ct-an-ss-cr, var(--_ctm-dn-ct-an-ss-cr))
|
|
160
160
|
);
|
|
161
|
-
|
|
162
|
-
--_sf-hr-ff,
|
|
163
|
-
var(
|
|
164
|
-
--_ctm-mob-dn-ct-an-ss-ft-fy,
|
|
165
|
-
var(--_ctm-tab-dn-ct-an-ss-ft-fy, var(--_ctm-dn-ct-an-ss-ft-fy))
|
|
166
|
-
)
|
|
167
|
-
);
|
|
161
|
+
|
|
168
162
|
font-size: var(
|
|
169
163
|
--_ctm-mob-dn-ct-an-ss-ft-se,
|
|
170
164
|
var(--_ctm-tab-dn-ct-an-ss-ft-se, var(--_ctm-dn-ct-an-ss-ft-se))
|
|
@@ -574,10 +568,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
|
|
|
574
568
|
--_ctm-mob-dn-pt-ne-ss-tt-an,
|
|
575
569
|
var(--_ctm-tab-dn-pt-ne-ss-tt-an, var(--_ctm-dn-pt-ne-ss-tt-an))
|
|
576
570
|
);
|
|
577
|
-
|
|
578
|
-
--_ctm-mob-dn-pt-ne-ss-lr-sg,
|
|
579
|
-
var(--_ctm-tab-dn-pt-ne-ss-lr-sg, var(--_ctm-dn-pt-ne-ss-lr-sg))
|
|
580
|
-
);
|
|
571
|
+
|
|
581
572
|
line-height: var(
|
|
582
573
|
--_ctm-mob-dn-pt-ne-ss-le-ht,
|
|
583
574
|
var(--_ctm-tab-dn-pt-ne-ss-le-ht, var(--_ctm-dn-pt-ne-ss-le-ht))
|
package/dist/checkout.scss
CHANGED
package/dist/modal.scss
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//modalv1
|
|
2
2
|
// Variables
|
|
3
|
-
$modal_background_color: white;
|
|
3
|
+
$modal_background_color: var(--_base-white);
|
|
4
4
|
$backdrop_color: rgba(0, 0, 0, 0.2);
|
|
5
5
|
$box_shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
6
6
|
$modal_width: 618px;
|
|
@@ -133,245 +133,244 @@ $active_btn_text_color: #fff;
|
|
|
133
133
|
bottom: 0;
|
|
134
134
|
width: 100%;
|
|
135
135
|
margin-top: 24px;
|
|
136
|
+
}
|
|
137
|
+
.modal-footer-wrapper {
|
|
138
|
+
display: flex;
|
|
139
|
+
width: 100%;
|
|
140
|
+
gap: 12px;
|
|
136
141
|
|
|
137
|
-
.
|
|
138
|
-
|
|
142
|
+
.wishlist_button_wrapper {
|
|
143
|
+
position: relative;
|
|
139
144
|
width: 100%;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
.wishlist_btn_wrapper {
|
|
143
|
-
position: relative;
|
|
145
|
+
.wishlist_btn {
|
|
144
146
|
width: 100%;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
+
display: flex;
|
|
148
|
+
justify-content: center;
|
|
149
|
+
align-items: center;
|
|
150
|
+
color: var(--_primary-400);
|
|
151
|
+
height: 100%;
|
|
152
|
+
&:hover {
|
|
153
|
+
text-decoration: underline;
|
|
154
|
+
color: var(--_primary-500);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
.wishlist_list_overlay {
|
|
158
|
+
position: absolute;
|
|
159
|
+
z-index: 10;
|
|
160
|
+
top: 44px;
|
|
161
|
+
left: 41px;
|
|
162
|
+
min-height: 80px;
|
|
163
|
+
max-height: 190px;
|
|
164
|
+
width: 250px;
|
|
165
|
+
overflow-y: auto;
|
|
166
|
+
border-radius: 4px;
|
|
167
|
+
background-color: var(--_base-white);
|
|
168
|
+
box-shadow: 0px 0px 4px rgb(0, 0, 0, 0.1);
|
|
169
|
+
border: 1px solid var(--_gray-200);
|
|
170
|
+
|
|
171
|
+
.empty_message {
|
|
172
|
+
height: 200px;
|
|
147
173
|
display: flex;
|
|
148
174
|
justify-content: center;
|
|
149
175
|
align-items: center;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
176
|
+
padding: 24px;
|
|
177
|
+
font-size: 16px;
|
|
178
|
+
font-weight: 500;
|
|
179
|
+
text-align: center;
|
|
180
|
+
.dots {
|
|
181
|
+
display: inline-flex;
|
|
182
|
+
width: 20px; /* fixed space so text doesn’t shift */
|
|
183
|
+
justify-content: space-between;
|
|
184
|
+
align-items: flex-end;
|
|
185
|
+
margin-left: 6px;
|
|
186
|
+
margin-bottom: -9px;
|
|
155
187
|
}
|
|
156
|
-
}
|
|
157
|
-
.wishlist_overlay {
|
|
158
|
-
position: absolute;
|
|
159
|
-
z-index: 10;
|
|
160
|
-
top: 44px;
|
|
161
|
-
left: 41px;
|
|
162
|
-
min-height: 80px;
|
|
163
|
-
max-height: 190px;
|
|
164
|
-
width: 250px;
|
|
165
|
-
overflow-y: auto;
|
|
166
|
-
border-radius: 4px;
|
|
167
|
-
background-color: var(--_base-white);
|
|
168
|
-
box-shadow: 0px 0px 4px rgb(0, 0, 0, 0.1);
|
|
169
|
-
border: 1px solid var(--_gray-200);
|
|
170
188
|
|
|
171
|
-
.
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
text-align: center;
|
|
180
|
-
.dots {
|
|
181
|
-
display: inline-flex;
|
|
182
|
-
width: 20px; /* fixed space so text doesn’t shift */
|
|
183
|
-
justify-content: space-between;
|
|
184
|
-
align-items: flex-end;
|
|
185
|
-
margin-left: 6px;
|
|
186
|
-
margin-bottom: -9px;
|
|
187
|
-
}
|
|
189
|
+
.dots span {
|
|
190
|
+
animation: blink 1.5s infinite;
|
|
191
|
+
opacity: 0;
|
|
192
|
+
width: 2px;
|
|
193
|
+
height: 2px;
|
|
194
|
+
border-radius: 50%;
|
|
195
|
+
background-color: var(--_gray-700);
|
|
196
|
+
}
|
|
188
197
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
198
|
+
.dots span:nth-child(1) {
|
|
199
|
+
animation-delay: 0s;
|
|
200
|
+
}
|
|
201
|
+
.dots span:nth-child(2) {
|
|
202
|
+
animation-delay: 0.3s;
|
|
203
|
+
}
|
|
204
|
+
.dots span:nth-child(3) {
|
|
205
|
+
animation-delay: 0.6s;
|
|
206
|
+
}
|
|
197
207
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
.dots span:nth-child(2) {
|
|
202
|
-
animation-delay: 0.3s;
|
|
208
|
+
@keyframes blink {
|
|
209
|
+
0% {
|
|
210
|
+
opacity: 0;
|
|
203
211
|
}
|
|
204
|
-
|
|
205
|
-
|
|
212
|
+
50% {
|
|
213
|
+
opacity: 1;
|
|
206
214
|
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
0% {
|
|
210
|
-
opacity: 0;
|
|
211
|
-
}
|
|
212
|
-
50% {
|
|
213
|
-
opacity: 1;
|
|
214
|
-
}
|
|
215
|
-
100% {
|
|
216
|
-
opacity: 0;
|
|
217
|
-
}
|
|
215
|
+
100% {
|
|
216
|
+
opacity: 0;
|
|
218
217
|
}
|
|
219
218
|
}
|
|
220
|
-
|
|
219
|
+
}
|
|
220
|
+
.wishlist_overlay_header {
|
|
221
|
+
display: flex;
|
|
222
|
+
justify-content: space-between;
|
|
223
|
+
align-items: center;
|
|
224
|
+
padding: 12px;
|
|
225
|
+
font-size: 14px;
|
|
226
|
+
font-weight: 600;
|
|
227
|
+
}
|
|
228
|
+
.wishlist_list_items {
|
|
229
|
+
display: flex;
|
|
230
|
+
flex-direction: column;
|
|
231
|
+
|
|
232
|
+
.wishlist_item {
|
|
221
233
|
display: flex;
|
|
222
|
-
justify-content: space-between;
|
|
223
234
|
align-items: center;
|
|
235
|
+
gap: 8px;
|
|
236
|
+
color: var(--_gray-700);
|
|
224
237
|
padding: 12px;
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
.wishlist_item {
|
|
233
|
-
display: flex;
|
|
234
|
-
align-items: center;
|
|
235
|
-
gap: 8px;
|
|
236
|
-
color: var(--_gray-700);
|
|
237
|
-
padding: 12px;
|
|
238
|
-
border-radius: 4px;
|
|
239
|
-
cursor: pointer;
|
|
240
|
-
position: relative;
|
|
241
|
-
margin: 4px;
|
|
242
|
-
&.active {
|
|
243
|
-
color: var(--_primary-400);
|
|
244
|
-
}
|
|
238
|
+
border-radius: 4px;
|
|
239
|
+
cursor: pointer;
|
|
240
|
+
position: relative;
|
|
241
|
+
margin: 4px;
|
|
242
|
+
&.active {
|
|
243
|
+
color: var(--_primary-400);
|
|
244
|
+
}
|
|
245
245
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
246
|
+
&:not(:last-child) {
|
|
247
|
+
margin-bottom: 2px;
|
|
248
|
+
}
|
|
249
249
|
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
250
|
+
&:hover {
|
|
251
|
+
background-color: var(--_primary-25);
|
|
252
|
+
color: var(--_primary-400);
|
|
253
|
+
}
|
|
254
254
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
255
|
+
input {
|
|
256
|
+
display: none; // hide default checkbox
|
|
257
|
+
}
|
|
258
258
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
259
|
+
.custom_checkbox {
|
|
260
|
+
width: 18px;
|
|
261
|
+
height: 18px;
|
|
262
|
+
border: 2px solid var(--_gray-400);
|
|
263
|
+
border-radius: 4px;
|
|
264
|
+
display: inline-flex;
|
|
265
|
+
align-items: center;
|
|
266
|
+
justify-content: center;
|
|
267
|
+
transition: all 0.2s ease-in-out;
|
|
268
|
+
background-color: #fff;
|
|
269
269
|
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
}
|
|
270
|
+
&::after {
|
|
271
|
+
content: "";
|
|
272
|
+
width: 8px;
|
|
273
|
+
height: 4px;
|
|
274
|
+
border-left: 2px solid #fff;
|
|
275
|
+
border-bottom: 2px solid #fff;
|
|
276
|
+
transform: rotate(-45deg);
|
|
277
|
+
opacity: 0;
|
|
278
|
+
transition: opacity 0.2s ease-in-out;
|
|
279
|
+
margin-bottom: 4px;
|
|
281
280
|
}
|
|
281
|
+
}
|
|
282
282
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
283
|
+
input:checked + .custom_checkbox {
|
|
284
|
+
background-color: var(--_primary-400);
|
|
285
|
+
border-color: var(--_primary-400);
|
|
286
286
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
}
|
|
287
|
+
&::after {
|
|
288
|
+
opacity: 1; // show tick mark
|
|
290
289
|
}
|
|
290
|
+
}
|
|
291
291
|
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
}
|
|
292
|
+
.label_text {
|
|
293
|
+
font-size: 14px;
|
|
294
|
+
font-weight: 500;
|
|
296
295
|
}
|
|
297
296
|
}
|
|
297
|
+
}
|
|
298
298
|
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
299
|
+
.wishlist_overlay_footer {
|
|
300
|
+
display: flex;
|
|
301
|
+
justify-content: space-between;
|
|
302
|
+
align-items: center;
|
|
303
|
+
padding: 8px;
|
|
304
|
+
font-size: 14px;
|
|
305
|
+
font-weight: 600;
|
|
306
|
+
border-top: 1px solid var(--_gray-200);
|
|
307
|
+
padding: 8px;
|
|
308
308
|
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
309
|
+
.btn {
|
|
310
|
+
padding: 8px 12px;
|
|
311
|
+
width: 100%;
|
|
312
|
+
border-radius: 4px;
|
|
313
|
+
text-align: center;
|
|
314
|
+
width: 100%;
|
|
315
|
+
font-weight: 500;
|
|
316
|
+
text-decoration: none !important;
|
|
317
|
+
&.primary {
|
|
318
|
+
background-color: var(--_primary-400);
|
|
319
|
+
color: var(--_base-white);
|
|
320
|
+
font-size: 14px;
|
|
321
|
+
}
|
|
322
|
+
&.secondary {
|
|
323
|
+
color: var(--_gray-700);
|
|
324
|
+
&:hover {
|
|
325
|
+
color: var(--_gray-900);
|
|
326
326
|
|
|
327
|
-
|
|
328
|
-
}
|
|
327
|
+
background-color: var(--_gray-100);
|
|
329
328
|
}
|
|
330
329
|
}
|
|
331
330
|
}
|
|
331
|
+
}
|
|
332
332
|
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
}
|
|
333
|
+
.no_wishlist,
|
|
334
|
+
.loading_state {
|
|
335
|
+
min-height: 80px;
|
|
336
|
+
display: flex;
|
|
337
|
+
justify-content: center;
|
|
338
|
+
align-items: center;
|
|
339
|
+
font-size: 14px;
|
|
340
|
+
font-weight: 700;
|
|
341
|
+
color: var(--_gray-700);
|
|
343
342
|
}
|
|
344
343
|
}
|
|
344
|
+
}
|
|
345
345
|
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
}
|
|
346
|
+
.modal-footer-secondary-btn {
|
|
347
|
+
padding: 12px 24px;
|
|
348
|
+
border-radius: 4px;
|
|
349
|
+
background-color: var(--_base-white);
|
|
350
|
+
color: var(--_primary-400);
|
|
351
|
+
font-weight: 500;
|
|
352
|
+
width: 100%;
|
|
353
|
+
display: flex;
|
|
354
|
+
justify-content: center;
|
|
355
|
+
&:hover {
|
|
356
|
+
text-decoration: underline;
|
|
358
357
|
}
|
|
358
|
+
}
|
|
359
359
|
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
360
|
+
.modal-footer-danger-btn {
|
|
361
|
+
padding: 12px 24px;
|
|
362
|
+
border-radius: 4px;
|
|
363
|
+
background-color: #d92d20;
|
|
364
|
+
color: #fff;
|
|
365
|
+
font-weight: 600;
|
|
366
|
+
width: 100%;
|
|
367
|
+
display: flex;
|
|
368
|
+
border: 1px solid #d92d20;
|
|
369
|
+
justify-content: center;
|
|
370
370
|
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
}
|
|
371
|
+
&:hover {
|
|
372
|
+
// background-color: darken(#d92d20, 5%);
|
|
373
|
+
background-color: color-mix(in srgb, #d92d20 95%, var(--_base-black) 5%);
|
|
375
374
|
}
|
|
376
375
|
}
|
|
377
376
|
}
|
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
.btn__with__text[data-btn-name="addToCart"] {
|
|
86
|
+
justify-content: center;
|
|
86
87
|
&[data-show-shadow="false"] {
|
|
87
88
|
--_show-shadow: none;
|
|
88
89
|
}
|
|
@@ -95,6 +96,9 @@
|
|
|
95
96
|
&[data-icon-position="center"] {
|
|
96
97
|
--_sf-fd-bn: row;
|
|
97
98
|
}
|
|
99
|
+
&:has(p) {
|
|
100
|
+
width: auto;
|
|
101
|
+
}
|
|
98
102
|
|
|
99
103
|
&:hover {
|
|
100
104
|
--_sf-hr-bd-cr: var(
|
package/dist/widget.scss
CHANGED