wickes-css2 2.94.0-develop.2 → 2.94.0-develop.3

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 (61) hide show
  1. package/Readme.md +0 -1
  2. package/build/css/category-main.css +1 -1
  3. package/build/css/homepage-main.css +1 -1
  4. package/build/css/main.css +1 -1
  5. package/build/css/my-account-main-v2.css +1 -1
  6. package/build/css/my-account-main.css +1 -1
  7. package/build/css/pages/my-account.css +1 -1
  8. package/build/css/pages/page_default-store.css +1 -0
  9. package/build/css/pages/page_personal-details.css +1 -1
  10. package/build/css/pages/page_product-details-v2-critical.css +1 -1
  11. package/build/css/pages/page_product-details-v2.css +1 -1
  12. package/build/css/pages/page_shopping-cart-v2.css +1 -1
  13. package/build/css/pdp-main-before-combine.css +1 -1
  14. package/build/css/pdp-main-critical.css +1 -1
  15. package/build/css/pdp-main-non-critical.css +1 -1
  16. package/build/css/pdp-main.css +1 -1
  17. package/build/css/plp-main.css +1 -1
  18. package/build/css/store-locator-main.css +1 -1
  19. package/build/js/account-members.min.js +1 -1
  20. package/build/js/basket.min.js +1 -1
  21. package/build/js/bundle.min.js +1 -1
  22. package/build/js/checkout.min.js +1 -1
  23. package/build/js/default-store.min.js +1 -0
  24. package/build/js/emulation.min.js +99 -3
  25. package/build/js/merged-checkout.min.js +1 -1
  26. package/build/js/page/default-store.js +44 -0
  27. package/build/js/page/personal-details.js +105 -36
  28. package/build/js/personal-details.min.js +1 -1
  29. package/build/js/project-list.min.js +1 -1
  30. package/package.json +1 -1
  31. package/src/components/account-families/actions-bar.hbs +3 -3
  32. package/src/components/default-store/current-store.hbs +60 -0
  33. package/src/components/default-store/list-of-store.hbs +39 -0
  34. package/src/components/default-store/store-form.hbs +29 -0
  35. package/src/components/default-store/store-unavailable.hbs +4 -0
  36. package/src/components/my-account/personal-details-form.hbs +5 -0
  37. package/src/components/store-details.hbs +22 -20
  38. package/src/components/store-preview.hbs +0 -11
  39. package/src/components/user-information-field.hbs +1 -1
  40. package/src/data/data_big-wins-stores.json +0 -22
  41. package/src/data/my-account/data_personal-details.json +36 -11
  42. package/src/data/my-account/page_default-store.json +158 -0
  43. package/src/elements/input.hbs +2 -2
  44. package/src/js/components/leave-event.js +41 -2
  45. package/src/js/emulation/big-wins.js +0 -2
  46. package/src/js/emulation/default-store.js +97 -0
  47. package/src/js/emulation/forms.js +1 -1
  48. package/src/js/page/default-store.js +44 -0
  49. package/src/js/page/personal-details.js +105 -36
  50. package/src/page_default-store-page-empty.html +48 -0
  51. package/src/page_default-store-page.html +55 -0
  52. package/src/page_personal-details-installer.html +17 -7
  53. package/src/page_personal-details.html +15 -7
  54. package/src/scss/components/_big-wins-critical.scss +0 -1
  55. package/src/scss/components/_big-wins.scss +1 -8
  56. package/src/scss/components/_order-item-cc.scss +0 -6
  57. package/src/scss/pages/_my-account_new.scss +1 -12
  58. package/src/scss/pages/page_default-store.scss +633 -0
  59. package/src/scss/pages/page_personal-details.scss +37 -5
  60. package/src/scss/partials/_header.scss +5 -0
  61. package/src/sitemap.html +2 -0
@@ -0,0 +1,633 @@
1
+ @import '../helpers/helpers';
2
+ @import '../components/my-account/mobile-nav';
3
+ @import '../components/big-wins';
4
+
5
+ .default-store {
6
+ margin: 0;
7
+ display: block;
8
+ padding: 0 0 40px;
9
+
10
+ .globalMessages {
11
+ padding-top: 16px;
12
+
13
+ .notification {
14
+ margin-bottom: 8px;
15
+ }
16
+ }
17
+
18
+ &__search {
19
+ order: 2;
20
+ min-height: 458px;
21
+ }
22
+
23
+ &__wrap {
24
+ margin-top: 16px;
25
+ }
26
+
27
+ &__title {
28
+ font-size: 1.625rem;
29
+ font-weight: 500;
30
+ line-height: 2.25rem;
31
+ margin-bottom: 0;
32
+ text-align: left;
33
+ }
34
+
35
+ &__subtitle {
36
+ margin-top: 16px;
37
+ font-size: 1.25rem;
38
+ font-weight: 500;
39
+ line-height: 2rem;
40
+
41
+ &--change {
42
+ margin-top: 24px;
43
+ }
44
+ }
45
+
46
+ .store-unavailable {
47
+ margin-top: 16px;
48
+ background: $ma-white;
49
+ padding: 40px 24px;
50
+ border-radius: 4px;
51
+ display: flex;
52
+ align-items: center;
53
+ justify-content: center;
54
+ flex-direction: column;
55
+ min-height: 305px;
56
+
57
+ &__title {
58
+ font-size: 1.25rem;
59
+ font-weight: 500;
60
+ line-height: 2rem;
61
+ margin-bottom: 0;
62
+ }
63
+
64
+ .icon {
65
+ margin-top: 36px;
66
+ color: $blue-satin;
67
+ font-size: 5rem;
68
+ height: auto;
69
+ }
70
+ }
71
+
72
+ .search-store {
73
+ display: flex;
74
+ align-items: flex-end;
75
+
76
+ &__wrap {
77
+ display: flex;
78
+ width: 100%;
79
+ }
80
+
81
+ &__label {
82
+ font-size: 1rem;
83
+ font-weight: 500;
84
+ line-height: 1.5rem;
85
+ }
86
+
87
+ .form-row {
88
+ padding: 0;
89
+ margin: 0;
90
+ justify-content: flex-start;
91
+ flex-direction: column;
92
+
93
+ &__error {
94
+ padding: 0;
95
+ width: calc(100% - 40px);
96
+ }
97
+ }
98
+
99
+ &__input {
100
+ display: flex;
101
+ align-items: center;
102
+ border-radius: 3px;
103
+ border: 1px solid $gray;
104
+ padding: 7px 8px 7px 16px;
105
+
106
+ .input {
107
+ border: 0;
108
+ width: 100%;
109
+ padding: 0;
110
+ outline: none;
111
+ font-size: 1rem;
112
+ line-height: 1.5rem;
113
+ }
114
+
115
+ .btn--clear {
116
+ padding: 0 6px;
117
+ position: relative;
118
+ top: auto;
119
+ right: auto;
120
+ margin: 0 8px 0 0;
121
+ transform: none;
122
+
123
+ .icon {
124
+ height: auto;
125
+ font-size: 1rem;
126
+ color: $gray-dark;
127
+ }
128
+ }
129
+
130
+ .btn-search {
131
+ padding: 0 4px;
132
+ background: none;
133
+ display: flex;
134
+ align-items: center;
135
+
136
+ .icon {
137
+ color: $blue;
138
+ font-size: 1rem;
139
+ height: auto;
140
+ }
141
+ }
142
+
143
+ &-error {
144
+ @include field-error;
145
+ }
146
+ }
147
+
148
+ .btn--location {
149
+ margin-left: 16px;
150
+ padding: 0 10px;
151
+ display: flex;
152
+ align-items: center;
153
+ justify-content: center;
154
+ min-width: 40px;
155
+ }
156
+ }
157
+
158
+ .list-of-store {
159
+ .bw {
160
+ margin-top: 16px;
161
+ padding: 0;
162
+ border: 0;
163
+
164
+ &_act {
165
+ display: flex;
166
+ grid-gap: 16px;
167
+ margin-top: 16px;
168
+ }
169
+ }
170
+
171
+ .store {
172
+ padding: 16px 8px;
173
+
174
+ &__name {
175
+ font-size: 1rem;
176
+ font-weight: 700;
177
+ line-height: 1.25rem;
178
+ padding-bottom: 0;
179
+ max-width: 100%;
180
+ overflow: hidden;
181
+ text-overflow: ellipsis;
182
+ -webkit-box-orient: vertical;
183
+ display: -webkit-box;
184
+ -webkit-line-clamp: 1;
185
+ white-space: initial;
186
+ }
187
+
188
+ &__act {
189
+ display: none;
190
+ }
191
+
192
+ &__details {
193
+ margin-left: 16px;
194
+ }
195
+
196
+ &__dist {
197
+ width: 64px;
198
+ margin-bottom: 4px;
199
+ }
200
+ }
201
+
202
+ .stock {
203
+ &__list {
204
+ padding: 0;
205
+ margin-bottom: 0;
206
+ }
207
+
208
+ &__item {
209
+ flex-wrap: nowrap;
210
+ }
211
+
212
+ &__radio {
213
+ flex: auto;
214
+ max-width: initial;
215
+ min-width: 24px;
216
+
217
+ label {
218
+ top: 0;
219
+ }
220
+ }
221
+
222
+ &__store {
223
+ flex: 0 1 100%;
224
+ max-width: initial;
225
+ }
226
+ }
227
+
228
+ .s-details {
229
+ padding: 0 15px;
230
+
231
+ &__info {
232
+ padding: 10px 0;
233
+ }
234
+
235
+ &__store {
236
+ padding: 20px 0 10px;
237
+ }
238
+
239
+ &__address {
240
+ overflow: hidden;
241
+ text-overflow: ellipsis;
242
+ -webkit-box-orient: vertical;
243
+ display: -webkit-box;
244
+ -webkit-line-clamp: 1;
245
+ margin-top: 4px;
246
+ font-weight: 400;
247
+ }
248
+
249
+ &__s-name {
250
+ margin-left: 0;
251
+ margin-top: 0;
252
+ }
253
+
254
+ &__phone {
255
+ margin-top: 0;
256
+ }
257
+
258
+ .s-details__address,
259
+ .s-details__postcode,
260
+ .s-details__action,
261
+ .s-details__open {
262
+ margin-top: 10px;
263
+ }
264
+
265
+ .s-details__open_title {
266
+ margin-top: 0;
267
+ margin-bottom: 0;
268
+ }
269
+
270
+ .s-details__open_title {
271
+ padding-top: 20px;
272
+ padding-bottom: 15px;
273
+ }
274
+
275
+ .s-details__table:not(.s-details__table_special) {
276
+ .s-details__table_cell:nth-child(2n+1) {
277
+ width: 35%;
278
+ }
279
+ }
280
+
281
+ .s-details__table_special {
282
+ .s-details__table_cell {
283
+ width: 50%;
284
+ }
285
+ }
286
+
287
+ &__close {
288
+ .fa-angle-right {
289
+ transform: rotate(-180deg);
290
+ }
291
+ }
292
+ }
293
+ }
294
+
295
+ .current-store {
296
+ margin-top: 24px;
297
+ border: 1px solid $gray;
298
+ border-radius: 4px;
299
+ padding: 16px;
300
+
301
+ &__default {
302
+ font-weight: 700;
303
+ margin-bottom: 0;
304
+ }
305
+
306
+ &__name {
307
+ margin-top: 8px;
308
+ margin-bottom: 0;
309
+ font-size: 1.25rem;
310
+ }
311
+
312
+ &__address,
313
+ &__phone,
314
+ &__link {
315
+ margin-bottom: 0;
316
+ margin-top: 8px;
317
+ }
318
+
319
+ &__link {
320
+ display: block;
321
+ text-decoration: none;
322
+ font-size: .875rem;
323
+ font-weight: 500;
324
+ line-height: 1.375rem;
325
+ }
326
+
327
+ &__hours {
328
+ margin-top: 12px;
329
+ border-radius: 4px;
330
+ padding: 16px;
331
+ background: $gray-bg;
332
+
333
+ .title-section {
334
+ margin-bottom: 0;
335
+ font-weight: 500;
336
+ }
337
+
338
+ &-section {
339
+ & + .current-store__hours-section {
340
+ padding-top: 4px;
341
+ }
342
+ }
343
+
344
+ .opening-times,
345
+ .special-times,
346
+ .facilities {
347
+ margin-bottom: 0;
348
+ list-style-type: none;
349
+ padding: 0;
350
+
351
+ li {
352
+ padding-top: 4px;
353
+ }
354
+ }
355
+
356
+ .opening-times,
357
+ .special-times {
358
+ li:last-child {
359
+ padding-bottom: 12px;
360
+ border-bottom: 1px solid $gray;
361
+ margin-bottom: 8px;
362
+ }
363
+ }
364
+
365
+ .opening-times {
366
+ &__item {
367
+ display: flex;
368
+ }
369
+
370
+ &__day {
371
+ width: 35%;
372
+ }
373
+
374
+ &__time {
375
+ text-align: right;
376
+ width: 65%;
377
+ }
378
+ }
379
+
380
+ .special-times {
381
+ &__item {
382
+ display: flex;
383
+ align-items: center;
384
+ }
385
+
386
+ &__name {
387
+ font-weight: 500;
388
+ }
389
+
390
+ &__days {
391
+ display: flex;
392
+ flex-direction: column;
393
+ width: 50%;
394
+ }
395
+
396
+ &__time {
397
+ width: 50%;
398
+ text-align: right;
399
+ }
400
+ }
401
+
402
+ .facilities {
403
+ &__item {
404
+ display: flex;
405
+ }
406
+
407
+ &__icon-container {
408
+ width: 24px;
409
+ height: 24px;
410
+ display: flex;
411
+ align-items: center;
412
+ justify-content: center;
413
+ margin-right: 4px;
414
+ }
415
+
416
+ &__icon {
417
+ font-size: 1rem;
418
+ height: auto;
419
+ }
420
+ }
421
+
422
+ .btn-link {
423
+ padding: 0 6px;
424
+ height: auto;
425
+ margin: 8px auto 0;
426
+ display: flex;
427
+ border: 0;
428
+
429
+ .icon {
430
+ font-size: 1.2rem;
431
+ }
432
+
433
+ &[aria-expanded='true'] {
434
+ .icon {
435
+ transform: rotate(-180deg);
436
+ }
437
+ }
438
+ }
439
+ }
440
+ }
441
+ }
442
+
443
+ @include media-breakpoint-up(sm) {
444
+ .default-store {
445
+ .list-of-store {
446
+ .s-details__info {
447
+ padding-bottom: 0;
448
+ }
449
+
450
+ .bw_act {
451
+ .my-account {
452
+ &_cancel-store {
453
+ max-width: 75px;
454
+ }
455
+
456
+ &_add-store {
457
+ width: auto;
458
+ }
459
+ }
460
+ }
461
+ }
462
+ }
463
+ }
464
+
465
+ @include media-breakpoint-up(md) {
466
+ .default-store {
467
+ padding-bottom: 70px;
468
+ padding-top: 24px;
469
+
470
+ .globalMessages {
471
+ padding-top: 0;
472
+ }
473
+
474
+ &__search {
475
+ order: 0;
476
+ }
477
+
478
+ &__title {
479
+ font-size: 2.125rem;
480
+ line-height: 2.875rem;
481
+ }
482
+
483
+ &__wrap {
484
+ margin-top: 24px;
485
+ }
486
+
487
+ &__subtitle {
488
+ font-size: 1.5rem;
489
+ margin-top: 24px;
490
+ margin-bottom: 24px;
491
+ }
492
+
493
+ .list-of-store {
494
+ .s-details {
495
+ right: auto;
496
+ left: calc(100% + 15px);
497
+ outline: none;
498
+ border: 1px solid $gray;
499
+ border-radius: 4px;
500
+ padding: 20px 15px;
501
+ max-width: 333px;
502
+ height: auto;
503
+ min-height: 100%;
504
+
505
+ &::after {
506
+ content: none;
507
+ }
508
+
509
+ &__store {
510
+ padding-top: 0;
511
+ margin-right: 0;
512
+ }
513
+ }
514
+
515
+ .bw_act {
516
+ margin-top: 24px;
517
+ }
518
+
519
+ .stock__det-open {
520
+ &::after {
521
+ content: none;
522
+ }
523
+ }
524
+ }
525
+
526
+ .current-store {
527
+ margin-top: 0;
528
+
529
+ &__name {
530
+ font-size: 1.5rem;
531
+ margin-top: 12px;
532
+ }
533
+ }
534
+
535
+ .store-unavailable {
536
+ margin-top: 24px;
537
+
538
+ &__title {
539
+ font-size: 1.5rem;
540
+ }
541
+ }
542
+ }
543
+ }
544
+
545
+ @include media-breakpoint-up(lg) {
546
+ .default-store {
547
+ padding-top: 40px;
548
+
549
+ .globalMessages {
550
+ padding-top: 0;
551
+
552
+ .notification {
553
+ margin-bottom: 24px;
554
+ }
555
+ }
556
+
557
+ &__wrap {
558
+ margin-top: 0;
559
+ }
560
+
561
+ .list-of-store .s-details {
562
+ max-width: calc(100% - 30px);
563
+ }
564
+ }
565
+ }
566
+
567
+ @include media-breakpoint-up(xl) {
568
+ .default-store {
569
+ .current-store {
570
+ &__hours {
571
+ display: grid;
572
+ grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
573
+ position: relative;
574
+ grid-gap: 0 30px;
575
+ margin-top: 24px;
576
+
577
+ &-section {
578
+ & + .current-store__hours-section {
579
+ padding-top: 0;
580
+ }
581
+
582
+
583
+ &--special {
584
+ margin-top: 16px;
585
+ grid-column: 1;
586
+ }
587
+
588
+ &--facilities {
589
+ grid-column: 2;
590
+ grid-row: 1 / span 2;
591
+ position: relative;
592
+
593
+ &::after {
594
+ content: '';
595
+ position: absolute;
596
+ height: 100%;
597
+ border: 1px solid $gray;
598
+ top: 0;
599
+ left: -16px;
600
+ }
601
+ }
602
+ }
603
+
604
+ .opening-times,
605
+ .special-times {
606
+ li:last-child {
607
+ border-bottom: 0;
608
+ padding-bottom: 0;
609
+ margin-bottom: 0;
610
+ }
611
+ }
612
+
613
+ .special-times {
614
+ &__time,
615
+ &__day {
616
+ width: auto;
617
+ }
618
+
619
+ &__time {
620
+ flex: 1 0 55%;
621
+ }
622
+ }
623
+
624
+ .btn-link {
625
+ position: absolute;
626
+ top: 8px;
627
+ right: 8px;
628
+ margin-top: 0;
629
+ }
630
+ }
631
+ }
632
+ }
633
+ }
@@ -1,10 +1,28 @@
1
1
  @import '../helpers/helpers';
2
+ @import '../components/notifications';
2
3
 
3
4
  .personal-details {
4
5
  padding-top: 0;
5
6
  padding-bottom: 40px;
6
7
 
8
+ .notification {
9
+ &_link {
10
+ color: $white;
11
+ text-decoration: none;
12
+ padding: 0 5px;
13
+
14
+ &:hover {
15
+ text-decoration: none;
16
+ color: $white;
17
+ }
18
+ }
19
+ }
20
+
7
21
  .globalMessages {
22
+ @include make-container;
23
+ @include make-container-max-widths;
24
+ @include make-col(12);
25
+
8
26
  .notification {
9
27
  margin-bottom: 8px;
10
28
  margin-top: 16px;
@@ -64,8 +82,8 @@
64
82
 
65
83
  &__value {
66
84
  margin-bottom: 0;
67
- padding-top: 9px;
68
- padding-bottom: 9px;
85
+ padding-top: 8px;
86
+ padding-bottom: 8px;
69
87
  font-size: .875rem;
70
88
  font-weight: 400;
71
89
  line-height: 1.375rem;
@@ -108,13 +126,18 @@
108
126
  }
109
127
 
110
128
  &__field {
111
- .tbx:disabled {
129
+ .tbx.disabled {
112
130
  background: $gray-bg;
113
131
  color: $warm-grey;
114
132
  -webkit-text-fill-color: $warm-grey;
133
+ pointer-events: none;
115
134
  }
116
135
  }
117
136
  }
137
+
138
+ input[name='CSRFToken'] {
139
+ display: none;
140
+ }
118
141
  }
119
142
  }
120
143
 
@@ -192,7 +215,7 @@
192
215
  }
193
216
 
194
217
  .user-form {
195
- max-width: 384px;
218
+ max-width: 390px;
196
219
 
197
220
  &__ctas {
198
221
  .btn_full {
@@ -231,9 +254,12 @@
231
254
  .globalMessages {
232
255
  .notification {
233
256
  margin-bottom: 24px;
234
- margin-top: 0;
235
257
  }
236
258
  }
259
+
260
+ .notification_reminder {
261
+ margin-bottom: 16px;
262
+ }
237
263
  }
238
264
  }
239
265
 
@@ -245,5 +271,11 @@
245
271
  &__header {
246
272
  margin-top: 0;
247
273
  }
274
+
275
+ .globalMessages {
276
+ .notification {
277
+ margin-top: 0;
278
+ }
279
+ }
248
280
  }
249
281
  }
@@ -439,8 +439,13 @@
439
439
  &.user_desktop {
440
440
  .user__name {
441
441
  display: flex;
442
+ align-items: center;
442
443
  color: $blue-dark;
443
444
 
445
+ .btn__text {
446
+ display: flex;
447
+ }
448
+
444
449
  .custom-icon {
445
450
  width: 1.125rem;
446
451
  height: auto;