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
@@ -2,11 +2,12 @@
2
2
 
3
3
  .summary {
4
4
  &__aside {
5
- padding: 15px;
5
+ padding: 20px 20px 0;
6
6
  background: $gray-bg;
7
- margin: 0 auto;
8
- z-index: $summary-aside;
9
- box-shadow: 4px 4px 16px rgba(0, 0, 0, .25);
7
+
8
+ & .btn-checkout {
9
+ margin-bottom: 10px;
10
+ }
10
11
 
11
12
  & .form-row__col-btn {
12
13
  padding-right: 0;
@@ -64,270 +65,240 @@
64
65
  }
65
66
  }
66
67
 
67
- &__mobile-container {
68
- display: flex;
69
- justify-content: space-between;
70
- align-items: center;
71
- }
68
+ &-large {
69
+ order: -1;
72
70
 
73
- &__icon-container {
74
- display: flex;
75
- justify-content: center;
76
- align-items: center;
77
- gap: 10px;
78
- }
71
+ .summary__aside {
72
+ //border: 1px solid $border-grey;
79
73
 
80
- &__mobile-bar-total,
81
- &__mobile-bar-label {
82
- font-weight: 400;
83
- font-size: 1.125rem;
84
- line-height: 1.25rem;
74
+ .checkout-widget_order-summary.checkout-widget-large {
75
+ display: block;
76
+ padding-top: 0;
77
+ margin-bottom: 0;
78
+ }
79
+ }
85
80
  }
86
81
 
87
- &__icon {
88
- display: inline-flex;
89
- justify-content: center;
90
- align-items: center;
91
- width: 24px;
92
- height: 24px;
93
- transition: transform .3s ease;
94
- transform: rotate(180deg);
95
-
96
- &-up,
97
- &-down {
98
- display: flex;
99
- justify-content: center;
100
- align-items: center;
101
- width: 16px;
102
- height: 16px;
103
-
104
- i {
105
- font-size: 16px;
106
- line-height: 16px;
107
- display: inline-block;
108
- margin: auto;
109
- }
82
+ &__basked-id {
83
+ margin-top: 13px;
84
+ padding: 26px 0;
85
+ background: $gray-bg;
86
+ text-align: center;
87
+ font-size: 1rem;
88
+
89
+ .id-number {
90
+ font-weight: bold;
110
91
  }
111
92
  }
112
93
 
113
- .checkout-widget {
114
- &__voucher-accordion {
115
- margin-top: 10px;
94
+ &__email {
95
+ &-info {
96
+ padding: 26px 30px;
97
+ background: $gray-bg;
116
98
  }
99
+ }
117
100
 
118
- &__voucher-toggle {
119
- margin-bottom: 8px;
120
- cursor: pointer;
121
- display: flex;
122
- justify-content: space-between;
123
- color: $blue;
124
- font-size: .875rem;
101
+ &__accordion {
102
+ display: inline-block;
103
+ //padding-bottom: 0;
104
+ font-weight: 500;
105
+ color: $blue;
106
+ padding-bottom: 15px;
125
107
 
126
- &.collapsed {
127
- margin-bottom: 0;
108
+ &.collapsed .icon {
109
+ transform: rotate(180deg);
110
+ }
128
111
 
129
- .checkout-widget__icon {
130
- transform: rotate(180deg);
131
- }
112
+ //&:not(.collapsed) {
113
+ // padding-bottom: 15px;
114
+ //}
115
+
116
+ & + .summary {
117
+ &__aside {
118
+ padding-top: 20px;
132
119
  }
133
120
  }
134
121
 
135
- &__icon {
136
- width: 16px;
137
- height: 16px;
138
- display: flex;
139
- justify-content: center;
140
- align-items: center;
141
- }
122
+ &.collapsed + .summary {
123
+ &__aside {
124
+ padding-top: 0;
142
125
 
143
- &__voucher-section {
144
- margin-top: 1rem;
126
+ .checkout-widget__details {
127
+ opacity: 0;
128
+ }
129
+ }
145
130
  }
131
+ }
146
132
 
147
- &__voucher-list {
148
- list-style: none;
149
- padding: 0;
133
+ .checkout-widget {
134
+
135
+ &__total {
136
+ margin-top: 0;
150
137
  }
151
138
 
152
- &__voucher-value {
153
- font-weight: bold;
139
+ &__accordion-wrap {
140
+ margin-bottom: 20px;
154
141
  }
155
- }
156
142
 
157
- .summary__mobile-order.collapsed .summary__icon {
158
- transform: rotate(0deg);
159
- }
143
+ &.checkout-widget_order-summary {
144
+ padding: 20px 20px 0;
160
145
 
161
- .checkout-widget__item {
162
- display: flex;
163
- justify-content: space-between;
164
- align-items: center;
165
- font-size: 1rem;
166
- line-height: 1.25rem;
167
- margin: 10px 0;
168
- padding: 5px 0;
169
- }
146
+ .checkout-widget {
147
+ &__details {
148
+ padding-top: 20px;
149
+ font-size: 1rem;
170
150
 
171
- .checkout-widget__item:nth-child(3) {
172
- padding-top: 10px;
173
- }
151
+ .checkout-widget__accordion-wrap {
152
+ .accordion__header-icon-small {
153
+ left: 85px;
154
+ }
155
+ }
156
+ }
174
157
 
175
- .checkout-widget__item-bold {
176
- font-weight: 500;
177
- margin: 0;
178
- }
158
+ &__item {
159
+ display: flex;
160
+ justify-content: space-between;
161
+ font-size: 1rem;
162
+ line-height: 1.125rem;
163
+ font-weight: 400;
164
+ margin-bottom: 20px;
165
+
166
+ &-value {
167
+ text-align: right;
168
+ }
179
169
 
180
- .checkout-widget__item-vat {
181
- font-size: .875rem;
182
- margin: 0;
183
- padding: 0;
184
- }
170
+ &-bold {
171
+ font-weight: 500;
172
+ }
185
173
 
186
- .checkout-widget__item-value {
187
- text-align: right;
188
- }
174
+ &-vat {
175
+ font-size: .75rem;
176
+ margin-top: -15px;
177
+ }
189
178
 
190
- .checkout-widget__item-cc, .checkout-widget__item-delivery {
191
- font-size: 1rem;
192
- margin-top: 5px;
193
- }
179
+ &-hide {
180
+ display: none;
181
+ }
194
182
 
195
- .checkout-widget__total {
196
- display: flex;
197
- justify-content: space-between;
198
- align-items: center;
199
- padding: 15px 0;
200
- margin-bottom: 20px;
201
- font-weight: 500;
202
- font-size: 1.25rem;
203
- color: $white;
204
- background-color: $blue-dark;
205
- }
183
+ &-free {
184
+ color: $blue;
206
185
 
207
- &__aside.collapse,
208
- &__aside.collapsing {
209
- position: fixed !important;
210
- bottom: 0;
211
- left: 0;
212
- right: 0;
213
- overflow: hidden;
214
- display: block !important;
215
- transition: height .3s ease-in-out;
216
- max-height: calc(100vh - 177px);
217
- overflow-y: auto;
218
- -webkit-overflow-scrolling: touch;
219
- }
186
+ & .icon {
187
+ margin-left: 5px;
188
+ margin-bottom: -2px;
189
+ vertical-align: bottom;
190
+ color: $green;
191
+ }
192
+ }
220
193
 
221
- &__aside.collapse {
222
- height: 0;
223
- }
194
+ &-deficit {
195
+ display: block;
196
+ text-align: center;
197
+ color: #0277bd;
224
198
 
225
- &__aside.collapse.show {
226
- bottom: 177px;
227
- height: auto;
199
+ .bold {
200
+ font-weight: 500;
201
+ }
202
+ }
203
+ }
228
204
 
229
- &.single-button {
230
- bottom: 125px;
231
- }
232
- }
205
+ &-deficit {
206
+ display: block;
207
+ text-align: center;
208
+ color: #0277bd;
233
209
 
234
- &__aside.collapsing {
235
- bottom: 177px;
236
- height: auto;
210
+ .bold {
211
+ font-weight: 500;
212
+ }
213
+ }
237
214
 
238
- &.single-button {
239
- bottom: 125px;
215
+ &__total {
216
+ border: 0;
217
+ display: flex;
218
+ justify-content: space-between;
219
+ margin-left: -25px;
220
+ margin-right: -25px;
221
+ margin-bottom: 0;
222
+ padding: 20px 25px;
223
+ color: #fff;
224
+ background-color: $blue-dark;
225
+ font-size: 1.375rem;
226
+ line-height: 1.5rem;
227
+ }
228
+ }
240
229
  }
241
- }
242
230
 
243
- &__aside.collapsing.show {
244
- height: 0;
245
- }
246
-
247
- .collapsing {
248
- height: 0;
249
- overflow: hidden;
250
- transition: height .3s ease-in-out;
251
- }
252
-
253
- .collapse.show {
254
- height: auto;
255
- transition: height .3s ease-in-out;
231
+ &.checkout-widget-large {
232
+ .checkout-info-wrap {
233
+ padding-top: 0;
234
+ }
235
+ }
256
236
  }
257
- }
258
-
259
- .summary__mobile-bar {
260
- position: fixed;
261
- bottom: 0;
262
- left: 0;
263
- right: 0;
264
- z-index: $summary-mobile-bar;
265
- transition: transform .3s ease;
266
- }
267
237
 
268
- .summary__mobile-order {
269
- display: flex;
270
- justify-content: space-between;
271
- align-items: center;
272
- background-color: $blue-dark;
273
- padding: 20px 0;
274
- height: 44px;
275
- cursor: pointer;
276
- color: $white;
277
- transition: transform .3s ease;
278
- }
279
-
280
- .back-to-top {
281
- bottom: 193px !important;
282
- }
283
-
284
- .back-to-top.single-button {
285
- bottom: 141px !important;
286
- }
287
-
288
- .summary:not(.summary--mobile) {
289
- .summary__aside {
290
- padding: 20px 20px 0;
291
- background: $gray-bg;
292
- max-width: none;
293
- box-shadow: none;
238
+ &--payways {
239
+ .checkout-widget {
240
+ margin-bottom: 16px;
241
+ }
294
242
  }
295
243
  }
296
244
 
297
245
  @include media-breakpoint-up(sm) {
298
246
  .summary {
299
- &__aside.collapse.show {
300
- bottom: 182px;
301
- height: auto;
302
-
303
- &.single-button {
304
- bottom: 130px;
247
+ &-large {
248
+ .footer-checkout-holder {
249
+ justify-content: center;
305
250
  }
306
251
  }
307
252
 
308
- &__aside.collapsing {
309
- bottom: 182px;
253
+ .checkout-widget {
254
+ &.checkout-widget_order-summary {
255
+ padding: 20px 0 0;
310
256
 
311
- &.single-button {
312
- bottom: 130px;
257
+ .checkout-widget {
258
+ &__total {
259
+ margin-left: -20px;
260
+ margin-right: -20px;
261
+ }
262
+ }
313
263
  }
314
264
  }
315
265
  }
266
+ }
316
267
 
317
- .back-to-top {
318
- bottom: 198px !important;
268
+ @include media-breakpoint-up(md) {
269
+ .summary__klarna {
270
+ margin: 0 -20px;
319
271
  }
272
+ }
273
+
274
+ @include media-breakpoint-only(md) {
275
+ .summary {
276
+ .checkout-widget {
277
+ &.checkout-widget_order-summary {
278
+ .checkout-widget {
279
+ &__item {
280
+ &-deficit {
281
+ text-align: left;
282
+ }
283
+ }
320
284
 
321
- .back-to-top.single-button {
322
- bottom: 146px !important;
285
+ &__accordion-wrap {
286
+ .checkout-widget__detail-value {
287
+ left: auto;
288
+ right: 0;
289
+ top: 0;
290
+ }
291
+ }
292
+ }
293
+ }
294
+ }
323
295
  }
324
296
  }
325
297
 
326
298
  @include media-breakpoint-up(lg) {
327
299
  .summary {
328
300
  &__aside {
329
- padding: 20px 20px 0;
330
- box-shadow: none;
301
+ padding: 40px 30px 0;
331
302
  }
332
303
 
333
304
  & &__payment {
@@ -393,21 +364,6 @@
393
364
  }
394
365
  }
395
366
 
396
- .checkout-action__wrapper {
397
- position: static;
398
- box-shadow: none;
399
- }
400
-
401
- .back-to-top {
402
- right: 48px !important;
403
- bottom: 24px !important;
404
- }
405
-
406
- .back-to-top.single-button {
407
- right: 48px !important;
408
- bottom: 24px !important;
409
- }
410
-
411
367
  .basket {
412
368
  .summary {
413
369
  & .summary__payment {
@@ -422,50 +378,3 @@
422
378
  }
423
379
  }
424
380
  }
425
-
426
- @include media-breakpoint-down(md) {
427
- .tp-app {
428
- &.tp-android,
429
- &.tp-ios:not(.tp-ios-notch) {
430
- .summary--mobile {
431
- .summary__mobile-bar,
432
- .summary__aside {
433
- bottom: 60px !important;
434
- }
435
- }
436
- }
437
-
438
- &.tp-ios-notch {
439
- .summary--mobile {
440
- .summary__mobile-bar,
441
- .summary__aside {
442
- bottom: 80px !important;
443
- }
444
- }
445
- }
446
- }
447
- }
448
-
449
-
450
- @include media-breakpoint-only(md) {
451
- .tp-app {
452
- &.tp-android,
453
- &.tp-ios:not(.tp-ios-notch) {
454
- .summary--mobile {
455
- .summary__mobile-bar,
456
- .summary__aside {
457
- bottom: 60px !important;
458
- }
459
- }
460
- }
461
-
462
- &.tp-ios-notch {
463
- .summary--mobile {
464
- .summary__mobile-bar,
465
- .summary__aside {
466
- bottom: 80px !important;
467
- }
468
- }
469
- }
470
- }
471
- }
@@ -286,7 +286,7 @@
286
286
  .checkout-payment-details-v2 {
287
287
  .checkout-payment-details {
288
288
  .hop-iframe__wrapper {
289
- height: 707px;
289
+ height: 710px;
290
290
  }
291
291
  }
292
292
  }
@@ -296,7 +296,7 @@
296
296
  .checkout-payment-details-v2 {
297
297
  .checkout-payment-details {
298
298
  .hop-iframe__wrapper {
299
- height: 536px;
299
+ height: 555px;
300
300
  }
301
301
  }
302
302
  }
@@ -172,8 +172,6 @@ $nav: 100;
172
172
  $nav-mobile: 101;
173
173
  $back-to-top: 1000;
174
174
  $cookies-policy: 1001;
175
- $summary-aside: 1001;
176
- $summary-mobile-bar: 1002;
177
175
  $offer-banner-stuck: 1030;
178
176
 
179
177
  $deep-red: #8a424f;
@@ -1,4 +1,5 @@
1
1
  .checkout-widget {
2
+ padding: 20px;
2
3
  background-color: $gray-bg;
3
4
  margin-bottom: 20px;
4
5
 
@@ -82,14 +83,8 @@
82
83
  margin-bottom: 0;
83
84
  list-style-type: none;
84
85
 
85
- & > li:last-child {
86
- margin: 0;
87
- }
88
-
89
- & > .checkout-widget__accordion-wrap {
90
- &.checkout-widget__details-discount {
91
- margin-top: 8px;
92
- }
86
+ & > li:not(:first-of-type) {
87
+ margin-top: 5px;
93
88
  }
94
89
 
95
90
  .checkout-widget__details-hidden {
@@ -431,7 +426,7 @@
431
426
  text-align: center;
432
427
  width: 100%;
433
428
  color: $green;
434
- font-size: 1rem;
429
+ font-size: 4rem;
435
430
  margin-bottom: 10px;
436
431
  }
437
432
  }
@@ -520,6 +515,10 @@
520
515
  padding-right: 0;
521
516
  }
522
517
 
518
+ &-hide {
519
+ display: none;
520
+ }
521
+
523
522
  input {
524
523
  text-transform: uppercase;
525
524
 
@@ -530,43 +529,31 @@
530
529
  }
531
530
 
532
531
  .voucher {
533
- margin-bottom: 10px;
534
-
535
- .checkout-widget.checkout-voucher {
536
- &-hide {
537
- display: none;
538
- }
532
+ .checkout-widget {
533
+ margin-left: -15px;
534
+ margin-right: -15px;
535
+ }
536
+ }
539
537
 
540
- form {
541
- display: flex;
542
- justify-content: space-between;
543
- width: 100%;
538
+ @include media-breakpoint-up(sm) {
539
+ .voucher {
540
+ .checkout-widget {
541
+ margin: 0 0 20px;
544
542
 
545
- .form-row {
546
- width: 100%;
547
- margin-right: 16px;
548
- margin-bottom: 0;
549
- padding-right: 0;
543
+ form {
544
+ display: flex;
545
+ justify-content: space-between;
546
+ align-items: center;
550
547
 
551
- &__field {
552
- margin-right: 0;
548
+ .form-row {
549
+ @include make-col(6);
550
+ margin-bottom: 0;
553
551
  }
554
552
  }
555
-
556
- .voucher__btn {
557
- margin-top: 0;
558
- }
559
553
  }
560
554
  }
561
555
  }
562
556
 
563
- .voucher {
564
- .checkout-widget {
565
- margin-left: -15px;
566
- margin-right: -15px;
567
- }
568
- }
569
-
570
557
  @include media-breakpoint-up(md) {
571
558
  .checkout-widget {
572
559
  .accordion {
@@ -639,14 +626,6 @@
639
626
  }
640
627
  }
641
628
 
642
- @include media-breakpoint-up(lg) {
643
- .checkout-voucher {
644
- display: flex;
645
- justify-content: center;
646
- align-items: center;
647
- }
648
- }
649
-
650
629
  @include media-breakpoint-down(md) {
651
630
  .checkout-widget {
652
631
  &__secure {
@@ -719,6 +698,7 @@
719
698
  }
720
699
 
721
700
  &_order-summary {
701
+ padding: 20px 30px;
722
702
 
723
703
  .accordion__header-text {
724
704
  margin-left: 4px;
@@ -753,6 +733,12 @@
753
733
 
754
734
  @include media-breakpoint-down(xs) {
755
735
  .checkout-widget {
736
+ &_order-summary {
737
+ padding: 20px 45px;
738
+ margin-left: -15px;
739
+ margin-right: -15px;
740
+ }
741
+
756
742
  &__payment-wrapper {
757
743
  margin-left: -30px;
758
744
  margin-right: -25px;
@@ -787,6 +773,12 @@
787
773
  padding-bottom: 20px;
788
774
  }
789
775
 
776
+ &__detail-name_accordion + .checkout-widget__details-hidden + span {
777
+ right: auto;
778
+ left: 0;
779
+ top: 20px;
780
+ }
781
+
790
782
  &__detail-name,
791
783
  &__detail-value:not(.checkout-widget__details-hidden) {
792
784
  display: block;