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

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 (45) hide show
  1. package/build/css/components/checkout-payment-details-v2.css +1 -1
  2. package/build/css/main.css +1 -1
  3. package/build/css/pages/checkout-new.css +1 -1
  4. package/build/css/pages/checkout.css +1 -1
  5. package/build/css/pages/page_checkout_delivery-new.css +1 -1
  6. package/build/css/pages/page_shopping-cart-v2.css +1 -1
  7. package/build/css/pdp-main-non-critical.css +1 -1
  8. package/build/js/basket.min.js +2 -2
  9. package/build/js/bundle.min.js +1 -1
  10. package/build/js/checkout.min.js +2 -2
  11. package/build/js/emulation.min.js +3 -3
  12. package/build/js/general.bundle.min.js +1 -1
  13. package/build/js/merged-checkout.min.js +2 -2
  14. package/build/js/page/basket/summary-mobile.js +17 -0
  15. package/build/js/page/components/order-summary.js +9 -1
  16. package/build/js/page/components/voucher.js +1 -1
  17. package/build/js/pdp.bundle.min.js +1 -1
  18. package/build/js/plp.bundle.min.js +1 -1
  19. package/build/js/project-list.min.js +1 -1
  20. package/package.json +1 -1
  21. package/src/components/checkout-action.hbs +14 -11
  22. package/src/components/checkout-voucher-accordion.hbs +15 -0
  23. package/src/components/checkout_order-summary-new.hbs +4 -2
  24. package/src/components/checkout_voucher_large.hbs +20 -16
  25. package/src/components/order-summary.hbs +91 -56
  26. package/src/components/summary-mobile-bar.hbs +17 -0
  27. package/src/js/components/general/is-trade-pro.js +21 -1
  28. package/src/js/components/general/switchVat.js +2 -1
  29. package/src/js/emulation/basket-data.js +3 -3
  30. package/src/js/page/basket/summary-mobile.js +17 -0
  31. package/src/js/page/components/order-summary.js +9 -1
  32. package/src/js/page/components/voucher.js +1 -1
  33. package/src/layouts/basket-new.hbs +1 -1
  34. package/src/page_checkout_payment-details_with-card-loader.html +56 -0
  35. package/src/page_shopping-cart-v2.html +6 -16
  36. package/src/scss/barclays-paypage-combined-minified.css +1 -1
  37. package/src/scss/barclays-paypage-combined.css +9 -15
  38. package/src/scss/components/_checkout-action.scss +132 -6
  39. package/src/scss/components/_order-summary.scss +271 -180
  40. package/src/scss/components/checkout-payment-details-v2.scss +2 -2
  41. package/src/scss/helpers/_variables.scss +2 -0
  42. package/src/scss/pages/_checkout-widget.scss +45 -37
  43. package/src/scss/pages/page_checkout_delivery-new.scss +110 -10
  44. package/src/scss/pages/page_shopping-cart-v2.scss +93 -32
  45. package/src/sitemap.html +2 -0
@@ -2,12 +2,11 @@
2
2
 
3
3
  .summary {
4
4
  &__aside {
5
- padding: 20px 20px 0;
5
+ padding: 15px;
6
6
  background: $gray-bg;
7
-
8
- & .btn-checkout {
9
- margin-bottom: 10px;
10
- }
7
+ margin: 0 auto;
8
+ z-index: $summary-aside;
9
+ box-shadow: 4px 4px 16px rgba(0, 0, 0, .25);
11
10
 
12
11
  & .form-row__col-btn {
13
12
  padding-right: 0;
@@ -65,240 +64,270 @@
65
64
  }
66
65
  }
67
66
 
68
- &-large {
69
- order: -1;
70
-
71
- .summary__aside {
72
- //border: 1px solid $border-grey;
73
-
74
- .checkout-widget_order-summary.checkout-widget-large {
75
- display: block;
76
- padding-top: 0;
77
- margin-bottom: 0;
78
- }
79
- }
67
+ &__mobile-container {
68
+ display: flex;
69
+ justify-content: space-between;
70
+ align-items: center;
80
71
  }
81
72
 
82
- &__basked-id {
83
- margin-top: 13px;
84
- padding: 26px 0;
85
- background: $gray-bg;
86
- text-align: center;
87
- font-size: 1rem;
73
+ &__icon-container {
74
+ display: flex;
75
+ justify-content: center;
76
+ align-items: center;
77
+ gap: 10px;
78
+ }
88
79
 
89
- .id-number {
90
- font-weight: bold;
91
- }
80
+ &__mobile-bar-total,
81
+ &__mobile-bar-label {
82
+ font-weight: 400;
83
+ font-size: 1.125rem;
84
+ line-height: 1.25rem;
92
85
  }
93
86
 
94
- &__email {
95
- &-info {
96
- padding: 26px 30px;
97
- background: $gray-bg;
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
+ }
98
110
  }
99
111
  }
100
112
 
101
- &__accordion {
102
- display: inline-block;
103
- //padding-bottom: 0;
104
- font-weight: 500;
105
- color: $blue;
106
- padding-bottom: 15px;
107
-
108
- &.collapsed .icon {
109
- transform: rotate(180deg);
113
+ .checkout-widget {
114
+ &__voucher-accordion {
115
+ margin-top: 10px;
110
116
  }
111
117
 
112
- //&:not(.collapsed) {
113
- // padding-bottom: 15px;
114
- //}
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;
115
125
 
116
- & + .summary {
117
- &__aside {
118
- padding-top: 20px;
119
- }
120
- }
121
-
122
- &.collapsed + .summary {
123
- &__aside {
124
- padding-top: 0;
126
+ &.collapsed {
127
+ margin-bottom: 0;
125
128
 
126
- .checkout-widget__details {
127
- opacity: 0;
129
+ .checkout-widget__icon {
130
+ transform: rotate(180deg);
128
131
  }
129
132
  }
130
133
  }
131
- }
132
134
 
133
- .checkout-widget {
134
-
135
- &__total {
136
- margin-top: 0;
135
+ &__icon {
136
+ width: 16px;
137
+ height: 16px;
138
+ display: flex;
139
+ justify-content: center;
140
+ align-items: center;
137
141
  }
138
142
 
139
- &__accordion-wrap {
140
- margin-bottom: 20px;
143
+ &__voucher-section {
144
+ margin-top: 1rem;
141
145
  }
142
146
 
143
- &.checkout-widget_order-summary {
144
- padding: 20px 20px 0;
147
+ &__voucher-list {
148
+ list-style: none;
149
+ padding: 0;
150
+ }
145
151
 
146
- .checkout-widget {
147
- &__details {
148
- padding-top: 20px;
149
- font-size: 1rem;
152
+ &__voucher-value {
153
+ font-weight: bold;
154
+ }
155
+ }
150
156
 
151
- .checkout-widget__accordion-wrap {
152
- .accordion__header-icon-small {
153
- left: 85px;
154
- }
155
- }
156
- }
157
+ .summary__mobile-order.collapsed .summary__icon {
158
+ transform: rotate(0deg);
159
+ }
157
160
 
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
- }
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
+ }
169
170
 
170
- &-bold {
171
- font-weight: 500;
172
- }
171
+ .checkout-widget__item:nth-child(3) {
172
+ padding-top: 10px;
173
+ }
173
174
 
174
- &-vat {
175
- font-size: .75rem;
176
- margin-top: -15px;
177
- }
175
+ .checkout-widget__item-bold {
176
+ font-weight: 500;
177
+ margin: 0;
178
+ }
178
179
 
179
- &-hide {
180
- display: none;
181
- }
180
+ .checkout-widget__item-vat {
181
+ font-size: .875rem;
182
+ margin: 0;
183
+ padding: 0;
184
+ }
182
185
 
183
- &-free {
184
- color: $blue;
186
+ .checkout-widget__item-value {
187
+ text-align: right;
188
+ }
185
189
 
186
- & .icon {
187
- margin-left: 5px;
188
- margin-bottom: -2px;
189
- vertical-align: bottom;
190
- color: $green;
191
- }
192
- }
190
+ .checkout-widget__item-cc, .checkout-widget__item-delivery {
191
+ font-size: 1rem;
192
+ margin-top: 5px;
193
+ }
193
194
 
194
- &-deficit {
195
- display: block;
196
- text-align: center;
197
- color: #0277bd;
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
+ }
198
206
 
199
- .bold {
200
- font-weight: 500;
201
- }
202
- }
203
- }
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
+ }
204
220
 
205
- &-deficit {
206
- display: block;
207
- text-align: center;
208
- color: #0277bd;
221
+ &__aside.collapse {
222
+ height: 0;
223
+ }
209
224
 
210
- .bold {
211
- font-weight: 500;
212
- }
213
- }
225
+ &__aside.collapse.show {
226
+ bottom: 177px;
227
+ height: auto;
214
228
 
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
- }
229
+ &.single-button {
230
+ bottom: 125px;
229
231
  }
232
+ }
230
233
 
231
- &.checkout-widget-large {
232
- .checkout-info-wrap {
233
- padding-top: 0;
234
- }
234
+ &__aside.collapsing {
235
+ bottom: 177px;
236
+ height: auto;
237
+
238
+ &.single-button {
239
+ bottom: 125px;
235
240
  }
236
241
  }
237
242
 
238
- &--payways {
239
- .checkout-widget {
240
- margin-bottom: 16px;
241
- }
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;
256
+ }
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
+
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;
242
294
  }
243
295
  }
244
296
 
245
297
  @include media-breakpoint-up(sm) {
246
298
  .summary {
247
- &-large {
248
- .footer-checkout-holder {
249
- justify-content: center;
299
+ &__aside.collapse.show {
300
+ bottom: 182px;
301
+ height: auto;
302
+
303
+ &.single-button {
304
+ bottom: 130px;
250
305
  }
251
306
  }
252
307
 
253
- .checkout-widget {
254
- &.checkout-widget_order-summary {
255
- padding: 20px 0 0;
308
+ &__aside.collapsing {
309
+ bottom: 182px;
256
310
 
257
- .checkout-widget {
258
- &__total {
259
- margin-left: -20px;
260
- margin-right: -20px;
261
- }
262
- }
311
+ &.single-button {
312
+ bottom: 130px;
263
313
  }
264
314
  }
265
315
  }
266
- }
267
316
 
268
- @include media-breakpoint-up(md) {
269
- .summary__klarna {
270
- margin: 0 -20px;
317
+ .back-to-top {
318
+ bottom: 198px !important;
271
319
  }
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
- }
284
320
 
285
- &__accordion-wrap {
286
- .checkout-widget__detail-value {
287
- left: auto;
288
- right: 0;
289
- top: 0;
290
- }
291
- }
292
- }
293
- }
294
- }
321
+ .back-to-top.single-button {
322
+ bottom: 146px !important;
295
323
  }
296
324
  }
297
325
 
298
326
  @include media-breakpoint-up(lg) {
299
327
  .summary {
300
328
  &__aside {
301
- padding: 40px 30px 0;
329
+ padding: 20px 20px 0;
330
+ box-shadow: none;
302
331
  }
303
332
 
304
333
  & &__payment {
@@ -364,6 +393,21 @@
364
393
  }
365
394
  }
366
395
 
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
+
367
411
  .basket {
368
412
  .summary {
369
413
  & .summary__payment {
@@ -378,3 +422,50 @@
378
422
  }
379
423
  }
380
424
  }
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: 560px;
289
+ height: 707px;
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: 560px;
299
+ height: 536px;
300
300
  }
301
301
  }
302
302
  }
@@ -172,6 +172,8 @@ $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;
175
177
  $offer-banner-stuck: 1030;
176
178
 
177
179
  $deep-red: #8a424f;
@@ -1,5 +1,4 @@
1
1
  .checkout-widget {
2
- padding: 20px;
3
2
  background-color: $gray-bg;
4
3
  margin-bottom: 20px;
5
4
 
@@ -83,8 +82,14 @@
83
82
  margin-bottom: 0;
84
83
  list-style-type: none;
85
84
 
86
- & > li:not(:first-of-type) {
87
- margin-top: 5px;
85
+ & > li:last-child {
86
+ margin: 0;
87
+ }
88
+
89
+ & > .checkout-widget__accordion-wrap {
90
+ &.checkout-widget__details-discount {
91
+ margin-top: 8px;
92
+ }
88
93
  }
89
94
 
90
95
  .checkout-widget__details-hidden {
@@ -426,7 +431,7 @@
426
431
  text-align: center;
427
432
  width: 100%;
428
433
  color: $green;
429
- font-size: 4rem;
434
+ font-size: 1rem;
430
435
  margin-bottom: 10px;
431
436
  }
432
437
  }
@@ -515,10 +520,6 @@
515
520
  padding-right: 0;
516
521
  }
517
522
 
518
- &-hide {
519
- display: none;
520
- }
521
-
522
523
  input {
523
524
  text-transform: uppercase;
524
525
 
@@ -529,31 +530,43 @@
529
530
  }
530
531
 
531
532
  .voucher {
532
- .checkout-widget {
533
- margin-left: -15px;
534
- margin-right: -15px;
535
- }
536
- }
533
+ margin-bottom: 10px;
537
534
 
538
- @include media-breakpoint-up(sm) {
539
- .voucher {
540
- .checkout-widget {
541
- margin: 0 0 20px;
535
+ .checkout-widget.checkout-voucher {
536
+ &-hide {
537
+ display: none;
538
+ }
542
539
 
543
- form {
544
- display: flex;
545
- justify-content: space-between;
546
- align-items: center;
540
+ form {
541
+ display: flex;
542
+ justify-content: space-between;
543
+ width: 100%;
547
544
 
548
- .form-row {
549
- @include make-col(6);
550
- margin-bottom: 0;
545
+ .form-row {
546
+ width: 100%;
547
+ margin-right: 16px;
548
+ margin-bottom: 0;
549
+ padding-right: 0;
550
+
551
+ &__field {
552
+ margin-right: 0;
551
553
  }
552
554
  }
555
+
556
+ .voucher__btn {
557
+ margin-top: 0;
558
+ }
553
559
  }
554
560
  }
555
561
  }
556
562
 
563
+ .voucher {
564
+ .checkout-widget {
565
+ margin-left: -15px;
566
+ margin-right: -15px;
567
+ }
568
+ }
569
+
557
570
  @include media-breakpoint-up(md) {
558
571
  .checkout-widget {
559
572
  .accordion {
@@ -626,6 +639,14 @@
626
639
  }
627
640
  }
628
641
 
642
+ @include media-breakpoint-up(lg) {
643
+ .checkout-voucher {
644
+ display: flex;
645
+ justify-content: center;
646
+ align-items: center;
647
+ }
648
+ }
649
+
629
650
  @include media-breakpoint-down(md) {
630
651
  .checkout-widget {
631
652
  &__secure {
@@ -698,7 +719,6 @@
698
719
  }
699
720
 
700
721
  &_order-summary {
701
- padding: 20px 30px;
702
722
 
703
723
  .accordion__header-text {
704
724
  margin-left: 4px;
@@ -733,12 +753,6 @@
733
753
 
734
754
  @include media-breakpoint-down(xs) {
735
755
  .checkout-widget {
736
- &_order-summary {
737
- padding: 20px 45px;
738
- margin-left: -15px;
739
- margin-right: -15px;
740
- }
741
-
742
756
  &__payment-wrapper {
743
757
  margin-left: -30px;
744
758
  margin-right: -25px;
@@ -773,12 +787,6 @@
773
787
  padding-bottom: 20px;
774
788
  }
775
789
 
776
- &__detail-name_accordion + .checkout-widget__details-hidden + span {
777
- right: auto;
778
- left: 0;
779
- top: 20px;
780
- }
781
-
782
790
  &__detail-name,
783
791
  &__detail-value:not(.checkout-widget__details-hidden) {
784
792
  display: block;