wickes-css2 2.98.0-develop.6 → 2.98.0-develop.8

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 (73) hide show
  1. package/Readme.md +0 -1
  2. package/build/css/category-main.css +1 -1
  3. package/build/css/components/energy-efficiency.css +1 -1
  4. package/build/css/components/legal-info.css +1 -1
  5. package/build/css/homepage-main.css +1 -1
  6. package/build/css/main.css +1 -1
  7. package/build/css/my-account-main-v2.css +1 -1
  8. package/build/css/my-account-main.css +1 -1
  9. package/build/css/pages/my-account-v2.css +1 -1
  10. package/build/css/pages/page_quiz.css +1 -1
  11. package/build/css/pages/page_track-my-order.css +1 -1
  12. package/build/css/pdp-main-before-combine.css +1 -1
  13. package/build/css/pdp-main-critical.css +1 -1
  14. package/build/css/pdp-main-non-critical.css +1 -1
  15. package/build/css/pdp-main.css +1 -1
  16. package/build/css/plp-main.css +1 -1
  17. package/build/css/store-locator-main.css +1 -1
  18. package/build/js/basket.min.js +1 -1
  19. package/build/js/bundle.min.js +1 -1
  20. package/build/js/checkout.min.js +1 -1
  21. package/build/js/emulation.min.js +32 -106
  22. package/build/js/general.bundle.min.js +1 -1
  23. package/build/js/merged-checkout.min.js +1 -1
  24. package/build/js/page/pdp.js +1 -4
  25. package/build/js/pdp.bundle.min.js +1 -1
  26. package/build/js/plp.bundle.min.js +1 -1
  27. package/build/js/project-list.min.js +1 -1
  28. package/package.json +2 -2
  29. package/src/components/checkout_order-summary-new.hbs +13 -18
  30. package/src/components/header-minicart.hbs +3 -3
  31. package/src/components/legal-info.hbs +25 -22
  32. package/src/components/my-account/saving-totaliser.hbs +52 -0
  33. package/src/components/pdp-price-actions.hbs +1 -1
  34. package/src/components/price-block-v2.hbs +1 -0
  35. package/src/components/track-my-order-info.hbs +3 -1
  36. package/src/data/data_confirmation-summary.json +3 -3
  37. package/src/data/data_latest-offers.json +1 -1
  38. package/src/data/data_mini-basket.json +6 -80
  39. package/src/data/data_page-category.json +1 -2
  40. package/src/data/data_page-merge-basket.json +1 -1
  41. package/src/data/data_store-locator-v2.json +1 -1
  42. package/src/js/emulation/big-wins.js +29 -29
  43. package/src/js/emulation/mock.js +1 -46
  44. package/src/js/emulation/popover-mini-basket.js +2 -2
  45. package/src/js/page/pdp.js +1 -4
  46. package/src/layouts/base.hbs +0 -6
  47. package/src/layouts/my-account-v2.hbs +0 -7
  48. package/src/page_my-account-trade-pro-components.html +27 -0
  49. package/src/page_my-account-trade-pro.html +7 -0
  50. package/src/page_product-details-saved-pl.html +13 -16
  51. package/src/page_product-details-with-global-search-v2.html +0 -1
  52. package/src/scss/common/_scroll-disable.scss +2 -4
  53. package/src/scss/components/legal-info.scss +0 -61
  54. package/src/scss/components/my-account/_saving-totaliser.scss +175 -0
  55. package/src/scss/globals/_global-components.scss +0 -1
  56. package/src/scss/helpers/_mixins.scss +0 -8
  57. package/src/scss/helpers/_variables.scss +0 -1
  58. package/src/scss/homepage-main.scss +0 -1
  59. package/src/scss/main.scss +0 -1
  60. package/src/scss/pages/my-account-v2.scss +1 -0
  61. package/src/scss/pages/page_track-my-order.scss +0 -21
  62. package/src/scss/partials/_header-critical.scss +0 -14
  63. package/src/scss/partials/_header.scss +0 -14
  64. package/src/sitemap.html +1 -0
  65. package/src/components/mini-basket/mini-basket-empty.hbs +0 -17
  66. package/src/components/mini-basket/mini-basket.hbs +0 -39
  67. package/src/components/mini-basket/product-item.hbs +0 -22
  68. package/src/js/components/general/backdrop.js +0 -23
  69. package/src/js/components/general/cart-slider.js +0 -16
  70. package/src/js/components/general/create-popup-slider.js +0 -196
  71. package/src/js/components/general/mini-basket-slider.js +0 -8
  72. package/src/js/emulation/custom-slider-emulation.js +0 -28
  73. package/src/scss/components/_custom-slider.scss +0 -512
@@ -12,7 +12,6 @@ badge-text-color='gray'
12
12
  currentlyInStock=true
13
13
  pagePdp=true
14
14
  globalSearchV2="true"
15
- switch-vat=true
16
15
  }}
17
16
  {{#content "head" mode="append" pagePdp=true}}
18
17
  <link type="text/css" rel="stylesheet" href="./css/components/global-search.css">
@@ -1,8 +1,6 @@
1
- .scroll-disable,
2
- .slider-scroll-disable {
1
+ .scroll-disable {
3
2
  position: fixed;
3
+ inset: 0;
4
4
  width: 100%;
5
5
  overflow: hidden;
6
- top: 0;
7
- inset: auto;
8
6
  }
@@ -1,64 +1,3 @@
1
- @import '../helpers/helpers';
2
-
3
1
  .legal-info {
4
2
  margin-top: 40px;
5
- border: 1px solid $gray;
6
- border-radius: 4px;
7
- padding: 16px;
8
- position: relative;
9
- font-size: 1rem;
10
- font-weight: 400;
11
- line-height: 1.5rem;
12
-
13
- &__toggle {
14
- margin-bottom: 0;
15
- font-size: 1.125rem;
16
- font-weight: 500;
17
- line-height: 1.5rem;
18
- display: flex;
19
- align-items: center;
20
- justify-content: space-between;
21
-
22
- .icon-wrap {
23
- cursor: pointer;
24
- display: flex;
25
- align-items: center;
26
- justify-content: center;
27
-
28
- &:after {
29
- content: '+';
30
- color: $blue;
31
- font-size: 1.575rem;
32
- }
33
- }
34
-
35
- &[aria-expanded='true'] {
36
- .icon-wrap {
37
- &:after {
38
- content: '-';
39
- font-size: 2.95rem;
40
- }
41
- }
42
- }
43
- }
44
-
45
- .collapse-wrap {
46
- margin-top: 16px;
47
- }
48
-
49
- .container {
50
- padding: 0;
51
- }
52
- }
53
-
54
- @include media-breakpoint-up(sm) {
55
- .legal-info {
56
- padding: 24px;
57
- }
58
- }
59
-
60
- @include media-breakpoint-up(md) {
61
- .legal-info {
62
- padding: 24px 40px;
63
- }
64
3
  }
@@ -0,0 +1,175 @@
1
+ .saving-totaliser {
2
+ background: $blue-dark;
3
+ padding: 16px;
4
+ color: $white;
5
+ margin-bottom: 40px;
6
+
7
+ .heading-1, .heading-2 {
8
+ text-align: left;
9
+ }
10
+
11
+ &__encourage {
12
+ margin-top: 8px;
13
+ display: flex;
14
+ justify-content: space-between;
15
+
16
+ .btn {
17
+ margin-top: 16px;
18
+ }
19
+ }
20
+
21
+ &__saving-icon.icon {
22
+ position: absolute;
23
+ top: 30px;
24
+ right: 26px;
25
+ width: 60px;
26
+ height: auto;
27
+ color: $blue-satin;
28
+
29
+ svg {
30
+ width: 100%;
31
+ height: 100%;
32
+ }
33
+ }
34
+
35
+ &__saving-title {
36
+ @include heading-6;
37
+ }
38
+
39
+ &__cell {
40
+ background: rgba($white, .08);
41
+ padding: 16px;
42
+ flex: 1;
43
+ position: relative;
44
+
45
+ &-title {
46
+ margin-bottom: 4px;
47
+ color: rgba($white, .8);
48
+ }
49
+ }
50
+
51
+ &__title {
52
+ margin-bottom: 16px;
53
+ }
54
+
55
+ &__attencion {
56
+ margin-bottom: 4px;
57
+ }
58
+
59
+ &__wrapper, &__wrapper2 {
60
+ display: flex;
61
+ flex-direction: column;
62
+ gap: 16px;
63
+ }
64
+
65
+ &__wrapper {
66
+ margin-bottom: 16px;
67
+ }
68
+
69
+ &__divider {
70
+ width: 1px;
71
+ background: rgba($white, .8);
72
+ }
73
+
74
+ &__split-cell {
75
+ display: flex;
76
+ flex-direction: row;
77
+ gap: 16px;
78
+ }
79
+
80
+ &__semi-cell {
81
+ flex: 1;
82
+ }
83
+
84
+ &__center-cell {
85
+ display: flex;
86
+ justify-content: center;
87
+ align-items: center;
88
+ }
89
+
90
+ &__note {
91
+ @include additional-text;
92
+ color: rgba($white, .8);
93
+ }
94
+ }
95
+
96
+ @include media-breakpoint-only(xs) {
97
+ .saving-totaliser {
98
+ &__saved {
99
+ width: 180px;
100
+ }
101
+
102
+ &--this-year-only {
103
+ .saving-totaliser__wrapper2 {
104
+ flex-direction: row;
105
+ }
106
+ }
107
+ }
108
+ }
109
+
110
+ @include media-breakpoint-up(sm) {
111
+ .saving-totaliser {
112
+ padding: 24px;
113
+ }
114
+ }
115
+
116
+ @include media-breakpoint-up(md) {
117
+ .saving-totaliser {
118
+ &__saving-title {
119
+ @include heading-5;
120
+ }
121
+ }
122
+ }
123
+
124
+ @include media-breakpoint-between(sm, md) {
125
+ .saving-totaliser {
126
+ &__saved,
127
+ &__attencion {
128
+ margin-right: 130px;
129
+ }
130
+
131
+ &__wrapper2 {
132
+ flex-direction: row;
133
+ }
134
+
135
+ &--this-last-year {
136
+ .saving-totaliser__split-cell {
137
+ flex: 2.3;
138
+ }
139
+ }
140
+
141
+ &__saving-icon.icon {
142
+ position: absolute;
143
+ top: 37px;
144
+ right: 32px;
145
+ width: 93px;
146
+ }
147
+ }
148
+ }
149
+
150
+ @include media-breakpoint-up(lg) {
151
+ .saving-totaliser {
152
+ &__saved,
153
+ &__attencion {
154
+ margin-right: 170px;
155
+ }
156
+
157
+ &__wrapper {
158
+ flex-direction: row;
159
+ }
160
+
161
+ &__wrapper2 {
162
+ flex-direction: column;
163
+ width: 364px;
164
+ }
165
+
166
+ &__saving-icon.icon {
167
+ position: absolute;
168
+ top: 0;
169
+ bottom: 0;
170
+ right: 36px;
171
+ width: 123px;
172
+ }
173
+ }
174
+ }
175
+
@@ -4,7 +4,6 @@
4
4
  @import '../components/back-to-top';
5
5
  @import '../components/payments';
6
6
  @import '../components/popover-mini-basket';
7
- @import '../components/custom-slider';
8
7
  @import '../components/autocomplete';
9
8
  @import '../components/google_banner';
10
9
  @import '../components/smart-banner';
@@ -148,14 +148,6 @@
148
148
  line-height: #{$line-height-px / 16}rem;
149
149
  }
150
150
 
151
- @mixin multiline-ellipsis($line-count: 1) {
152
- overflow: hidden;
153
- text-overflow: ellipsis;
154
- -webkit-box-orient: vertical;
155
- display: -webkit-box;
156
- -webkit-line-clamp: $line-count;
157
- }
158
-
159
151
  @mixin icon-wrap($width: 24px, $height: 24px, $font-size-px: 16) {
160
152
  width: $width;
161
153
  height: $height;
@@ -4,7 +4,6 @@
4
4
  $blue-dark: #0a3055; // Base brand color for background
5
5
  $blue: #0277bd; // CTAs
6
6
  $green: #67a509; // Tick icons; Buttons in the checkout
7
- $polishedPine: #67a589;
8
7
  $green-dark: #487306; // Active state of button-action
9
8
 
10
9
  // Additional colors
@@ -6,7 +6,6 @@
6
6
 
7
7
  // Base
8
8
  @import 'common/homepage-common';
9
- @import 'common/scroll-disable';
10
9
 
11
10
  @import 'globals/global-partials';
12
11
 
@@ -26,7 +26,6 @@
26
26
  @import 'components/payments';//deep dependence
27
27
  @import 'components/notifications';//deep dependence
28
28
  @import 'components/popover-mini-basket';//deep dependence
29
- @import 'components/custom-slider';
30
29
  @import 'components/lines-group';//deep dependence
31
30
  @import 'components/autocomplete';//deep dependence
32
31
  @import 'components/card';//deep dependence
@@ -5,6 +5,7 @@
5
5
  @import '../components/my-account/contacts';
6
6
  @import '../components/my-account/mobile-nav';
7
7
  @import '../components/my-account/active-orders';
8
+ @import '../components/my-account/saving-totaliser';
8
9
  @import '../components/my-account/barcode';
9
10
  @import '../components/my-account/discount';
10
11
  @import '../components/my-account/clipboard-code';
@@ -103,27 +103,6 @@
103
103
  display: flex;
104
104
  align-items: flex-start;
105
105
  justify-content: space-between;
106
-
107
- .icon-wrap {
108
- display: flex;
109
- align-items: center;
110
- justify-content: center;
111
-
112
- &:after {
113
- content: '+';
114
- color: $blue;
115
- font-size: 1.575rem;
116
- }
117
- }
118
-
119
- &[aria-expanded='true'] {
120
- .icon-wrap {
121
- &:after {
122
- content: '-';
123
- font-size: 2.95rem;
124
- }
125
- }
126
- }
127
106
  }
128
107
 
129
108
  &__list {
@@ -266,20 +266,6 @@
266
266
  padding-right: 0;
267
267
  }
268
268
 
269
- button.header-minicart__btn {
270
- background: none;
271
- border: 0;
272
- box-shadow: none;
273
- outline: none;
274
- cursor: pointer;
275
-
276
- &:hover {
277
- .header-right__link-title {
278
- text-decoration: underline;
279
- }
280
- }
281
- }
282
-
283
269
  .header-minicart__btn-icon {
284
270
  vertical-align: top;
285
271
  }
@@ -288,20 +288,6 @@
288
288
  padding-right: 0;
289
289
  }
290
290
 
291
- button.header-minicart__btn {
292
- background: none;
293
- border: 0;
294
- box-shadow: none;
295
- outline: none;
296
- cursor: pointer;
297
-
298
- &:hover {
299
- .header-right__link-title {
300
- text-decoration: underline;
301
- }
302
- }
303
- }
304
-
305
291
  .header-shop-list {
306
292
  .icon {
307
293
  color: $white;
package/src/sitemap.html CHANGED
@@ -534,6 +534,7 @@
534
534
  <li><span class="page-id">5.15</span><a href="page_my-account.html" target="_blank">My Account DIY</a></li>
535
535
  <li><a href="page_my-account-installer.html" target="_blank">My Account Installer</a></li>
536
536
  <li><a href="page_my-account-trade-pro.html" target="_blank">My Account TradePro</a></li>
537
+ <li><a href="page_my-account-trade-pro-components.html" target="_blank">My Account TradePro Components</a></li>
537
538
  <li><a href="page_personal-details.html" target="_blank">My Account Personal Details</a></li>
538
539
  <li><a href="page_personal-details-installer.html" target="_blank">My Account Personal Details Installer</a></li>
539
540
  <li><a href="page_default-store-page-empty.html" target="_blank">Default Store Page Empty</a></li>
@@ -1,17 +0,0 @@
1
- <div class="custom-slider mini-basket d-none">
2
- <div class="custom-slider__wrap">
3
- <div class="custom-slider__header">
4
- <span class="custom-slider__count">Your basket (0)</span>
5
- <a href="#" type="button" class="icon-wrap close-popup">
6
- <i class="far fa-times icon"></i>
7
- </a>
8
- </div>
9
- <div class="custom-slider__empty">
10
- <span class="icon-wrap icon-wrap--xl">
11
- <i class="fas fa-shopping-basket"></i>
12
- </span>
13
- <p class="text">Your basket is currently empty.</p>
14
- <button class="btn btn-primary close-popup">Continue Shopping</button>
15
- </div>
16
- </div>
17
- </div>
@@ -1,39 +0,0 @@
1
- <div class="custom-slider mini-basket d-none">
2
- <div class="custom-slider__wrap custom-slider__wrap--scroll">
3
- <div class="custom-slider__header">
4
- <span class="custom-slider__count">Your basket (1)</span>
5
- <button type="button" class="icon-wrap close-popup">
6
- <i class="far fa-times icon"></i>
7
- </button>
8
- </div>
9
- <ul class="products">
10
- {{#each mini-basket.products}}
11
- {{> mini-basket/product-item this switch-vat=true}}
12
- {{/each}}
13
- </ul>
14
- </div>
15
- <div class="custom-slider__footer footer-fixed">
16
- <div class="mini-basket__total">
17
- <button class="btn mini-basket__total-toggle" type="button" data-toggle="collapse" data-target="#checkout-details-accordion-3" aria-expanded="false" aria-controls="checkout-details-accordion-3">
18
- <span class="mini-basket__wrap-total">
19
- <span class="icon-wrap">
20
- <i class="fas fa-chevron-down arrow-icon"></i>
21
- </span>
22
- <span class="text">Total:</span>
23
- </span>
24
- <span class="value">{{mini-basket.total.totalPrice.formattedValue}}</span>
25
- </button>
26
-
27
- {{> checkout_order-summary-new confirmationSummary=true head=true mod=true id=3 mobile=true hideApplyVoucher=true}}
28
- </div>
29
- <div class="custom-slider__ctas">
30
- <a href="page_shopping-cart.html" class="btn btn_full btn-secondary">View Basket</a>
31
- <button class="btn btn-action btn_full btn-checkout">
32
- Checkout
33
- <span class="icon-wrap ml-2">
34
- <i class="fas fa-arrow-right"></i>
35
- </span>
36
- </button>
37
- </div>
38
- </div>
39
- </div>
@@ -1,22 +0,0 @@
1
- <li class="products__item">
2
- <a class="products__image" href="page_product-details-with-global-search-v2.html">
3
- <img class="product-img" src="{{src}}" alt="">
4
- </a>
5
- <div class="products__details">
6
- <a href="#" class="title">{{title}}</a>
7
- <p class="item">Click &amp; Collect: <span class="value">{{CC}}</span></p>
8
- <p class="item">Qty: <span class="value">{{quantity.value}}</span></p>
9
- {{#if switch-vat}}
10
- <p class="price including-vat-inherit">
11
- {{incVatPrice}}
12
- <span class="inc">Inc.VAT</span>
13
- </p>
14
- <p class="price excluding-vat-inherit">
15
- {{excVatPrice}}
16
- <span class="inc">Exc.VAT</span>
17
- </p>
18
- {{else}}
19
- <p class="price">{{price}}</p>
20
- {{/if}}
21
- </div>
22
- </li>
@@ -1,23 +0,0 @@
1
- var Wick = Wick || {};
2
-
3
- Wick.Backdrop = (function () {
4
- const el = {
5
- modalBackdrop: 'modal-backdrop',
6
- modalBackdropShow: 'show'
7
- }
8
-
9
- function show() {
10
- if (!$(`.${el.modalBackdrop}`).length) {
11
- $('body').append(`<div class="${el.modalBackdrop} ${el.modalBackdropShow}"></div>`);
12
- }
13
- }
14
-
15
- function hide() {
16
- $('body').find(`.${el.modalBackdrop}.${el.modalBackdropShow}`).remove();
17
- }
18
-
19
- return {
20
- show,
21
- hide,
22
- };
23
- })();
@@ -1,16 +0,0 @@
1
- const cartSliderHTML = '<div class="custom-slider just-added d-none"></div>';
2
-
3
- createPopupSlider({
4
- type: 'cart',
5
- sliderSelector: '.custom-slider.just-added',
6
- onAppendEvent: 'productAddedToCart',
7
- onAppend: function (event, { showSlider, handleScroll, el }) {
8
- if (!$('.custom-slider.just-added').length) {
9
- $('body').append(cartSliderHTML);
10
- }
11
- const htmlContent = event.detail.html;
12
- $(el.slider).append(htmlContent);
13
- showSlider();
14
- $(el.sliderWrap).on('scroll', _.debounce(() => handleScroll(el.sliderWrap), 100));
15
- },
16
- });