wickes-css2 2.96.0-develop.3 → 2.96.0-develop.4

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 (42) hide show
  1. package/build/css/category-main.css +1 -1
  2. package/build/css/homepage-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/pdp-main-before-combine.css +1 -1
  7. package/build/css/pdp-main-non-critical.css +1 -1
  8. package/build/css/pdp-main.css +1 -1
  9. package/build/css/plp-main.css +1 -1
  10. package/build/css/store-locator-main.css +1 -1
  11. package/build/js/basket.min.js +2 -2
  12. package/build/js/bundle.min.js +1 -1
  13. package/build/js/checkout.min.js +2 -2
  14. package/build/js/emulation.min.js +440 -6
  15. package/build/js/general.bundle.min.js +1 -1
  16. package/build/js/merged-checkout.min.js +2 -2
  17. package/build/js/page/basket-v2.js +3 -3
  18. package/build/js/page/components/order-summary.js +0 -1
  19. package/build/js/page/components/sticky-order-observer.js +7 -7
  20. package/build/js/pdp.bundle.min.js +1 -1
  21. package/build/js/plp.bundle.min.js +1 -1
  22. package/build/js/project-list.min.js +1 -1
  23. package/package.json +10 -2
  24. package/src/js/components/general/main-nav.js +14 -23
  25. package/src/js/components/general/switchVat.js +4 -1
  26. package/src/js/emulation/basket-data.js +436 -0
  27. package/src/js/emulation/main-nav-local.js +4 -6
  28. package/src/js/page/basket-v2.js +3 -3
  29. package/src/js/page/components/order-summary.js +0 -1
  30. package/src/js/page/components/sticky-order-observer.js +7 -7
  31. package/src/partials/main-nav.hbs +2 -6
  32. package/src/scss/components/_back-to-top.scss +45 -0
  33. package/src/scss/components/_order-summary.scss +0 -31
  34. package/src/scss/components/_sticky-element-appearance.scss +2 -3
  35. package/src/scss/partials/_main-nav.scss +0 -9
  36. package/src/sitemap.html +0 -11
  37. package/src/components/navigation/menu-item-sub.hbs +0 -33
  38. package/src/components/navigation/menu-item-top.hbs +0 -32
  39. package/src/components/navigation/menu-item.hbs +0 -32
  40. package/src/components/navigation/nav-wrapper.hbs +0 -12
  41. package/src/data/navigation.json +0 -854
  42. package/src/page_old-navigation.html +0 -10
@@ -33,6 +33,38 @@
33
33
  height: auto;
34
34
  }
35
35
  }
36
+
37
+ body:has(.summary__aside) & {
38
+ bottom: 193px !important;
39
+
40
+ &.single-button {
41
+ bottom: 141px !important;
42
+ }
43
+ }
44
+
45
+ body.summary-hidden & {
46
+ bottom: 16px !important;
47
+ right: 16px !important;
48
+ }
49
+ }
50
+
51
+ @include media-breakpoint-up(sm) {
52
+ .back-to-top {
53
+ body:has(.summary__aside) & {
54
+ bottom: 198px !important;
55
+
56
+ &.single-button {
57
+ bottom: 146px !important;
58
+ }
59
+ }
60
+
61
+ // Required to resolve a specificity tie. By coming last, this 'hidden'
62
+ // state correctly overrides the ':has' state above.
63
+ body.summary-hidden & {
64
+ bottom: 16px !important;
65
+ right: 16px !important;
66
+ }
67
+ }
36
68
  }
37
69
 
38
70
  @include media-breakpoint-up(lg) {
@@ -43,5 +75,18 @@
43
75
  &--with-chat {
44
76
  bottom: 120px !important;
45
77
  }
78
+
79
+ body:has(.summary__aside):not(.summary-hidden) & {
80
+ &,
81
+ &.single-button {
82
+ right: 48px !important;
83
+ bottom: 24px !important;
84
+ }
85
+ }
86
+
87
+ body.summary-hidden & {
88
+ right: 48px !important;
89
+ bottom: 24px !important;
90
+ }
46
91
  }
47
92
  }
@@ -3,11 +3,6 @@
3
3
  $android-offset: 60px !default;
4
4
  $ios-notch-offset: 80px !default;
5
5
 
6
- body.summary-hidden .back-to-top {
7
- bottom: 20px !important;
8
- right: 16px !important;
9
- }
10
-
11
6
  .summary {
12
7
  &__aside {
13
8
  padding: 15px;
@@ -294,14 +289,6 @@ body.summary-hidden .back-to-top {
294
289
  transition: transform .3s ease;
295
290
  }
296
291
 
297
- .back-to-top {
298
- bottom: 193px !important;
299
- }
300
-
301
- .back-to-top.single-button {
302
- bottom: 141px !important;
303
- }
304
-
305
292
  .summary:not(.summary--mobile) {
306
293
  .summary__aside {
307
294
  padding: 20px 20px 0;
@@ -330,14 +317,6 @@ body.summary-hidden .back-to-top {
330
317
  }
331
318
  }
332
319
  }
333
-
334
- .back-to-top {
335
- bottom: 198px !important;
336
- }
337
-
338
- .back-to-top.single-button {
339
- bottom: 146px !important;
340
- }
341
320
  }
342
321
 
343
322
  @include media-breakpoint-up(md) {
@@ -421,16 +400,6 @@ body.summary-hidden .back-to-top {
421
400
  box-shadow: none;
422
401
  }
423
402
 
424
- .back-to-top {
425
- right: 48px !important;
426
- bottom: 24px !important;
427
- }
428
-
429
- .back-to-top.single-button {
430
- right: 48px !important;
431
- bottom: 24px !important;
432
- }
433
-
434
403
  .basket {
435
404
  .summary {
436
405
  & .summary__payment {
@@ -7,7 +7,7 @@
7
7
  opacity: 0;
8
8
  pointer-events: none;
9
9
  will-change: transform, opacity;
10
- transition: transform 0.5s ease, opacity 0.5s ease;
10
+ transition: transform .5s ease, opacity .5s ease;
11
11
 
12
12
  &:not(.is-hidden) {
13
13
  transform: translateY(0);
@@ -18,8 +18,7 @@
18
18
  &.is-hidden {
19
19
  transform: translateY(100%);
20
20
  opacity: 0;
21
- transition: transform 0.5s ease 0s,
22
- opacity 0.5s ease 5s;
21
+ transition: transform .5s ease 0s, opacity .5s ease 5s;
23
22
  pointer-events: none;
24
23
  }
25
24
  }
@@ -215,11 +215,6 @@
215
215
  opacity: 0;
216
216
  animation: fade-in .5s ease-in-out forwards;
217
217
 
218
- .main-nav[data-ssr='true'] &:not(.slide-in):not(.slide-in-l2r) {
219
- opacity: 1;
220
- animation: none;
221
- }
222
-
223
218
  &_order-line {
224
219
  color: $blue;
225
220
  }
@@ -952,10 +947,6 @@
952
947
  padding: 0;
953
948
  gap: 30px;
954
949
 
955
- &-banner {
956
- display: none;
957
- }
958
-
959
950
  &__label {
960
951
  margin-bottom: 10px;
961
952
  padding: 0 10px;
package/src/sitemap.html CHANGED
@@ -921,17 +921,6 @@
921
921
  </a>
922
922
  </li>
923
923
  </ul>
924
- <h3>
925
- Old Navigation
926
- </h3>
927
- <ul>
928
- <li>
929
- <span class="page-id">1</span>
930
- <a href="page_old-navigation.html" target="_blank">
931
- Page with old navigation
932
- </a>
933
- </li>
934
- </ul>
935
924
  </div>
936
925
  <div class="col">
937
926
  <h3>Basket</h3>
@@ -1,33 +0,0 @@
1
- <ul>
2
- {{#each subMenuItems}}
3
- <li class="main-nav__sub-menu__item nav-col">
4
- <a
5
- href="{{ url }}"
6
- class="main-nav__sub-menu__link main-nav__sub-sub-menu__link-last
7
- {{#if color}}main-nav__sub-menu__link--invert {{/if}}
8
- {{#ifCond color '==' "GREEN"}}green{{/ifCond}}
9
- {{#ifCond color '==' "RED"}}red{{/ifCond}}
10
- "
11
- tabindex="0"
12
- style="
13
- {{#ifCond color '==' "GREEN"}}background-color: #9acd32; color: #fff;{{/ifCond}}
14
- {{#ifCond color '==' "RED"}}background-color: #cf000f; color: #fff;{{/ifCond}}
15
- {{#if bold}}font-weight: 700;{{/if}}
16
- "
17
- >
18
- {{ name }}
19
- </a>
20
- </li>
21
- {{/each }}
22
- {{#if originalChildrenCount}}
23
- {{#ifCond originalChildrenCount '!=' subMenuItems.length }}
24
- <a
25
- href="{{ menuItemUrl }}"
26
- class="main-nav__sub-menu__link main-nav__sub-menu__view-more main-nav__sub-sub-menu__link-last"
27
- tabindex="0"
28
- >
29
- View More
30
- </a>
31
- {{/ifCond}}
32
- {{/if}}
33
- </ul>
@@ -1,32 +0,0 @@
1
- {{#each navigation}}
2
- <ul class="main-nav__top-level">
3
- {{#each children}}
4
- <li class="main-nav__top-level__item">
5
- <a
6
- href="{{ url }}"
7
- class="main-nav__top-level__label
8
- {{#if color}}main-nav__top-level__label--invert {{/if}}
9
- {{#ifCond color '==' "GREEN"}}green{{/ifCond}}
10
- {{#ifCond color '==' "RED"}}red{{/ifCond}}
11
- "
12
- tabindex="0"
13
- style="
14
- {{#ifCond color '==' "GREEN"}}background-color: #9acd32; color: #fff;{{/ifCond}}
15
- {{#ifCond color '==' "RED"}}background-color: #cf000f; color: #fff;{{/ifCond}}
16
- {{#if bold}}font-weight: 700;{{/if}}
17
- "
18
- >
19
- {{ name }}
20
- </a>
21
- <div class="main-nav__menu-wrapper">
22
- {{#if banner}}
23
- <div class="main-nav__menu-banner">
24
- {{{banner}}}
25
- </div>
26
- {{/if}}
27
- {{> navigation/menu-item menuItems=children}}
28
- </div>
29
- </li>
30
- {{/each}}
31
- </ul>
32
- {{/each}}
@@ -1,32 +0,0 @@
1
- <ul class="main-nav__menu">
2
- {{#each menuItems}}
3
- <li class="main-nav__menu__item nav-col">
4
- <a
5
- href="{{ url }}"
6
- class="main-nav__menu__label
7
- {{#if color}}main-nav__menu__label--invert {{/if}}
8
- {{#ifCond color '==' "GREEN"}}green{{/ifCond}}
9
- {{#ifCond color '==' "RED"}}red{{/ifCond}}
10
- "
11
- tabindex="0"
12
- style="
13
- {{#ifCond color '==' "GREEN"}}background-color: #9acd32; color: #fff;{{/ifCond}}
14
- {{#ifCond color '==' "RED"}}background-color: #cf000f; color: #fff;{{/ifCond}}
15
- {{#if bold}}font-weight: 700;{{/if}}
16
- "
17
- >
18
- {{ name }}
19
- </a>
20
- <div class="main-nav__sub-menu__wrapper" tabindex="0">
21
- <div class="main-nav__sub-menu">
22
- {{> navigation/menu-item-sub subMenuItems=children originalChildrenCount=originalChildrenCount menuItemUrl=url}}
23
- <div class="main-nav__view-all">
24
- <a href="{{ url }}" class="main-nav__view-all__link" tabindex="0">
25
- View all {{ name }}
26
- </a>
27
- </div>
28
- </div>
29
- </div>
30
- </li>
31
- {{/each}}
32
- </ul>
@@ -1,12 +0,0 @@
1
- <div class="main-nav__section main-nav__section_main">
2
- <div class="main-nav__back-btn__wrap">
3
- <a href="#" class="main-nav__back-btn">
4
- <span class="icon">
5
- <i class="fas fa-arrow-left fa-lg"></i>
6
- </span>
7
- </a>
8
- </div>
9
- <div class="main-nav__top-level-wrap">
10
- {{> navigation/menu-item-top }}
11
- </div>
12
- </div>