wickes-css2 2.98.0-develop.11 → 2.98.0-develop.13
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 +2 -1
- package/build/css/category-main.css +1 -1
- package/build/css/homepage-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/checkout-new.css +1 -1
- package/build/css/pages/page_product-details-v2.css +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/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/checkout.min.js +1 -1
- package/build/js/emulation.min.js +3 -3
- package/build/js/merged-checkout.min.js +1 -1
- package/build/js/my-account.min.js +1 -1
- package/build/js/page/components/order-summary.js +1 -1
- package/build/js/page/tradePro-rewards.js +1 -1
- package/build/js/page/utils/copy-to-clipboard.js +10 -4
- package/build/js/project-list.min.js +18 -6
- package/build/js/tradePro-rewards.min.js +1 -1
- package/package.json +1 -1
- package/src/js/emulation/basket-data.js +3 -3
- package/src/js/page/components/order-summary.js +1 -1
- package/src/js/page/tradePro-rewards.js +1 -1
- package/src/js/page/utils/copy-to-clipboard.js +10 -4
- package/src/scss/components/_billie-modal.scss +10 -0
- package/src/scss/components/_order-summary.scss +7 -48
- package/src/scss/components/_voucher-accordion.scss +56 -0
- package/src/scss/main.scss +1 -0
- package/src/scss/pages/page_product-details-v2.scss +9 -0
- package/src/scss/partials/_main-nav.scss +6 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
!function n(i,r,c){function l(t,e){if(!r[t]){if(!i[t]){var o="function"==typeof require&&require;if(!e&&o)return o(t,!0);if(a)return a(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}o=r[t]={exports:{}},i[t][0].call(o.exports,function(e){return l(i[t][1][e]||e)},o,o.exports,n,i,r,c)}return r[t].exports}for(var a="function"==typeof require&&require,e=0;e<c.length;e++)l(c[e]);return l}({1:[function(e,t,o){"use strict";var n=e("./utils/copy-to-clipboard"),i=e("./utils/helpers"),r=window.Wick||{};r.MyAccount={el:{$clipboardCode:$(".clipboard-code"),appInfo:".app-info",hideAppInfo:"app-info--hide"},clipboardCodes:{tradeProId:{titleEl:".clipboard-code.trade-pro-id .title",subtitleEl:".clipboard-code.trade-pro-id .subtitle",btnCopy:".btn--trade-pro-id"},discountCode:{titleEl:".clipboard-code.discount-code .title",subtitleEl:".clipboard-code.discount-code .subtitle",btnCopy:".btn--discount-code"}},copyCode:function(e){var e=r.MyAccount.clipboardCodes[e],t=e.titleEl,o=e.subtitleEl,e=e.btnCopy,o=$(o).text().trim(),t=$(t).text().trim();(0,n.copyToClipboard)(o,e),r.SnackBar.show({text:"".concat(t," copied to clipboard"),type:r.SnackBar.types.SUCCESS,withCloseButton:!1,autoClose:!0,delayBeforeClose:1500})},init:function(){Object.keys(r.MyAccount.clipboardCodes).forEach(function(e){var t=r.MyAccount.clipboardCodes[e].btnCopy;$(t).on("click",function(){return r.MyAccount.copyCode(e)})}),$(r.MyAccount.el.appInfo).length&&(0,i.isApp)()&&$(r.MyAccount.el.appInfo).addClass(r.MyAccount.el.hideAppInfo)}},$(document).ready(function(){r.MyAccount.el.$clipboardCode.length&&r.MyAccount.init()})},{"./utils/copy-to-clipboard":2,"./utils/helpers":3}],2:[function(e,t,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.copyToClipboard=function(e,t){var o=$("<textarea>").css({position:"absolute",top:0,left:0,opacity:0});$(t).parent().append(
|
|
1
|
+
!function n(i,r,c){function l(t,e){if(!r[t]){if(!i[t]){var o="function"==typeof require&&require;if(!e&&o)return o(t,!0);if(a)return a(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}o=r[t]={exports:{}},i[t][0].call(o.exports,function(e){return l(i[t][1][e]||e)},o,o.exports,n,i,r,c)}return r[t].exports}for(var a="function"==typeof require&&require,e=0;e<c.length;e++)l(c[e]);return l}({1:[function(e,t,o){"use strict";var n=e("./utils/copy-to-clipboard"),i=e("./utils/helpers"),r=window.Wick||{};r.MyAccount={el:{$clipboardCode:$(".clipboard-code"),appInfo:".app-info",hideAppInfo:"app-info--hide"},clipboardCodes:{tradeProId:{titleEl:".clipboard-code.trade-pro-id .title",subtitleEl:".clipboard-code.trade-pro-id .subtitle",btnCopy:".btn--trade-pro-id"},discountCode:{titleEl:".clipboard-code.discount-code .title",subtitleEl:".clipboard-code.discount-code .subtitle",btnCopy:".btn--discount-code"}},copyCode:function(e){var e=r.MyAccount.clipboardCodes[e],t=e.titleEl,o=e.subtitleEl,e=e.btnCopy,o=$(o).text().trim(),t=$(t).text().trim();(0,n.copyToClipboard)(o,e),r.SnackBar.show({text:"".concat(t," copied to clipboard"),type:r.SnackBar.types.SUCCESS,withCloseButton:!1,autoClose:!0,delayBeforeClose:1500})},init:function(){Object.keys(r.MyAccount.clipboardCodes).forEach(function(e){var t=r.MyAccount.clipboardCodes[e].btnCopy;$(t).on("click",function(){return r.MyAccount.copyCode(e)})}),$(r.MyAccount.el.appInfo).length&&(0,i.isApp)()&&$(r.MyAccount.el.appInfo).addClass(r.MyAccount.el.hideAppInfo)}},$(document).ready(function(){r.MyAccount.el.$clipboardCode.length&&r.MyAccount.init()})},{"./utils/copy-to-clipboard":2,"./utils/helpers":3}],2:[function(e,t,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.copyToClipboard=function(e,t){var o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},n=$("<textarea>").css({position:"absolute",top:0,left:0,opacity:0});$(t).parent().append(n),t=o.noUpperCase?e:e.replace(/(^\w|\s\w)/g,function(e){return e.toUpperCase()});o=t.split(" ").filter(function(e){return""!==e}).join(" ");n.val(o),navigator.userAgent.match(/TradeProMobile_iOS|DIYMobile_iOS/i)?function(e){var e=e.get(0),t=e.contentEditable,o=e.readOnly,n=document.createRange(),i=window.getSelection();e.contentEditable=!0,e.readOnly=!1,n.selectNodeContents(e),i.removeAllRanges(),i.addRange(n),e.setSelectionRange(0,999999),e.contentEditable=t,e.readOnly=o}(n):navigator.userAgent.match(/ipad|ipod|iphone/i)?(n.select(),n[0].setSelectionRange(0,999999)):n.select();document.execCommand("copy"),n.remove()}},{}],3:[function(e,t,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.countLetters=function(e){e=e.match(/[a-zA-Z]/g);return e?e.length:0},o.createImageElements=function(e,t){return e.map(function(e){return $("<img>").attr("src",e).attr("alt",t)})},o.highlightCharacter=function(e,t,o){return e.includes(t)?(t=new RegExp("\\".concat(t,"+"),"g"),o='<span class="'.concat(o,'">$&</span>'),e.replace(t,o)):e},o.isApp=function(){return navigator.userAgent.match(/TradeProMobile_iOS|TradeProMobile_Android|DIYMobile_iOS|DIYMobile_Android|DIYApp_Guest_Mobile_iOS|DIYApp_Guest_Mobile_Android|AGENT_PLACEHOLDER/i)},o.isHasSymbol=function(e,t){return e.includes(t)},o.isKeyboardOpen=function(){var e=window.innerHeight,t=window.visualViewport.height;return e!==t},o.isTouchDevice=function(){return"ontouchstart"in window},o.scrollToElement=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:20,e=$(e);0<e.length&&$("html, body").animate({scrollTop:e.offset().top-t},300)},o.scrollToTop=function(e){e.scrollTop(0)},o.trimFields=function(){Wick.AddressBook.getFieldsConfigurations().forEach(function(e){var t=e.input.val().trim();e.input.val(t)})}},{}]},{},[1]);
|
|
@@ -80,7 +80,7 @@ function calculateFreeDelivery(data) {
|
|
|
80
80
|
$(this).find(osEl.summaryDelivery).before(function () {
|
|
81
81
|
return `
|
|
82
82
|
<div class="checkout-widget__item checkout-widget__item-free">
|
|
83
|
-
<span>
|
|
83
|
+
<span class="checkout-widget__text">
|
|
84
84
|
${data.messageForFreeDelivery}
|
|
85
85
|
</span>
|
|
86
86
|
</div>
|
|
@@ -17,7 +17,7 @@ Wick.TradeProRewards = {
|
|
|
17
17
|
var discountCodeValue = discountCode.val().trim();
|
|
18
18
|
discountCode.removeAttr('disabled').attr('readonly', 'readonly');
|
|
19
19
|
|
|
20
|
-
copyToClipboard(discountCodeValue, e.currentTarget);
|
|
20
|
+
copyToClipboard(discountCodeValue, e.currentTarget, { noUpperCase: true });
|
|
21
21
|
|
|
22
22
|
discountCode.attr('disabled', 'disabled').removeAttr('readonly');
|
|
23
23
|
window.getSelection().removeAllRanges();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function copyToClipboard(copyValue, currentSelector) {
|
|
1
|
+
export function copyToClipboard(copyValue, currentSelector, options = {}) {
|
|
2
2
|
const $temp = $('<textarea>').css({
|
|
3
3
|
position: 'absolute',
|
|
4
4
|
top: 0,
|
|
@@ -8,9 +8,15 @@ export function copyToClipboard(copyValue, currentSelector) {
|
|
|
8
8
|
|
|
9
9
|
$(currentSelector).parent().append($temp);
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
let str;
|
|
12
|
+
if (options.noUpperCase) {
|
|
13
|
+
str = copyValue;
|
|
14
|
+
} else {
|
|
15
|
+
str = copyValue.replace(/(^\w|\s\w)/g, function (m) {
|
|
16
|
+
return m.toUpperCase()
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
14
20
|
const textFiltered = str.split(' ').filter(function (value) {
|
|
15
21
|
return value !== ''
|
|
16
22
|
});
|
|
@@ -2100,6 +2100,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2100
2100
|
});
|
|
2101
2101
|
exports.copyToClipboard = copyToClipboard;
|
|
2102
2102
|
function copyToClipboard(copyValue, currentSelector) {
|
|
2103
|
+
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
2103
2104
|
var $temp = $('<textarea>').css({
|
|
2104
2105
|
position: 'absolute',
|
|
2105
2106
|
top: 0,
|
|
@@ -2107,9 +2108,14 @@ function copyToClipboard(copyValue, currentSelector) {
|
|
|
2107
2108
|
opacity: 0
|
|
2108
2109
|
});
|
|
2109
2110
|
$(currentSelector).parent().append($temp);
|
|
2110
|
-
var str
|
|
2111
|
-
|
|
2112
|
-
|
|
2111
|
+
var str;
|
|
2112
|
+
if (options.noUpperCase) {
|
|
2113
|
+
str = copyValue;
|
|
2114
|
+
} else {
|
|
2115
|
+
str = copyValue.replace(/(^\w|\s\w)/g, function (m) {
|
|
2116
|
+
return m.toUpperCase();
|
|
2117
|
+
});
|
|
2118
|
+
}
|
|
2113
2119
|
var textFiltered = str.split(' ').filter(function (value) {
|
|
2114
2120
|
return value !== '';
|
|
2115
2121
|
});
|
|
@@ -2232,6 +2238,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2232
2238
|
});
|
|
2233
2239
|
exports.copyToClipboard = copyToClipboard;
|
|
2234
2240
|
function copyToClipboard(copyValue, currentSelector) {
|
|
2241
|
+
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
2235
2242
|
var $temp = $('<textarea>').css({
|
|
2236
2243
|
position: 'absolute',
|
|
2237
2244
|
top: 0,
|
|
@@ -2239,9 +2246,14 @@ function copyToClipboard(copyValue, currentSelector) {
|
|
|
2239
2246
|
opacity: 0
|
|
2240
2247
|
});
|
|
2241
2248
|
$(currentSelector).parent().append($temp);
|
|
2242
|
-
var str
|
|
2243
|
-
|
|
2244
|
-
|
|
2249
|
+
var str;
|
|
2250
|
+
if (options.noUpperCase) {
|
|
2251
|
+
str = copyValue;
|
|
2252
|
+
} else {
|
|
2253
|
+
str = copyValue.replace(/(^\w|\s\w)/g, function (m) {
|
|
2254
|
+
return m.toUpperCase();
|
|
2255
|
+
});
|
|
2256
|
+
}
|
|
2245
2257
|
var textFiltered = str.split(' ').filter(function (value) {
|
|
2246
2258
|
return value !== '';
|
|
2247
2259
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function o(n,a,i){function d(t,e){if(!a[t]){if(!n[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(c)return c(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}r=a[t]={exports:{}},n[t][0].call(r.exports,function(e){return d(n[t][1][e]||e)},r,r.exports,o,n,a,i)}return a[t].exports}for(var c="function"==typeof require&&require,e=0;e<i.length;e++)d(i[e]);return d}({1:[function(e,t,r){"use strict";var o=e("./utils/copy-to-clipboard"),n=window.Wick||{};n.TradeProRewards={el:{$tradeProRewards:$(".page_tradePro-rewards"),buttonSelector:".copy-tradePro-barcode"},message:"Code copied to clipboard",copyToClipboardInit:function(){n.SnackBar.init(),$(n.TradeProRewards.el.buttonSelector).on("click",function(e){e.preventDefault(),e.stopPropagation();var t=$(this).parent().find("input"),r=t.val().trim();return t.removeAttr("disabled").attr("readonly","readonly"),(0,o.copyToClipboard)(r,e.currentTarget),t.attr("disabled","disabled").removeAttr("readonly"),window.getSelection().removeAllRanges(),n.SnackBar.show({text:n.TradeProRewards.message,type:n.SnackBar.types.SUCCESS,withCloseButton:!1,autoClose:!0,delayBeforeClose:3e3}),!1})},init:function(){n.TradeProRewards.copyToClipboardInit()}},$(document).ready(function(){n.TradeProRewards.el.$tradeProRewards.length&&n.TradeProRewards.init()})},{"./utils/copy-to-clipboard":2}],2:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.copyToClipboard=function(e,t){var r=$("<textarea>").css({position:"absolute",top:0,left:0,opacity:0});$(t).parent().append(
|
|
1
|
+
!function o(n,a,i){function d(t,e){if(!a[t]){if(!n[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(c)return c(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}r=a[t]={exports:{}},n[t][0].call(r.exports,function(e){return d(n[t][1][e]||e)},r,r.exports,o,n,a,i)}return a[t].exports}for(var c="function"==typeof require&&require,e=0;e<i.length;e++)d(i[e]);return d}({1:[function(e,t,r){"use strict";var o=e("./utils/copy-to-clipboard"),n=window.Wick||{};n.TradeProRewards={el:{$tradeProRewards:$(".page_tradePro-rewards"),buttonSelector:".copy-tradePro-barcode"},message:"Code copied to clipboard",copyToClipboardInit:function(){n.SnackBar.init(),$(n.TradeProRewards.el.buttonSelector).on("click",function(e){e.preventDefault(),e.stopPropagation();var t=$(this).parent().find("input"),r=t.val().trim();return t.removeAttr("disabled").attr("readonly","readonly"),(0,o.copyToClipboard)(r,e.currentTarget,{noUpperCase:!0}),t.attr("disabled","disabled").removeAttr("readonly"),window.getSelection().removeAllRanges(),n.SnackBar.show({text:n.TradeProRewards.message,type:n.SnackBar.types.SUCCESS,withCloseButton:!1,autoClose:!0,delayBeforeClose:3e3}),!1})},init:function(){n.TradeProRewards.copyToClipboardInit()}},$(document).ready(function(){n.TradeProRewards.el.$tradeProRewards.length&&n.TradeProRewards.init()})},{"./utils/copy-to-clipboard":2}],2:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.copyToClipboard=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},o=$("<textarea>").css({position:"absolute",top:0,left:0,opacity:0});$(t).parent().append(o),t=r.noUpperCase?e:e.replace(/(^\w|\s\w)/g,function(e){return e.toUpperCase()});r=t.split(" ").filter(function(e){return""!==e}).join(" ");o.val(r),navigator.userAgent.match(/TradeProMobile_iOS|DIYMobile_iOS/i)?function(e){var e=e.get(0),t=e.contentEditable,r=e.readOnly,o=document.createRange(),n=window.getSelection();e.contentEditable=!0,e.readOnly=!1,o.selectNodeContents(e),n.removeAllRanges(),n.addRange(o),e.setSelectionRange(0,999999),e.contentEditable=t,e.readOnly=r}(o):navigator.userAgent.match(/ipad|ipod|iphone/i)?(o.select(),o[0].setSelectionRange(0,999999)):o.select();document.execCommand("copy"),o.remove()}},{}]},{},[1]);
|
package/package.json
CHANGED
|
@@ -879,12 +879,12 @@ Wick.BasketData = (function () {
|
|
|
879
879
|
"appliedProductPromotions": [],
|
|
880
880
|
"appliedOrderPromotions": [],
|
|
881
881
|
"promotionsInfo": null,
|
|
882
|
-
"clickAndCollectOnly":
|
|
882
|
+
"clickAndCollectOnly": false,
|
|
883
883
|
"deliveryItemsQuantity": 1,
|
|
884
884
|
"pickupItemsQuantity": 2,
|
|
885
|
-
"freeDelivery":
|
|
885
|
+
"freeDelivery": true,
|
|
886
886
|
"subtotalWithoutCharity": {"value": 19.0, "formattedValue": "£19.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "19.00"},
|
|
887
|
-
"messageForFreeDelivery":
|
|
887
|
+
"messageForFreeDelivery": "Free delivery<i class=\"icon fas fa-check\"></i>",
|
|
888
888
|
"pickupOrderGroups": [
|
|
889
889
|
{
|
|
890
890
|
"entries": [
|
|
@@ -80,7 +80,7 @@ function calculateFreeDelivery(data) {
|
|
|
80
80
|
$(this).find(osEl.summaryDelivery).before(function () {
|
|
81
81
|
return `
|
|
82
82
|
<div class="checkout-widget__item checkout-widget__item-free">
|
|
83
|
-
<span>
|
|
83
|
+
<span class="checkout-widget__text">
|
|
84
84
|
${data.messageForFreeDelivery}
|
|
85
85
|
</span>
|
|
86
86
|
</div>
|
|
@@ -17,7 +17,7 @@ Wick.TradeProRewards = {
|
|
|
17
17
|
var discountCodeValue = discountCode.val().trim();
|
|
18
18
|
discountCode.removeAttr('disabled').attr('readonly', 'readonly');
|
|
19
19
|
|
|
20
|
-
copyToClipboard(discountCodeValue, e.currentTarget);
|
|
20
|
+
copyToClipboard(discountCodeValue, e.currentTarget, { noUpperCase: true });
|
|
21
21
|
|
|
22
22
|
discountCode.attr('disabled', 'disabled').removeAttr('readonly');
|
|
23
23
|
window.getSelection().removeAllRanges();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function copyToClipboard(copyValue, currentSelector) {
|
|
1
|
+
export function copyToClipboard(copyValue, currentSelector, options = {}) {
|
|
2
2
|
const $temp = $('<textarea>').css({
|
|
3
3
|
position: 'absolute',
|
|
4
4
|
top: 0,
|
|
@@ -8,9 +8,15 @@ export function copyToClipboard(copyValue, currentSelector) {
|
|
|
8
8
|
|
|
9
9
|
$(currentSelector).parent().append($temp);
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
let str;
|
|
12
|
+
if (options.noUpperCase) {
|
|
13
|
+
str = copyValue;
|
|
14
|
+
} else {
|
|
15
|
+
str = copyValue.replace(/(^\w|\s\w)/g, function (m) {
|
|
16
|
+
return m.toUpperCase()
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
14
20
|
const textFiltered = str.split(' ').filter(function (value) {
|
|
15
21
|
return value !== ''
|
|
16
22
|
});
|
|
@@ -113,50 +113,6 @@ $ios-notch-offset: 80px !default;
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
.checkout-widget {
|
|
117
|
-
&__voucher-accordion {
|
|
118
|
-
margin-top: 10px;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
&__voucher-toggle {
|
|
122
|
-
margin-bottom: 8px;
|
|
123
|
-
cursor: pointer;
|
|
124
|
-
display: flex;
|
|
125
|
-
justify-content: space-between;
|
|
126
|
-
color: $blue;
|
|
127
|
-
font-size: .875rem;
|
|
128
|
-
|
|
129
|
-
&.collapsed {
|
|
130
|
-
margin-bottom: 0;
|
|
131
|
-
|
|
132
|
-
.checkout-widget__icon {
|
|
133
|
-
transform: rotate(180deg);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
&__icon {
|
|
139
|
-
width: 16px;
|
|
140
|
-
height: 16px;
|
|
141
|
-
display: flex;
|
|
142
|
-
justify-content: center;
|
|
143
|
-
align-items: center;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
&__voucher-section {
|
|
147
|
-
margin-top: 1rem;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
&__voucher-list {
|
|
151
|
-
list-style: none;
|
|
152
|
-
padding: 0;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
&__voucher-value {
|
|
156
|
-
font-weight: bold;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
|
|
160
116
|
.summary__mobile-order.collapsed .summary__icon {
|
|
161
117
|
transform: rotate(0deg);
|
|
162
118
|
}
|
|
@@ -176,11 +132,14 @@ $ios-notch-offset: 80px !default;
|
|
|
176
132
|
}
|
|
177
133
|
|
|
178
134
|
.checkout-widget__item-free {
|
|
135
|
+
line-height: 1.375rem;
|
|
136
|
+
|
|
179
137
|
.icon {
|
|
180
|
-
margin-left:
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
138
|
+
margin-left: 8px;
|
|
139
|
+
vertical-align: middle;
|
|
140
|
+
color: $green;
|
|
141
|
+
width: 1rem;
|
|
142
|
+
height: 1rem;
|
|
184
143
|
}
|
|
185
144
|
}
|
|
186
145
|
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
@import '../helpers/helpers';
|
|
2
|
+
|
|
3
|
+
.checkout-widget {
|
|
4
|
+
&__voucher-accordion {
|
|
5
|
+
margin-top: 10px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&__voucher-toggle {
|
|
9
|
+
margin-bottom: 8px;
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
color: $blue;
|
|
14
|
+
font-size: .875rem;
|
|
15
|
+
|
|
16
|
+
&.collapsed {
|
|
17
|
+
margin-bottom: 0;
|
|
18
|
+
|
|
19
|
+
.checkout-widget__icon {
|
|
20
|
+
transform: rotate(180deg);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&__icon {
|
|
26
|
+
width: 16px;
|
|
27
|
+
height: 16px;
|
|
28
|
+
display: flex;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
align-items: center;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&__voucher-section {
|
|
34
|
+
margin-top: 1rem;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&__voucher-list {
|
|
38
|
+
list-style: none;
|
|
39
|
+
padding: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&__voucher-value {
|
|
43
|
+
font-weight: bold;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.collapsing {
|
|
48
|
+
height: 0;
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
transition: height .3s ease-in-out;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.collapse.show {
|
|
54
|
+
height: auto;
|
|
55
|
+
transition: height .3s ease-in-out;
|
|
56
|
+
}
|
package/src/scss/main.scss
CHANGED
|
@@ -134,6 +134,15 @@
|
|
|
134
134
|
&__main {
|
|
135
135
|
padding-top: 40px;
|
|
136
136
|
|
|
137
|
+
:where(ul, ol) {
|
|
138
|
+
list-style: revert;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
:where(li) {
|
|
142
|
+
display: list-item;
|
|
143
|
+
list-style: inherit;
|
|
144
|
+
}
|
|
145
|
+
|
|
137
146
|
@include media-breakpoint-only(md) {
|
|
138
147
|
padding-top: 35px;
|
|
139
148
|
}
|
|
@@ -299,9 +299,13 @@
|
|
|
299
299
|
}
|
|
300
300
|
|
|
301
301
|
// fix of mobile menu
|
|
302
|
-
.mobile-nav-opened
|
|
302
|
+
body.mobile-nav-opened {
|
|
303
303
|
display: block;
|
|
304
|
-
|
|
304
|
+
|
|
305
|
+
& > img {
|
|
306
|
+
display: block;
|
|
307
|
+
height: 0;
|
|
308
|
+
}
|
|
305
309
|
}
|
|
306
310
|
|
|
307
311
|
@include media-breakpoint-down(md) {
|