wickes-css2 2.101.0-develop.3 → 2.101.0-develop.5
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/build/css/main.css +1 -1
- package/build/css/pages/checkout-new.css +1 -1
- package/build/css/pages/checkout.css +1 -1
- package/build/js/basket.min.js +1 -1
- package/build/js/bundle.min.js +1 -1
- package/build/js/checkout.min.js +1 -1
- package/build/js/general.bundle.min.js +1 -1
- package/build/js/merged-checkout.min.js +1 -1
- package/build/js/pdp.bundle.min.js +1 -1
- package/build/js/plp.bundle.min.js +1 -1
- package/build/js/project-list.min.js +1 -1
- package/package.json +1 -1
- package/src/js/components/general/offer-banner.js +10 -44
- package/src/scss/common/_common.scss +8 -3
- package/src/scss/components/_order-summary.scss +0 -84
- package/src/scss/components/_payments-checkout.scss +1 -1
package/package.json
CHANGED
|
@@ -3,19 +3,13 @@ $(document).ready(function () {
|
|
|
3
3
|
var offerBanner = $('.offer-banner')[0],
|
|
4
4
|
offer;
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
'main > div > div > div:nth-child(1) > div > h1',
|
|
8
|
-
'main > div.hybris-class > div > h1:nth-child(1)',
|
|
9
|
-
'main > div.cartMessages',
|
|
10
|
-
'main div.checkout-header',
|
|
11
|
-
'main.my-account',
|
|
12
|
-
'div.new-usp-container',
|
|
13
|
-
'div.breadcrumbs'
|
|
14
|
-
];
|
|
6
|
+
var stickyWrapper = $('.sticky-wrapper')[0];
|
|
15
7
|
|
|
16
|
-
|
|
8
|
+
if (!offerBanner) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
17
11
|
|
|
18
|
-
Wick.
|
|
12
|
+
Wick.applyBottomMarginIfBanner = function () {
|
|
19
13
|
if (!Wick.isTradePro) {
|
|
20
14
|
return;
|
|
21
15
|
}
|
|
@@ -25,34 +19,8 @@ $(document).ready(function () {
|
|
|
25
19
|
}
|
|
26
20
|
|
|
27
21
|
let bannerHeight = $(offerBanner).outerHeight();
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
var containersSelector = targetContainers.join(', ');
|
|
31
|
-
|
|
32
|
-
selectors.forEach(function (sel) {
|
|
33
|
-
var elements = $(sel);
|
|
34
|
-
if (!elements.length) return;
|
|
35
|
-
|
|
36
|
-
elements.each(function () {
|
|
37
|
-
var container = $(this).closest(containersSelector);
|
|
38
|
-
if (container.length) {
|
|
39
|
-
containers.add(container[0]);
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
var hasBreadcrumbs = Array.from(containers).some(el => $(el).is('div.breadcrumbs'));
|
|
45
|
-
|
|
46
|
-
if (hasBreadcrumbs) {
|
|
47
|
-
containers = new Set(
|
|
48
|
-
Array.from(containers).filter(el => $(el).is('div.breadcrumbs'))
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
containers.forEach(function (el) {
|
|
53
|
-
$(el).css('margin-top', bannerHeight + 'px');
|
|
54
|
-
});
|
|
55
|
-
}
|
|
22
|
+
$(stickyWrapper).css('margin-bottom', bannerHeight + 'px');
|
|
23
|
+
};
|
|
56
24
|
|
|
57
25
|
var init = function () {
|
|
58
26
|
offer = new Waypoint.Sticky({
|
|
@@ -77,6 +45,8 @@ $(document).ready(function () {
|
|
|
77
45
|
if (elHeight !== offer.$wrapper.outerHeight(true)) {
|
|
78
46
|
offer.$wrapper.height(elHeight);
|
|
79
47
|
}
|
|
48
|
+
|
|
49
|
+
Wick.applyBottomMarginIfBanner();
|
|
80
50
|
}
|
|
81
51
|
|
|
82
52
|
var bindEvents = function () {
|
|
@@ -85,10 +55,6 @@ $(document).ready(function () {
|
|
|
85
55
|
$(document).on('mobileNav.toggle', toggle);
|
|
86
56
|
};
|
|
87
57
|
|
|
88
|
-
if (!offerBanner) {
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
58
|
// Workaround for sticky banner functionality in IE
|
|
93
59
|
function isIE() {
|
|
94
60
|
var ua = navigator.userAgent;
|
|
@@ -101,7 +67,7 @@ $(document).ready(function () {
|
|
|
101
67
|
bindEvents();
|
|
102
68
|
}
|
|
103
69
|
|
|
104
|
-
Wick.
|
|
70
|
+
Wick.applyBottomMarginIfBanner();
|
|
105
71
|
|
|
106
72
|
return offer;
|
|
107
73
|
})();
|
|
@@ -331,8 +331,13 @@ main {
|
|
|
331
331
|
}
|
|
332
332
|
|
|
333
333
|
@keyframes spin {
|
|
334
|
-
0% {
|
|
335
|
-
|
|
334
|
+
0% {
|
|
335
|
+
transform: rotate(0deg);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
100% {
|
|
339
|
+
transform: rotate(360deg);
|
|
340
|
+
}
|
|
336
341
|
}
|
|
337
342
|
|
|
338
343
|
@include media-breakpoint-down(md) {
|
|
@@ -389,7 +394,7 @@ main {
|
|
|
389
394
|
.product-code {
|
|
390
395
|
@include additional-text;
|
|
391
396
|
|
|
392
|
-
&__empty
|
|
397
|
+
&__empty {
|
|
393
398
|
display: none;
|
|
394
399
|
}
|
|
395
400
|
}
|
|
@@ -373,87 +373,3 @@ $ios-notch-offset: 80px !default;
|
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
|
-
|
|
377
|
-
@include media-breakpoint-down(md) {
|
|
378
|
-
.tp-app {
|
|
379
|
-
&.tp-android,
|
|
380
|
-
&.tp-ios:not(.tp-ios-notch) {
|
|
381
|
-
.summary--mobile {
|
|
382
|
-
.summary__mobile-bar,
|
|
383
|
-
.summary__aside {
|
|
384
|
-
bottom: $android-offset !important;
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
.summary__aside.collapse.show {
|
|
389
|
-
bottom: 177px + $android-offset !important;
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
.summary__aside.collapsing {
|
|
393
|
-
bottom: 177px + $android-offset !important;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
.summary__aside.collapse.show.single-button,
|
|
397
|
-
.summary__aside.collapsing.single-button {
|
|
398
|
-
bottom: 125px + $android-offset !important;
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
&.tp-ios-notch {
|
|
403
|
-
.summary--mobile {
|
|
404
|
-
.summary__mobile-bar,
|
|
405
|
-
.summary__aside {
|
|
406
|
-
bottom: $ios-notch-offset !important;
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
.summary__aside.collapse.show {
|
|
411
|
-
bottom: 177px + $ios-notch-offset !important;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
.summary__aside.collapsing {
|
|
415
|
-
bottom: 177px + $ios-notch-offset !important;
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
.summary__aside.collapse.show.single-button,
|
|
419
|
-
.summary__aside.collapsing.single-button {
|
|
420
|
-
bottom: 125px + $ios-notch-offset !important;
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
@include media-breakpoint-up(sm) {
|
|
427
|
-
.tp-app {
|
|
428
|
-
&.tp-android,
|
|
429
|
-
&.tp-ios:not(.tp-ios-notch) {
|
|
430
|
-
.summary__aside.collapse.show {
|
|
431
|
-
bottom: 182px + $android-offset !important;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
.summary__aside.collapsing {
|
|
435
|
-
bottom: 182px + $android-offset !important;
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
.summary__aside.collapse.show.single-button,
|
|
439
|
-
.summary__aside.collapsing.single-button {
|
|
440
|
-
bottom: 130px + $android-offset !important;
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
&.tp-ios-notch {
|
|
445
|
-
.summary__aside.collapse.show {
|
|
446
|
-
bottom: 182px + $ios-notch-offset !important;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
.summary__aside.collapsing {
|
|
450
|
-
bottom: 182px + $ios-notch-offset !important;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
.summary__aside.collapse.show.single-button,
|
|
454
|
-
.summary__aside.collapsing.single-button {
|
|
455
|
-
bottom: 130px + $ios-notch-offset !important;
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
}
|