@sc-360-v2/storefront-cms-library 0.4.37 → 0.4.39

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.
@@ -221,7 +221,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
221
221
  .embla__slide {
222
222
  width: unset;
223
223
  height: 100%;
224
- aspect-ratio: 1 / 2;
224
+ // aspect-ratio: 1 / 2;
225
225
  }
226
226
  }
227
227
  }
@@ -795,7 +795,9 @@ $resizeActive: '[data-cms-element-resizer="true"]';
795
795
  border-radius: 2px !important;
796
796
  outline: none;
797
797
  padding: 8px 12px !important;
798
- background-color: #f9fafb;
798
+ &:disabled {
799
+ background-color: #f9fafb;
800
+ }
799
801
  }
800
802
 
801
803
  .add_to_cart_price {
@@ -4269,7 +4271,9 @@ $resizeActive: '[data-cms-element-resizer="true"]';
4269
4271
  border-radius: 2px !important;
4270
4272
  outline: none;
4271
4273
  padding: 8px 12px !important;
4272
- background-color: #f9fafb;
4274
+ &:disabled {
4275
+ background-color: #f9fafb;
4276
+ }
4273
4277
  }
4274
4278
 
4275
4279
  small {
@@ -363,7 +363,7 @@ $tabBodyWrapper: #{$tabBody}__wrapper;
363
363
  );
364
364
  }
365
365
 
366
- &:not(.active) {
366
+ &:not(.active):not(:disabled) {
367
367
  &:hover {
368
368
  --_sf-buy-hr-bg-cr: var(
369
369
  --_ctm-mob-buy-dn-ts-hr-se-bd-cr,
@@ -446,6 +446,12 @@ $tabBodyWrapper: #{$tabBody}__wrapper;
446
446
  flex: 1 0 auto;
447
447
  }
448
448
 
449
+ &:disabled {
450
+ opacity: 0.5;
451
+ color: var(--_thm-cs-be-se-3);
452
+ cursor: default;
453
+ }
454
+
449
455
  & > span {
450
456
  // display: var(--_d-flex);
451
457
  width: 100%;
@@ -532,6 +532,10 @@ $resizeActive: '[data-cms-element-resizer="true"]';
532
532
  background-color: var(--_thm-py-bs-hr-se-bd-cr);
533
533
  color: var(--_thm-py-bs-hr-se-tt-cr);
534
534
  }
535
+ &:disabled {
536
+ cursor: not-allowed;
537
+ opacity: 0.5;
538
+ }
535
539
  }
536
540
  }
537
541
 
@@ -4507,6 +4511,9 @@ $resizeActive: '[data-cms-element-resizer="true"]';
4507
4511
  .summary_container {
4508
4512
  width: 400px;
4509
4513
  height: 100%;
4514
+ display: flex;
4515
+ flex-direction: column;
4516
+ gap: 24px;
4510
4517
  // order summary styles started
4511
4518
  .sklt_summary {
4512
4519
  display: flex;
@@ -4519,6 +4526,114 @@ $resizeActive: '[data-cms-element-resizer="true"]';
4519
4526
  }
4520
4527
  }
4521
4528
 
4529
+ // Coupon Styles
4530
+ .coupon_code {
4531
+ border: 1px solid var(--_gray-300);
4532
+ border-radius: 4px;
4533
+ .coupon_code_header {
4534
+ background-color: var(--_gray-100);
4535
+ padding: 12px 12px 14px 12px;
4536
+ border-bottom: 0.5px solid var(--_gray-300);
4537
+ h3 {
4538
+ font-size: 16px;
4539
+ color: var(--_gray-900);
4540
+ }
4541
+ }
4542
+ .coupon_code_body {
4543
+ display: flex;
4544
+ flex-direction: column;
4545
+ gap: 16px;
4546
+ padding: 16px;
4547
+
4548
+ .coupon_code_apply_section {
4549
+ .coupon_code_fields_wrapper {
4550
+ display: flex;
4551
+ gap: 12px;
4552
+ &.divider {
4553
+ padding-bottom: 16px;
4554
+ border-bottom: 1px dashed var(--_gray-300);
4555
+ }
4556
+ .coupon-search-input {
4557
+ padding: 10px 16px;
4558
+ border: 1px solid var(--_gray-300);
4559
+ border-radius: 4px;
4560
+ height: 40px;
4561
+ &:focus {
4562
+ outline: 2px solid var(--_gray-100);
4563
+ }
4564
+ }
4565
+ .coupon-search-btn {
4566
+ padding: 10px 16px 12px 16px;
4567
+ white-space: nowrap;
4568
+ height: 40px;
4569
+ }
4570
+ }
4571
+ .coupon-list {
4572
+ .coupon-item {
4573
+ .coupon-info {
4574
+ .coupon-title {
4575
+ font-size: 16px;
4576
+ font-weight: 700;
4577
+ color: var(--_gray-900);
4578
+ }
4579
+ .coupon-desc {
4580
+ font-size: 14px;
4581
+ font-weight: 400;
4582
+ color: var(--_gray-600);
4583
+ }
4584
+ .remove-btn {
4585
+ padding: 12px;
4586
+ color: var(--_gray-900);
4587
+ }
4588
+ }
4589
+ }
4590
+ }
4591
+ }
4592
+ .apply_coupon_code_body {
4593
+ display: flex;
4594
+ align-items: center;
4595
+ justify-content: space-between;
4596
+ gap: 12px;
4597
+ &:not(:last-child) {
4598
+ margin-bottom: 12px;
4599
+ }
4600
+ .apply_coupon_code_flex {
4601
+ display: flex;
4602
+ gap: 12px;
4603
+ .cpn__sale__icon {
4604
+ margin-top: 4px;
4605
+ }
4606
+ .apply_coupon_code {
4607
+ display: flex;
4608
+ flex-direction: column;
4609
+ .cpn_sale_text {
4610
+ font-size: 14px;
4611
+ font-weight: 400;
4612
+ color: var(--_gray-900);
4613
+ }
4614
+ }
4615
+ }
4616
+ .cpn_sale_desc {
4617
+ font-size: 14px;
4618
+ font-weight: 400;
4619
+ color: var(--_gray-600);
4620
+ }
4621
+ .apply_coupon_code_btn {
4622
+ padding: 8px 16px;
4623
+ }
4624
+ .remove_coupon_code_btn {
4625
+ padding: 8px 16px;
4626
+ border: 1px solid var(--_gray-300);
4627
+ border-radius: 4px;
4628
+ color: var(--_gray-900);
4629
+ &:hover {
4630
+ background-color: var(--_gray-100);
4631
+ }
4632
+ }
4633
+ }
4634
+ }
4635
+ }
4636
+
4522
4637
  .cart_summary_wrapper {
4523
4638
  display: flex;
4524
4639
  flex-direction: column;
@@ -4530,6 +4645,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
4530
4645
  word-break: keep-all;
4531
4646
  overflow: hidden;
4532
4647
  width: 380px;
4648
+ border: 1px solid var(--_thm-cs-be-se-3);
4533
4649
 
4534
4650
  .cart_summary_heading_wrapper {
4535
4651
  display: flex;
@@ -4538,7 +4654,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
4538
4654
  gap: 12px;
4539
4655
  align-self: stretch;
4540
4656
  background: var(--_base-white);
4541
- border-bottom: 0px solid #d0d5dd;
4657
+ border-bottom: 1px solid var(--_thm-cs-be-se-3);
4542
4658
  border-radius: 4px 4px 0 0;
4543
4659
  .icon svg {
4544
4660
  path {
@@ -4561,12 +4677,12 @@ $resizeActive: '[data-cms-element-resizer="true"]';
4561
4677
  color: #101828;
4562
4678
  font-size: 24px;
4563
4679
  font-weight: 600;
4564
- padding: 0px 16px 16px 16px;
4680
+ padding: 16px;
4565
4681
  }
4566
4682
  }
4567
4683
 
4568
4684
  .cart_summary_content_wrapper {
4569
- padding: 0px 16px 16px 16px;
4685
+ padding: 16px;
4570
4686
  display: flex;
4571
4687
  flex-direction: column;
4572
4688
  width: 100%;
@@ -0,0 +1,52 @@
1
+ .colorpicker__parent__v2 {
2
+ width: max-content;
3
+ max-width: 225px;
4
+ position: absolute;
5
+ left: auto;
6
+ background: #fff;
7
+ border: 1px solid #d0d5dd;
8
+ border-radius: 8px;
9
+ padding: 12px;
10
+ z-index: 99999;
11
+ opacity: 0;
12
+ transform: translateY(-10px) scale(0.95, 0.95);
13
+ transform-origin: center;
14
+ animation: pickerAnim 0.45s ease-in-out 1 forwards;
15
+ // animation: name duration timing-function delay iteration-count direction fill-mode;
16
+
17
+ @keyframes pickerAnim {
18
+ to {
19
+ transform: translateY(0) scale(1, 1);
20
+ opacity: 1;
21
+ }
22
+ }
23
+
24
+ & > div {
25
+ box-shadow: none !important;
26
+
27
+ label {
28
+ color: #475467;
29
+ font-size: 14px;
30
+ font-weight: 400;
31
+ line-height: 1.5;
32
+ }
33
+ }
34
+ }
35
+
36
+ .cutom__hex__v2 {
37
+ padding: 0 12px !important;
38
+ border-radius: 8px !important;
39
+ border: 1px solid #d0d5dd !important;
40
+ background: #fff !important;
41
+ box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05) !important;
42
+ width: 100%;
43
+ font-size: 16px !important;
44
+ line-height: 24px !important;
45
+ padding-block: 8px !important;
46
+ }
47
+
48
+ .custom__div__v2 {
49
+ display: grid;
50
+ grid-template-columns: repeat(4, 1fr);
51
+ gap: 8px;
52
+ }
@@ -21,19 +21,19 @@
21
21
  )
22
22
  );
23
23
  margin: var(--_ctm-mob-lt-mn, var(--_ctm-tab-lt-mn, var(--_ctm-lt-mn)));
24
- aspect-ratio: 1 / var(--_sf-aspect-ratio);
25
- --_aspect-ratio: calc(
26
- 1 *
27
- (
28
- var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht))) /
29
- var(--_ctm-mob-lt-wh, var(--_ctm-tab-lt-wh, var(--_ctm-lt-wh)))
30
- )
31
- );
24
+ // aspect-ratio: 1 / var(--_sf-aspect-ratio);
25
+ // --_aspect-ratio: calc(
26
+ // 1 *
27
+ // (
28
+ // var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht))) /
29
+ // var(--_ctm-mob-lt-wh, var(--_ctm-tab-lt-wh, var(--_ctm-lt-wh)))
30
+ // )
31
+ // );
32
32
 
33
33
  & > .wrapper {
34
34
  width: 100%;
35
35
  // overflow: clip;
36
- height: 100%;
36
+ // height: 100%;
37
37
  &[data-widget-shadow="true"] {
38
38
  box-shadow: var(
39
39
  --_ctm-mob-dn-cn-wt-sw-ae,
@@ -228,7 +228,7 @@
228
228
 
229
229
  .countdown__container {
230
230
  display: flex;
231
- height: 100%;
231
+ // height: 100%;
232
232
  gap: var(
233
233
  --_ctm-mob-dn-cn-lt-wt-tt-ad-im-sg,
234
234
  var(--_ctm-tab-dn-cn-lt-wt-tt-ad-im-sg, var(--_ctm-dn-cn-lt-wt-tt-ad-im-sg))
@@ -243,9 +243,117 @@
243
243
  var(--_ctm-tab-dn-cn-wt-br-rs, var(--_ctm-dn-cn-wt-br-rs))
244
244
  );
245
245
 
246
+ &[data-show-divider="true"] {
247
+ &[data-text-position="left"] {
248
+ & > div:not(:first-child)::after {
249
+ content: "";
250
+ position: absolute;
251
+ top: 0;
252
+ bottom: 0; /* For full height divider */
253
+ left: calc(
254
+ -1 *
255
+ (
256
+ var(
257
+ --_ctm-mob-dn-cn-lt-wt-tt-ad-im-sg,
258
+ var(--_ctm-tab-dn-cn-lt-wt-tt-ad-im-sg, var(--_ctm-dn-cn-lt-wt-tt-ad-im-sg))
259
+ ) /
260
+ 2
261
+ )
262
+ ); /* Half of your gap, assuming divider is centered in the gap */
263
+ width: var(
264
+ --_ctm-mob-dn-cn-wt-dr-wt,
265
+ var(--_ctm-tab-dn-cn-wt-dr-wt, var(--_ctm-dn-cn-wt-dr-wt))
266
+ ); /* Divider thickness */
267
+ background-color: var(
268
+ --_ctm-mob-dn-cn-wt-dr-cr,
269
+ var(--_ctm-tab-dn-cn-wt-dr-cr, var(--_ctm-dn-cn-wt-dr-cr))
270
+ ); /* Divider color */
271
+ }
272
+ }
273
+ &[data-text-position="right"] {
274
+ & > div:not(:first-child)::after {
275
+ content: "";
276
+ position: absolute;
277
+ top: 0;
278
+ bottom: 0; /* For full height divider */
279
+ right: calc(
280
+ -1 *
281
+ (
282
+ var(
283
+ --_ctm-mob-dn-cn-lt-wt-tt-ad-im-sg,
284
+ var(--_ctm-tab-dn-cn-lt-wt-tt-ad-im-sg, var(--_ctm-dn-cn-lt-wt-tt-ad-im-sg))
285
+ ) /
286
+ 2
287
+ )
288
+ ); /* Half of your gap, assuming divider is centered in the gap */
289
+ width: var(
290
+ --_ctm-mob-dn-cn-wt-dr-wt,
291
+ var(--_ctm-tab-dn-cn-wt-dr-wt, var(--_ctm-dn-cn-wt-dr-wt))
292
+ ); /* Divider thickness */
293
+ background-color: var(
294
+ --_ctm-mob-dn-cn-wt-dr-cr,
295
+ var(--_ctm-tab-dn-cn-wt-dr-cr, var(--_ctm-dn-cn-wt-dr-cr))
296
+ ); /* Divider color */
297
+ }
298
+ }
299
+ &[data-text-position="top"] {
300
+ & > div:not(:last-child)::before {
301
+ content: "";
302
+ position: absolute;
303
+ left: 0;
304
+ right: 0;
305
+ bottom: calc(
306
+ -1 *
307
+ (
308
+ var(
309
+ --_ctm-mob-dn-cn-lt-wt-tt-ad-im-sg,
310
+ var(--_ctm-tab-dn-cn-lt-wt-tt-ad-im-sg, var(--_ctm-dn-cn-lt-wt-tt-ad-im-sg))
311
+ ) /
312
+ 2
313
+ )
314
+ );
315
+ height: var(
316
+ --_ctm-mob-dn-cn-wt-dr-wt,
317
+ var(--_ctm-tab-dn-cn-wt-dr-wt, var(--_ctm-dn-cn-wt-dr-wt))
318
+ );
319
+ background-color: var(
320
+ --_ctm-mob-dn-cn-wt-dr-cr,
321
+ var(--_ctm-tab-dn-cn-wt-dr-cr, var(--_ctm-dn-cn-wt-dr-cr))
322
+ );
323
+ }
324
+ }
325
+ &[data-text-position="bottom"] {
326
+ & > div:not(:first-child)::after {
327
+ content: "";
328
+ position: absolute;
329
+ left: 0;
330
+ right: 0;
331
+ bottom: calc(
332
+ -1 *
333
+ (
334
+ var(
335
+ --_ctm-mob-dn-cn-lt-wt-tt-ad-im-sg,
336
+ var(--_ctm-tab-dn-cn-lt-wt-tt-ad-im-sg, var(--_ctm-dn-cn-lt-wt-tt-ad-im-sg))
337
+ ) /
338
+ 2
339
+ )
340
+ );
341
+ height: var(
342
+ --_ctm-mob-dn-cn-wt-dr-wt,
343
+ var(--_ctm-tab-dn-cn-wt-dr-wt, var(--_ctm-dn-cn-wt-dr-wt))
344
+ );
345
+ background-color: var(
346
+ --_ctm-mob-dn-cn-wt-dr-cr,
347
+ var(--_ctm-tab-dn-cn-wt-dr-cr, var(--_ctm-dn-cn-wt-dr-cr))
348
+ );
349
+ }
350
+ }
351
+ }
352
+
246
353
  .content__container {
247
354
  display: flex;
248
355
  flex-direction: column;
356
+ position: relative;
249
357
 
250
358
  background-color: var(
251
359
  --_ctm-mob-dn-cn-wt-tt-cr-dn-bd-cr,
@@ -270,6 +378,9 @@
270
378
  --_ctm-mob-dn-cn-wt-tt-cr-lt-te-ad-dn-sg,
271
379
  var(--_ctm-tab-dn-cn-wt-tt-cr-lt-te-ad-dn-sg, var(--_ctm-dn-cn-wt-tt-cr-lt-te-ad-dn-sg))
272
380
  );
381
+ h1 {
382
+ white-space: nowrap;
383
+ }
273
384
  }
274
385
 
275
386
  .content__container {
@@ -375,6 +486,7 @@
375
486
  }
376
487
 
377
488
  .countdown {
489
+ position: relative;
378
490
  width: 100%;
379
491
  display: grid;
380
492
  grid-auto-flow: column;