wickes-css2 2.109.0-develop.6 → 2.109.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 (57) hide show
  1. package/Readme.md +0 -1
  2. package/build/css/components/card-product-banner.css +1 -1
  3. package/build/css/components/special-opening-schedule-v2.css +1 -1
  4. package/build/css/components/special-opening-schedule.css +1 -1
  5. package/build/css/emulation.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/checkout-new.css +1 -1
  10. package/build/css/pages/page_merged-basket.css +1 -1
  11. package/build/css/pages/page_store-locator-details.css +1 -1
  12. package/build/css/pages/page_store-locator.css +1 -1
  13. package/build/css/plp-main.css +1 -1
  14. package/build/css/store-locator-main.css +1 -1
  15. package/build/js/basket.min.js +1 -1
  16. package/build/js/bundle.min.js +1 -1
  17. package/build/js/checkout.min.js +1 -1
  18. package/build/js/emulation.min.js +367 -111
  19. package/build/js/general.bundle.min.js +1 -1
  20. package/build/js/gift-cards.min.js +1 -1
  21. package/build/js/merged-checkout.min.js +1 -1
  22. package/build/js/page/checkout-payment-details.js +95 -11
  23. package/build/js/page/components/gift-cards.js +1 -1
  24. package/build/js/page/components/store-locator-cards.js +76 -0
  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/build/js/store-locator-cards.min.js +1 -0
  29. package/build/js/toggle-password-visibility.min.js +1 -0
  30. package/package.json +1 -1
  31. package/src/components/card-store-locator.hbs +70 -33
  32. package/src/components/card_bloomreach_media_banner.hbs +10 -0
  33. package/src/components/card_sponsor_banner.hbs +1 -1
  34. package/src/components/checkout-payment-details-v2.hbs +4 -4
  35. package/src/components/checkout-payment-info-block.hbs +1 -1
  36. package/src/data/data_locators.json +441 -135
  37. package/src/data/data_search-results_v2.json +11 -0
  38. package/src/js/components/general/accordion.js +25 -2
  39. package/src/js/emulation/banner-placement-manager.js +235 -34
  40. package/src/js/emulation/checkout-payment-details.js +34 -1
  41. package/src/js/emulation/gift-cards.js +1 -1
  42. package/src/js/emulation/store-locator-load-more.js +69 -0
  43. package/src/js/page/checkout-payment-details.js +95 -11
  44. package/src/js/page/components/gift-cards.js +1 -1
  45. package/src/js/page/components/store-locator-cards.js +76 -0
  46. package/src/page_plp_bloomreach.html +81 -0
  47. package/src/page_plp_v2.html +5 -0
  48. package/src/page_store-locator-list.html +18 -28
  49. package/src/scss/components/_card-store-locator.scss +139 -32
  50. package/src/scss/components/card-product-banner.scss +35 -35
  51. package/src/scss/components/special-opening-schedule-v2.scss +2 -6
  52. package/src/scss/components/special-opening-schedule.scss +17 -4
  53. package/src/scss/emulation.scss +0 -6
  54. package/src/scss/pages/page_store-locator.scss +48 -26
  55. package/src/scss/store-locator-main.scss +15 -1
  56. package/src/sitemap.html +1 -0
  57. package/src/js/emulation/store-locator-list.js +0 -19
@@ -0,0 +1,81 @@
1
+ {{#extend "base" hybrisClass="hybris-class" pageClass="products-list-page retail-media category-seo-config" title="Products list" globalSearchV2="true" pagePlp=true}}
2
+ {{#content "head" mode="append" pagePlp=true}}
3
+ <link type="text/css" rel="stylesheet" href="./css/components/global-search.css">
4
+ {{/content}}
5
+ <style></style>
6
+ {{#content "body"}}
7
+ <main>
8
+ <div class="container">
9
+ <div class="page-header page-header_border-all">
10
+ <h1 class="page-header__title">
11
+ Fire Doors
12
+ </h1>
13
+ {{> srp-injected}}
14
+ </div>
15
+
16
+ {{> color-picker-plp }}
17
+
18
+ <div class="row">
19
+ <aside class="left-aside">
20
+ {{> search-filter collapsed="accordion_collapsed" hidden="hidden-state"}}
21
+ </aside>
22
+
23
+ <div class="content">
24
+ <div class="plp-filters" data-component="plp-filters" aria-label="Product filters">
25
+ <div class="plp-filters__bar plp-filters__bar-mobile" role="tablist" aria-label="Filters">
26
+ {{> kitchen/mobile-nav-item
27
+ icon="fas fa-filter"
28
+ title="Filter by"
29
+ info="1,818 results"
30
+ modalId="filterModal"
31
+ mod="filter-modal-cta"
32
+ }}
33
+ {{> kitchen/mobile-nav-item
34
+ icon="fas fa-sort-alt"
35
+ title="Sort by"
36
+ info="Relevance"
37
+ dropdown=true
38
+ }}
39
+ </div>
40
+ </div>
41
+ <div class="sort-products-list">
42
+ {{> kitchen/sort-by }}
43
+ </div>
44
+
45
+ <div class="products-list products-list-v2">
46
+ {{#each search-result_v2.products}}
47
+ {{>card_product_v2}}
48
+ {{/each}}
49
+ {{#if search-result_v2.bloomreach-media-banner}}
50
+ {{#each search-result_v2.bloomreach-media-banner}}
51
+ {{>card_bloomreach_media_banner}}
52
+ {{/each}}
53
+ {{/if}}
54
+ </div>
55
+ <div class="load-more-wrap">
56
+ <button class="btn btn-primary btn_full btn-load-more">
57
+ Load more
58
+ </button>
59
+ </div>
60
+ </div>
61
+ <!-- ./content -->
62
+ </div>
63
+ </div>
64
+ {{> legal-info}}
65
+
66
+ {{> similar-products-v2 }}
67
+
68
+ {{> seo-widgets title="More products" }}
69
+ {{> seo-widgets title="Related category" }}
70
+
71
+ </main>
72
+ {{/content}}
73
+ {{#content "foot" mode="append"}}
74
+ {{> kitchen/filter-modal isKitchenMode=false modalTitle="Filter by" }}
75
+ <script defer src="./js/plp.bundle.min.js"></script>
76
+
77
+ <script defer src="./js/page/plp-cards-v2.js"></script>
78
+ <script defer src="./js/search-filter.min.js"></script>
79
+ <script defer src="./js/plp-filters.min.js"></script>
80
+ {{/content}}
81
+ {{/extend}}
@@ -52,6 +52,11 @@
52
52
  {{>card_product_banner_v2}}
53
53
  {{/each}}
54
54
  {{/if}}
55
+ {{#if search-result_v2.bloomreach-media-banner}}
56
+ {{#each search-result_v2.bloomreach-media-banner}}
57
+ {{>card_bloomreach_media_banner}}
58
+ {{/each}}
59
+ {{/if}}
55
60
  {{#if search-result_v2.sponsor-banner}}
56
61
  {{#each search-result_v2.sponsor-banner}}
57
62
  {{>card_sponsor_banner}}
@@ -1,11 +1,14 @@
1
1
  {{#extend "base" pageClass="store-locator" title="Store locator list" pageStoreLocator=true}}
2
2
  {{#content "head" mode="append" pageStoreLocator=true}}{{/content}}
3
+
3
4
  {{#content "body"}}
4
5
  <main class="container">
5
6
  <h1>Store Locator</h1>
7
+
6
8
  <button class="btn btn-primary btn_store-near-me">
7
9
  <span class="btn__text">Find a store near me</span>
8
10
  </button>
11
+
9
12
  <div class="row-holder">
10
13
  <div class="map-container">
11
14
  <div class="map store-locator-popup__map">
@@ -13,43 +16,30 @@
13
16
  </div>
14
17
  </div>
15
18
  </div>
16
- {{> find-a-store data-action = "scroll-to-list"}}
19
+
20
+ {{> find-a-store data-action="scroll-to-list"}}
21
+
17
22
  <div class="cards-store-holder">
18
23
  <div class="cards-store-wrapper">
19
- <div class="row">
20
-
21
- <div class="cards-store-list">
22
- {{> card-store-locator view-map="true" distance="true" opening-times="true" schedule-title="true" locator-list="true"}}
23
- </div>
24
-
24
+ <div class="row" id="store-cards">
25
25
  {{#each locators}}
26
26
  <div class="cards-store-list">
27
- {{> card-store-locator view-map="true" distance="true" opening-times="true" schedule-title="true"}}
27
+ {{> card-store-locator
28
+ opening-times=true
29
+ schedule-title=true
30
+ locator-list=true
31
+ }}
28
32
  </div>
29
33
  {{/each}}
30
-
31
- <div class="cards-store-list__actions">
32
- <button class="btn btn-primary btn_full store-locator__load-button store-locator__load-button_more">
33
- <span class="icon icon__eye">
34
- <i class="fas fa-eye"></i>
35
- </span>
36
- <span class="btn__text">
37
- View more...
38
- </span>
39
- </button>
40
- <button class="btn btn-secondary btn_full store-locator__load-button" style="display: none;">
41
- <span class="icon icon__eye">
42
- <i class="fas fa-eye"></i>
43
- </span>
44
- <span class="btn__text">View less</span>
45
- </button>
46
- </div>
34
+ </div>
35
+ <div class="cards-store-list__actions">
36
+ <button class="btn btn-primary btn_full store-locator__load-button store-locator__load-button_more">
37
+ <span class="btn__text">Load more</span>
38
+ </button>
47
39
  </div>
48
40
  </div>
49
41
  </div>
50
- <div class="pagination-holder">
51
- {{> pagination pagination1="true"}}
52
- </div>
53
42
  </main>
54
43
  {{/content}}
55
44
  {{/extend}}
45
+ <script defer src="./js/store-locator-cards.min.js"></script>
@@ -2,6 +2,16 @@
2
2
  border: 1px solid $gray;
3
3
  display: flex;
4
4
  flex-direction: column;
5
+ height: 100%;
6
+
7
+ &__schedule {
8
+ .schedule-title {
9
+ &.card-store__title {
10
+ font-weight: $btn-font-weight;
11
+ padding: 15px 15px 13px;
12
+ }
13
+ }
14
+ }
5
15
 
6
16
  .store-locator-details & {
7
17
  border: 0;
@@ -17,8 +27,14 @@
17
27
  }
18
28
  }
19
29
 
30
+ &__body {
31
+ display: flex;
32
+ flex-direction: column;
33
+ flex: 1 1 auto;
34
+ }
35
+
20
36
  &__info {
21
- padding: 20px 15px 0;
37
+ padding: 15px 14px 0;
22
38
 
23
39
  .store-locator-details & {
24
40
  padding-top: 0;
@@ -27,16 +43,10 @@
27
43
 
28
44
  &__title {
29
45
  padding-top: 10px;
30
- font-size: 1rem;
31
- font-weight: 500;
46
+ font-weight: $headings-font-weight;
32
47
  line-height: 1.125rem;
33
48
 
34
- &.schedule-title.schedule-title {
35
- margin: 0 15px;
36
- }
37
-
38
49
  .card-store__schedule & {
39
- padding: 20px 0;
40
50
  font-weight: bold;
41
51
  }
42
52
 
@@ -51,11 +61,12 @@
51
61
  }
52
62
 
53
63
  &__distance {
54
- font-weight: 500;
64
+ font-weight: $headings-font-weight;
65
+ margin-top: 4px;
55
66
  }
56
67
 
57
68
  &__address {
58
- padding: 10px 0;
69
+ padding: 8px 0 0;
59
70
 
60
71
  .store-locator-details & {
61
72
  padding-bottom: 20px;
@@ -67,9 +78,21 @@
67
78
  }
68
79
  }
69
80
 
81
+ &__navigation {
82
+ padding: 16px 15px 4px;
83
+ margin-top: auto;
84
+
85
+ .btn {
86
+ margin-top: 0;
87
+ width: 100%;
88
+ display: flex;
89
+ justify-content: center;
90
+ }
91
+ }
92
+
70
93
  &__schedule {
94
+ padding: 0 15px;
71
95
  line-height: 30px;
72
- padding: 0 0 10px;
73
96
 
74
97
  .store-locator-details & {
75
98
  padding: 0 15px;
@@ -79,14 +102,10 @@
79
102
  &__contacts {
80
103
  @include primary-text;
81
104
  padding: 0 15px;
82
-
83
- .store-locator-details & {
84
- padding: 20px 15px;
85
- }
86
105
  }
87
106
 
88
107
  &__tel {
89
- padding-top: 10px;
108
+ padding-top: 8px;
90
109
  border-top: 1px solid $gray;
91
110
  display: block;
92
111
  white-space: nowrap;
@@ -103,23 +122,97 @@
103
122
  }
104
123
 
105
124
  &__actions {
106
- text-align: center;
107
- padding: 10px 0 20px;
125
+ padding: 8px 15px 15px;
108
126
 
109
127
  a {
110
- font-weight: 500;
128
+ font-weight: $font-weight-bold;
129
+ font-size: 0.875rem;
130
+ line-height: 1.25rem;
131
+ text-decoration: underline;
111
132
  }
112
133
  }
113
134
 
114
135
  &__features {
115
136
  padding: 0 15px;
116
137
  }
138
+ }
117
139
 
118
- &__navigation {
119
- padding: 0 15px 15px;
140
+ .card-store__schedule {
141
+ .opening-times-accordion {
142
+ padding: 0;
143
+ border-top: 0;
144
+ border-bottom: 0;
145
+
146
+ &__icon {
147
+ left: auto;
148
+ right: -2px;
149
+ top: 9px;
150
+ font-size: 1.25rem;
151
+ }
120
152
 
121
- .btn {
153
+ &__header {
154
+ display: flex;
155
+ align-items: center;
156
+ justify-content: space-between;
157
+ cursor: pointer;
158
+ padding: 10px 0 12px;
159
+ margin: 0;
160
+ }
161
+
162
+ &__title {
163
+ font-size: 0.875rem;
164
+ font-weight: $headings-font-weight;
165
+ line-height: 22px;
166
+ color: $gray-dark;
167
+ }
168
+
169
+ &__icon {
170
+ display: inline-flex;
171
+ align-items: center;
172
+ justify-content: center;
173
+ transition: transform 0.2s ease;
174
+ }
175
+
176
+ &__content {
177
+ padding: 0 0 12px;
178
+ margin-left: -15px;
179
+ margin-right: -15px;
180
+ }
181
+
182
+ &__close {
122
183
  width: 100%;
184
+ display: flex;
185
+ justify-content: center;
186
+ align-items: center;
187
+ padding: 12px 0 4px;
188
+ border: 0;
189
+ background: transparent;
190
+ cursor: pointer;
191
+
192
+ &:focus:not(:focus-visible) {
193
+ outline: none;
194
+ }
195
+ }
196
+
197
+ &__close-icon {
198
+ display: inline-flex;
199
+ align-items: center;
200
+ justify-content: center;
201
+ font-weight: $headings-font-weight;
202
+ color: $blue;
203
+ cursor: pointer;
204
+ box-sizing: border-box;
205
+ height: 24px;
206
+ line-height: 24px;
207
+ width: 24px;
208
+ text-align: center;
209
+ font-size: 1.25rem;
210
+ }
211
+
212
+ &.accordion_collapsed {
213
+ .opening-times-accordion__icon {
214
+ transform: rotate(360deg);
215
+ }
123
216
  }
124
217
  }
125
218
  }
@@ -129,7 +222,11 @@
129
222
 
130
223
  &__day,
131
224
  &__time {
132
- width: 50%;
225
+ display: flex;
226
+ justify-content: flex-end;
227
+ width: 56%;
228
+ min-width: 145px;
229
+ padding-right: 15px;
133
230
 
134
231
  .store-locator-details & {
135
232
  text-align: right;
@@ -137,8 +234,18 @@
137
234
  }
138
235
  }
139
236
 
237
+ &__time {
238
+ gap: 3px;
239
+ }
240
+
140
241
  &__day {
242
+ align-items: center;
243
+ justify-content: flex-start;
244
+ min-width: auto;
245
+ width: 44%;
141
246
  padding-left: 15px;
247
+ padding-right: 0;
248
+ line-height: 20px;
142
249
 
143
250
  .store-locator-details & {
144
251
  text-align: left;
@@ -165,12 +272,16 @@
165
272
  @include media-breakpoint-down(sm) {
166
273
  .card-store {
167
274
  &__schedule {
168
- display: flex;
169
- flex-direction: column;
275
+ display: block;
276
+ padding: 0 15px;
277
+ }
170
278
 
171
- .card-store__special-time {
172
- order: -1;
173
- }
279
+ &__navigation {
280
+ padding-top: 12px;
281
+ }
282
+
283
+ &__actions {
284
+ padding-bottom: 12px;
174
285
  }
175
286
  }
176
287
 
@@ -188,10 +299,6 @@
188
299
  .store-locator-details & {
189
300
  width: 55%;
190
301
  }
191
-
192
- &__info {
193
- min-height: 240px;
194
- }
195
302
  }
196
303
  }
197
304
 
@@ -1,46 +1,23 @@
1
1
  @import '../helpers/helpers';
2
2
 
3
- .card-product-banner {
3
+ .card-bloomreach-media-banner {
4
+ padding: 0 15px;
5
+ }
6
+
7
+ .card-product-banner,
8
+ .card-bloomreach-media-banner {
4
9
  @include make-col(4);
5
10
  margin-bottom: 30px;
6
11
 
7
- @include media-breakpoint-down(md) {
8
- @include make-col(6);
9
- }
10
-
11
- @include media-breakpoint-down(sm) {
12
- position: relative;
13
- padding: 0 5px;
14
- margin-bottom: 20px;
15
-
16
- &::after {
17
- content: '';
18
- position: absolute;
19
- bottom: 0;
20
- left: 5px;
21
- width: calc(100% - 10px);
22
- border-bottom: 1px solid #ccc;
23
- }
24
- }
25
-
26
12
  &__link {
27
13
  display: inline-block;
28
14
  width: 100%;
29
15
  height: 100%;
30
16
  padding: 0 15px;
31
-
32
- @include media-breakpoint-down(sm) {
33
- display: inline-block;
34
- padding: 0;
35
- width: 100%;
36
- }
37
- }
38
-
39
- &__picture {
40
- display: flex;
41
17
  }
42
18
 
43
- &__image {
19
+ &__image,
20
+ img {
44
21
  display: inline-block;
45
22
  width: 100%;
46
23
  }
@@ -61,10 +38,6 @@
61
38
  padding: 0 15px;
62
39
  }
63
40
 
64
- &__picture {
65
- display: flex;
66
- }
67
-
68
41
  &__image {
69
42
  display: inline-block;
70
43
  width: 100%;
@@ -94,6 +67,11 @@
94
67
  }
95
68
 
96
69
  @include media-breakpoint-down(md) {
70
+ .card-product-banner,
71
+ .card-bloomreach-media-banner {
72
+ @include make-col(6);
73
+ }
74
+
97
75
  .products-list {
98
76
  .card-sponsor-product,
99
77
  .card-sponsor-banner {
@@ -117,6 +95,28 @@
117
95
  }
118
96
 
119
97
  @include media-breakpoint-down(sm) {
98
+ .card-product-banner,
99
+ .card-bloomreach-media-banner {
100
+ position: relative;
101
+ padding: 0 5px;
102
+ margin-bottom: 20px;
103
+
104
+ &::after {
105
+ content: '';
106
+ position: absolute;
107
+ bottom: 0;
108
+ left: 5px;
109
+ width: calc(100% - 10px);
110
+ border-bottom: 1px solid #ccc;
111
+ }
112
+
113
+ &__link {
114
+ display: inline-block;
115
+ width: 100%;
116
+ padding: 0;
117
+ }
118
+ }
119
+
120
120
  .products-list {
121
121
  .product-card__sponsored {
122
122
  margin-right: auto;
@@ -3,7 +3,7 @@
3
3
  .special-opening-schedule-item.schedule-item {
4
4
  flex-direction: row;
5
5
 
6
- &__reason {
6
+ &__reason {
7
7
  @include make-col(1, 3);
8
8
  font-weight: 400;
9
9
  padding: 0 15px;
@@ -24,7 +24,7 @@
24
24
  white-space: nowrap;
25
25
  }
26
26
 
27
- &__addition-info {
27
+ &__addition-info {
28
28
  font-weight: 500;
29
29
  padding: 0 15px;
30
30
  margin: 5px 0;
@@ -35,10 +35,6 @@
35
35
 
36
36
  .store-locator {
37
37
  .special-opening-schedule-item.schedule-item {
38
- &__reason {
39
- display: none;
40
- }
41
-
42
38
  &__data-time {
43
39
  @include make-col(12);
44
40
  }
@@ -5,10 +5,12 @@
5
5
  flex-direction: column;
6
6
  line-height: 2;
7
7
  padding: 5px 0;
8
+ position: relative;
8
9
 
9
- &__reason {
10
+ &__reason {
10
11
  font-weight: 700;
11
- padding: 0 15px;
12
+ padding: 0 0 0 15px;
13
+ line-height: 24px;
12
14
  }
13
15
 
14
16
  &__data-time {
@@ -17,7 +19,10 @@
17
19
  }
18
20
 
19
21
  &__time {
20
- text-transform: uppercase;
22
+ position: absolute;
23
+ top: 50%;
24
+ transform: translateY(-50%);
25
+ right: 0;
21
26
 
22
27
  @include media-breakpoint-up(sm) {
23
28
  white-space: nowrap;
@@ -28,7 +33,7 @@
28
33
  }
29
34
  }
30
35
 
31
- &__addition-info {
36
+ &__addition-info {
32
37
  font-weight: 500;
33
38
  padding: 0 15px;
34
39
  margin: 5px 0;
@@ -36,3 +41,11 @@
36
41
  font-size: 12px;
37
42
  }
38
43
  }
44
+
45
+ @include media-breakpoint-up(xl) {
46
+ .special-opening-schedule-item.schedule-item {
47
+ &__reason {
48
+ min-width: 106px;
49
+ }
50
+ }
51
+ }
@@ -57,12 +57,6 @@
57
57
  max-width: 0.625rem;
58
58
  }
59
59
 
60
- @include media-breakpoint-down(sm) {
61
- .cards-store-list:not(:nth-child(-n + 4)) {
62
- display: none;
63
- }
64
- }
65
-
66
60
  .pdp-price__quantity-calculator,
67
61
  .calculator-hub-wrapper {
68
62
  min-height: 38px;