wickes-css2 2.117.0-develop.1 → 2.117.0-develop.2

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 (41) hide show
  1. package/build/css/main.css +1 -1
  2. package/build/css/my-account-main-v2.css +1 -1
  3. package/build/css/my-account-main.css +1 -1
  4. package/build/css/pages/page_product_search.css +1 -1
  5. package/build/css/pages/page_store-locator-details.css +1 -1
  6. package/build/css/pages/page_store-locator.css +1 -1
  7. package/build/css/pages/page_ti.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/bloomreach-widget.min.js +1 -1
  14. package/build/js/emulation.min.js +208 -30
  15. package/build/js/page/bloomreach-widget/why-not-add-widget.js +1 -1
  16. package/build/js/page/components/store-locator.js +165 -0
  17. package/build/js/store-locator.min.js +1 -0
  18. package/package.json +1 -1
  19. package/src/components/bloomreach/complete-your-project-skeleton.hbs +1 -1
  20. package/src/components/find-a-store.hbs +48 -32
  21. package/src/js/emulation/bloomreach-widget-loading.js +1 -1
  22. package/src/js/emulation/complete-your-project-loading.js +1 -1
  23. package/src/js/emulation/forms.js +81 -12
  24. package/src/js/emulation/gift-cards.js +1 -0
  25. package/src/js/emulation/store-locator-geo-emulation.js +185 -0
  26. package/src/js/emulation/store-locator-load-more.js +9 -1
  27. package/src/js/page/bloomreach-widget/why-not-add-widget.js +1 -1
  28. package/src/js/page/components/store-locator.js +165 -0
  29. package/src/page_product-details-bloomreach.html +1 -1
  30. package/src/page_product-details-with-why-not-add-single.html +1 -1
  31. package/src/page_store-locator-list.html +13 -13
  32. package/src/page_store-locator.html +12 -9
  33. package/src/scss/components/_account-heading.scss +1 -1
  34. package/src/scss/components/_find-a-store.scss +253 -49
  35. package/src/scss/components/_map.scss +30 -3
  36. package/src/scss/components/_shop-colour.scss +1 -1
  37. package/src/scss/pages/page_product_search.scss +11 -1
  38. package/src/scss/pages/page_store-locator-details.scss +1 -1
  39. package/src/scss/pages/page_store-locator.scss +249 -10
  40. package/src/scss/pages/page_ti.scss +1 -1
  41. package/src/scss/store-locator-main.scss +0 -5
@@ -3,23 +3,22 @@
3
3
 
4
4
  {{#content "body"}}
5
5
  <main class="container">
6
- <h1>Store Locator</h1>
7
-
8
- <button class="btn btn-primary btn_store-near-me">
9
- <span class="btn__text">Find a store near me</span>
10
- </button>
6
+ <div class="store-locator-wrapper">
7
+ <div class="store-locator__content">
8
+ <h1>Store Locator</h1>
9
+ {{> find-a-store data-action="scroll-to-list"}}
10
+ </div>
11
11
 
12
- <div class="row-holder">
13
- <div class="map-container">
14
- <div class="map store-locator-popup__map">
15
- {{> google-map}}
12
+ <div class="row-holder">
13
+ <div class="map-container">
14
+ <div class="map store-locator-popup__map">
15
+ <div class="map__google-map" id="map" style="background: url('https://placehold.co/1200x700?text=Map') no-repeat center/cover"></div>
16
+ </div>
16
17
  </div>
17
18
  </div>
18
19
  </div>
19
20
 
20
- {{> find-a-store data-action="scroll-to-list"}}
21
-
22
- <div class="cards-store-holder">
21
+ <div class="cards-store-holder" id="stores-list">
23
22
  <div class="cards-store-wrapper">
24
23
  <div class="row" id="store-cards">
25
24
  {{#each locators}}
@@ -42,4 +41,5 @@
42
41
  </main>
43
42
  {{/content}}
44
43
  {{/extend}}
45
- <script defer src="./js/store-locator-cards.min.js"></script>
44
+ <script defer src="./js/store-locator.min.js"></script>
45
+ <script defer src="./js/store-locator-cards.min.js"></script>
@@ -2,18 +2,21 @@
2
2
  {{#content "head" mode="append" pageStoreLocator="true"}}{{/content}}
3
3
  {{#content "body"}}
4
4
  <main class="container">
5
- <h1>Store Locator</h1>
6
- <button class="btn btn-primary btn_store-near-me">
7
- <span class="btn__text">Find a store near me</span>
8
- </button>
9
- <div class="row-holder">
10
- <div class="map-container">
11
- <div class="map store-locator-popup__map">
12
- {{> google-map}}
5
+ <div class="store-locator-wrapper">
6
+ <div class="store-locator__content">
7
+ <h1>Store Locator</h1>
8
+ {{> find-a-store data-action = "./page_store-locator-list.html?searched=true#stores-list"}}
9
+ </div>
10
+
11
+ <div class="row-holder">
12
+ <div class="map-container">
13
+ <div class="map store-locator-popup__map">
14
+ <div class="map__google-map" id="map" style="background: url('https://placehold.co/1200x700?text=Map') no-repeat center/cover"></div>
15
+ </div>
13
16
  </div>
14
17
  </div>
15
18
  </div>
16
- {{> find-a-store data-action = "./page_store-locator-list.html#stores-list"}}
17
19
  </main>
18
20
  {{/content}}
19
21
  {{/extend}}
22
+ <script defer src="./js/store-locator.min.js"></script>
@@ -53,7 +53,7 @@
53
53
  @include media-breakpoint-up(md) {
54
54
  @include make-col-ready;
55
55
  display: flex;
56
- align-items: end;
56
+ align-items: flex-end;
57
57
  justify-content: flex-end;
58
58
  }
59
59
 
@@ -1,22 +1,111 @@
1
1
  .locator {
2
2
  &__header-wrapper {
3
- padding-bottom: 40px;
3
+ padding-bottom: 24px;
4
4
 
5
5
  h2 {
6
- margin-bottom: 20px;
6
+ margin-bottom: 16px;
7
+ font-size: 1.125rem;
8
+ font-weight: $headings-font-weight;
9
+ line-height: 24px;
10
+ text-align: left;
7
11
  }
8
12
 
9
13
  p {
10
14
  margin-bottom: 0;
11
15
  font-size: 1rem;
12
- line-height: 1.5rem;
13
- text-align: center;
16
+ line-height: 20px;
17
+ text-align: left;
14
18
  }
15
19
  }
20
+
21
+ &__form-wrapper {
22
+ display: flex;
23
+ flex-direction: column;
24
+ gap: 16px;
25
+ }
26
+
27
+ &__near-me,
28
+ &__open-search {
29
+ border: 0;
30
+ background: transparent;
31
+ color: $blue;
32
+ cursor: pointer;
33
+ display: inline-flex;
34
+ align-items: center;
35
+ justify-content: center;
36
+ gap: 8px;
37
+ padding: 0;
38
+ font-size: 0.875rem;
39
+ font-weight: $btn-font-weight;
40
+ line-height: 22px;
41
+ text-align: center;
42
+
43
+ &:hover {
44
+ color: $blue-dark;
45
+ }
46
+ }
47
+
48
+ &__near-me {
49
+ align-self: flex-start;
50
+ }
51
+
52
+ &__near-me-icon,
53
+ &__open-search-icon {
54
+ display: inline-flex;
55
+ align-items: center;
56
+ justify-content: center;
57
+ width: 24px;
58
+ height: 24px;
59
+ font-size: 1rem;
60
+ }
61
+
62
+ &__divider {
63
+ width: 100%;
64
+ height: 1px;
65
+ background-color: $gray-border;
66
+ }
67
+
68
+ &__select-store {
69
+ display: flex;
70
+ flex-direction: column;
71
+ gap: 16px;
72
+ align-items: stretch;
73
+ width: 100%;
74
+ }
75
+
76
+ .form-row,
77
+ &__select-row {
78
+ padding: 0;
79
+ margin-bottom: 0;
80
+ }
81
+
82
+ &__details-button {
83
+ height: 40px;
84
+ padding-right: 16px;
85
+ padding-left: 16px;
86
+ font-size: 0.875rem;
87
+ font-weight: $btn-font-weight;
88
+ line-height: 22px;
89
+ width: 100%;
90
+ margin-top: 0;
91
+ }
92
+
93
+
94
+ &__open-search {
95
+ display: none;
96
+ width: 100%;
97
+ min-height: 72px;
98
+ background-color: $gray-bg;
99
+ padding: 24px 40px;
100
+ }
16
101
  }
17
102
 
18
103
  .form-locator-wrapper {
19
- // No asterisk for required fields on this page
104
+ margin-left: -15px;
105
+ margin-right: -15px;
106
+ padding: 24px;
107
+ background-color: $gray-bg;
108
+
20
109
  .form-row__label_required::before {
21
110
  content: none;
22
111
  }
@@ -25,85 +114,200 @@
25
114
  .forms-locator {
26
115
  @include make-col(12);
27
116
 
117
+ display: flex;
118
+ flex-direction: column;
119
+ padding: 0;
120
+ margin: 0 auto;
121
+
122
+ .form-locator-list,
123
+ .form-locator {
124
+ margin: 0;
125
+ }
126
+
127
+ .form-row {
128
+ margin-bottom: 0;
129
+ }
130
+
28
131
  .form-row__label,
29
132
  .form-row__field,
30
133
  .form-row__error {
31
134
  @include make-col-ready;
135
+ @include make-col(12);
136
+ @include make-col-offset(0);
32
137
  }
33
138
 
34
- // TODO: delete after adding that control to the elemetns component
35
- .header-search__submit {
36
- right: 30px;
139
+ .form-row__label {
140
+ padding-bottom: 8px;
141
+ margin-bottom: 0;
142
+ font-size: 1rem;
143
+ font-weight: $btn-font-weight;
144
+ line-height: 24px;
37
145
  }
38
146
 
39
- // ie11, edge remove default clear button
40
- // sass-lint:disable no-vendor-prefixes
41
- .form-locator__search-inp::-ms-clear {
42
- display: none;
43
- }
44
- }
147
+ .form-row__field {
148
+ input,
149
+ select {
150
+ height: 40px;
151
+ font-size: 1rem;
152
+ line-height: 24px;
153
+ }
45
154
 
46
- @include media-breakpoint-down(sm) {
47
- .locator {
48
- &__header-wrapper {
49
- padding-bottom: 20px;
155
+ .header-search__submit {
156
+ right: 31px;
157
+ color: $blue;
158
+ font-size: 0.875rem;
159
+ font-weight: $btn-font-weight;
160
+ line-height: 22px;
161
+ padding: 0;
162
+
163
+ &-label {
164
+ padding-left: 12px;
165
+ }
50
166
 
51
- p {
52
- text-align: left;
53
- font-size: inherit;
167
+ &-icon {
168
+ font-size: 1rem;
54
169
  }
55
170
  }
56
171
  }
57
172
 
58
- .forms-locator {
59
- padding-top: 20px;
173
+ .form-row_validation-error {
174
+ .form-row__field {
175
+ input,
176
+ select {
177
+ border-color: $red;
178
+ }
179
+ }
60
180
 
61
- .form-row__label,
62
- .form-row__field,
63
181
  .form-row__error {
64
- @include make-col(12);
65
- @include make-col-offset(0);
182
+ color: $red;
183
+ font-size: 0.75rem;
184
+ line-height: 20px;
66
185
  }
186
+ }
187
+ }
67
188
 
68
- .form-row__col-btn {
69
- @include make-col(12);
70
- padding: 0;
189
+ .store-locator_geo-off {
190
+ .locator__select-store {
191
+ flex-direction: column;
192
+ }
193
+ }
71
194
 
72
- &:first-child {
73
- @include make-col-offset(0);
195
+ @include media-breakpoint-up(sm) {
196
+ .forms-locator {
197
+ .form-row__field {
198
+ .header-search__submit {
199
+ &-label {
200
+ display: initial !important;
201
+ }
74
202
  }
75
203
  }
76
204
  }
205
+
206
+ .form-locator-wrapper {
207
+ margin: 0;
208
+ }
209
+
210
+ .store-locator_geo-on,
211
+ .store-locator_geo-off {
212
+ .locator__select-store {
213
+ flex-direction: row;
214
+ }
215
+ }
216
+
217
+ .locator__details-button {
218
+ width: auto;
219
+ margin-top: 32px;
220
+ }
77
221
  }
222
+
78
223
  @include media-breakpoint-up(md) {
224
+ .store-locator .container {
225
+ padding-bottom: 72px;
226
+ }
227
+
79
228
  .forms-locator {
80
- .form-row__label,
81
- .form-row__field,
82
- .form-row__error {
83
- @include make-col(10);
84
- @include make-col-offset(1);
85
- }
229
+ max-width: 435px;
230
+ }
231
+
232
+ .form-locator-wrapper {
233
+ padding: 40px;
234
+ }
86
235
 
87
- .form-row__col-btn {
88
- @include make-col(6);
236
+ .locator {
237
+ &__select-row {
238
+ flex-grow: 1;
89
239
  }
90
240
  }
241
+
242
+ .forms-locator {
243
+ max-width: none;
244
+ }
91
245
  }
92
246
 
93
247
  @include media-breakpoint-up(lg) {
248
+ .store-locator_geo-on {
249
+ .locator__select-store {
250
+ flex-direction: column;
251
+ }
252
+ }
253
+
254
+ .locator__select-row {
255
+ flex-grow: initial;
256
+ }
257
+
94
258
  .forms-locator {
95
- .form-row__label,
96
- .form-row__field,
97
- .form-row__error {
98
- @include make-col(6);
99
- @include make-col-offset(3);
259
+ max-width: 435px;
260
+ }
261
+
262
+ .locator {
263
+ &__select-row {
264
+ flex: 1 1 auto;
265
+ min-width: 212px;
266
+ }
267
+
268
+ &__header-wrapper p {
269
+ max-width: none;
270
+ }
271
+
272
+ &__details-button {
273
+ width: 100%;
274
+ margin-top: 0;
275
+ }
276
+ }
277
+
278
+ .store-locator_geo-off {
279
+ .forms-locator {
280
+ max-width: 435px;
281
+ }
282
+
283
+ .locator__details-button {
284
+ width: auto;
285
+ margin-top: 32px;
286
+ }
287
+
288
+ .form_invalid {
289
+ margin-bottom: 24px;
100
290
  }
101
291
  }
102
292
  }
103
293
 
104
- @include media-breakpoint-down(xs) {
105
- .form-locator-wrapper {
106
- margin-left: -15px;
107
- margin-right: -15px;
294
+ @include media-breakpoint-up(xl) {
295
+ .locator {
296
+ &__select-store {
297
+ flex-direction: row;
298
+ }
299
+ }
300
+
301
+ .store-locator_geo-on {
302
+ .locator__select-store {
303
+ flex-direction: row;
304
+ }
305
+ }
306
+
307
+ .locator {
308
+ &__details-button {
309
+ width: auto;
310
+ margin-top: 32px;
311
+ }
108
312
  }
109
313
  }
@@ -173,18 +173,30 @@
173
173
  max-height: 130px !important;
174
174
  min-height: 0 !important;
175
175
  margin-right: 30px;
176
+ overflow: hidden !important;
176
177
 
177
- div div:nth-of-type(2) {
178
+ > div > div:nth-of-type(2) {
179
+ display: flow-root;
180
+ width: max-content;
181
+ max-width: 100%;
178
182
  min-height: 0 !important;
183
+
184
+ > div:first-of-type {
185
+ width: 49% !important;
186
+ box-sizing: border-box;
187
+ }
179
188
  }
180
189
  }
181
190
 
182
191
  &.gm-style-iw-c {
183
192
  min-height: 0 !important;
193
+ min-width: 310px !important;
194
+ max-width: 320px !important;
184
195
  }
185
196
  }
186
197
 
187
- &-ui-hover-effect {
198
+ &-ui-hover-effect,
199
+ button {
188
200
  position: absolute !important;
189
201
  top: 0;
190
202
  right: 0;
@@ -197,4 +209,19 @@
197
209
  outline: 5px auto #005fcc !important;
198
210
  }
199
211
  }
200
- }
212
+ }
213
+
214
+ @media screen and (max-width: 375px) {
215
+ .gm {
216
+ &-style-iw {
217
+ &-d > div > div:nth-of-type(2) {
218
+ min-width: 255px !important;
219
+ }
220
+ }
221
+
222
+ &.gm-style-iw-c {
223
+ min-width: 287px !important;
224
+ max-width: 220px !important;
225
+ }
226
+ }
227
+ }
@@ -77,7 +77,7 @@
77
77
  }
78
78
 
79
79
  &__wrapper {
80
- justify-content: end;
80
+ justify-content: flex-end;
81
81
  }
82
82
  }
83
83
  }
@@ -312,6 +312,16 @@
312
312
  padding-left: 5px;
313
313
  padding-right: 5px;
314
314
  position: relative;
315
+
316
+ &:nth-of-type(1)::before,
317
+ &:nth-of-type(2)::before {
318
+ content: '';
319
+ position: absolute;
320
+ top: -20px;
321
+ left: 5px;
322
+ width: calc(100% - 10px);
323
+ border-bottom: 1px solid $gray;
324
+ }
315
325
  }
316
326
  }
317
327
  }
@@ -334,7 +344,7 @@
334
344
  .sort-products-list {
335
345
  &__section {
336
346
  @include make-col(6);
337
- color: #000000;
347
+ color: $black;
338
348
  border: 0;
339
349
 
340
350
  > .form-row {
@@ -6,7 +6,7 @@
6
6
  @import '../components/store-locator-lookup';
7
7
 
8
8
  h1 {
9
- margin-bottom: 30px;
9
+ margin-bottom: 24px;
10
10
  }
11
11
 
12
12
  .store-locator {