wickes-css2 2.96.0-develop.4 → 2.96.0-develop.5
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.
- package/build/css/category-main.css +1 -1
- package/build/css/homepage-main.css +1 -1
- package/build/css/main.css +1 -1
- package/build/css/my-account-main-v2.css +1 -1
- package/build/css/my-account-main.css +1 -1
- package/build/css/pdp-main-before-combine.css +1 -1
- package/build/css/pdp-main-non-critical.css +1 -1
- package/build/css/pdp-main.css +1 -1
- package/build/css/plp-main.css +1 -1
- package/build/css/store-locator-main.css +1 -1
- package/build/js/basket.min.js +1 -1
- package/build/js/bundle.min.js +1 -1
- package/build/js/checkout.min.js +1 -1
- package/build/js/emulation.min.js +6 -4
- package/build/js/general.bundle.min.js +1 -1
- package/build/js/merged-checkout.min.js +1 -1
- package/build/js/pdp.bundle.min.js +1 -1
- package/build/js/plp.bundle.min.js +1 -1
- package/build/js/project-list.min.js +1 -1
- package/package.json +1 -1
- package/src/components/navigation/menu-item-sub.hbs +33 -0
- package/src/components/navigation/menu-item-top.hbs +32 -0
- package/src/components/navigation/menu-item.hbs +32 -0
- package/src/components/navigation/nav-wrapper.hbs +12 -0
- package/src/data/navigation.json +854 -0
- package/src/js/components/general/main-nav.js +23 -14
- package/src/js/emulation/main-nav-local.js +6 -4
- package/src/page_old-navigation.html +10 -0
- package/src/partials/main-nav.hbs +6 -2
- package/src/scss/partials/_main-nav.scss +9 -0
- package/src/sitemap.html +11 -0
package/package.json
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
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>
|
|
@@ -0,0 +1,32 @@
|
|
|
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}}
|
|
@@ -0,0 +1,32 @@
|
|
|
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>
|
|
@@ -0,0 +1,12 @@
|
|
|
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>
|