wickes-css2 2.112.0-develop.4 → 2.112.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.
- package/Readme.md +1 -1
- package/build/css/category-main.css +1 -1
- package/build/css/components/global-search.css +1 -1
- package/build/css/homepage-main.css +1 -1
- package/build/css/kitchen-plp-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/pages/page_product-details-critical.css +1 -1
- package/build/css/pages/page_product-details.css +1 -1
- package/build/css/pdp-main-before-combine.css +1 -1
- package/build/css/pdp-main-critical.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/bloomreach-widget.min.js +1 -1
- package/build/js/emulation.min.js +664 -38
- package/build/js/page/basket-v2.js +29 -20
- package/build/js/page/bloomreach-widget/bloomreach-widget.js +250 -0
- package/build/js/page/{bloomreach-widget.js → bloomreach-widget/complete-your-project-widget.js} +205 -359
- package/build/js/page/bloomreach-widget/why-not-add-widget.js +198 -0
- package/package.json +1 -5
- package/src/components/bloomreach/complete-card.hbs +4 -32
- package/src/components/bloomreach/why-not-add-card-skeleton.hbs +14 -0
- package/src/components/bloomreach/why-not-add-card.hbs +73 -0
- package/src/components/bloomreach/why-not-add-content.hbs +41 -0
- package/src/components/bloomreach/why-not-add-skeleton.hbs +9 -0
- package/src/components/bloomreach/why-not-add.hbs +6 -0
- package/src/components/my-account/order.hbs +6 -1
- package/src/components/order-item.hbs +7 -7
- package/src/components/pdp-price-actions.hbs +2 -2
- package/src/components/potential-promotion.hbs +4 -4
- package/src/components/price-badges.hbs +12 -0
- package/src/components/price-block-v2.hbs +5 -12
- package/src/components/reviews-rating.hbs +22 -0
- package/src/components/share-list-modal-without-social-icons.hbs +2 -2
- package/src/components/share-list-modal.hbs +7 -3
- package/src/data/data_shopping-cart-v2.json +46 -2
- package/src/data/data_shopping-cart-with-energy.json +26 -2
- package/src/data/my-account/data_my-order.json +8 -0
- package/src/js/emulation/basket-data.js +312 -0
- package/src/js/emulation/bloomreach-widget-loading.js +2 -2
- package/src/js/emulation/mock.js +309 -0
- package/src/js/emulation/shopping-list.js +40 -49
- package/src/js/emulation/why-not-add-loading.js +11 -0
- package/src/js/emulation/why-not-add.js +28 -0
- package/src/js/page/basket-v2.js +29 -20
- package/src/js/page/bloomreach-widget/bloomreach-widget.js +250 -0
- package/src/js/page/{bloomreach-widget.js → bloomreach-widget/complete-your-project-widget.js} +205 -359
- package/src/js/page/bloomreach-widget/why-not-add-widget.js +198 -0
- package/src/page_product-details-bloomreach.html +1 -1
- package/src/page_product-details-with-global-search-v2.html +2 -1
- package/src/page_product-details-with-why-not-add-single.html +131 -0
- package/src/page_track-my-order-result.html +1 -0
- package/src/scss/components/_tradepro-discount-banner.scss +10 -14
- package/src/scss/components/bloomreach/_bloomreach.scss +3 -0
- package/src/scss/components/bloomreach/_complete-card.scss +0 -38
- package/src/scss/components/bloomreach/_reviews.scss +60 -0
- package/src/scss/components/bloomreach/_why-not-add-card.scss +223 -0
- package/src/scss/components/bloomreach/_why-not-add.scss +143 -0
- package/src/scss/components/global-search.scss +0 -6
- package/src/scss/pages/page_product-details-critical.scss +7 -0
- package/src/scss/pages/page_product-details.scss +7 -0
- package/src/sitemap.html +10 -4
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
.why-not-add-card {
|
|
2
|
+
display: flex;
|
|
3
|
+
gap: 8px;
|
|
4
|
+
padding: 12px;
|
|
5
|
+
border: 1px solid $gray;
|
|
6
|
+
border-radius: 4px;
|
|
7
|
+
background-color: $white;
|
|
8
|
+
|
|
9
|
+
&__image {
|
|
10
|
+
display: block;
|
|
11
|
+
width: 68px;
|
|
12
|
+
height: 68px;
|
|
13
|
+
object-fit: cover;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&__content {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex: 1 1 auto;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
gap: 2px;
|
|
21
|
+
min-width: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&__title {
|
|
25
|
+
@include font-size(14);
|
|
26
|
+
@include line-height(22);
|
|
27
|
+
|
|
28
|
+
display: -webkit-box;
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
color: $blue;
|
|
31
|
+
font-weight: 500;
|
|
32
|
+
text-decoration: none;
|
|
33
|
+
-webkit-box-orient: vertical;
|
|
34
|
+
-webkit-line-clamp: 2;
|
|
35
|
+
|
|
36
|
+
&:hover {
|
|
37
|
+
color: $blue-darker;
|
|
38
|
+
text-decoration: underline;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&__bottom {
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: flex-start;
|
|
45
|
+
justify-content: space-between;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&__price-wrap {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-wrap: wrap;
|
|
51
|
+
align-items: baseline;
|
|
52
|
+
min-width: 0;
|
|
53
|
+
padding-right: 8px;
|
|
54
|
+
gap: 4px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&__price {
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-wrap: wrap;
|
|
60
|
+
align-items: flex-end;
|
|
61
|
+
gap: 5px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&__was-price {
|
|
65
|
+
@include font-size(14);
|
|
66
|
+
@include line-height(15);
|
|
67
|
+
|
|
68
|
+
color: $warm-grey;
|
|
69
|
+
font-weight: 500;
|
|
70
|
+
text-decoration: line-through;
|
|
71
|
+
white-space: nowrap;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&__regular-price,
|
|
75
|
+
&__sale-price {
|
|
76
|
+
@include font-size(18);
|
|
77
|
+
@include line-height(18);
|
|
78
|
+
|
|
79
|
+
color: $blue-dark;
|
|
80
|
+
font-weight: 700;
|
|
81
|
+
white-space: nowrap;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&__sale-price {
|
|
85
|
+
color: $red;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&__vat-label,
|
|
89
|
+
&__delivery {
|
|
90
|
+
@include font-size(12);
|
|
91
|
+
@include line-height(15);
|
|
92
|
+
|
|
93
|
+
color: $squant;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&__vat-label {
|
|
97
|
+
color: $blue-dark;
|
|
98
|
+
font-weight: $headings-font-weight;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&__delivery {
|
|
102
|
+
width: 100%;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.btn {
|
|
106
|
+
display: flex;
|
|
107
|
+
align-self: flex-end;
|
|
108
|
+
align-items: center;
|
|
109
|
+
justify-content: center;
|
|
110
|
+
min-width: 40px;
|
|
111
|
+
width: 40px;
|
|
112
|
+
height: 40px;
|
|
113
|
+
box-sizing: border-box;
|
|
114
|
+
border: 1px solid $green;
|
|
115
|
+
border-radius: 3px;
|
|
116
|
+
background-color: $green;
|
|
117
|
+
color: $white;
|
|
118
|
+
cursor: pointer;
|
|
119
|
+
|
|
120
|
+
&:hover {
|
|
121
|
+
background-color: $white;
|
|
122
|
+
color: $green;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&--loading {
|
|
126
|
+
background-color: $green;
|
|
127
|
+
color: $white;
|
|
128
|
+
pointer-events: none;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&__cta-icon {
|
|
133
|
+
font-size: 18px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&__loader {
|
|
137
|
+
.loader-path {
|
|
138
|
+
stroke: $white;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&--skeleton {
|
|
143
|
+
display: grid;
|
|
144
|
+
grid-template-columns: 68px minmax(0, 1fr) 40px;
|
|
145
|
+
grid-template-rows: 14px 14px 12px 18px 15px;
|
|
146
|
+
gap: 6px 8px;
|
|
147
|
+
align-items: start;
|
|
148
|
+
|
|
149
|
+
.why-not-add-card {
|
|
150
|
+
&__image {
|
|
151
|
+
grid-column: 1;
|
|
152
|
+
grid-row: 1 / 6;
|
|
153
|
+
width: 68px;
|
|
154
|
+
height: 68px;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&__skeleton {
|
|
158
|
+
&-title {
|
|
159
|
+
grid-column: 2 / 4;
|
|
160
|
+
grid-row: 1;
|
|
161
|
+
width: 80%;
|
|
162
|
+
height: 14px;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&-title-short {
|
|
166
|
+
grid-column: 2 / 3;
|
|
167
|
+
grid-row: 2;
|
|
168
|
+
width: 55%;
|
|
169
|
+
height: 14px;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&-reviews {
|
|
173
|
+
grid-column: 2 / 3;
|
|
174
|
+
grid-row: 3;
|
|
175
|
+
width: 82px;
|
|
176
|
+
height: 12px;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&-price {
|
|
180
|
+
grid-column: 2 / 3;
|
|
181
|
+
grid-row: 4;
|
|
182
|
+
width: 64px;
|
|
183
|
+
height: 18px;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&-delivery {
|
|
187
|
+
grid-column: 2 / 3;
|
|
188
|
+
grid-row: 5;
|
|
189
|
+
width: 92px;
|
|
190
|
+
height: 12px;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
&-cta {
|
|
194
|
+
grid-column: 3;
|
|
195
|
+
grid-row: 4 / 6;
|
|
196
|
+
align-self: end;
|
|
197
|
+
width: 40px;
|
|
198
|
+
height: 40px;
|
|
199
|
+
border-radius: 3px;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
@include media-breakpoint-down(sm) {
|
|
207
|
+
.why-not-add-card {
|
|
208
|
+
.btn {
|
|
209
|
+
&:hover {
|
|
210
|
+
background-color: $green;
|
|
211
|
+
color: $white;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
@media screen and (max-width: 375px) {
|
|
218
|
+
.why-not-add-card {
|
|
219
|
+
&__vat-label {
|
|
220
|
+
width: 100%;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
.why-not-add {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 12px;
|
|
5
|
+
padding: 21px 0 12px;
|
|
6
|
+
margin-bottom: -19px;
|
|
7
|
+
|
|
8
|
+
&__header {
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&__title {
|
|
15
|
+
@include font-size(14);
|
|
16
|
+
@include line-height(22);
|
|
17
|
+
|
|
18
|
+
margin: 0;
|
|
19
|
+
font-weight: 700;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&__arrows {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
gap: 30px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&__arrow {
|
|
29
|
+
@include font-size(24);
|
|
30
|
+
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
width: 15px;
|
|
35
|
+
height: 24px;
|
|
36
|
+
padding: 0;
|
|
37
|
+
border: 0;
|
|
38
|
+
background: transparent;
|
|
39
|
+
color: $blue;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
|
|
42
|
+
&--disabled,
|
|
43
|
+
&.swiper-button-disabled {
|
|
44
|
+
color: $warm-grey;
|
|
45
|
+
cursor: default;
|
|
46
|
+
pointer-events: none;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&:focus {
|
|
50
|
+
outline: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:focus-visible {
|
|
54
|
+
outline: 2px solid $blue;
|
|
55
|
+
outline-offset: 3px;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&__slider {
|
|
60
|
+
width: 100%;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&__slide {
|
|
64
|
+
height: auto;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&__pagination {
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
justify-content: center;
|
|
71
|
+
gap: 6px;
|
|
72
|
+
min-height: 6px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&__pagination-item {
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
appearance: none;
|
|
78
|
+
display: block;
|
|
79
|
+
position: relative;
|
|
80
|
+
width: 6px;
|
|
81
|
+
height: 6px;
|
|
82
|
+
padding: 0;
|
|
83
|
+
border: 0;
|
|
84
|
+
border-radius: 8px;
|
|
85
|
+
background-color: $warm-grey;
|
|
86
|
+
line-height: 0;
|
|
87
|
+
transition-property: width, background-color;
|
|
88
|
+
transition-duration: 0.25s;
|
|
89
|
+
transition-timing-function: ease;
|
|
90
|
+
outline: none;
|
|
91
|
+
|
|
92
|
+
&:before {
|
|
93
|
+
content: '';
|
|
94
|
+
position: absolute;
|
|
95
|
+
top: 50%;
|
|
96
|
+
left: 50%;
|
|
97
|
+
transform: translate(-50%, -50%);
|
|
98
|
+
width: 200%;
|
|
99
|
+
height: 200%;
|
|
100
|
+
z-index: $dropdown-z-index;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&--active {
|
|
104
|
+
width: 24px;
|
|
105
|
+
background-color: $blue;
|
|
106
|
+
cursor: default;
|
|
107
|
+
z-index: $label-z-index;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&:focus {
|
|
111
|
+
outline: none;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&:focus-visible {
|
|
115
|
+
outline: 2px solid $blue;
|
|
116
|
+
outline-offset: 2px;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&--skeleton {
|
|
121
|
+
gap: 12px;
|
|
122
|
+
|
|
123
|
+
.why-not-add {
|
|
124
|
+
&__header {
|
|
125
|
+
min-height: 22px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&__skeleton-title {
|
|
129
|
+
width: 112px;
|
|
130
|
+
height: 14px;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&__skeleton-cards {
|
|
134
|
+
width: 100%;
|
|
135
|
+
overflow: hidden;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
[data-why-not-add-widget] + .pdp-price__quantity-calculator {
|
|
142
|
+
margin-top: 20px
|
|
143
|
+
}
|
|
@@ -180,8 +180,15 @@ $gray: #ccc;
|
|
|
180
180
|
text-transform: none;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
+
&__badges-wrapper {
|
|
184
|
+
margin: -20px -20px -10px;
|
|
185
|
+
display: flex;
|
|
186
|
+
justify-content: flex-end;
|
|
187
|
+
}
|
|
188
|
+
|
|
183
189
|
&__badges {
|
|
184
190
|
@include badges;
|
|
191
|
+
position: relative;
|
|
185
192
|
}
|
|
186
193
|
|
|
187
194
|
&__badge {
|
|
@@ -207,8 +207,15 @@
|
|
|
207
207
|
text-transform: none;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
+
&__badges-wrapper {
|
|
211
|
+
margin: -20px -20px -10px;
|
|
212
|
+
display: flex;
|
|
213
|
+
justify-content: flex-end;
|
|
214
|
+
}
|
|
215
|
+
|
|
210
216
|
&__badges {
|
|
211
217
|
@include badges;
|
|
218
|
+
position: relative;
|
|
212
219
|
}
|
|
213
220
|
|
|
214
221
|
&__badge {
|
package/src/sitemap.html
CHANGED
|
@@ -230,30 +230,36 @@
|
|
|
230
230
|
</li>
|
|
231
231
|
<li>
|
|
232
232
|
<span class="page-id">2.27</span>
|
|
233
|
+
<a href="page_product-details-with-why-not-add-single.html" target="_blank">
|
|
234
|
+
Product details page - With Why Not Add single widget
|
|
235
|
+
</a>
|
|
236
|
+
</li>
|
|
237
|
+
<li>
|
|
238
|
+
<span class="page-id">2.28</span>
|
|
233
239
|
<a href="page_product-details-mfe-calculator.html" target="_blank">
|
|
234
240
|
Product details page - With MFE calculator
|
|
235
241
|
</a>
|
|
236
242
|
</li>
|
|
237
243
|
<li>
|
|
238
|
-
<span class="page-id">2.
|
|
244
|
+
<span class="page-id">2.29</span>
|
|
239
245
|
<a href="page_product-details-cnc-success-notification.html" target="_blank">
|
|
240
246
|
Product details page - C&C success notifications
|
|
241
247
|
</a>
|
|
242
248
|
</li>
|
|
243
249
|
<li>
|
|
244
|
-
<span class="page-id">2.
|
|
250
|
+
<span class="page-id">2.30</span>
|
|
245
251
|
<a href="page_product-details-cnc-error-notification.html" target="_blank">
|
|
246
252
|
Product details page - C&C error notifications
|
|
247
253
|
</a>
|
|
248
254
|
</li>
|
|
249
255
|
<li>
|
|
250
|
-
<span class="page-id">2.
|
|
256
|
+
<span class="page-id">2.31</span>
|
|
251
257
|
<a href="page_product-details-cnc-success-notification-vat.html" target="_blank">
|
|
252
258
|
Product details page VAT
|
|
253
259
|
</a>
|
|
254
260
|
</li>
|
|
255
261
|
<li>
|
|
256
|
-
<span class="page-id">2.
|
|
262
|
+
<span class="page-id">2.32</span>
|
|
257
263
|
<a href="page_product-details-paint-mixing.html" target="_blank">
|
|
258
264
|
Product details page - Paint Mixing
|
|
259
265
|
</a>
|