wickes-css2 2.112.0-develop.6 → 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/pdp-main-before-combine.css +1 -1
- package/build/css/pdp-main-non-critical.css +1 -1
- package/build/css/pdp-main.css +1 -1
- package/build/js/bloomreach-widget.min.js +1 -1
- package/build/js/emulation.min.js +334 -8
- 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/pdp-price-actions.hbs +2 -2
- package/src/components/price-block-v2.hbs +2 -0
- package/src/components/reviews-rating.hbs +22 -0
- package/src/js/emulation/bloomreach-widget-loading.js +2 -2
- package/src/js/emulation/mock.js +309 -0
- 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/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/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/sitemap.html +10 -4
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
var Wick = window.Wick || {};
|
|
2
|
+
|
|
3
|
+
import { createLoadingButton } from '../utils/create-loading-button';
|
|
4
|
+
|
|
5
|
+
const Handlebars = require('hbsfy/runtime');
|
|
6
|
+
|
|
7
|
+
Handlebars.registerPartial('loader', require('../../../elements/loader.hbs'));
|
|
8
|
+
Handlebars.registerPartial('button', require('../../../components/base/button.hbs'));
|
|
9
|
+
Handlebars.registerPartial(
|
|
10
|
+
'bloomreach/why-not-add',
|
|
11
|
+
require('../../../components/bloomreach/why-not-add.hbs')
|
|
12
|
+
);
|
|
13
|
+
Handlebars.registerPartial(
|
|
14
|
+
'bloomreach/why-not-add-skeleton',
|
|
15
|
+
require('../../../components/bloomreach/why-not-add-skeleton.hbs')
|
|
16
|
+
);
|
|
17
|
+
Handlebars.registerPartial(
|
|
18
|
+
'bloomreach/why-not-add-card-skeleton',
|
|
19
|
+
require('../../../components/bloomreach/why-not-add-card-skeleton.hbs')
|
|
20
|
+
);
|
|
21
|
+
Handlebars.registerPartial(
|
|
22
|
+
'bloomreach/why-not-add-card',
|
|
23
|
+
require('../../../components/bloomreach/why-not-add-card.hbs')
|
|
24
|
+
);
|
|
25
|
+
Handlebars.registerPartial('reviews-rating', require('../../../components/reviews-rating.hbs'));
|
|
26
|
+
|
|
27
|
+
const whyNotAddTemplate = require('../../../components/bloomreach/why-not-add-content.hbs');
|
|
28
|
+
|
|
29
|
+
const WhyNotAddWidget = {
|
|
30
|
+
ADD_TO_CART_EVENT: 'addToCart',
|
|
31
|
+
|
|
32
|
+
products: [],
|
|
33
|
+
sliders: [],
|
|
34
|
+
loadingButton: null,
|
|
35
|
+
|
|
36
|
+
el: {
|
|
37
|
+
cta: '.why-not-add-card__cta',
|
|
38
|
+
next: '[data-why-not-add-next]',
|
|
39
|
+
pagination: '[data-why-not-add-pagination]',
|
|
40
|
+
prev: '[data-why-not-add-prev]',
|
|
41
|
+
root: '[data-why-not-add]',
|
|
42
|
+
slider: '[data-why-not-add-slider]',
|
|
43
|
+
widgetContainer: '[data-why-not-add-widget]',
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
normalizeProducts(payloadData) {
|
|
47
|
+
return Wick.BloomreachWidget.normalizePayload(payloadData)
|
|
48
|
+
.map(function (item) {
|
|
49
|
+
return item.baseProduct || item;
|
|
50
|
+
})
|
|
51
|
+
.slice(0, 5);
|
|
52
|
+
},
|
|
53
|
+
|
|
54
|
+
renderWidget($container, payloadData) {
|
|
55
|
+
const products = WhyNotAddWidget.normalizeProducts(payloadData);
|
|
56
|
+
|
|
57
|
+
if (!products.length) {
|
|
58
|
+
$container.empty().hide();
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
WhyNotAddWidget.products = products;
|
|
63
|
+
|
|
64
|
+
$container
|
|
65
|
+
.html(
|
|
66
|
+
whyNotAddTemplate({
|
|
67
|
+
products: products.map(Wick.BloomreachWidget.getProductRenderData),
|
|
68
|
+
isSingleProduct: products.length === 1,
|
|
69
|
+
})
|
|
70
|
+
)
|
|
71
|
+
.show();
|
|
72
|
+
},
|
|
73
|
+
|
|
74
|
+
destroySliders() {
|
|
75
|
+
WhyNotAddWidget.sliders.forEach(function (slider) {
|
|
76
|
+
if (slider && slider.destroy) {
|
|
77
|
+
slider.destroy(true, true);
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
WhyNotAddWidget.sliders = [];
|
|
82
|
+
},
|
|
83
|
+
|
|
84
|
+
initSliders($root) {
|
|
85
|
+
WhyNotAddWidget.destroySliders();
|
|
86
|
+
|
|
87
|
+
$root.find(WhyNotAddWidget.el.slider).each(function () {
|
|
88
|
+
const $slider = $(this);
|
|
89
|
+
const $widget = $slider.closest(WhyNotAddWidget.el.root);
|
|
90
|
+
const slidesCount = $slider.find('.swiper-slide').length;
|
|
91
|
+
|
|
92
|
+
if (slidesCount <= 1) {
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
const slider = new Swiper(this, {
|
|
97
|
+
roundLengths: true,
|
|
98
|
+
slidesPerView: 1,
|
|
99
|
+
spaceBetween: 12,
|
|
100
|
+
watchOverflow: true,
|
|
101
|
+
navigation: {
|
|
102
|
+
nextEl: $widget.find(WhyNotAddWidget.el.next)[0],
|
|
103
|
+
prevEl: $widget.find(WhyNotAddWidget.el.prev)[0],
|
|
104
|
+
disabledClass: 'why-not-add__arrow--disabled',
|
|
105
|
+
},
|
|
106
|
+
pagination: {
|
|
107
|
+
el: $widget.find(WhyNotAddWidget.el.pagination)[0],
|
|
108
|
+
clickable: true,
|
|
109
|
+
renderBullet(index, className) {
|
|
110
|
+
return `<button class="${className}" type="button" aria-label="Go to slide ${
|
|
111
|
+
index + 1
|
|
112
|
+
}"></button>`;
|
|
113
|
+
},
|
|
114
|
+
bulletClass: 'why-not-add__pagination-item',
|
|
115
|
+
bulletActiveClass: 'why-not-add__pagination-item--active',
|
|
116
|
+
},
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
WhyNotAddWidget.sliders.push(slider);
|
|
120
|
+
});
|
|
121
|
+
},
|
|
122
|
+
bindAddToCart($root) {
|
|
123
|
+
$root.off('click.whyNotAdd', WhyNotAddWidget.el.cta);
|
|
124
|
+
$root.on('click.whyNotAdd', WhyNotAddWidget.el.cta, function (event) {
|
|
125
|
+
event.preventDefault();
|
|
126
|
+
|
|
127
|
+
const $button = $(this);
|
|
128
|
+
const $card = $button.closest('.why-not-add-card');
|
|
129
|
+
const productCode = $card.attr('data-product-code');
|
|
130
|
+
|
|
131
|
+
if (!productCode || WhyNotAddWidget.loadingButton.isLoading($button)) {
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
const payload = {
|
|
136
|
+
productCode,
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
WhyNotAddWidget.loadingButton.start($button);
|
|
140
|
+
|
|
141
|
+
Wick.BloomreachWidget.dispatchWidgetEvent(WhyNotAddWidget.ADD_TO_CART_EVENT, payload)
|
|
142
|
+
.then(function () {
|
|
143
|
+
WhyNotAddWidget.loadingButton.stop($button);
|
|
144
|
+
Wick.MiniBasketSliderFE.isMiniBasketLoaded = false;
|
|
145
|
+
})
|
|
146
|
+
.catch(function () {
|
|
147
|
+
WhyNotAddWidget.loadingButton.stop($button);
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
},
|
|
151
|
+
|
|
152
|
+
bindVatToggle() {
|
|
153
|
+
if (Wick.BloomreachWidget.bindVatToggle) {
|
|
154
|
+
Wick.BloomreachWidget.bindVatToggle('whyNotAddVatToggle');
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
|
|
158
|
+
initRenderedWidget($container) {
|
|
159
|
+
const $root = $container.find(WhyNotAddWidget.el.root);
|
|
160
|
+
|
|
161
|
+
if (!$root.length) {
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
if (!WhyNotAddWidget.loadingButton) {
|
|
166
|
+
WhyNotAddWidget.loadingButton = createLoadingButton({
|
|
167
|
+
text: Wick.BloomreachWidget.el.loadingButtonText,
|
|
168
|
+
loader: Wick.BloomreachWidget.el.loadingButtonLoader,
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
Wick.BloomreachWidget.removeBlankTargets($root);
|
|
173
|
+
|
|
174
|
+
Wick.BloomreachWidget.drawRating($root);
|
|
175
|
+
WhyNotAddWidget.initSliders($root);
|
|
176
|
+
WhyNotAddWidget.bindAddToCart($root);
|
|
177
|
+
WhyNotAddWidget.bindVatToggle();
|
|
178
|
+
Wick.BloomreachWidget.reapplyVatDisplay();
|
|
179
|
+
},
|
|
180
|
+
|
|
181
|
+
init(payloadData) {
|
|
182
|
+
const $containers = $(WhyNotAddWidget.el.widgetContainer);
|
|
183
|
+
|
|
184
|
+
if (!payloadData) {
|
|
185
|
+
$containers.empty().hide();
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
$containers.each(function () {
|
|
190
|
+
const $container = $(this);
|
|
191
|
+
|
|
192
|
+
WhyNotAddWidget.renderWidget($container, payloadData);
|
|
193
|
+
WhyNotAddWidget.initRenderedWidget($container);
|
|
194
|
+
});
|
|
195
|
+
},
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
export default WhyNotAddWidget;
|
|
@@ -70,7 +70,7 @@ switch-vat=true
|
|
|
70
70
|
<div
|
|
71
71
|
class="pdp__widget"
|
|
72
72
|
data-complete-widget
|
|
73
|
-
data-
|
|
73
|
+
data-mock-key="completeYourProject2Recomendations"
|
|
74
74
|
>
|
|
75
75
|
{{> bloomreach/complete-your-project title="Complete your project"}}
|
|
76
76
|
</div>
|
|
@@ -63,6 +63,7 @@ switch-vat=true
|
|
|
63
63
|
sample=true
|
|
64
64
|
cc=true
|
|
65
65
|
delivery=true
|
|
66
|
+
mockDataKey="whyNotAddRecommendations"
|
|
66
67
|
}}
|
|
67
68
|
</div>
|
|
68
69
|
<div class="pdp__description">
|
|
@@ -71,7 +72,7 @@ switch-vat=true
|
|
|
71
72
|
<div
|
|
72
73
|
class="pdp__widget"
|
|
73
74
|
data-complete-widget
|
|
74
|
-
data-
|
|
75
|
+
data-mock-key="completeYourProject3Recomendations"
|
|
75
76
|
>
|
|
76
77
|
{{> bloomreach/complete-your-project title="Complete your project"}}
|
|
77
78
|
</div>
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
{{#extend "base" pageClass="page-product-details" title="Product details page new"
|
|
2
|
+
isDiscount=true
|
|
3
|
+
isSQM=true
|
|
4
|
+
isDescription=true
|
|
5
|
+
isCashback=false
|
|
6
|
+
isSize=true
|
|
7
|
+
isGuide=true
|
|
8
|
+
hourly-delivery=true
|
|
9
|
+
badge-text='15% off'
|
|
10
|
+
badge-color='yellow'
|
|
11
|
+
badge-text-color='gray'
|
|
12
|
+
currentlyInStock=true
|
|
13
|
+
pagePdp=true
|
|
14
|
+
globalSearchV2="true"
|
|
15
|
+
switch-vat=true
|
|
16
|
+
}}
|
|
17
|
+
{{#content "head" mode="append" pagePdp=true}}
|
|
18
|
+
<link type="text/css" rel="stylesheet" href="./css/components/global-search.css">
|
|
19
|
+
{{/content}}
|
|
20
|
+
{{#content "body"}}
|
|
21
|
+
<main class="pdp__main">
|
|
22
|
+
<div class="container">
|
|
23
|
+
<div class="pdp">
|
|
24
|
+
<div class="pdp__title">
|
|
25
|
+
<h1 class="pdp__heading">Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long
|
|
26
|
+
title in two raws
|
|
27
|
+
</h1>
|
|
28
|
+
<div class="pdp__reviews_small">
|
|
29
|
+
<span class="product-code product-code-v2">Product code: <strong id="product-code-val">236334</strong></span>
|
|
30
|
+
<div class="product-card__reviews review-star">
|
|
31
|
+
<div class="product-rating product-rating-v2">
|
|
32
|
+
<div class="rating-bg">
|
|
33
|
+
<i class="fa fa-star" aria-hidden="true"></i>
|
|
34
|
+
<i class="fa fa-star" aria-hidden="true"></i>
|
|
35
|
+
<i class="fa fa-star" aria-hidden="true"></i>
|
|
36
|
+
<i class="fa fa-star" aria-hidden="true"></i>
|
|
37
|
+
<i class="fa fa-star" aria-hidden="true"></i>
|
|
38
|
+
<div class="rating-overlay"
|
|
39
|
+
data-rating="{{#if review-rating}}{{review-rating}}{{else}}0{{/if}}">
|
|
40
|
+
<i class="fa fa-star" aria-hidden="true"></i>
|
|
41
|
+
<i class="fa fa-star" aria-hidden="true"></i>
|
|
42
|
+
<i class="fa fa-star" aria-hidden="true"></i>
|
|
43
|
+
<i class="fa fa-star" aria-hidden="true"></i>
|
|
44
|
+
<i class="fa fa-star" aria-hidden="true"></i>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
<span class="review-star-average review-star-average-v2">(4.6)</span>
|
|
49
|
+
</div>
|
|
50
|
+
<span class="pdp__reviews-link-wrap"><a href="#" data-link="#pdp-reviews" id="open-review">82 reviews</a></span>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
<div class="pdp__gallery">
|
|
55
|
+
{{> gallery-pdp-v2 }}
|
|
56
|
+
</div>
|
|
57
|
+
<div class="pdp__aside">
|
|
58
|
+
{{> price-block-v2
|
|
59
|
+
isProductSaved=false
|
|
60
|
+
isUserLogedOut=true
|
|
61
|
+
install=true
|
|
62
|
+
sample=true
|
|
63
|
+
cc=true
|
|
64
|
+
delivery=true
|
|
65
|
+
mockDataKey="whyNotAddRecommendationsSingle"
|
|
66
|
+
}}
|
|
67
|
+
</div>
|
|
68
|
+
<div class="pdp__description">
|
|
69
|
+
{{> product-main-info-v2 isProductSaved=true}}
|
|
70
|
+
</div>
|
|
71
|
+
<div
|
|
72
|
+
class="pdp__widget"
|
|
73
|
+
data-complete-widget
|
|
74
|
+
data-mock-key="completeYourProject3Recomendations"
|
|
75
|
+
>
|
|
76
|
+
{{> bloomreach/complete-your-project title="Complete your project"}}
|
|
77
|
+
</div>
|
|
78
|
+
{{> fulfilment-accordions }}
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
<div class="container container-info">
|
|
82
|
+
<div class="pdp">
|
|
83
|
+
<div class="pdp__info">
|
|
84
|
+
{{> pdp-info-v2 }}
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
{{> recently-viewed }}
|
|
89
|
+
|
|
90
|
+
{{> similar-products-v2 }}
|
|
91
|
+
|
|
92
|
+
{{> seo-widgets title="More products" }}
|
|
93
|
+
{{> seo-widgets title="Related category" }}
|
|
94
|
+
</main>
|
|
95
|
+
{{/content}}
|
|
96
|
+
{{#content "foot" mode="append"}}
|
|
97
|
+
<script type="text/html" id="mini-basket-popup">
|
|
98
|
+
{{> popover-mini-basket mod="popover-mini-basket_just-added" products=mini-basket.just-added just-added=true}}
|
|
99
|
+
</script>
|
|
100
|
+
<script defer src="./js/page/pdp.js"></script>
|
|
101
|
+
<script defer src="./js/global-search.min.js"></script>
|
|
102
|
+
{{#extend "modal" id="modal-pdp-feedback" title="Feedback Form" fullWidth=true}}
|
|
103
|
+
{{#content "body"}}
|
|
104
|
+
<iframe class="cboxIframe" name="cbox1538824723052"
|
|
105
|
+
src="https://docs.google.com/forms/d/1jHV5b8AazYbPmoTXJBxmyns4AcRhtKnnIC4_K_MFOPU/viewform?entry.1452922942=Wickes+Blue+Slate+Chippings+-+Major+Bag&entry.1885983523=Decorative+Uk+sourced+blue+slate+chippings+are+ideal+for+gardens+and+borders.+This+beautiful+stone+changes+colour+when+wet.&entry.935962220=112777&entry.474385230=1000626184"></iframe>
|
|
106
|
+
{{/content}}
|
|
107
|
+
{{/extend}}
|
|
108
|
+
{{> click-and-collect-modal}}
|
|
109
|
+
{{/content}}
|
|
110
|
+
{{/extend}}
|
|
111
|
+
<!--<script defer src="./js/components/badge-cashback.js"></script>-->
|
|
112
|
+
<script>
|
|
113
|
+
if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1) {
|
|
114
|
+
$(document).ready(function () {
|
|
115
|
+
$('.modal').on('scroll', function () {
|
|
116
|
+
$(':focus').blur();
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
$(document).ready(function () {
|
|
122
|
+
|
|
123
|
+
$('#info-details').toggleClass('accordion_collapsed');
|
|
124
|
+
$('#details-content').css('display', 'block');
|
|
125
|
+
|
|
126
|
+
$('#open-review').on('click', function () {
|
|
127
|
+
$('#info-review').toggleClass('accordion_collapsed');
|
|
128
|
+
$('#review-content').css('display', 'block');
|
|
129
|
+
})
|
|
130
|
+
})
|
|
131
|
+
</script>
|
|
@@ -92,44 +92,6 @@
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
&__reviews {
|
|
96
|
-
display: flex;
|
|
97
|
-
align-items: center;
|
|
98
|
-
font-size: 0.75rem;
|
|
99
|
-
margin-bottom: 8px;
|
|
100
|
-
|
|
101
|
-
&-count {
|
|
102
|
-
display: inline-block;
|
|
103
|
-
margin-left: 6px;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.rating-bg {
|
|
107
|
-
color: $gray;
|
|
108
|
-
position: relative;
|
|
109
|
-
|
|
110
|
-
.fa-star {
|
|
111
|
-
margin-right: 0;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.rating-overlay {
|
|
116
|
-
color: $yellow;
|
|
117
|
-
position: absolute;
|
|
118
|
-
left: 0;
|
|
119
|
-
top: 0;
|
|
120
|
-
display: flex;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.star-overlay {
|
|
124
|
-
display: inline-block;
|
|
125
|
-
overflow: hidden;
|
|
126
|
-
|
|
127
|
-
& + .star-overlay {
|
|
128
|
-
margin-left: 3.3px;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
95
|
&__count-stepper {
|
|
134
96
|
margin-top: 0;
|
|
135
97
|
margin-bottom: 12px;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
.reviews {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
font-size: 0.75rem;
|
|
5
|
+
margin-bottom: 8px;
|
|
6
|
+
|
|
7
|
+
&-count {
|
|
8
|
+
@include font-size(12);
|
|
9
|
+
@include line-height(16);
|
|
10
|
+
color: $warm-grey;
|
|
11
|
+
display: inline-block;
|
|
12
|
+
margin-left: 3px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.rating-bg {
|
|
16
|
+
color: $gray;
|
|
17
|
+
position: relative;
|
|
18
|
+
|
|
19
|
+
.fa-star {
|
|
20
|
+
margin-right: 0;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.rating-overlay {
|
|
25
|
+
color: $yellow;
|
|
26
|
+
position: absolute;
|
|
27
|
+
left: 0;
|
|
28
|
+
top: 0;
|
|
29
|
+
display: flex;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.star-overlay {
|
|
33
|
+
display: inline-block;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
|
|
36
|
+
& + .star-overlay {
|
|
37
|
+
margin-left: 3.3px;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.why-not-add {
|
|
44
|
+
|
|
45
|
+
.reviews {
|
|
46
|
+
margin-bottom: 7px;
|
|
47
|
+
|
|
48
|
+
.rating-bg {
|
|
49
|
+
.fa-star {
|
|
50
|
+
@include font-size(8.4);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.star-overlay {
|
|
55
|
+
& + .star-overlay {
|
|
56
|
+
margin-left: 3px;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -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
|
+
}
|