wickes-css2 2.94.0-develop.7 → 2.94.0-develop.8

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.
Files changed (44) hide show
  1. package/Readme.md +2 -2
  2. package/build/css/components/checkout-payment-details-v2.css +1 -1
  3. package/build/css/main.css +1 -1
  4. package/build/css/pages/checkout-new.css +1 -1
  5. package/build/css/pages/checkout.css +1 -1
  6. package/build/css/pages/page_checkout_delivery-new.css +1 -1
  7. package/build/css/pages/page_shopping-cart-v2.css +1 -1
  8. package/build/css/pdp-main-non-critical.css +1 -1
  9. package/build/js/basket.min.js +2 -2
  10. package/build/js/bundle.min.js +1 -1
  11. package/build/js/checkout.min.js +2 -2
  12. package/build/js/emulation.min.js +3 -3
  13. package/build/js/general.bundle.min.js +1 -1
  14. package/build/js/merged-checkout.min.js +2 -2
  15. package/build/js/page/basket-v2.js +7 -6
  16. package/build/js/page/components/order-summary.js +1 -9
  17. package/build/js/page/components/voucher.js +1 -1
  18. package/build/js/pdp.bundle.min.js +1 -1
  19. package/build/js/plp.bundle.min.js +1 -1
  20. package/build/js/project-list.min.js +1 -1
  21. package/package.json +1 -1
  22. package/src/components/checkout-action.hbs +11 -14
  23. package/src/components/checkout_order-summary-new.hbs +2 -4
  24. package/src/components/checkout_voucher_large.hbs +16 -20
  25. package/src/components/order-summary.hbs +56 -91
  26. package/src/js/components/general/is-trade-pro.js +1 -21
  27. package/src/js/components/general/switchVat.js +2 -3
  28. package/src/js/emulation/basket-data.js +3 -3
  29. package/src/js/page/basket-v2.js +7 -6
  30. package/src/js/page/components/order-summary.js +1 -9
  31. package/src/js/page/components/voucher.js +1 -1
  32. package/src/layouts/basket-new.hbs +1 -1
  33. package/src/page_shopping-cart-v2.html +16 -6
  34. package/src/scss/components/_checkout-action.scss +6 -132
  35. package/src/scss/components/_order-summary.scss +180 -271
  36. package/src/scss/components/checkout-payment-details-v2.scss +2 -2
  37. package/src/scss/helpers/_variables.scss +0 -2
  38. package/src/scss/pages/_checkout-widget.scss +37 -45
  39. package/src/scss/pages/page_checkout_delivery-new.scss +10 -110
  40. package/src/scss/pages/page_shopping-cart-v2.scss +32 -93
  41. package/build/js/page/basket/summary-mobile.js +0 -17
  42. package/src/components/checkout-voucher-accordion.hbs +0 -15
  43. package/src/components/summary-mobile-bar.hbs +0 -17
  44. package/src/js/page/basket/summary-mobile.js +0 -17
@@ -5,86 +5,18 @@
5
5
  @import '../components/marketing-preferences';
6
6
 
7
7
  .page_checkout-delivery-new {
8
- .right-aside {
9
- .summary {
10
- .checkout-title__title {
11
- color: $blue-ocean;
12
- font-weight: 400;
13
- line-height: 1.75rem;
14
- }
15
-
16
- &__aside {
17
- padding: 12px 30px 0;
18
-
19
- .checkout-info-wrap {
20
- padding: 0;
21
- }
22
-
23
- .checkout-widget {
24
- padding: 20px 0 0;
25
-
26
- &__details {
27
- padding-top: 20px;
28
- font-size: 1rem;
29
-
30
- .checkout-widget {
31
- &__item {
32
- display: flex;
33
- justify-content: space-between;
34
- font-size: 1rem;
35
- line-height: 1.125rem;
36
- font-weight: 400;
37
- margin-bottom: 20px;
38
- padding: 0;
39
-
40
- &-bold {
41
- font-weight: 500;
42
- margin-bottom: 20px;
43
- }
44
-
45
- &-vat {
46
- font-size: .75rem;
47
- margin-top: -15px;
48
- }
49
- }
50
-
51
-
52
- &__details-discount {
53
- order: 1;
54
- }
55
- }
56
- }
57
-
58
- &__total {
59
- border: 0;
60
- display: flex;
61
- justify-content: space-between;
62
- margin-left: -25px;
63
- margin-right: -25px;
64
- margin-bottom: 0;
65
- padding: 20px 25px;
66
- color: #fff;
67
- background-color: #0a3055;
68
- font-size: 1.375rem;
69
- line-height: 1.5rem;
70
- font-weight: 400;
71
- }
72
- }
73
- }
74
-
75
- &__basked-id {
76
- padding: 26px 0;
77
- background: #f8f8f8;
78
- text-align: center;
79
- font-size: 1rem;
8
+ .summary {
9
+ .checkout-title__title {
10
+ color: $blue-ocean;
11
+ font-weight: 400;
12
+ line-height: 1.75rem;
13
+ }
80
14
 
81
- .id-number {
82
- font-weight: 700;
83
- }
84
- }
15
+ &__aside {
16
+ padding: 12px 30px 0;
85
17
 
86
- .accordion__header-icon-small {
87
- left: 85px;
18
+ .checkout-info-wrap {
19
+ padding: 0;
88
20
  }
89
21
  }
90
22
  }
@@ -469,20 +401,6 @@
469
401
  }
470
402
  }
471
403
  }
472
-
473
- .right-aside {
474
- .summary {
475
- .checkout-widget {
476
- &.checkout-widget_order-summary {
477
- .checkout-widget__total {
478
- font-weight: 400;
479
- margin-left: -20px;
480
- margin-right: -20px;
481
- }
482
- }
483
- }
484
- }
485
- }
486
404
  }
487
405
  }
488
406
 
@@ -637,24 +555,6 @@
637
555
  }
638
556
  }
639
557
  }
640
-
641
- .right-aside {
642
- .summary {
643
- .checkout-widget {
644
- &.checkout-widget_order-summary {
645
- .checkout-widget__total {
646
- font-weight: 400;
647
- margin-left: -30px;
648
- margin-right: -30px;
649
- }
650
- }
651
- }
652
-
653
- .summary__basked-id {
654
- margin-top: 13px;
655
- }
656
- }
657
- }
658
558
  }
659
559
  }
660
560
 
@@ -25,6 +25,10 @@
25
25
 
26
26
  .right-aside {
27
27
  margin-top: 0;
28
+
29
+ .voucher {
30
+ display: none;
31
+ }
28
32
  }
29
33
 
30
34
  .content {
@@ -80,7 +84,8 @@
80
84
 
81
85
  .summary {
82
86
  .checkout-widget_order-summary {
83
- background-color: $gray-bg;
87
+ margin-left: -20px;
88
+ margin-right: -20px;
84
89
 
85
90
  .checkout-widget__details {
86
91
  flex-direction: column;
@@ -93,7 +98,6 @@
93
98
  &__item {
94
99
  &-bold {
95
100
  order: -5;
96
- padding: 0;
97
101
  }
98
102
 
99
103
  &-vat {
@@ -139,29 +143,6 @@
139
143
  &__item {
140
144
  font-weight: 400;
141
145
  font-size: .875rem;
142
- padding: 10px 0;
143
- margin: 0;
144
-
145
- &:nth-child(1) {
146
- margin: 0;
147
- padding: 0;
148
- }
149
-
150
- &:nth-child(2) {
151
- margin: 0;
152
- padding-bottom: 10px;
153
- }
154
-
155
- &:nth-child(3) {
156
- margin: 0;
157
- padding-bottom: 10px;
158
- }
159
-
160
- &:last-child {
161
- margin: 0;
162
- padding: 0;
163
- }
164
-
165
146
 
166
147
  &:not(.checkout-widget__item-vat) {
167
148
  margin-top: 0;
@@ -172,8 +153,8 @@
172
153
  }
173
154
 
174
155
  &-vat {
175
- margin: 0;
176
- padding: 0 0 10px;
156
+ padding-bottom: 10px;
157
+ margin-bottom: 10px;
177
158
  color: $warm-grey;
178
159
  font-size: .75rem;
179
160
  border-bottom: 1px solid #eee;
@@ -199,7 +180,7 @@
199
180
 
200
181
  &__details {
201
182
  &-discount {
202
- margin-top: 10px;
183
+ margin-top: 0;
203
184
  }
204
185
  }
205
186
 
@@ -221,54 +202,6 @@
221
202
  background-color: transparent;
222
203
  padding: 0;
223
204
  border: 0;
224
-
225
- .voucher__btn {
226
- max-width: 100%;
227
- margin-top: 20px;
228
- height: 40px;
229
- }
230
-
231
- .form-row__error {
232
- font-weight: 400;
233
- }
234
-
235
- &.voucher-applied {
236
- background: $white;
237
- margin-bottom: 8px;
238
- height: 40px;
239
-
240
- .voucher-applied__inner {
241
- display: flex;
242
- align-items: center;
243
- justify-content: center;
244
-
245
- & .icon {
246
- display: inline-block;
247
- margin-top: 8px;
248
-
249
- &__check {
250
- width: 24px;
251
- height: 24px;
252
-
253
- i {
254
- font-size: 24px;
255
- line-height: 24px;
256
- }
257
- }
258
- }
259
-
260
- & .fa-check-circle {
261
- font-size: 1rem;
262
- margin-bottom: 0;
263
- }
264
-
265
- & h5 {
266
- margin: 0;
267
- margin-top: 8px;
268
- font-size: .875rem;
269
- }
270
- }
271
- }
272
205
  }
273
206
  }
274
207
 
@@ -360,6 +293,12 @@
360
293
  max-width: 100%;
361
294
  padding-right: 5px;
362
295
  }
296
+
297
+ .summary {
298
+ &__aside {
299
+ padding: 20px 20px 0;
300
+ }
301
+ }
363
302
  }
364
303
  }
365
304
 
@@ -377,17 +316,13 @@
377
316
  .checkout-voucher {
378
317
  padding: 0;
379
318
 
380
- .form-row__error {
381
- white-space: pre-line;
382
- }
383
-
384
319
  form {
385
320
  display: flex;
386
321
  align-items: flex-start;
322
+ margin-bottom: 27px;
387
323
 
388
324
  .form-row {
389
- max-width: 100%;
390
- flex: 1;
325
+ @include make-col(7);
391
326
  margin-right: 0;
392
327
 
393
328
  &__field {
@@ -409,13 +344,27 @@
409
344
 
410
345
  .voucher__btn {
411
346
  margin-top: 0;
412
- margin-left: 16px;
347
+ margin-left: 15px;
413
348
  }
414
349
 
415
350
  &.form_invalid {
416
351
  margin-bottom: 0;
417
352
  }
418
353
  }
354
+
355
+ &.voucher-applied {
356
+ background: $white;
357
+
358
+ & .fa-check-circle {
359
+ font-size: 2rem;
360
+ margin-bottom: 0;
361
+ }
362
+
363
+ & h3 {
364
+ font-size: 1.25rem;
365
+ margin-bottom: 0;
366
+ }
367
+ }
419
368
  }
420
369
  }
421
370
 
@@ -475,16 +424,6 @@
475
424
  display: flex;
476
425
  }
477
426
  }
478
-
479
- .checkout-widget__item-bold {
480
- margin: 10px 0;
481
- padding: 5px 0;
482
- }
483
-
484
- .checkout-widget__item-vat {
485
- padding-bottom: 10px;
486
- margin-bottom: 10px;
487
- }
488
427
  }
489
428
 
490
429
  .checkout-title {
@@ -1,17 +0,0 @@
1
- const summaryMobileEl = {
2
- summaryAside: '.summary__aside',
3
- backToTop : '#back-to-top',
4
- };
5
-
6
- export function addClassToSummaryAside(data) {
7
- const payPalEnabled = data?.paymentInfos?.payPalEnabled;
8
- const clickAndCollectOnly = data.clickAndCollectOnly;
9
- const isPayPalAllowed = payPalEnabled && clickAndCollectOnly;
10
- const $aside = $(summaryMobileEl.summaryAside);
11
- const $backToTop = $(summaryMobileEl.backToTop);
12
-
13
- if (isPayPalAllowed === false) {
14
- $aside.addClass('single-button');
15
- $backToTop.addClass('single-button');
16
- }
17
- }
@@ -1,15 +0,0 @@
1
- <li class="checkout-widget__voucher-accordion">
2
- <div
3
- class="checkout-widget__voucher-toggle collapsed"
4
- data-toggle="collapse"
5
- data-target="#checkout-voucher-accordion-{{id}}"
6
- >
7
- Got a voucher?
8
- <span class="checkout-widget__icon">
9
- <i class="fal fa-angle-up fa-2x"></i>
10
- </span>
11
- </div>
12
- <div class="collapse" id="checkout-voucher-accordion-{{id}}">
13
- {{> checkout_voucher_large id=id title=""}}
14
- </div>
15
- </li>
@@ -1,17 +0,0 @@
1
- <div class="summary__mobile-bar">
2
- <div class="summary__mobile-order collapsed"
3
- data-toggle="collapse"
4
- aria-expanded="false"
5
- data-target="#checkout-summary-mobile-accordion-{{id}}">
6
- <div class="summary__mobile-container container">
7
- <span class="summary__mobile-bar-label">Order Summary</span>
8
- <div class="summary__icon-container">
9
- <span class="summary__mobile-bar-total">{{ total.value }}</span>
10
- <span class="summary__icon summary__icon-up">
11
- <i class="fal fa-angle-up fa-2x"></i>
12
- </span>
13
- </div>
14
- </div>
15
- </div>
16
- {{> checkout-action container="true" hidePaypalEmail="true"}}
17
- </div>
@@ -1,17 +0,0 @@
1
- const summaryMobileEl = {
2
- summaryAside: '.summary__aside',
3
- backToTop : '#back-to-top',
4
- };
5
-
6
- export function addClassToSummaryAside(data) {
7
- const payPalEnabled = data?.paymentInfos?.payPalEnabled;
8
- const clickAndCollectOnly = data.clickAndCollectOnly;
9
- const isPayPalAllowed = payPalEnabled && clickAndCollectOnly;
10
- const $aside = $(summaryMobileEl.summaryAside);
11
- const $backToTop = $(summaryMobileEl.backToTop);
12
-
13
- if (isPayPalAllowed === false) {
14
- $aside.addClass('single-button');
15
- $backToTop.addClass('single-button');
16
- }
17
- }