wickes-css2 2.109.0-develop.6 → 2.109.0-develop.7

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 (48) 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 +340 -110
  19. package/build/js/general.bundle.min.js +1 -1
  20. package/build/js/merged-checkout.min.js +1 -1
  21. package/build/js/page/components/store-locator-cards.js +76 -0
  22. package/build/js/pdp.bundle.min.js +1 -1
  23. package/build/js/plp.bundle.min.js +1 -1
  24. package/build/js/project-list.min.js +1 -1
  25. package/build/js/store-locator-cards.min.js +1 -0
  26. package/package.json +1 -1
  27. package/src/components/card-store-locator.hbs +70 -33
  28. package/src/components/card_bloomreach_media_banner.hbs +10 -0
  29. package/src/components/card_sponsor_banner.hbs +1 -1
  30. package/src/data/data_locators.json +441 -135
  31. package/src/data/data_search-results_v2.json +11 -0
  32. package/src/js/components/general/accordion.js +25 -2
  33. package/src/js/emulation/banner-placement-manager.js +235 -34
  34. package/src/js/emulation/gift-cards.js +1 -1
  35. package/src/js/emulation/store-locator-load-more.js +69 -0
  36. package/src/js/page/components/store-locator-cards.js +76 -0
  37. package/src/page_plp_bloomreach.html +81 -0
  38. package/src/page_plp_v2.html +5 -0
  39. package/src/page_store-locator-list.html +18 -28
  40. package/src/scss/components/_card-store-locator.scss +139 -32
  41. package/src/scss/components/card-product-banner.scss +35 -35
  42. package/src/scss/components/special-opening-schedule-v2.scss +2 -6
  43. package/src/scss/components/special-opening-schedule.scss +17 -4
  44. package/src/scss/emulation.scss +0 -6
  45. package/src/scss/pages/page_store-locator.scss +48 -26
  46. package/src/scss/store-locator-main.scss +15 -1
  47. package/src/sitemap.html +1 -0
  48. package/src/js/emulation/store-locator-list.js +0 -19
@@ -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;
@@ -7,16 +7,26 @@ h1 {
7
7
 
8
8
  .cards-store {
9
9
  &-list {
10
- @include make-col-ready;
11
- margin-bottom: 20px;
10
+ padding-right: 0;
11
+ padding-left: 0;
12
+ height: auto;
12
13
 
13
14
  &__actions {
14
- margin: 0 auto;
15
+ margin: 24px auto 0;
15
16
  }
16
17
  }
17
18
 
18
19
  &-wrapper {
19
20
  padding-top: 40px;
21
+
22
+ .row {
23
+ display: grid;
24
+ grid-template-columns: 1fr;
25
+ gap: 16px;
26
+ margin-right: 0;
27
+ margin-left: 0;
28
+ align-items: start;
29
+ }
20
30
  }
21
31
  }
22
32
 
@@ -40,10 +50,6 @@ h1 {
40
50
  padding-top: 20px;
41
51
  }
42
52
 
43
- .cards-store-list__actions {
44
- margin: 0 auto;
45
- }
46
-
47
53
  .btn_store-near-me {
48
54
  @include button-full;
49
55
  margin-bottom: 20px;
@@ -52,25 +58,20 @@ h1 {
52
58
  @include media-breakpoint-down(sm) {
53
59
  .cards-store {
54
60
  &-list {
55
- @include make-col-ready;
56
- @include make-col(12);
57
-
58
61
  &__actions {
59
- @include make-col-ready;
60
- @include make-col(12);
62
+ width: 100%;
61
63
 
62
64
  .icon__eye {
63
- svg {
64
- vertical-align: -.45em;
65
- height: 1.375rem;
66
- width: 1.3125rem;
65
+ svg,
66
+ i {
67
+ vertical-align: -0.15em;
67
68
  margin-right: 5px;
68
69
  }
69
70
  }
70
71
  }
71
72
  }
72
73
 
73
- &-list_open .cards-store-list:not(:nth-child(-n+3)) {
74
+ &-list_open .cards-store-list:not(:nth-child(-n + 3)) {
74
75
  display: block;
75
76
  }
76
77
  }
@@ -92,18 +93,28 @@ h1 {
92
93
  }
93
94
  }
94
95
 
95
- @include media-breakpoint-up(md) {
96
+ @include media-breakpoint-up(sm) {
96
97
  .cards-store {
97
- &-list {
98
- @include make-col-ready;
99
- @include make-col(4);
98
+ &-wrapper {
99
+ .row {
100
+ grid-template-columns: repeat(2, 1fr);
101
+ }
102
+ }
100
103
 
101
- &__actions {
102
- display: none;
104
+ &-list__actions {
105
+ margin: 24px 0 0;
106
+ display: flex;
107
+ justify-content: center;
108
+
109
+ .btn {
110
+ min-width: 148px;
111
+ width: auto;
103
112
  }
104
113
  }
105
114
  }
115
+ }
106
116
 
117
+ @include media-breakpoint-up(md) {
107
118
  .btn_store-near-me {
108
119
  display: none;
109
120
  }
@@ -111,9 +122,20 @@ h1 {
111
122
 
112
123
  @include media-breakpoint-up(lg) {
113
124
  .cards-store {
114
- &-list {
115
- @include make-col-ready;
116
- @include make-col(3);
125
+ &-wrapper {
126
+ .row {
127
+ grid-template-columns: repeat(3, 1fr);
128
+ }
129
+ }
130
+ }
131
+ }
132
+
133
+ @include media-breakpoint-up(xl) {
134
+ .cards-store {
135
+ &-wrapper {
136
+ .row {
137
+ grid-template-columns: repeat(4, 1fr);
138
+ }
117
139
  }
118
140
  }
119
141
  }
@@ -21,9 +21,20 @@
21
21
  @import 'components/special-opening-schedule-v2';
22
22
  @import 'pages/page_store-locator';
23
23
  @import 'pages/page_store-locator-details';
24
- @import 'components/pagination';
24
+ @import 'components/loader';
25
+ // Loader
26
+
27
+ .loader-wrapper {
28
+ position: fixed;
29
+ }
30
+
31
+ // Main
32
+ main {
33
+ padding-bottom: 72px;
34
+ }
25
35
 
26
36
  //Component card extract start
37
+
27
38
  .card {
28
39
  flex-direction: row;
29
40
  margin-bottom: 30px;
@@ -74,10 +85,12 @@
74
85
  div {
75
86
  font-weight: 100;
76
87
  }
88
+
77
89
  @include media-breakpoint-down(sm) {
78
90
  width: 100%;
79
91
  }
80
92
  }
93
+
81
94
  //Component card extract end
82
95
 
83
96
  //Page store-locator extract start
@@ -89,4 +102,5 @@
89
102
  display: none;
90
103
  }
91
104
  }
105
+
92
106
  //Page store-locator extract end
package/src/sitemap.html CHANGED
@@ -50,6 +50,7 @@
50
50
  <li><span class="page-id">1.19</span><a href="page_homepage-with-chat-bot.html" target="_blank">Homepage - With Chat Bot Icon</a></li>
51
51
  <li><span class="page-id">1.20</span><a href="page_plp-with-paint.html" target="_blank">Products list - With paint swatches</a></li>
52
52
  <li><span class="page-id">1.21</span><a href="page_homepage-with-global-search-v2-vat.html" target="_blank">Homepage - With Content Search V2 VAT</a></li>
53
+ <li><span class="page-id">1.22</span><a href="page_plp_bloomreach.html" target="_blank">Products list Bloomreach</a></li>
53
54
  </ul>
54
55
  <h3>PDP</h3>
55
56
  <ul>
@@ -1,19 +0,0 @@
1
- //TODO: needs refactoring in future, gather tother with range-type.js for common script
2
- var Wick = Wick || {};
3
-
4
- Wick.StoreLocator = (function () {
5
- var $button = $('.store-locator__load-button'),
6
- cardsListOpenClass = 'cards-store-list_open',
7
- $cardsList = $('.cards-store-wrapper'),
8
- $buttons = $cardsList.find($button);
9
-
10
- $buttons.on('click', function () {
11
- if ($cardsList.hasClass(cardsListOpenClass)) {
12
- $('html, body').scrollTop($cardsList.parents('.cards-store-holder').offset().top + 20);
13
- }
14
- $cardsList.toggleClass(cardsListOpenClass);
15
- $buttons.toggle();
16
- });
17
- })();
18
-
19
-