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