wickes-css2 2.98.0-develop.2 → 2.98.0-develop.3

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 (103) hide show
  1. package/build/css/category-main.css +1 -1
  2. package/build/css/emulation.css +1 -1
  3. package/build/css/homepage-main.css +1 -1
  4. package/build/css/main.css +1 -1
  5. package/build/css/my-account-main-v2.css +1 -1
  6. package/build/css/my-account-main.css +1 -1
  7. package/build/css/pages/checkout-new.css +1 -1
  8. package/build/css/pages/my-account-v2.css +1 -1
  9. package/build/css/pages/page_address-book.css +1 -1
  10. package/build/css/pages/page_change-password.css +1 -1
  11. package/build/css/pages/page_default-store.css +1 -1
  12. package/build/css/pages/page_discount.css +1 -0
  13. package/build/css/pages/page_personal-details.css +1 -1
  14. package/build/css/pages/page_products-list-combined.css +1 -1
  15. package/build/css/pages/page_products-list.css +1 -1
  16. package/build/css/pages/page_track-my-order.css +1 -1
  17. package/build/css/pdp-main-before-combine.css +1 -1
  18. package/build/css/pdp-main-critical.css +1 -1
  19. package/build/css/pdp-main-non-critical.css +1 -1
  20. package/build/css/pdp-main.css +1 -1
  21. package/build/css/plp-main.css +1 -1
  22. package/build/css/store-locator-main.css +1 -1
  23. package/build/img/apps/app-lg.png +0 -0
  24. package/build/img/apps/app-md.png +0 -0
  25. package/build/js/basket.min.js +2 -2
  26. package/build/js/bundle.min.js +1 -1
  27. package/build/js/checkout.min.js +1 -1
  28. package/build/js/default-store.min.js +1 -1
  29. package/build/js/general.bundle.min.js +1 -1
  30. package/build/js/merged-checkout.min.js +1 -1
  31. package/build/js/my-account.min.js +1 -1
  32. package/build/js/page/basket-v2.js +6 -14
  33. package/build/js/page/components/charity.js +43 -58
  34. package/build/js/page/default-store.js +1 -4
  35. package/build/js/page/my-account.js +9 -2
  36. package/build/js/page/personal-details.js +22 -1
  37. package/build/js/pdp.bundle.min.js +1 -1
  38. package/build/js/personal-details.min.js +1 -1
  39. package/build/js/plp.bundle.min.js +1 -1
  40. package/build/js/project-list.min.js +1 -1
  41. package/package.json +2 -2
  42. package/src/components/header-menu/logout-action.hbs +8 -0
  43. package/src/components/header-menu/popover-actions-mob.hbs +11 -0
  44. package/src/components/header-menu/popover-actions.hbs +13 -0
  45. package/src/components/header-menu/user-actions-mob.hbs +18 -0
  46. package/src/components/header-menu/user-actions.hbs +12 -0
  47. package/src/components/my-account/clipboard-code-card.hbs +13 -6
  48. package/src/components/my-account/discount.hbs +3 -1
  49. package/src/components/price-block-order.hbs +0 -1
  50. package/src/components/track-my-order-info.hbs +1 -3
  51. package/src/data/data_header-menu.json +153 -0
  52. package/src/data/data_shopping-cart-v2.json +0 -51
  53. package/src/data/my-account/data_discount.json +80 -0
  54. package/src/data/my-account/data_personal-details.json +22 -0
  55. package/src/img/apps/app-lg.png +0 -0
  56. package/src/img/apps/app-md.png +0 -0
  57. package/src/js/components/general/clamp-content.js +1 -0
  58. package/src/js/components/general/main-nav.js +5 -5
  59. package/src/js/page/basket-v2.js +6 -14
  60. package/src/js/page/components/charity.js +43 -58
  61. package/src/js/page/default-store.js +1 -4
  62. package/src/js/page/my-account.js +9 -2
  63. package/src/js/page/personal-details.js +22 -1
  64. package/src/page_my-account-installer.html +2 -1
  65. package/src/page_my-account-trade-pro.html +1 -0
  66. package/src/page_my-account.html +10 -1
  67. package/src/page_personal-details.html +5 -0
  68. package/src/page_plp_v2-vat.html +8 -2
  69. package/src/page_shopping-cart-charity.html +56 -0
  70. package/src/page_shopping-cart-v2.html +1 -1
  71. package/src/page_tradepro-discount-app.html +82 -0
  72. package/src/page_tradepro-discount.html +82 -0
  73. package/src/partials/header.hbs +40 -41
  74. package/src/partials/main-nav.hbs +51 -171
  75. package/src/scss/common/_rewards-counter.scss +1 -1
  76. package/src/scss/components/_charity-donations.scss +186 -114
  77. package/src/scss/components/_leave-modal.scss +6 -2
  78. package/src/scss/components/_price-block-critical.scss +3 -3
  79. package/src/scss/components/_price-block.scss +8 -3
  80. package/src/scss/components/my-account/_barcode.scss +58 -0
  81. package/src/scss/components/my-account/_clipboard-code.scss +77 -0
  82. package/src/scss/components/my-account/_discount.scss +51 -0
  83. package/src/scss/emulation.scss +1 -1
  84. package/src/scss/helpers/_mixins.scss +9 -0
  85. package/src/scss/pages/checkout-new.scss +0 -1
  86. package/src/scss/pages/my-account-v2.scss +38 -171
  87. package/src/scss/pages/page_change-password.scss +1 -1
  88. package/src/scss/pages/page_default-store.scss +5 -4
  89. package/src/scss/pages/page_discount.scss +212 -0
  90. package/src/scss/pages/page_personal-details.scss +1 -74
  91. package/src/scss/pages/page_products-list-combined.scss +13 -3
  92. package/src/scss/pages/page_products-list.scss +9 -1
  93. package/src/scss/pages/page_track-my-order.scss +21 -0
  94. package/src/scss/partials/_header-critical.scss +2 -5
  95. package/src/scss/partials/_header.scss +58 -25
  96. package/src/scss/partials/_main-nav.scss +43 -29
  97. package/src/scss/plp-main.scss +1 -0
  98. package/src/sitemap.html +4 -0
  99. package/build/img/calm-primary-logo.png +0 -0
  100. package/src/components/basket-charity-donations-new.hbs +0 -40
  101. package/src/components/donation-cart-new.hbs +0 -38
  102. package/src/img/calm-primary-logo.png +0 -0
  103. package/src/scss/components/_donation-cart-new.scss +0 -192
@@ -1,3 +1,5 @@
1
+ @import '../helpers/helpers';
2
+
1
3
  .header-wrapper {
2
4
  position: relative;
3
5
  z-index: $header;
@@ -368,49 +370,81 @@
368
370
  top: 100%;
369
371
  right: 0;
370
372
  z-index: $popover;
371
- padding-top: 6px;
372
373
 
373
- &::before {
374
- content: '';
375
- position: absolute;
376
- right: 10px;
377
- top: 0;
378
- border-right: 6px solid transparent;
379
- border-left: 6px solid transparent;
380
- border-bottom: 6px solid $warm-grey;
374
+ &-wrap {
375
+ position: relative;
376
+ margin-top: 16px;
377
+ box-shadow: 4px 4px 16px 0 rgba(0, 0, 0, .25);
378
+
379
+ &::before {
380
+ content: '';
381
+ position: absolute;
382
+ right: 16px;
383
+ top: -12px;
384
+ border-right: 9px solid transparent;
385
+ border-left: 9px solid transparent;
386
+ border-bottom: 12px solid $white;
387
+ }
381
388
  }
382
389
 
383
390
  .header-top-line__item:hover & {
384
391
  display: block;
385
392
  }
393
+
394
+ &-actions {
395
+ padding: 8px 0;
396
+ border-top: 1px solid $gray;
397
+ }
398
+
399
+ .rewards-counter {
400
+ @include line-height(20);
401
+ @include font-size(12);
402
+ position: relative;
403
+ margin-left: 8px;
404
+ font-weight: 500;
405
+ min-width: 20px;
406
+ }
386
407
  }
387
408
 
388
409
  &__popover-content {
389
- min-width: 116px;
390
- padding: 12px 16px;
391
- background: $warm-grey;
392
- box-shadow: 0 1px 2px 0 $black-transparent24;
410
+ min-width: 224px;
411
+ padding: 8px 16px;
412
+ background: $white;
413
+ border-radius: 4px;
393
414
 
394
415
  &_extended {
395
416
  width: 190px;
396
417
  }
418
+
419
+ .icon-wrap {
420
+ @include icon-wrap;
421
+ margin-right: 8px;
422
+ color: $blue-satin;
423
+
424
+ .installer-icon path {
425
+ fill: $blue-satin;
426
+ }
427
+ }
397
428
  }
398
429
 
399
430
  &__action {
400
431
  @include normal-text;
401
- display: block;
432
+ display: flex;
433
+ align-items: center;
402
434
  position: relative;
403
- color: $white;
435
+ color: $gray-dark;
404
436
  font-weight: 500;
405
437
  text-decoration: none;
438
+ padding-top: 8px;
439
+ padding-bottom: 8px;
406
440
 
407
- & + & {
408
- margin-top: 8px;
441
+ &:hover {
442
+ text-decoration: none;
443
+ color: $blue;
409
444
  }
410
445
 
411
- &:hover {
412
- color: #fff;
413
- text-decoration: underline;
446
+ &--account {
447
+ margin-bottom: 8px;
414
448
  }
415
449
  }
416
450
 
@@ -424,7 +458,6 @@
424
458
 
425
459
  &__logout {
426
460
  border-top: 1px solid $gray;
427
- margin-top: 8px;
428
461
  padding-top: 8px;
429
462
  }
430
463
 
@@ -460,10 +493,6 @@
460
493
  font-size: 1rem;
461
494
  }
462
495
  }
463
-
464
- .icon-logout {
465
- color: $gray;
466
- }
467
496
  }
468
497
  }
469
498
 
@@ -641,6 +670,10 @@
641
670
  background-color: transparent;
642
671
  color: #fff;
643
672
  border: 0; // TODO: use better solution
673
+
674
+ .installer-icon path {
675
+ fill: $white;
676
+ }
644
677
  }
645
678
 
646
679
  .header-minicart__btn {
@@ -1,3 +1,5 @@
1
+ @import '../helpers/helpers';
2
+
1
3
  .main-nav {
2
4
  z-index: $nav;
3
5
  font-weight: 500;
@@ -218,7 +220,7 @@
218
220
  .main-nav[data-ssr='true'] &:not(.slide-in):not(.slide-in-l2r) {
219
221
  opacity: 1;
220
222
  animation: none;
221
- }
223
+ }
222
224
 
223
225
  &_order-line {
224
226
  color: $blue;
@@ -360,10 +362,6 @@
360
362
  display: block;
361
363
  }
362
364
 
363
- &__top-level-wrap {
364
- margin-bottom: 20px;
365
- }
366
-
367
365
  &__top-offers {
368
366
  display: block;
369
367
  margin-bottom: 15px;
@@ -754,35 +752,54 @@
754
752
  }
755
753
  }
756
754
 
755
+ .nav-button-wrap {
756
+ background-color: $gray-bg;
757
+ margin-top: 16px;
758
+ padding-top: 8px;
759
+ padding-bottom: 8px;
760
+ display: flex;
761
+ flex-direction: column;
762
+ grid-gap: 8px;
763
+
764
+ .main-nav__button {
765
+ margin-top: 0;
766
+ }
767
+
768
+ .nav-button {
769
+ padding: 4px 8px;
770
+
771
+ .rewards-counter {
772
+ position: static;
773
+ }
774
+ }
775
+ }
776
+
757
777
  &__button {
778
+ margin-top: 8px;
779
+
758
780
  [data-active-lvl='2'] &,
759
781
  [data-active-lvl='3'] &,
760
782
  [data-active-lvl='4'] & {
761
783
  display: none;
762
784
  }
763
- }
764
-
765
- .nav-button-wrap {
766
- background-color: $gray-bg;
767
-
768
- .nav-button {
769
- padding: 5px 10px;
770
785
 
771
- &__text {
772
- line-height: 24px;
786
+ &:first-child {
787
+ .nav-button {
788
+ padding-top: 0;
789
+ padding-bottom: 0;
773
790
  }
791
+ }
774
792
 
775
- .rewards-counter {
776
- position: static;
777
- }
793
+ &--not-logged-in {
794
+ margin-top: 16px;
778
795
  }
779
796
  }
780
797
 
781
798
  .nav-button {
782
799
  display: flex;
783
800
  align-items: center;
784
- padding: 10px;
785
- margin: 10px 0;
801
+ padding: 8px;
802
+ margin: 0;
786
803
  color: $blue-dark;
787
804
  background-color: $gray-bg;
788
805
  text-decoration: none;
@@ -793,22 +810,19 @@
793
810
  }
794
811
 
795
812
  &__icon {
796
- margin-right: 10px;
797
-
798
- svg {
799
- width: auto;
800
- height: 16px;
813
+ @include icon-wrap;
814
+ margin-right: 8px;
815
+ color: $blue-dark;
801
816
 
802
- path {
803
- fill: $blue-dark;
804
- }
817
+ .installer-icon path {
818
+ fill: $blue-dark;
805
819
  }
806
820
  }
807
821
 
808
822
  &__text {
809
- font-size: 14px;
823
+ @include font-size(14);
824
+ @include line-height(22);
810
825
  font-weight: 500;
811
- line-height: 14px;
812
826
  }
813
827
  }
814
828
  }
@@ -24,6 +24,7 @@
24
24
  @import 'components/seo-widgets';
25
25
  @import 'components/similar-products-v2';
26
26
  @import 'components/clamp';
27
+ @import 'components/clamp-content';
27
28
  @import 'components/card-product-banner';
28
29
  @import 'components/shop-colour';
29
30
 
package/src/sitemap.html CHANGED
@@ -547,6 +547,8 @@
547
547
  <li><a href="page_my-account_address-book.html" target="_blank">Address Book</a></li>
548
548
  <li><a href="page_my-account_address-book_tradePro.html" target="_blank">Address Book Trade Pro</a></li>
549
549
  <li><a href="page_my-account_address-book-form.html" target="_blank">Address Book Form</a></li>
550
+ <li><a href="page_tradepro-discount.html" target="_blank">Trade Pro Discount</a></li>
551
+ <li><a href="page_tradepro-discount-app.html" target="_blank">Trade Pro Discount App</a></li>
550
552
  </ul>
551
553
  <h3>Project list</h3>
552
554
  <ul>
@@ -947,6 +949,8 @@
947
949
  Basket</a></li>
948
950
  <li><span class="page-id">8.6</span><a href="page_checkout_merge-basket.html" target="_blank">Merged
949
951
  basket</a></li>
952
+ <li><span class="page-id">8.7</span><a href="page_shopping-cart-charity.html" target="_blank">Basket Charity Donation</a>
953
+ </li>
950
954
  <li><span class="page-id">8.8</span><a href="page_shopping-cart-v2.html" target="_blank">Basket NEW</a>
951
955
  </li>
952
956
  <li><span class="page-id">8.9</span><a href="page_shopping-cart-registered-v2.html" target="_blank">Basket Registered NEW</a>
Binary file
@@ -1,40 +0,0 @@
1
- {{#if title}}
2
- {{> checkout-section-title}}
3
- {{/if}}
4
- <div class="charity-new charity-donation-new">
5
- {{#with checkoutOrder.charity}}
6
-
7
- <div class="charity-donation-new__wrapper">
8
- <div class="charity-donation-new__top">
9
- <div class="charity-donation-new__header">
10
- <div class="charity-donation-new__title">{{title}}</div>
11
- <div class="charity-donation-new__right">
12
- <img
13
- class="charity-donation-new__image"
14
- src="{{img}}"
15
- alt="{{title}}"
16
- title="{{title}}"
17
- />
18
- </div>
19
- </div>
20
-
21
- <div class="charity-donation-new__description">
22
- {{descr}}
23
- <span class="charity-donation-new__message">
24
- {{message}}
25
- <a
26
- class="charity-donation-new__subtitle-link"
27
- href="{{subLink}}"
28
- >
29
- click here</a>.
30
- </span>
31
- </div>
32
- </div>
33
-
34
- <div class="charity-donation-new__body">
35
- {{> donation-cart-new}}
36
- </div>
37
- </div>
38
-
39
- {{/with}}
40
- </div>
@@ -1,38 +0,0 @@
1
- <div class="donation-cart-new">
2
- <div class="donation-cart-new__details">
3
- <div class="donation-cart-new__options">
4
- <p class="donation-cart-new__description">
5
- Select the amount you would like to donate:
6
- </p>
7
- <div class="donation-cart-new__holder">
8
- {{#each options}}
9
- <button
10
- class="btn
11
- {{#if active}}btn-selected {{else}} btn-secondary{{/if}}
12
- donation-cart-new__btn"
13
- data-value="{{value}}"
14
- >
15
- <span class="btn__text">{{title}}</span>
16
- </button>
17
- {{/each}}
18
- </div>
19
- <div class="donation-cart-new__cost donation-cart-new__cost-hide">
20
- <div class="donation-cart-new__price">
21
- <span class="donation-cart-new__currency">£</span>
22
- <span class="donation-cart-new__value"></span>
23
- donation has been added to your basket.
24
- </div>
25
- <button class="btn order-item__remove" data-action="remove">
26
- <span class="btn__text">
27
- <i class="fas fa-trash"></i>
28
- </span>
29
- </button>
30
- </div>
31
-
32
- <hr class="donation-cart-new__divider" />
33
- <p class="donation-cart-new__charity-info">
34
- Charity Reg No: 1110621 & Scot SC044347
35
- </p>
36
- </div>
37
- </div>
38
- </div>
Binary file
@@ -1,192 +0,0 @@
1
- .donation-cart-new {
2
- &__cost {
3
- font-weight: 500;
4
- font-size: .875rem;
5
- line-height: 1rem;
6
- display: flex;
7
- align-items: center;
8
- margin-top: 12px;
9
- height: 24px;
10
-
11
- &-hide {
12
- display: none;
13
- }
14
- }
15
-
16
- .order-item__remove {
17
- position: static;
18
- margin-left: auto;
19
- display: block;
20
-
21
- .btn__text {
22
- display: inline-block;
23
- width: 1em;
24
- text-align: center;
25
- }
26
-
27
- i.fas {
28
- display: inline-block;
29
- width: 1em;
30
- }
31
- }
32
-
33
- &__price-value,
34
- &__price {
35
- display: inline-block;
36
- line-height: 1rem;
37
- font-weight: 400;
38
- font-size: .750rem;
39
- }
40
-
41
- &__description {
42
- font-weight: 500;
43
- font-size: .875rem;
44
- margin-bottom: 12px;
45
- }
46
-
47
- &__value {
48
- min-width: 14px;
49
- margin-left: -3px;
50
- }
51
-
52
- &__currency,
53
- &__value {
54
- font-size: .750rem;
55
- }
56
-
57
- &__divider {
58
- border: none;
59
- border-top: 1px solid $gray;
60
- margin: 16px 0;
61
- }
62
-
63
- &__charity-info {
64
- color: $squant;
65
- font-weight: 400;
66
- font-size: .75rem;
67
- line-height: 1rem;
68
- margin: 0;
69
- }
70
-
71
- &__holder {
72
- display: flex;
73
- flex-wrap: wrap;
74
- gap: 8px;
75
- }
76
-
77
- &__btn {
78
- width: 58px;
79
- height: 36px;
80
- margin-bottom: 0;
81
- font-weight: 700;
82
- display: flex;
83
- align-items: center;
84
- justify-content: center;
85
-
86
- &:nth-of-type(odd),
87
- &:nth-of-type(even) {
88
- margin-left: 0;
89
- }
90
-
91
- &:last-of-type {
92
- margin-right: 0;
93
- }
94
-
95
- &.btn-secondary {
96
- color: $black;
97
- border-color: $gray;
98
-
99
- &:hover {
100
- color: $white;
101
- border-color: $blue;
102
- }
103
- }
104
-
105
- &.btn-selected {
106
- color: $white;
107
- border-color: $blue;
108
- background: $blue;
109
- pointer-events: none;
110
- }
111
- }
112
- }
113
-
114
- @include media-breakpoint-up(sm) {
115
- .donation-cart-new {
116
- &__btn {
117
- width: 52px;
118
- height: 36px;
119
- margin-bottom: 0;
120
- }
121
-
122
- &__description {
123
- font-weight: 700;
124
- font-size: .875rem;
125
- margin-bottom: 12px;
126
- }
127
- }
128
- }
129
-
130
- @include media-breakpoint-up(md) {
131
- .donation-cart-new {
132
- justify-content: space-between;
133
-
134
- &:not(.donation-cart__hide) {
135
- display: flex;
136
- }
137
-
138
- &__definition {
139
- max-width: 50%;
140
- }
141
-
142
- &__details {
143
- width: 100%;
144
- }
145
-
146
- &__definition {
147
- padding-right: 15px;
148
- }
149
-
150
- &__btn {
151
- width: 56px;
152
- height: 36px;
153
- margin-bottom: 0;
154
- }
155
-
156
- .order-item__remove {
157
- position: static;
158
- margin-left: auto;
159
- display: block;
160
- }
161
- }
162
- }
163
-
164
- @include media-breakpoint-up(lg) {
165
- .donation-cart-new {
166
- &__holder {
167
- width: 588px;
168
- }
169
-
170
- &__btn {
171
- width: 56px;
172
- height: 36px;
173
- margin-bottom: 0;
174
- }
175
- }
176
- }
177
-
178
- @include media-breakpoint-up(xl) {
179
- .donation-cart-new {
180
- &__holder {
181
- width: 100%;
182
- }
183
- }
184
- }
185
-
186
- @media (min-width: 350px) and (max-width: 575px) {
187
- .donation-cart-new {
188
- &__btn {
189
- width: 72px;
190
- }
191
- }
192
- }