wickes-css2 2.96.0-develop.6 → 2.96.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 (39) hide show
  1. package/build/css/components/tile-calculator.css +1 -1
  2. package/build/css/pages/page_ti.css +1 -1
  3. package/build/css/pdp-main-before-combine.css +1 -1
  4. package/build/css/pdp-main-non-critical.css +1 -1
  5. package/build/css/pdp-main.css +1 -1
  6. package/build/js/basket.min.js +1 -1
  7. package/build/js/bundle.min.js +1 -1
  8. package/build/js/checkout.min.js +1 -1
  9. package/build/js/emulation.min.js +4 -1
  10. package/build/js/general.bundle.min.js +1 -1
  11. package/build/js/merged-checkout.min.js +1 -1
  12. package/build/js/pdp.bundle.min.js +1 -1
  13. package/build/js/plp.bundle.min.js +1 -1
  14. package/build/js/project-list.min.js +1 -1
  15. package/package.json +1 -1
  16. package/src/components/pdp-info-v2.hbs +0 -37
  17. package/src/components/shopping-list-pdf.hbs +37 -7
  18. package/src/components/ti-total-area.hbs +0 -32
  19. package/src/components/ti.hbs +0 -791
  20. package/src/components/voucher.hbs +4 -6
  21. package/src/js/components/general/switchVat.js +11 -0
  22. package/src/js/emulation/project-list-print.js +4 -1
  23. package/src/layouts/base.hbs +1 -1
  24. package/src/page_activate-trade-pro-api-flow.html +62 -0
  25. package/src/page_my-shopping-list-pdf-vat.html +7 -0
  26. package/src/partials/header.hbs +1 -1
  27. package/src/scss/components/_ti-total-area.scss +0 -53
  28. package/src/scss/components/tile-calculator.scss +1 -4
  29. package/src/scss/pages/page_ti.scss +3 -719
  30. package/src/sitemap.html +4 -0
  31. package/src/components/ti-header.hbs +0 -34
  32. package/src/components/ti-radio.hbs +0 -57
  33. package/src/components/tile-banner.hbs +0 -13
  34. package/src/components/tile-why-wickes.hbs +0 -32
  35. package/src/data/data_flooring-installation.json +0 -186
  36. package/src/scss/components/_ti-header.scss +0 -43
  37. package/src/scss/components/_ti-radio.scss +0 -142
  38. package/src/scss/components/_tile-banner.scss +0 -141
  39. package/src/scss/components/_tile-why-wickes.scss +0 -57
@@ -2,9 +2,7 @@
2
2
 
3
3
  .ti {
4
4
  &__step,
5
- &__estimate,
6
- &__new,
7
- &__next {
5
+ &__estimate {
8
6
  display: flex;
9
7
  }
10
8
 
@@ -15,43 +13,9 @@
15
13
  align-content: flex-start;
16
14
  justify-content: flex-start;
17
15
 
18
- &1,
19
- &2-inactive,
20
- &2-active,
21
- &3-active {
16
+ &1 {
22
17
  @include ti-step-state;
23
18
  }
24
-
25
- &2-inactive {
26
- & .ti__cost-ready {
27
- display: flex;
28
- }
29
- }
30
-
31
- &2-active {
32
- & .ti__cost {
33
- display: flex;
34
- }
35
- }
36
-
37
- &3-active {
38
- & .ti__choose {
39
- display: flex;
40
- }
41
- }
42
- }
43
-
44
- &__step1-return,
45
- &__step2-return {
46
- position: absolute;
47
- top: 50%;
48
- right: 0;
49
- cursor: pointer;
50
- font-size: $font-size-base;
51
- font-weight: 500;
52
- line-height: 22px;
53
- transform: translateY(-50%);
54
- display: none;
55
19
  }
56
20
 
57
21
  &__card,
@@ -60,11 +24,7 @@
60
24
  }
61
25
 
62
26
  &__estimate,
63
- &__error,
64
- &__new,
65
- &__next,
66
- &__cost,
67
- &__choose {
27
+ &__error {
68
28
  @include make-col(12);
69
29
  }
70
30
 
@@ -132,521 +92,6 @@
132
92
  }
133
93
  }
134
94
 
135
- &__new {
136
- justify-content: center;
137
-
138
- &-link {
139
- font-size: $font-size-base;
140
- font-weight: bold;
141
- line-height: 22px;
142
-
143
- a {
144
- position: relative;
145
- top: 5px;
146
- cursor: pointer;
147
- border-bottom: 1px solid $blue;
148
- text-decoration: none;
149
-
150
- &:hover {
151
- border-bottom-color: $link-hover-color;
152
- }
153
- }
154
- }
155
- }
156
-
157
- &__next {
158
- margin: 20px 0 0;
159
- justify-content: center;
160
- align-items: center;
161
- align-content: center;
162
-
163
- &-two {
164
- display: none;
165
- }
166
-
167
- & .btn {
168
- max-width: 380px;
169
- display: flex;
170
- justify-content: center;
171
- align-items: center;
172
- }
173
-
174
- &-button-arrow {
175
- @include primary-text;
176
- font-weight: 700;
177
- text-align: center;
178
- padding-left: 10px;
179
- }
180
- }
181
-
182
- &__cost {
183
- display: none;
184
- flex-wrap: wrap;
185
- padding-top: 15px;
186
-
187
- &_input-invalid {
188
- .ti__cost {
189
- &_removal-input {
190
- & input {
191
- border-color: $red;
192
- }
193
- }
194
-
195
- &_removal_error-msg {
196
- display: block;
197
- }
198
- }
199
- }
200
-
201
- &_error-msg,
202
- &_removal_error-msg {
203
- @include additional-text;
204
- width: 100%;
205
- margin: 8px 0 0;
206
- color: $red;
207
- display: none;
208
- }
209
-
210
- &-ready,
211
- &_postcode,
212
- &_removal,
213
- &_levelling,
214
- &_options {
215
- @include make-col(12);
216
- }
217
-
218
- &-ready {
219
- display: none;
220
- flex-wrap: wrap;
221
- }
222
-
223
- &_postcode {
224
- padding: 30px 20px;
225
- background: $gray-bg;
226
-
227
- &-row,
228
- &-label {
229
- @include primary-text;
230
- font-weight: 500;
231
- }
232
-
233
- &-row {
234
- display: flex;
235
- flex-wrap: wrap;
236
- align-items: center;
237
- margin: 0;
238
- }
239
-
240
- &-label {
241
- display: block;
242
- position: relative;
243
-
244
- &::before {
245
- content: '*';
246
- display: inline-block;
247
- color: $red;
248
- padding-right: 4px;
249
- }
250
- }
251
-
252
- &-input {
253
- padding-left: 15px;
254
- width: 100px;
255
-
256
- & input {
257
- padding: 8px;
258
-
259
- .ti__cost-invalid & {
260
- border-color: $red;
261
- }
262
- }
263
- }
264
- }
265
-
266
- &_removal,
267
- &_levelling {
268
- margin: 15px 0;
269
- padding: 20px;
270
- background: $gray-bg;
271
-
272
- &-title,
273
- &-label {
274
- @include primary-text;
275
- font-weight: 500;
276
- }
277
-
278
- &-title {
279
- margin: 0;
280
- display: flex;
281
-
282
- &::before {
283
- content: '*';
284
- display: inline-block;
285
- color: $red;
286
- padding-right: 8px;
287
- }
288
- }
289
-
290
- &-radio {
291
- margin: 10px 0 0;
292
-
293
- & label {
294
- padding: 0 35px;
295
- }
296
- }
297
-
298
- &-row {
299
- margin: 15px 0 10px;
300
- display: none;
301
- align-items: center;
302
-
303
- &.ti__cost_removal-row {
304
- margin: 15px 0 0;
305
- }
306
-
307
- .ti__cost_removal-yes & {
308
- display: flex;
309
- }
310
- }
311
-
312
- &-label {
313
- padding-right: 15px;
314
- }
315
-
316
- &-input {
317
- width: 60px;
318
- flex-shrink: 0;
319
-
320
- & input {
321
- text-align: center;
322
- padding: 8px;
323
- }
324
- }
325
- }
326
-
327
- &_options {
328
- padding: 20px;
329
- background: $gray-bg;
330
- margin: 0;
331
-
332
- & .collapsed .icon {
333
- position: relative;
334
- transform: rotate(180deg);
335
- }
336
-
337
- &-title,
338
- &-what {
339
- font-size: 1rem;
340
- font-weight: 500;
341
- display: flex;
342
- }
343
-
344
- &-title {
345
- &::before {
346
- content: '*';
347
- display: inline-block;
348
- color: $red;
349
- padding-right: 8px;
350
- }
351
- }
352
-
353
- &-what {
354
- color: $blue;
355
- line-height: 19px;
356
- text-decoration: underline;
357
- cursor: pointer;
358
- align-items: center;
359
-
360
- & span:first-child {
361
- padding-right: 2px;
362
- }
363
-
364
- & .icon {
365
- width: 15px;
366
- height: 100%;
367
- display: block;
368
- line-height: inherit;
369
- }
370
- }
371
-
372
- &-list {
373
- display: flex;
374
- flex-wrap: wrap;
375
- margin-top: -1px;
376
- }
377
-
378
- &-item {
379
- @include make-col(4);
380
- margin-top: 15px;
381
- padding-right: 5px;
382
- }
383
- }
384
-
385
- &_options,
386
- &_levelling {
387
- &-title {
388
- line-height: 24px;
389
- margin-bottom: 5px;
390
- }
391
-
392
- & .notification {
393
- margin-top: 5px;
394
- margin-bottom: 0;
395
- padding: 8px 25px 8px 15px;
396
- line-height: 22px;
397
- }
398
-
399
- & .collapsed .icon {
400
- position: relative;
401
- transform: rotate(180deg);
402
- }
403
- }
404
-
405
- &_levelling {
406
- display: none;
407
-
408
- &_open {
409
- display: block;
410
- margin-bottom: 0;
411
- }
412
- }
413
-
414
- &-invalid,
415
- &-invalid-2 {
416
- & .ti__cost_error-msg {
417
- display: block;
418
- }
419
- }
420
- }
421
-
422
- &__choose {
423
- display: none;
424
- flex-wrap: wrap;
425
-
426
- &_title {
427
- width: 100%;
428
- padding: 20px 0 10px;
429
- margin-bottom: 0;
430
- }
431
-
432
- &_first {
433
- width: 100%;
434
-
435
- .notification_general {
436
- margin: 0;
437
- }
438
- }
439
-
440
- &_divider {
441
- @include make-col(1);
442
- font-size: 1rem;
443
- font-weight: bold;
444
- position: relative;
445
- text-align: center;
446
- }
447
-
448
- &_second {
449
- @include make-col(12);
450
- padding-left: 0;
451
-
452
- .choose {
453
- height: auto;
454
- display: flex;
455
- flex-direction: row;
456
- justify-content: start;
457
- padding: 10px 20px;
458
- }
459
- }
460
-
461
- .ti__new {
462
- margin: 20px 0 25px;
463
- color: $blue;
464
-
465
- &:hover {
466
- color: $link-hover-color;
467
- }
468
- }
469
- }
470
-
471
- &__overview {
472
- @include make-col(7);
473
-
474
- &-price {
475
- @include make-col(5);
476
- padding-top: 15px;
477
- padding-left: 20px;
478
- display: flex;
479
- flex-wrap: wrap;
480
- align-items: flex-start;
481
- align-content: flex-start;
482
-
483
- &_total {
484
- height: 48px;
485
-
486
- &::after {
487
- content: '';
488
- display: block;
489
- position: absolute;
490
- bottom: 0;
491
- left: 20px;
492
- width: calc(100% - 40px);
493
- border-bottom: 1px solid $gray;
494
- }
495
-
496
- &-text {
497
- font-size: 1.125rem;
498
- font-weight: 700;
499
- line-height: 46px;
500
- }
501
-
502
- &-value {
503
- font-size: 1.5rem;
504
- font-weight: 700;
505
- line-height: 46px;
506
- color: $blue-dark;
507
- }
508
- }
509
-
510
- &_total,
511
- &_area,
512
- &_head,
513
- &_access,
514
- &_floor {
515
- width: 100%;
516
- position: relative;
517
- display: flex;
518
- justify-content: flex-start;
519
- padding: 0 20px;
520
- background: $gray-bg;
521
- align-items: baseline;
522
-
523
- &-spec {
524
- font-size: $font-size-base;
525
- font-weight: 700;
526
- line-height: 22px;
527
- }
528
-
529
- &-rest {
530
- margin-left: auto;
531
- }
532
- }
533
-
534
- &_head {
535
- padding-top: 10px;
536
- height: 38px;
537
- font-size: 1.5rem;
538
- font-weight: 500;
539
- line-height: 2rem;
540
- }
541
-
542
- &_area {
543
- padding-top: 10px;
544
- height: 43px;
545
-
546
- &-wline {
547
- &::after {
548
- content: '';
549
- display: block;
550
- position: absolute;
551
- bottom: 0;
552
- left: 20px;
553
- width: calc(100% - 40px);
554
- border-bottom: 1px solid $gray;
555
- }
556
- }
557
-
558
- }
559
-
560
- &_floor,
561
- &_access {
562
- display: flex;
563
- flex-direction: column;
564
-
565
- &-head,
566
- &-item {
567
- @include make-col(12);
568
- display: flex;
569
- width: 100%;
570
- }
571
-
572
- &-head {
573
- font-weight: bold;
574
- padding-top: 10px;
575
- }
576
-
577
- &-spec {
578
- @include make-col(7);
579
- flex-direction: row;
580
- font-weight: normal;
581
- }
582
-
583
- &-rest {
584
- @include make-col(5);
585
- text-align: right;
586
- font-size: 1rem;
587
- font-weight: bold;
588
- }
589
- }
590
-
591
- &-estim,
592
- &_floor-only {
593
- width: 100%;
594
- padding-top: 10px;
595
- background: $gray-bg;
596
-
597
- & .ti__overview-price_total {
598
- padding-bottom: 10px;
599
- padding-top: 15px;
600
-
601
- &::before {
602
- content: '';
603
- display: block;
604
- position: absolute;
605
- top: 0;
606
- left: 20px;
607
- width: calc(100% - 40px);
608
- border-top: 1px solid $gray;
609
- }
610
- }
611
- }
612
-
613
- &_floor-only {
614
- & .ti__overview-price_total {
615
- padding-top: 0;
616
- padding-bottom: 0;
617
-
618
- &::after {
619
- display: none;
620
- }
621
- }
622
- }
623
-
624
- &_shortcut {
625
- width: 100%;
626
- background: $gray-bg;
627
- position: relative;
628
- padding: 15px 20px 10px;
629
-
630
- &-text,
631
- &-link {
632
- font-size: $font-size-base;
633
- line-height: 22px;
634
- text-align: right;
635
- margin-bottom: 0;
636
- }
637
-
638
- &-text {
639
- font-weight: 400;
640
- }
641
-
642
- &-link {
643
- font-weight: 500;
644
- text-decoration: underline;
645
- }
646
- }
647
- }
648
- }
649
-
650
95
  &__prod {
651
96
  margin-top: 15px;
652
97
 
@@ -678,66 +123,6 @@
678
123
  }
679
124
  }
680
125
 
681
- .step1-inactive,
682
- .step2-inactive,
683
- .step3-inactive {
684
- display: none;
685
- }
686
-
687
- .ti__step1-inactive {
688
- & .step1-active {
689
- display: none;
690
- }
691
-
692
- & .step1-inactive {
693
- display: flex;
694
- }
695
-
696
- & .ti__estimate {
697
- @include make-col(5);
698
- }
699
-
700
- & .ti__total {
701
- @include make-col(12);
702
- padding-left: 20px;
703
- }
704
-
705
- & .ti-total-area {
706
- padding: 15px 20px 3px;
707
- }
708
- }
709
-
710
- .ti__step2-inactive {
711
- & .step2-active {
712
- display: none;
713
- }
714
-
715
- & .step2-inactive {
716
- display: flex;
717
- }
718
- }
719
-
720
- .btn__text-desktop {
721
- display: block;
722
- }
723
-
724
- .btn__text-mobile {
725
- display: none;
726
- }
727
-
728
- .ti-divider-position {
729
- bottom: 30px;
730
- }
731
-
732
-
733
- @include media-breakpoint-up(lg) {
734
- .ti {
735
- &__choose_divider {
736
- line-height: 145px;
737
- }
738
- }
739
- }
740
-
741
126
  @include media-breakpoint-up(md) {
742
127
  .ti {
743
128
  &__prod {
@@ -794,55 +179,6 @@
794
179
  margin-top: 10px;
795
180
  }
796
181
 
797
- &__next {
798
- margin: 15px 0 0;
799
-
800
- & .btn {
801
- white-space: normal;
802
- max-width: 320px;
803
- }
804
- }
805
-
806
- &__cost {
807
- padding-top: 10px;
808
-
809
- &_postcode,
810
- &_removal,
811
- &_levelling,
812
- &_options {
813
- padding: 20px 15px;
814
- }
815
-
816
- &_removal,
817
- &_levelling {
818
- margin: 10px 0;
819
- }
820
- }
821
-
822
- &__choose {
823
- &_title,
824
- &_divider {
825
- padding: 15px 0;
826
- }
827
-
828
- &_first,
829
- &_second,
830
- &_divider {
831
- @include make-col(12);
832
- }
833
-
834
- &_divider {
835
- // sass-lint:disable no-important
836
- padding-top: 0;
837
- }
838
-
839
- &_first {
840
- .ti__error {
841
- margin-bottom: 15px;
842
- }
843
- }
844
- }
845
-
846
182
  &__overview {
847
183
  @include make-col(12);
848
184
  margin-bottom: 15px;
@@ -914,20 +250,6 @@
914
250
  }
915
251
  }
916
252
 
917
- &__step1-inactive {
918
- & .ti__estimate {
919
- @include make-col(12);
920
- }
921
-
922
- & .ti__total {
923
- padding-left: 0;
924
- }
925
-
926
- & .ti-total-area {
927
- padding: 15px 15px 5px;
928
- }
929
- }
930
-
931
253
  &__total {
932
254
  .bw {
933
255
  .store__name {
@@ -940,12 +262,6 @@
940
262
 
941
263
  @include media-breakpoint-down(sm) {
942
264
  .ti {
943
- &__step1-return,
944
- &__step2-return {
945
- transform: none;
946
- top: 22px;
947
- }
948
-
949
265
  &__floors {
950
266
  @include make-col(12);
951
267
  padding-right: 0;
@@ -957,38 +273,6 @@
957
273
  margin-top: 10px;
958
274
  }
959
275
 
960
- &__next {
961
- margin: 10px 0 0;
962
-
963
- & .btn {
964
- max-width: 100%;
965
- }
966
- }
967
-
968
- &__cost {
969
- &_options {
970
- &-what {
971
- font-size: $font-size-base;
972
- }
973
-
974
- &-list {
975
- margin-top: 0;
976
- }
977
-
978
- &-item {
979
- @include make-col(12);
980
- margin-top: 10px;
981
- padding-right: 0;
982
- }
983
- }
984
- }
985
-
986
- &__choose {
987
- &_title {
988
- padding: 10px 0;
989
- }
990
- }
991
-
992
276
  &__prod {
993
277
  display: block;
994
278
  margin: 10px 0;