wickes-css2 2.96.0-develop.1 → 2.96.0-develop.2

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 (50) hide show
  1. package/Readme.md +1 -2
  2. package/build/css/category-main.css +1 -1
  3. package/build/css/main.css +1 -1
  4. package/build/css/my-account-main-v2.css +1 -1
  5. package/build/css/my-account-main.css +1 -1
  6. package/build/css/pages/my-account-v2.css +1 -1
  7. package/build/css/pages/my-account.css +1 -1
  8. package/build/css/pages/page_default-store.css +1 -1
  9. package/build/css/pages/page_store-locator-details.css +1 -1
  10. package/build/css/pages/tradePro-rewards-old.css +1 -0
  11. package/build/css/pages/tradePro-rewards.css +1 -1
  12. package/build/css/pdp-main-before-combine.css +1 -1
  13. package/build/css/pdp-main-non-critical.css +1 -1
  14. package/build/css/store-locator-main.css +1 -1
  15. package/build/js/basket.min.js +1 -1
  16. package/build/js/bundle.min.js +1 -1
  17. package/build/js/checkout.min.js +1 -1
  18. package/build/js/emulation.min.js +3 -0
  19. package/build/js/merged-checkout.min.js +1 -1
  20. package/build/js/page/tradePro-rewards.js +46 -0
  21. package/build/js/project-list.min.js +1 -1
  22. package/build/js/tradePro-rewards.min.js +1 -0
  23. package/package.json +1 -1
  24. package/src/components/cards-slider.hbs +35 -0
  25. package/src/components/my-account/mobile-nav.hbs +7 -0
  26. package/src/components/reward_card.hbs +10 -0
  27. package/src/components/voucher.hbs +60 -158
  28. package/src/data/data_tradePro_cards.json +60 -0
  29. package/src/data/data_voucher_tradePro.json +123 -286
  30. package/src/data/my-account/data_my-account.json +34 -0
  31. package/src/js/components/cards-slider.js +62 -0
  32. package/src/js/emulation/vat-toggle.js +3 -0
  33. package/src/js/page/tradePro-rewards.js +46 -0
  34. package/src/page_tradePro_rewards_home.html +46 -0
  35. package/src/page_tradePro_rewards_home_single.html +44 -0
  36. package/src/page_tradePro_rewards_instore.html +67 -0
  37. package/src/page_tradePro_rewards_instoreAndOnline.html +65 -0
  38. package/src/page_tradePro_rewards_noInstoreAndOnline.html +65 -0
  39. package/src/page_tradePro_rewards_noOptional.html +65 -0
  40. package/src/page_tradePro_rewards_online.html +65 -0
  41. package/src/scss/components/_accordion.scss +4 -0
  42. package/src/scss/components/_cards-slider.scss +88 -0
  43. package/src/scss/components/_rewards.scss +74 -0
  44. package/src/scss/components/my-account/_mobile-nav.scss +15 -15
  45. package/src/scss/main.scss +1 -0
  46. package/src/scss/my-account-main-v2.scss +2 -0
  47. package/src/scss/pages/tradePro-rewards-old.scss +776 -0
  48. package/src/scss/pages/tradePro-rewards.scss +110 -715
  49. package/src/sitemap.html +31 -7
  50. package/src/page_tradePro_rewards.html +0 -34
@@ -1,775 +1,170 @@
1
1
  @import '../helpers/helpers';
2
2
  @import '../components/barcode';
3
3
 
4
- .page_tradePro-rewards {
5
- .voucher {
6
- &__tradePro {
7
- &.empty-voucher {
8
- .voucher__tradePro-code {
9
- flex: 0 0 100%;
10
- max-width: 100%;
11
- padding-top: 30px;
12
- padding-bottom: 30px;
13
-
14
- &-warning {
15
- position: absolute;
16
- bottom: 0;
17
- left: 0;
18
- right: 0;
19
- }
20
- }
21
- }
22
-
23
- &.big-voucher {
24
- .voucher {
25
- font-size: 1rem;
26
-
27
- &__tradePro {
28
- &-description {
29
- font-size: $font-size-base;
30
- }
31
- }
32
- }
33
- }
34
-
35
- &.big-voucher-targeted {
36
- .voucher {
37
- font-size: 1rem;
38
-
39
- &__tradePro {
40
- &-banner {
41
- &-wrap {
42
- margin-bottom: 2px;
43
- padding: 10px;
44
- height: 80px;
45
- width: 100%;
46
- text-align: center;
47
- color: $white;
48
- background-color: $red;
49
- }
50
-
51
- &-info {
52
- font-size: 1.375rem;
53
- font-weight: 500;
54
- }
55
-
56
- &-expiry-date {
57
- font-size: $font-size-base;
58
- }
59
- }
60
-
61
- &-barcode {
62
- text-align: center;
63
- border-right: 1px solid $gray;
64
-
65
- &-container {
66
- border: 0;
67
- }
68
-
69
- &-number {
70
- margin: 0;
71
- padding: 0;
72
- }
73
-
74
- &-img {
75
- max-height: 128px;
76
-
77
- svg {
78
- width: 100%;
79
- }
80
- }
81
- }
82
-
83
- &-code {
84
- display: initial;
85
-
86
- &-container {
87
- margin: 0;
88
- text-align: center;
89
- }
90
-
91
- &-field {
92
- display: flex;
93
- flex-direction: column;
94
- position: relative;
95
- margin: 0;
96
-
97
- span {
98
- position: absolute;
99
- top: 20px;
100
- background: $white;
101
- padding: 0 15px;
102
- color: $warm-grey;
103
- }
104
- }
105
-
106
- &-wrap {
107
- height: 120px;
108
- display: flex;
109
- align-items: center;
110
- width: 100%;
111
- }
112
-
113
- &-value {
114
- height: 78px;
115
- width: 100%;
116
- display: flex;
117
- justify-content: center;
118
- align-items: center;
119
- border: 2px solid $gray-light;
120
- font-size: 1.25rem;
121
- font-weight: 500;
122
- margin-right: 0;
123
- }
124
- }
125
-
126
- &-barcode-title,
127
- &-code-title {
128
- margin: 0;
4
+ $voucher-gap: 16px;
5
+ $voucher-gap-desktop: 24px;
6
+ $voucher-cell-height-lg: 246px;
7
+ $voucher-cell-height-xl: 296px;
129
8
 
130
- h5 {
131
- margin: 0;
132
- }
133
- }
134
-
135
- &-barcode-img,
136
- &-code-field {
137
- padding: 2% 10% 0;
138
- }
139
-
140
- &-barcode-info,
141
- &-code-info {
142
- .hint {
143
- font-size: 1rem;
144
- }
145
- }
146
-
147
- &-wrap {
148
- padding: 25px 20px;
149
- border: 1px dashed $black;
150
- }
9
+ .text-start {
10
+ text-align: left;
11
+ }
151
12
 
152
- &-description {
153
- font-size: $font-size-base;
154
- }
155
- }
156
- }
157
- }
13
+ .page_tradePro-rewards {
14
+ .voucher {
15
+ &__grid {
16
+ display: grid;
17
+ grid-template-columns: repeat(1, 1fr);
18
+ grid-template-rows: auto;
19
+ grid-auto-flow: dense;
20
+ gap: $voucher-gap;
158
21
 
159
- &.empty-code {
160
- .voucher {
161
- &__tradePro {
162
- &-barcode {
163
- &-container {
164
- border: 0;
165
- padding-bottom: 0;
166
- }
167
- }
168
- }
169
- }
22
+ @include media-breakpoint-up(lg) {
23
+ grid-template-columns: repeat(2, 1fr);
24
+ grid-template-rows: $voucher-cell-height-lg;
25
+ gap: $voucher-gap-desktop;
170
26
  }
171
27
 
172
- &:not(:last-child) {
173
- margin-bottom: 40px;
28
+ @include media-breakpoint-up(xl) {
29
+ grid-template-columns: repeat(2, 1fr);
30
+ grid-template-rows: $voucher-cell-height-xl;
31
+ gap: $voucher-gap-desktop;
174
32
  }
33
+ }
175
34
 
176
- &-barcode {
177
- &-container {
178
- border-right: 1px solid $gray;
179
- font-size: 1rem;
180
-
181
- svg {
182
- width: 95%;
183
- }
184
-
185
- .barcode__footer_expand {
186
- margin-top: 0;
187
- }
188
- }
189
-
190
- &-number,
191
- &-warning {
192
- text-align: center;
193
- }
194
-
195
- &-number {
196
- margin-top: -5px;
197
- padding-bottom: 8px;
198
- }
199
-
200
- &-warning {
201
- font-size: .785rem;
202
- color: $warm-grey;
35
+ &__cell {
36
+ border-radius: $border-radius;
203
37
 
204
- svg {
205
- // sass-lint:disable no-important
206
- width: 1rem !important;
207
- height: 1rem;
208
- color: $blue;
38
+ &:not(.voucher__description) {
39
+ min-height: 240px;
209
40
 
210
- &:hover {
211
- cursor: pointer;
212
- color: $blue-dark;
213
- }
214
- }
41
+ @include media-breakpoint-up(lg) {
42
+ height: $voucher-cell-height-lg;
215
43
  }
216
44
 
217
- &-brackets {
218
- vertical-align: top;
45
+ @include media-breakpoint-up(xl) {
46
+ height: $voucher-cell-height-xl;
219
47
  }
220
48
  }
49
+ }
221
50
 
222
- &-placeholder {
223
- img {
224
- width: 100%;
225
-
226
- &[src=''] {//fix for IE-11
227
- width: auto;
228
- }
229
- }
230
-
231
- &-wrap {
232
- position: relative;
233
- }
51
+ &__column {
52
+ grid-area: auto;
53
+ text-align: center;
234
54
 
235
- &-discount {
236
- display: inline-block;
237
- position: absolute;
238
- top: 0;
239
- right: 0;
240
- padding: 5px 15px;
241
- font-size: 1rem;
242
- color: $white;
243
- background: $red;
244
- font-weight: bold;
245
- }
55
+ @include media-breakpoint-up(lg) {
56
+ grid-area: 1 / 2 / 3 / 3;
246
57
  }
247
58
 
248
- &-wrap {
249
- padding: 10px 20px;
59
+ .voucher__cell {
250
60
  border: 1px solid $gray;
61
+ overflow: hidden;
251
62
 
252
- &_button-absent {
253
- .voucher__tradePro-code {
254
- &-warning {
255
- position: absolute;
256
- bottom: 0;
257
- right: 0;
258
- left: 0;
259
- }
260
- }
261
- }
262
-
263
- .name,
264
- .date {
265
- display: block;
266
- }
267
- }
268
-
269
- &-info {
270
- margin: 1.5rem 0;
271
- }
272
-
273
- &-code {
274
- display: flex;
275
-
276
- &-container {
277
- margin: auto;
278
- align-self: center;
279
-
280
- .fa-copy {
281
- // sass-lint:disable no-important
282
- width: 1rem !important;
283
- height: 1rem;
284
- }
285
- }
286
-
287
- &-title,
288
- &-field {
289
- margin-bottom: 1rem;
290
- }
291
-
292
- &-title {
293
- text-align: center;
294
- }
295
-
296
- &-field {
297
- display: flex;
298
- justify-content: space-between;
299
- align-items: center;
300
-
301
- input {
302
- padding: 10px;
303
- border-radius: 3px;
304
- border: 1px solid $gray;
305
- color: $gray-dark;
306
- font-weight: 500;
307
- text-align: center;
308
- min-width: 210px;
309
- margin-right: 10px;
310
-
311
- &[disabled] {
312
- background: $white;
313
- color: $gray-dark;
314
- opacity: 1;
315
- }
316
- }
317
-
318
- .icon {
319
- align-self: center;
320
- }
321
-
322
- a {
323
- align-self: center;
324
- font-weight: 500;
325
- position: relative;
326
- bottom: 3px;
327
- }
328
- }
329
-
330
- &-actions {
331
- .btn {
332
- width: 100%;
333
- }
334
- }
335
-
336
- &-warning {
337
- text-align: center;
338
- font-size: .785rem;
339
- color: $warm-grey;
340
- }
341
- }
342
-
343
- .copy-barcode {
344
- svg,
345
- a {
346
- &:hover {
347
- cursor: pointer;
348
- color: $blue-dark;
349
- }
350
- }
351
-
352
- a {
353
- text-decoration: none;
63
+ &:first-child {
64
+ margin-bottom: $voucher-gap;
354
65
 
355
- &:hover {
356
- text-decoration: $link-decoration;
66
+ @include media-breakpoint-up(lg) {
67
+ margin-bottom: $voucher-gap-desktop;
357
68
  }
358
69
  }
359
-
360
- &_notification {
361
- margin-top: 10px;
362
- margin-bottom: 0;
363
- }
364
70
  }
365
71
  }
366
72
 
367
- .terms {
368
- border-bottom: 1px solid $gray;
369
- padding: 0;
73
+ &__image-wrap {
74
+ height: 100%;
370
75
 
371
- &__btn-accordion {
372
- @include primary-text;
373
-
374
- padding: 20px 0;
375
- color: $blue;
376
- cursor: pointer;
76
+ img {
77
+ width: 100%;
78
+ height: auto;
377
79
 
378
- .icon {
379
- margin-right: 10px;
380
-
381
- .fa-angle-down {
382
- .terms_expanded & {
383
- transform: rotate(180deg);
384
- }
385
- }
386
- }
387
- }
388
-
389
- &__btn-toggle {
390
- cursor: pointer;
391
-
392
- .terms:not(.terms_expanded) & {
393
- display: inline-block;
394
- padding-top: 4px;
80
+ @include media-breakpoint-up(lg) {
81
+ width: auto;
82
+ height: 100%;
395
83
  }
396
84
  }
85
+ }
397
86
 
398
- &__content {
399
- padding-bottom: 20px;
87
+ &__barcode-img {
88
+ width: 311px;
89
+ height: 78px;
90
+ margin: auto;
400
91
 
401
- .terms_expanded & {
402
- display: block;
403
- height: auto;
404
- padding-right: 8px;
405
- }
92
+ & > * {
93
+ width: 100%;
94
+ height: 100%;
406
95
  }
407
96
 
408
- .terms__content {
409
- display: none;
97
+ @include media-breakpoint-up(lg) {
98
+ width: 261px;
99
+ height: 66px;
410
100
  }
411
101
 
412
- &_expanded {
413
- .terms__content {
414
- display: block;
415
- }
102
+ @include media-breakpoint-up(xl) {
103
+ width: 450px;
104
+ height: 114px;
416
105
  }
417
106
  }
418
- }
419
-
420
- .rewards-counter {
421
- position: relative;
422
- margin-left: 10px;
423
- top: 0;
424
- left: 0;
425
- }
426
- }
427
-
428
- .copy-barcode_notification {
429
- & .notification {
430
- margin-bottom: 1rem;
431
- }
432
- }
433
107
 
434
- @include media-breakpoint-down(sm) {
435
- .page_tradePro-rewards {
436
- .account-heading {
437
- &__content {
438
- margin-bottom: 20px;
439
- }
108
+ &__barcode-number {
109
+ margin-top: 4px;
440
110
  }
441
111
 
442
- .voucher {
443
- &__tradePro {
444
- &.empty-voucher {
445
- .voucher__tradePro-code {
446
- padding-top: 10px;
447
- padding-bottom: 10px;
448
-
449
- &-warning {
450
- position: static;
451
- }
452
- }
453
-
454
- .voucher__tradePro-wrap {
455
- .voucher__tradePro-code-title {
456
- margin-top: 0;
457
- }
458
- }
459
- }
460
-
461
- &.big-voucher {
462
- .voucher {
463
- &__tradePro {
464
- &-description {
465
- border-bottom: 1px solid $gray;
466
- }
467
- }
468
- }
469
- }
470
-
471
- &.big-voucher-targeted {
472
- .voucher {
473
- font-size: 1rem;
474
-
475
- &__tradePro {
476
- &-banner {
477
- &-wrap {
478
- height: auto;
479
- }
480
- }
481
-
482
- &-barcode {
483
- border-right: 0;
484
-
485
- &-container {
486
- border-bottom: 2px solid $gray;
487
- padding-bottom: 30px;
488
-
489
- .barcode__footer_expand {
490
- a {
491
- text-decoration: none;
492
-
493
- &:hover {
494
- text-decoration: $link-decoration;
495
- }
496
- }
497
- }
498
- }
499
-
500
- &-number {
501
- margin-top: -10px;
502
- margin-bottom: 15px;
503
- }
504
-
505
- &-img {
506
- padding: 0;
507
- }
508
- }
509
-
510
- &-code {
511
- &-container {
512
- padding-top: 30px;
513
- }
514
-
515
- &-field {
516
- padding: 0;
517
-
518
- span {
519
- top: 12px;
520
- }
521
- }
522
-
523
- &-info {
524
- margin-bottom: 15px;
525
- }
526
- }
527
-
528
- &-barcode-info,
529
- &-code-info {
530
- .hint {
531
- white-space: normal;
532
- }
533
- }
534
-
535
- &-description {
536
- border-bottom: 1px solid $gray;
537
- }
538
- }
539
- }
540
- }
541
-
542
- &-barcode {
543
- &-container {
544
- svg {
545
- width: 100%;
546
- }
547
- }
548
- }
549
-
550
- &-subheader {
551
- margin-top: 1rem;
552
- }
553
-
554
- &-wrap {
555
- padding: 20px;
556
-
557
- &_button-absent {
558
- .voucher__tradePro-code {
559
- &-warning {
560
- position: static;
561
- margin-top: 20px;
562
- }
563
- }
564
- }
565
- }
566
-
567
- &-info {
568
- padding-left: 15px;
569
- padding-right: 15px;
570
- }
571
-
572
- &-code {
573
- &-field {
574
- justify-content: space-between;
575
-
576
- input {
577
- min-width: inherit;
578
- margin-right: 0;
579
- }
580
- }
581
- }
582
-
583
- &-barcode,
584
- &-code {
585
- width: 100%;
586
- }
587
-
588
- &-barcode {
589
- padding: 0 10px;
590
-
591
- &-container {
592
- border-right: 0;
593
- padding-bottom: 15px;
594
- border-bottom: 1px solid $gray;
595
- }
596
-
597
- &-number {
598
- margin-top: -10px;
599
- padding-bottom: 10px;
600
- }
601
- }
602
-
603
- &-code {
604
- padding-left: 10px;
605
- padding-right: 10px;
606
-
607
- &-title {
608
- margin-top: 1rem;
609
- text-align: center;
610
- }
611
-
612
- &-field {
613
- justify-content: center;
614
-
615
- .icon {
616
- margin-left: 10px;
617
- margin-right: 0;
618
- }
619
- }
620
- }
621
- }
112
+ &__label {
113
+ background: $blue-dark;
114
+ color: $white;
115
+ display: block;
116
+ padding: 4px;
117
+ font-size: .75rem;
118
+ font-weight: 500;
622
119
  }
623
- }
624
- }
625
-
626
- @include media-breakpoint-up(sm) {
627
- .page_tradePro-rewards {
628
- .voucher {
629
- &__tradePro {
630
- &.big-voucher-targeted {
631
- .voucher {
632
- &__tradePro {
633
- &-barcode-info,
634
- &-code-info {
635
- .hint {
636
- white-space: normal;
637
- }
638
- }
639
120
 
640
- &-code {
641
- .copy-barcode {
642
- &_notification {
643
- text-align: left;
644
- padding: 0 10%;
645
- }
646
- }
647
- }
648
- }
649
- }
650
- }
651
-
652
- &-barcode {
653
- &-brackets {
654
- display: none;
655
- }
656
- }
657
-
658
- &-subheader {
659
- margin-top: 1rem;
660
- }
121
+ &__code-field {
122
+ display: inline-block;
123
+ height: 40px;
124
+ padding: 8px 16px;
125
+ background: $ma-white;
126
+ border-radius: $border-radius;
127
+ cursor: pointer;
661
128
 
662
- &-code {
663
- &-field {
664
- justify-content: space-between;
665
- }
666
- }
129
+ input {
130
+ background: none;
131
+ border: 0;
132
+ width: 90px;
133
+ pointer-events: none;
134
+ }
667
135
 
668
- .terms {
669
- &__btn-accordion {
670
- display: block;
671
- }
672
- }
136
+ .icon {
137
+ color: $blue;
673
138
  }
674
139
  }
675
- }
676
- }
677
-
678
- @include media-breakpoint-up(md) {
679
- .page_tradePro-rewards {
680
- .voucher {
681
- &__tradePro {
682
- &.big-voucher {
683
- .voucher {
684
- &__tradePro {
685
- &-description {
686
- flex: 4;
687
- }
688
-
689
- &-placeholder {
690
- max-width: 60%;
691
- flex: 6;
692
- }
693
140
 
694
- &-code-actions {
695
- min-width: 150px;
696
-
697
- &.competition-button {
698
- width: 150px;
699
- }
700
- }
701
- }
702
- }
703
- }
704
-
705
- &.empty-code {
706
- .voucher {
707
- &__tradePro {
708
- &-wrap {
709
- @include make-col(12);
710
- }
711
-
712
- &-barcode {
713
- @include make-col(6);
714
- margin: 0 auto;
715
- }
716
-
717
- &-code-warning {
718
- padding-top: 30px;
719
- padding-bottom: 30px;
720
- }
721
- }
722
- }
723
- }
141
+ &__description {
142
+ &-title {
143
+ font-weight: 700;
144
+ font-size: 1rem;
145
+ }
724
146
 
725
- &-info,
726
- &-wrap {
727
- @include make-col(12);
728
- }
147
+ &-text {
148
+ font-weight: 400;
149
+ font-size: .875rem;
150
+ }
729
151
 
730
- &-placeholder,
731
- &-description,
732
- &-barcode,
733
- &-code {
734
- @include make-col-ready;
735
- @include make-col(6);
736
- }
152
+ &-button {
153
+ margin-top: 16px;
737
154
  }
738
155
  }
739
- }
740
- }
741
156
 
742
- @include media-breakpoint-up(xl) {
743
- .page_tradePro-rewards {
744
- .voucher {
745
- &__tradePro {
746
- &.big-voucher-targeted {
747
- .voucher {
748
- &__tradePro {
749
- &-barcode-info,
750
- &-code-info {
751
- .hint {
752
- white-space: nowrap;
753
- }
754
- }
755
- }
756
- }
757
- }
758
- }
157
+ &__content {
158
+ display: flex;
159
+ flex-direction: column;
160
+ justify-content: center;
161
+ align-items: center;
162
+ flex: 1;
163
+ padding: 16px;
759
164
  }
760
- }
761
- }
762
165
 
763
- @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
764
- .page_tradePro-rewards {
765
- .voucher {
766
- &__tradePro {
767
- &-code-field {
768
- span {
769
- left: 32%;
770
- }
771
- }
772
- }
166
+ &--terms {
167
+ padding: 24px 0 16px;
773
168
  }
774
169
  }
775
170
  }