wickes-css2 2.103.0-develop.1 → 2.103.0-develop.10

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 (68) hide show
  1. package/Readme.md +5 -1
  2. package/build/css/category-main.css +1 -1
  3. package/build/css/homepage-main.css +1 -1
  4. package/build/css/kitchen-plp-main.css +1 -1
  5. package/build/css/main.css +1 -1
  6. package/build/css/my-account-main-v2.css +1 -1
  7. package/build/css/my-account-main.css +1 -1
  8. package/build/css/pdp-main-before-combine.css +1 -1
  9. package/build/css/pdp-main-non-critical.css +1 -1
  10. package/build/css/pdp-main.css +1 -1
  11. package/build/css/plp-main.css +1 -1
  12. package/build/css/store-locator-main.css +1 -1
  13. package/build/js/basket.min.js +2 -2
  14. package/build/js/bundle.min.js +1 -1
  15. package/build/js/checkout.min.js +2 -2
  16. package/build/js/emulation.min.js +994 -50
  17. package/build/js/general.bundle.min.js +1 -1
  18. package/build/js/merged-checkout.min.js +2 -2
  19. package/build/js/mini-basket-slider.min.js +1 -0
  20. package/build/js/page/basket/basket-update-cart-action.js +59 -0
  21. package/build/js/page/basket/basket-update-cart.js +29 -0
  22. package/build/js/page/basket/basket-utils.js +50 -0
  23. package/build/js/page/basket/mini-basket-total.js +97 -0
  24. package/build/js/page/basket/quantity-change-handler.js +64 -0
  25. package/build/js/page/basket/update-quantity-operation.js +37 -0
  26. package/build/js/page/basket/update-quantity.js +65 -0
  27. package/build/js/page/basket-v2.js +138 -244
  28. package/build/js/page/components/discounts.js +6 -6
  29. package/build/js/page/components/mini-basket-slider.js +569 -0
  30. package/build/js/pdp.bundle.min.js +1 -1
  31. package/build/js/plp.bundle.min.js +1 -1
  32. package/build/js/project-list.min.js +1 -1
  33. package/package.json +17 -2
  34. package/src/components/mini-basket/mini-basket-empty.hbs +3 -13
  35. package/src/components/mini-basket/mini-basket-order-item.hbs +73 -0
  36. package/src/components/mini-basket/mini-basket.hbs +32 -13
  37. package/src/components/mini-basket/product-item.hbs +37 -16
  38. package/src/components/srp-injected.hbs +3 -13
  39. package/src/data/data_confirmation-summary.json +4 -2
  40. package/src/data/data_mini-basket.json +4 -80
  41. package/src/js/components/banner-placement-manager.js +10 -1
  42. package/src/js/components/general/cart-slider.js +4 -0
  43. package/src/js/components/general/create-popup-slider.js +5 -2
  44. package/src/js/emulation/account-hub.js +40 -40
  45. package/src/js/emulation/custom-slider-emulation.js +4 -10
  46. package/src/js/emulation/mini-basket-data.js +949 -0
  47. package/src/js/page/basket/basket-update-cart-action.js +59 -0
  48. package/src/js/page/basket/basket-update-cart.js +29 -0
  49. package/src/js/page/basket/basket-utils.js +50 -0
  50. package/src/js/page/basket/mini-basket-total.js +97 -0
  51. package/src/js/page/basket/quantity-change-handler.js +64 -0
  52. package/src/js/page/basket/update-quantity-operation.js +37 -0
  53. package/src/js/page/basket/update-quantity.js +65 -0
  54. package/src/js/page/basket-v2.js +138 -244
  55. package/src/js/page/components/discounts.js +6 -6
  56. package/src/js/page/components/mini-basket-slider.js +569 -0
  57. package/src/layouts/base.hbs +0 -6
  58. package/src/page_plp_v2.html +2 -1
  59. package/src/partials/scripts.hbs +1 -0
  60. package/src/scss/category-main.scss +1 -0
  61. package/src/scss/components/_custom-slider.scss +131 -3
  62. package/src/scss/components/_popover-mini-basket.scss +0 -4
  63. package/src/scss/emulation.scss +3 -3
  64. package/src/scss/helpers/_colors-semantic.scss +120 -0
  65. package/src/scss/helpers/_variables.scss +2 -0
  66. package/src/scss/pages/_facets.scss +86 -0
  67. package/src/scss/plp-main.scss +1 -0
  68. package/src/js/components/general/mini-basket-slider.js +0 -8
@@ -80,6 +80,19 @@
80
80
  }
81
81
  }
82
82
 
83
+ &__notifications {
84
+ &:has(.notification) {
85
+ margin-top: 16px;
86
+ }
87
+
88
+ .notification:only-child {
89
+ @include font-size(14);
90
+ @include line-height(24);
91
+ margin-bottom: 0;
92
+ border-width: 1px;
93
+ }
94
+ }
95
+
83
96
  &__message {
84
97
  margin-top: 8px;
85
98
  display: flex;
@@ -159,6 +172,32 @@
159
172
  &__details {
160
173
  flex: 1;
161
174
 
175
+ &-header {
176
+ display: flex;
177
+ align-items: flex-start;
178
+ justify-content: space-between;
179
+ grid-gap: 8px;
180
+
181
+ .btn--remove {
182
+ min-width: 24px;
183
+ padding: 4px;
184
+ background: 0 0;
185
+ border: none;
186
+ display: flex;
187
+ align-items: center;
188
+ justify-content: center;
189
+
190
+ .remove-icon {
191
+ color: $blue;
192
+ font-size: 1rem;
193
+ }
194
+ }
195
+ }
196
+
197
+ &-body {
198
+ margin-top: 4px;
199
+ }
200
+
162
201
  .item,
163
202
  .price {
164
203
  margin-bottom: 0;
@@ -190,8 +229,8 @@
190
229
  }
191
230
 
192
231
  .price {
193
- @include font-size(18);
194
- @include line-height(24);
232
+ @include font-size(16);
233
+ @include line-height(20);
195
234
  margin-top: 8px;
196
235
  font-weight: 700;
197
236
  color: $blue-dark;
@@ -201,23 +240,88 @@
201
240
  @include line-height(16);
202
241
  font-weight: 500;
203
242
  }
243
+
244
+ .product-card__price-value {
245
+ font-size: inherit;
246
+ line-height: inherit;
247
+ }
204
248
  }
205
249
 
206
250
  &.product-card__content {
207
251
  margin-top: 0;
208
252
  padding: 0;
253
+ height: 100%;
254
+ display: flex;
255
+ flex-direction: column;
256
+ }
257
+ }
258
+
259
+ &__quantity-control {
260
+ display: flex;
261
+ align-items: center;
262
+ margin-top: 8px;
263
+
264
+ .quantity {
265
+ margin-bottom: 0;
266
+ min-width: 40px;
267
+ text-align: center;
268
+ padding: 0 5px;
269
+
270
+ .product-card__quantity-value {
271
+ margin: 0;
272
+ font-weight: 400;
273
+ }
274
+ }
275
+
276
+ .btn--quantity {
277
+ background: none;
278
+ padding: 0;
279
+ width: 24px;
280
+ min-height: 24px;
281
+ display: inline-flex;
282
+ align-items: center;
283
+ justify-content: center;
284
+
285
+ .quantity-cta-icon {
286
+ font-size: 1.35rem;
287
+ color: $blue;
288
+ }
289
+
290
+ &[disabled] {
291
+ border: none;
292
+ opacity: 0.6;
293
+ }
294
+ }
295
+ }
296
+
297
+ .btn--remove,
298
+ .btn--quantity {
299
+ &:hover {
300
+ opacity: 0.7;
209
301
  }
210
302
  }
211
303
 
212
304
  &.popover-mini-basket__cards-holder {
213
305
  .card {
214
306
  margin-bottom: 0;
307
+ display: flex;
215
308
 
216
309
  & + .card {
217
310
  border-top: 1px solid $gray-light;
218
311
  }
219
312
  }
220
313
  }
314
+
315
+ &__offers {
316
+ margin-top: 4px;
317
+
318
+ .products__promo {
319
+ @include font-size(12);
320
+ @include line-height(16);
321
+ color: $red;
322
+ font-weight: 400;
323
+ }
324
+ }
221
325
  }
222
326
 
223
327
  &__footer {
@@ -324,7 +428,7 @@
324
428
  font-weight: 500;
325
429
  }
326
430
 
327
- .value {
431
+ &-value {
328
432
  @include font-size(18);
329
433
  @include line-height(24);
330
434
  font-weight: 700;
@@ -454,6 +558,30 @@
454
558
  }
455
559
  }
456
560
 
561
+ @include media-breakpoint-up(sm) {
562
+ .custom-slider {
563
+ .products__details {
564
+ .price {
565
+ @include font-size(18);
566
+ @include line-height(24);
567
+
568
+ .inc {
569
+ @include font-size(12);
570
+ @include line-height(16);
571
+ font-weight: 500;
572
+ }
573
+ }
574
+
575
+ &-footer {
576
+ display: flex;
577
+ align-items: center;
578
+ justify-content: space-between;
579
+ margin-top: auto;
580
+ }
581
+ }
582
+ }
583
+ }
584
+
457
585
  @include media-breakpoint-up(sm) {
458
586
  .custom-slider {
459
587
  &__wrap {
@@ -173,10 +173,6 @@
173
173
  .card__img {
174
174
  border: 0;
175
175
  }
176
-
177
- .product-card__content {
178
- height: auto;
179
- }
180
176
  }
181
177
  }
182
178
  }
@@ -29,7 +29,7 @@
29
29
 
30
30
  &__address {
31
31
  .fa-map-marker-alt {
32
- max-width: .75rem;
32
+ max-width: 0.75rem;
33
33
  }
34
34
  }
35
35
  }
@@ -54,11 +54,11 @@
54
54
  }
55
55
 
56
56
  .offer-banner__link-arrow {
57
- max-width: .625rem;
57
+ max-width: 0.625rem;
58
58
  }
59
59
 
60
60
  @include media-breakpoint-down(sm) {
61
- .cards-store-list:not(:nth-child(-n+4)) {
61
+ .cards-store-list:not(:nth-child(-n + 4)) {
62
62
  display: none;
63
63
  }
64
64
  }
@@ -0,0 +1,120 @@
1
+ // --------------------------------------------------------------------------
2
+ // Surfaces
3
+ // --------------------------------------------------------------------------
4
+ $surface-surf-primary: $white; // #ffffff
5
+
6
+ // --------------------------------------------------------------------------
7
+ // Containers
8
+ // --------------------------------------------------------------------------
9
+ $container-cont-01: $white; // #ffffff
10
+ $container-cont-02: $gray-bg; // #f8f8f8
11
+ $container-cont-03: $gray-light; // #eeeeee
12
+ $container-cont-04: $warm-grey; // #8b8b8b
13
+
14
+ $container-cont-brand: $blue-dark; // #0a3055
15
+ $container-cont-brand-light: $ma-white; // #f4f9fe
16
+ $container-cont-action: $blue; // #0277bd
17
+ $container-cont-checkout: $green; // #67a509
18
+ $container-cont-offer: $red; // #cf000f
19
+
20
+ // --------------------------------------------------------------------------
21
+ // Borders
22
+ // --------------------------------------------------------------------------
23
+ $border-brand: $blue-dark; // #0a3055
24
+ $border-bold: $gray-dark; // #3e3e3e
25
+ $border-default: $gray; // #cccccc
26
+ $border-secondary: $gray-light; // #eeeeee
27
+ $border-focus: $blue; // #0277bd
28
+ $border-error: $red; // #cf000f
29
+ $border-inverted: $white; // #ffffff
30
+
31
+ // --------------------------------------------------------------------------
32
+ // Text
33
+ // --------------------------------------------------------------------------
34
+ $text-body: $gray-dark; // #3e3e3e
35
+ $text-secondary: $squant; // #666666
36
+ $text-tertiary: $warm-grey; // #8b8b8b
37
+ $text-quinary: $gray-wait; // #9d9d9c
38
+ $text-inverted: $white; // #ffffff
39
+ $text-brand: $blue-dark; // #0a3055
40
+ $text-link: $blue; // #0277bd
41
+ $text-offer: $red; // #cf000f
42
+ $text-success: $green; // #67a509
43
+ $text-error: $red; // #cf000f
44
+
45
+ // --------------------------------------------------------------------------
46
+ // Icons
47
+ // --------------------------------------------------------------------------
48
+ $icon-brand: $blue-dark; // #0a3055
49
+ $icon-primary: $gray-dark; // #3e3e3e
50
+ $icon-secondary: $warm-grey; // #8b8b8b
51
+ $icon-tertiary: $gray; // #cccccc
52
+ $icon-inverted: $white; // #ffffff
53
+ $icon-action: $blue; // #0277bd
54
+ $icon-checkout: $green; // #67a509
55
+ $icon-success: $green; // #67a509
56
+ $icon-warning: $orange; // #ffc439
57
+ $icon-error: $red; // #cf000f
58
+ $icon-brand-light: $blue-satin; // #99b5cf
59
+
60
+ // --------------------------------------------------------------------------
61
+ // Labels / Badges
62
+ // --------------------------------------------------------------------------
63
+ $label-offer: $red; // #cf000f
64
+ $label-new: $green-light; // #9acd32
65
+ $label-clearance: $yellow; // #f7ca18
66
+
67
+ // --------------------------------------------------------------------------
68
+ // Logos
69
+ // --------------------------------------------------------------------------
70
+ $logo-main: $pacific-depths; // #004587
71
+ $logo-stroke-text: $white; // #ffffff
72
+ $logo-tradepro: $gray-wait; // #9d9d9c
73
+
74
+ // --------------------------------------------------------------------------
75
+ // Notifications
76
+ // --------------------------------------------------------------------------
77
+ $notification-success-bg: rgba($green, .05); // #67a5090d
78
+ $notification-warning-bg: rgba($orange, .05); // #ffc4390d
79
+ $notification-error-bg: rgba($red, .05); // #cf000f0d
80
+
81
+ // --------------------------------------------------------------------------
82
+ // State overlays (generic)
83
+ // --------------------------------------------------------------------------
84
+ $state-overlay-hover: rgba($black, .2); // #00000033
85
+ $state-overlay-pressed: rgba($black, .4); // #00000066
86
+ $state-overlay-disabled: rgba($white, .6); // #ffffff99
87
+
88
+ // --------------------------------------------------------------------------
89
+ // Additional (brand / payments / design usage)
90
+ // --------------------------------------------------------------------------
91
+ $additional-design-appointment: #2d8093;
92
+ $additional-review-star-pdp: #f7941d;
93
+ $additional-paypal: $orange; // #ffc439
94
+ $additional-klarna: #ffb3c7;
95
+ $additional-finance: $virid-darker; // #205c56
96
+ $additional-events: $virid-darkest; // #00857c
97
+
98
+ // --------------------------------------------------------------------------
99
+ // Button overlays (primary action = blue)
100
+ // --------------------------------------------------------------------------
101
+ $button-overlay-action-default: $blue; // #0277bd
102
+ $button-overlay-action-hover: rgba($blue, .2); // 20% opacity
103
+ $button-overlay-action-pressed: rgba($blue, .4); // 40% opacity
104
+ $button-overlay-action-disabled: rgba($blue, .6); // 60% opacity
105
+
106
+ // --------------------------------------------------------------------------
107
+ // Checkout overlays (success / checkout = green)
108
+ // --------------------------------------------------------------------------
109
+ $checkout-overlay-action-default: $green; // #67a509
110
+ $checkout-overlay-action-hover: rgba($green, .2); // 20% opacity
111
+ $checkout-overlay-action-pressed: rgba($green, .4); // 40% opacity
112
+ $checkout-overlay-action-disabled: rgba($green, .6); // 60% opacity
113
+
114
+ // --------------------------------------------------------------------------
115
+ // Offer overlays (error / offer = red)
116
+ // --------------------------------------------------------------------------
117
+ $offer-overlay-action-default: $red; // #cf000f
118
+ $offer-overlay-action-hover: rgba($red, .2); // 20% opacity
119
+ $offer-overlay-action-pressed: rgba($red, .4); // 40% opacity
120
+ $offer-overlay-action-disabled: rgba($red, .6); // 60% opacity
@@ -400,3 +400,5 @@ $christine: #ec6608;
400
400
  $monza: #e30613;
401
401
  $downriver: #0c3153;
402
402
  $rose-pink: #ff858d;
403
+
404
+ @import 'colors-semantic';
@@ -0,0 +1,86 @@
1
+ @import '../helpers/variables';
2
+ @import '../helpers/helpers';
3
+
4
+ .category-seo-config {
5
+
6
+ .legal-info {
7
+ > div {
8
+ a {
9
+ color: $blue;
10
+ }
11
+
12
+ p {
13
+ font-weight: 400;
14
+ line-height: 24px;
15
+ }
16
+
17
+ h3 {
18
+ font-weight: 500;
19
+ font-size: 1.25rem;
20
+ line-height: 32px;
21
+ color: inherit;
22
+ }
23
+
24
+ h4 {
25
+ font-weight: 500;
26
+ font-size: 1.125rem;
27
+ line-height: 24px;
28
+ color: inherit;
29
+ }
30
+ }
31
+ }
32
+
33
+ .page-header {
34
+ p {
35
+ line-height: 24px;
36
+ font-weight: 400;
37
+ }
38
+
39
+ h1 {
40
+ font-weight: 500;
41
+ font-size: 1.625rem;
42
+ line-height: 36px;
43
+ }
44
+
45
+ &__title {
46
+ font-weight: 500;
47
+ font-size: 1.625rem;
48
+ line-height: 36px;
49
+ text-align: left;
50
+ color: inherit;
51
+ }
52
+ }
53
+ }
54
+
55
+ @include media-breakpoint-up(md) {
56
+ .category-seo-config {
57
+ .page-header {
58
+
59
+ h1 {
60
+ line-height: 46px;
61
+ font-size: 2.125rem;
62
+ }
63
+
64
+ &__title {
65
+ font-size: 2.125rem;
66
+ line-height: 46px;
67
+ text-align: center;
68
+ }
69
+ }
70
+
71
+ .legal-info {
72
+ > div {
73
+ h3 {
74
+ font-size: 1.5rem;
75
+ line-height: 32px;
76
+ }
77
+
78
+ h4 {
79
+ font-size: 1.125rem;
80
+ line-height: 24px;
81
+ font-weight: 700;
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
@@ -30,3 +30,4 @@
30
30
 
31
31
  // Pages
32
32
  @import 'pages/page_products-list-combined';
33
+ @import 'pages/facets';
@@ -1,8 +0,0 @@
1
- createPopupSlider({
2
- type: 'miniBasket',
3
- sliderSelector: '.custom-slider.mini-basket',
4
- onAppendEvent: 'showMiniBasket',
5
- onAppend: function (event, { showSlider }) {
6
- showSlider();
7
- },
8
- });