@sc-360-v2/storefront-cms-library 0.4.49 → 0.4.51
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/dist/add-existing-form.scss +66 -66
- package/dist/add-order.scss +377 -377
- package/dist/add-products-tab copy.scss +1132 -1132
- package/dist/add-products-tab-details.scss +3818 -0
- package/dist/add-products-tab.scss +142 -3052
- package/dist/allocationDetails.scss +2247 -2247
- package/dist/allocations.scss +1603 -1603
- package/dist/amount-estimator.scss +1083 -1083
- package/dist/animation-control.scss +23 -23
- package/dist/badge.scss +388 -388
- package/dist/brand-basic-elements.scss +292 -292
- package/dist/brand.scss +93 -93
- package/dist/breadcrumbs.scss +802 -802
- package/dist/builder.js +1 -1
- package/dist/bulk-order-pad.scss +677 -677
- package/dist/bulk-variant-picker copy.scss +1121 -1121
- package/dist/bulk-variant-picker.scss +3294 -3294
- package/dist/bundle copy.scss +2805 -2805
- package/dist/bundle.scss +2383 -2383
- package/dist/bundleDetails copy.scss +1431 -1431
- package/dist/bundleDetails.scss +3320 -3285
- package/dist/button copy.scss +271 -271
- package/dist/button.scss +292 -292
- package/dist/buy-for-tab-container.scss +90 -90
- package/dist/buy-for-tab.scss +3 -4
- package/dist/buy-for-tabs-container-item.scss +80 -80
- package/dist/buyForHeaders.scss +6718 -6718
- package/dist/buyForPopup.scss +70 -52
- package/dist/cart-details.scss +3207 -3207
- package/dist/cart-products-sidebar.scss +211 -211
- package/dist/cart-summary.scss +2728 -2728
- package/dist/cart-wrapper.scss +127 -127
- package/dist/cart.scss +269 -269
- package/dist/cartAttributes.scss +935 -935
- package/dist/cartDropdownOverlay.scss +513 -237
- package/dist/cartGrouping.scss +89 -89
- package/dist/category-groups-element.scss +138 -138
- package/dist/category.scss +73 -73
- package/dist/categoryDetails.scss +61 -61
- package/dist/categoryWidget.scss +34 -34
- package/dist/checkbox-radio.scss +124 -124
- package/dist/checkout.scss +6460 -6569
- package/dist/code-temp.scss +58 -58
- package/dist/colorpicker_v2.scss +52 -52
- package/dist/common-element.scss +35 -35
- package/dist/confirm-modal.scss +351 -351
- package/dist/confirmationModal.scss +139 -139
- package/dist/contact-us.scss +105 -105
- package/dist/container.scss +114 -114
- package/dist/countdown.scss +751 -751
- package/dist/coupon.scss +1254 -1254
- package/dist/custom-fonts.scss +100 -100
- package/dist/customization-tree.scss +160 -160
- package/dist/default-dropdown.scss +240 -240
- package/dist/dropdownTemplate.scss +57 -43
- package/dist/editCartItem.scss +111 -111
- package/dist/embed-temp.scss +72 -72
- package/dist/embroider-preview-element.scss +94 -94
- package/dist/embroider-template-1-v2.scss +937 -937
- package/dist/embroider-template-1.scss +482 -482
- package/dist/embroidery.scss +213 -213
- package/dist/employee-bulk-order.scss +4057 -4057
- package/dist/emtpy-templates.scss +165 -165
- package/dist/faq.scss +564 -564
- package/dist/fb-dropdown.scss +125 -125
- package/dist/filter-results.scss +323 -323
- package/dist/filters.scss +1 -1
- package/dist/flex-text-editor.scss +271 -271
- package/dist/form-preview.scss +290 -290
- package/dist/form-zindex-module.scss +24 -24
- package/dist/gallery-slider-temp.scss +1234 -1234
- package/dist/global-styles.scss +86 -86
- package/dist/grid.scss +119 -119
- package/dist/hotspot.scss +397 -397
- package/dist/icon-library.scss +74 -74
- package/dist/icon-list.scss +268 -268
- package/dist/image-for-product.scss +21 -21
- package/dist/image-temp.scss +168 -168
- package/dist/item-stock.scss +87 -87
- package/dist/language-selector.scss +528 -528
- package/dist/layouter-item.scss +89 -89
- package/dist/layouter-pro-item.scss +80 -80
- package/dist/layouter-pro.scss +88 -88
- package/dist/layouter.scss +294 -294
- package/dist/light-box-v2.scss +105 -105
- package/dist/lightbox.scss +78 -78
- package/dist/line.scss +166 -166
- package/dist/loader.scss +37 -37
- package/dist/login.scss +1473 -1473
- package/dist/map.scss +962 -962
- package/dist/marchandiserSets.scss +60 -60
- package/dist/mega-menu-container.scss +99 -99
- package/dist/mega-menu.scss +838 -838
- package/dist/menu-item.scss +19 -19
- package/dist/menu-v2.scss +730 -730
- package/dist/menu.scss +162 -162
- package/dist/modal.scss +2267 -2267
- package/dist/multi-select-dropdown.scss +282 -279
- package/dist/my-templates.scss +463 -463
- package/dist/my-wishlist.scss +17 -17
- package/dist/option-bar.scss +845 -845
- package/dist/order-processing.scss +61 -61
- package/dist/order-status.scss +1856 -1856
- package/dist/overflow-module.scss +63 -63
- package/dist/past-orders.scss +975 -975
- package/dist/payment-methods.scss +289 -289
- package/dist/pickup-locations.scss +1167 -1167
- package/dist/position-module.scss +95 -95
- package/dist/prefix-list.scss +86 -86
- package/dist/product-actions copy.scss +2765 -2765
- package/dist/product-actions.scss +2286 -2286
- package/dist/product-basic-elements.scss +770 -770
- package/dist/product-customizations.scss +149 -149
- package/dist/product-highlights copy.scss +217 -217
- package/dist/product-highlights.scss +311 -311
- package/dist/product-image copy.scss +787 -787
- package/dist/product-image-bundles.scss +1512 -0
- package/dist/product-image.scss +1 -1
- package/dist/product-inventory.scss +1378 -1378
- package/dist/product-options.scss +1144 -1144
- package/dist/product-price.scss +2598 -2598
- package/dist/product-promotions.scss +2759 -2759
- package/dist/product-sizechart.scss +1826 -1826
- package/dist/product.scss +97 -97
- package/dist/productDetails.scss +70 -70
- package/dist/profile.scss +3 -2
- package/dist/quantity-selector.scss +3 -2
- package/dist/quick-links.scss +552 -552
- package/dist/quick-order-pad.scss +237 -237
- package/dist/quota-details.scss +263 -263
- package/dist/quotes.scss +737 -737
- package/dist/repeater copy.scss +635 -635
- package/dist/repeater-embla-controls.scss +6 -3
- package/dist/repeater-grid-toggle.scss +58 -58
- package/dist/repeater-item.scss +90 -90
- package/dist/repeater.scss +915 -915
- package/dist/request-for-quotes.scss +746 -746
- package/dist/responsive-behaviour.scss +29 -29
- package/dist/rfqs.scss +736 -736
- package/dist/scroll.scss +222 -222
- package/dist/search-results-heading.scss +279 -279
- package/dist/search.scss +296 -296
- package/dist/section.scss +2 -1
- package/dist/shareCartSideBar.scss +254 -254
- package/dist/shipping-estimator.scss +41 -41
- package/dist/shipping-payments.scss +2467 -2467
- package/dist/simple-list.scss +259 -259
- package/dist/skeleton.scss +74 -74
- package/dist/social.scss +276 -276
- package/dist/sort.scss +89 -89
- package/dist/spotlight.scss +1663 -1663
- package/dist/stack.scss +129 -129
- package/dist/static-global.scss +167 -0
- package/dist/static-text.scss +52 -52
- package/dist/stockStatus.scss +64 -64
- package/dist/store-locations.scss +1398 -1398
- package/dist/sub-category.scss +74 -74
- package/dist/submit-quote.scss +275 -275
- package/dist/tab-container-item.scss +80 -80
- package/dist/tab-container.scss +89 -89
- package/dist/tab-v2.scss +583 -583
- package/dist/table-common.scss +506 -506
- package/dist/table.scss +685 -685
- package/dist/tabs.scss +395 -395
- package/dist/text-temp-v2.scss +139 -139
- package/dist/text-temp.scss +109 -109
- package/dist/theme-classes.scss +296 -296
- package/dist/toaster.scss +350 -350
- package/dist/toggle-button.scss +32 -32
- package/dist/transform-properties-module.scss +20 -20
- package/dist/types/builder/tools/element-edit/addProductsTab.d.ts +1790 -441
- package/dist/types/builder/tools/element-edit/bundleDetails.d.ts +9 -0
- package/dist/uom-selector.scss +1169 -1169
- package/dist/user-elements copy.scss +1437 -1437
- package/dist/user-elements.scss +2471 -2471
- package/dist/variant-picker.scss +2384 -2384
- package/dist/video.scss +476 -476
- package/dist/volume-pricing copy 2.scss +1468 -1468
- package/dist/volume-pricing copy.scss +1077 -1077
- package/dist/volume-pricing.scss +1175 -1175
- package/dist/widget.scss +148 -148
- package/dist/wishlist-overlay.scss +48 -48
- package/package.json +1 -1
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "sass:list";
|
|
3
|
-
|
|
4
|
-
@use "./functions.scss" as *;
|
|
5
|
-
@use "./prefix-list.scss" as *;
|
|
6
|
-
|
|
7
|
-
$elementDragging: "[data-cms-new-element-dragging-v2='true']";
|
|
8
|
-
$dataResizerTrue: '[data-cms-element-resizer="true"]';
|
|
9
|
-
$activeElementSelector: "[data-has-clicked='true']";
|
|
10
|
-
$editor: '[data-page-id="cms__template__editor"]';
|
|
11
|
-
$var: "--_sf-width-rsp-psn";
|
|
12
|
-
|
|
13
|
-
@function convertListToCommaSeparateString($list) {
|
|
14
|
-
$items: ();
|
|
15
|
-
@each $key, $value in $list {
|
|
16
|
-
$sl: ".#{$value}";
|
|
17
|
-
$items: list.append($items, $sl, comma);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@return $items;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
$position: (
|
|
24
|
-
class: (
|
|
25
|
-
absolute: "flx-abs",
|
|
26
|
-
fixed: "flx-fxd",
|
|
27
|
-
sticky: "flx-stk",
|
|
28
|
-
relative: "flx-rel",
|
|
29
|
-
),
|
|
30
|
-
zIndex: "--_ctm-flex-z-index",
|
|
31
|
-
attributes: (
|
|
32
|
-
horizontal: "data-position-horizonal",
|
|
33
|
-
vertical: "data-position-vertical",
|
|
34
|
-
),
|
|
35
|
-
data: (
|
|
36
|
-
horizontal: (
|
|
37
|
-
right: prepareMediaVariable(--_ctm-flex-psn-hoft, 0px),
|
|
38
|
-
left: prepareMediaVariable(--_ctm-flex-psn-hoft, 0px),
|
|
39
|
-
),
|
|
40
|
-
vertical: (
|
|
41
|
-
top: prepareMediaVariable(--_ctm-flex-psn-voft, 0px),
|
|
42
|
-
bottom: prepareMediaVariable(--_ctm-flex-psn-voft, 0px),
|
|
43
|
-
),
|
|
44
|
-
),
|
|
45
|
-
);
|
|
46
|
-
|
|
47
|
-
@mixin FlexPositionModuleStyles() {
|
|
48
|
-
$cls: map.get($position, class);
|
|
49
|
-
$zIndex: map.get($position, zIndex);
|
|
50
|
-
$attributes: map.get($position, attributes);
|
|
51
|
-
$data: map.get($position, data);
|
|
52
|
-
$pa: map.get($cls, absolute);
|
|
53
|
-
$pr: map.get($cls, relative);
|
|
54
|
-
|
|
55
|
-
:is(#{convertListToCommaSeparateString($cls)}) {
|
|
56
|
-
@each $key, $value in $data {
|
|
57
|
-
@each $key1, $value1 in $value {
|
|
58
|
-
&[#{map.get($attributes, $key)}="#{$key1}"] {
|
|
59
|
-
#{$key1}: #{$value1};
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
// @if(){
|
|
64
|
-
|
|
65
|
-
// }
|
|
66
|
-
// z-index: var(#{$zIndex});
|
|
67
|
-
&:is(.#{$pr}, .#{pa}) {
|
|
68
|
-
&:is(#{$editor} *) {
|
|
69
|
-
&#{$activeElementSelector} {
|
|
70
|
-
z-index: var(#{$zIndex});
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
&:not(#{$editor} *) {
|
|
74
|
-
z-index: var(#{$zIndex});
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
&:not(.#{$pr}, .#{pa}) {
|
|
78
|
-
z-index: var(#{$zIndex});
|
|
79
|
-
}
|
|
80
|
-
@each $key, $value in $cls {
|
|
81
|
-
&.#{$value} {
|
|
82
|
-
&:is(:not(#{$elementDragging}, #{$dataResizerTrue})) {
|
|
83
|
-
position: var(--_p-#{$key}) !important;
|
|
84
|
-
@if ($key == fixed) {
|
|
85
|
-
@include FlexUpdatedPrefixCSSVariable($var);
|
|
86
|
-
width: var(#{$var}, #{prepareMediaVariable(--_ctm-lt-wh)}) !important;
|
|
87
|
-
}
|
|
88
|
-
@if not list.index((sticky, relative), $key) {
|
|
89
|
-
margin: 0px !important;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "sass:list";
|
|
3
|
+
|
|
4
|
+
@use "./functions.scss" as *;
|
|
5
|
+
@use "./prefix-list.scss" as *;
|
|
6
|
+
|
|
7
|
+
$elementDragging: "[data-cms-new-element-dragging-v2='true']";
|
|
8
|
+
$dataResizerTrue: '[data-cms-element-resizer="true"]';
|
|
9
|
+
$activeElementSelector: "[data-has-clicked='true']";
|
|
10
|
+
$editor: '[data-page-id="cms__template__editor"]';
|
|
11
|
+
$var: "--_sf-width-rsp-psn";
|
|
12
|
+
|
|
13
|
+
@function convertListToCommaSeparateString($list) {
|
|
14
|
+
$items: ();
|
|
15
|
+
@each $key, $value in $list {
|
|
16
|
+
$sl: ".#{$value}";
|
|
17
|
+
$items: list.append($items, $sl, comma);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@return $items;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
$position: (
|
|
24
|
+
class: (
|
|
25
|
+
absolute: "flx-abs",
|
|
26
|
+
fixed: "flx-fxd",
|
|
27
|
+
sticky: "flx-stk",
|
|
28
|
+
relative: "flx-rel",
|
|
29
|
+
),
|
|
30
|
+
zIndex: "--_ctm-flex-z-index",
|
|
31
|
+
attributes: (
|
|
32
|
+
horizontal: "data-position-horizonal",
|
|
33
|
+
vertical: "data-position-vertical",
|
|
34
|
+
),
|
|
35
|
+
data: (
|
|
36
|
+
horizontal: (
|
|
37
|
+
right: prepareMediaVariable(--_ctm-flex-psn-hoft, 0px),
|
|
38
|
+
left: prepareMediaVariable(--_ctm-flex-psn-hoft, 0px),
|
|
39
|
+
),
|
|
40
|
+
vertical: (
|
|
41
|
+
top: prepareMediaVariable(--_ctm-flex-psn-voft, 0px),
|
|
42
|
+
bottom: prepareMediaVariable(--_ctm-flex-psn-voft, 0px),
|
|
43
|
+
),
|
|
44
|
+
),
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
@mixin FlexPositionModuleStyles() {
|
|
48
|
+
$cls: map.get($position, class);
|
|
49
|
+
$zIndex: map.get($position, zIndex);
|
|
50
|
+
$attributes: map.get($position, attributes);
|
|
51
|
+
$data: map.get($position, data);
|
|
52
|
+
$pa: map.get($cls, absolute);
|
|
53
|
+
$pr: map.get($cls, relative);
|
|
54
|
+
|
|
55
|
+
:is(#{convertListToCommaSeparateString($cls)}) {
|
|
56
|
+
@each $key, $value in $data {
|
|
57
|
+
@each $key1, $value1 in $value {
|
|
58
|
+
&[#{map.get($attributes, $key)}="#{$key1}"] {
|
|
59
|
+
#{$key1}: #{$value1};
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
// @if(){
|
|
64
|
+
|
|
65
|
+
// }
|
|
66
|
+
// z-index: var(#{$zIndex});
|
|
67
|
+
&:is(.#{$pr}, .#{pa}) {
|
|
68
|
+
&:is(#{$editor} *) {
|
|
69
|
+
&#{$activeElementSelector} {
|
|
70
|
+
z-index: var(#{$zIndex});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
&:not(#{$editor} *) {
|
|
74
|
+
z-index: var(#{$zIndex});
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
&:not(.#{$pr}, .#{pa}) {
|
|
78
|
+
z-index: var(#{$zIndex});
|
|
79
|
+
}
|
|
80
|
+
@each $key, $value in $cls {
|
|
81
|
+
&.#{$value} {
|
|
82
|
+
&:is(:not(#{$elementDragging}, #{$dataResizerTrue})) {
|
|
83
|
+
position: var(--_p-#{$key}) !important;
|
|
84
|
+
@if ($key == fixed) {
|
|
85
|
+
@include FlexUpdatedPrefixCSSVariable($var);
|
|
86
|
+
width: var(#{$var}, #{prepareMediaVariable(--_ctm-lt-wh)}) !important;
|
|
87
|
+
}
|
|
88
|
+
@if not list.index((sticky, relative), $key) {
|
|
89
|
+
margin: 0px !important;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
package/dist/prefix-list.scss
CHANGED
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "sass:list";
|
|
3
|
-
|
|
4
|
-
@use "./functions.scss" as *;
|
|
5
|
-
|
|
6
|
-
$dataElementType: "data-element-type";
|
|
7
|
-
$elementSelector: "[data-div-type='element']";
|
|
8
|
-
$dataLayerElementType: "data-layer-element-type";
|
|
9
|
-
|
|
10
|
-
$prefixList: (
|
|
11
|
-
section: sec,
|
|
12
|
-
grid: gri,
|
|
13
|
-
container: con,
|
|
14
|
-
stack: sta,
|
|
15
|
-
repeater: rep,
|
|
16
|
-
repeater-item: repe,
|
|
17
|
-
product: pro,
|
|
18
|
-
category: cat,
|
|
19
|
-
categoryWidget: cate,
|
|
20
|
-
brand: bran,
|
|
21
|
-
subCategory: subc,
|
|
22
|
-
productDetails: prod,
|
|
23
|
-
categoryDetails: categ,
|
|
24
|
-
lightboxv2: lig,
|
|
25
|
-
layouter: lay,
|
|
26
|
-
layouter-item: layo,
|
|
27
|
-
layouter-pro: layou,
|
|
28
|
-
layouter-pro-item: layout,
|
|
29
|
-
tbs-v2: tbs,
|
|
30
|
-
tbsContainer: tbsco,
|
|
31
|
-
marchandiserSets: march,
|
|
32
|
-
buyForWithTabs: buy,
|
|
33
|
-
buyForTabsContainer: buyFo,
|
|
34
|
-
spotlight: spo,
|
|
35
|
-
categoryGroups: catego,
|
|
36
|
-
mega-menu: meg,
|
|
37
|
-
mgContainer: mgcon,
|
|
38
|
-
cartWrapper: cartw,
|
|
39
|
-
);
|
|
40
|
-
|
|
41
|
-
$VariableTypes: (
|
|
42
|
-
width: "lt-wh",
|
|
43
|
-
maxHeight: "lt-mx-ht",
|
|
44
|
-
transform: "trsnf-vl",
|
|
45
|
-
);
|
|
46
|
-
|
|
47
|
-
@function convertListToCommaSeparateString($list) {
|
|
48
|
-
$items: ();
|
|
49
|
-
@each $key, $value in $list {
|
|
50
|
-
$sl: "[#{$dataElementType}=#{$key}]";
|
|
51
|
-
$items: list.append($items, $sl, comma);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
@return $items;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
@function convertIntoActualVariable($prefix, $type) {
|
|
58
|
-
// $types: (
|
|
59
|
-
// width: "lt-wh",
|
|
60
|
-
// maxHeight: "lt-mx-ht",
|
|
61
|
-
// transform: "trsnf-vl",
|
|
62
|
-
// );
|
|
63
|
-
$suffix: map.get($VariableTypes, $type);
|
|
64
|
-
@return --_ctm-#{$prefix}-#{$suffix};
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
@mixin FlexUpdatedPrefixCSSVariable($var, $isLayer: false, $type: width, $defaultValue: inherit) {
|
|
68
|
-
$selector: "";
|
|
69
|
-
@if ($isLayer == false) {
|
|
70
|
-
$selector: $dataElementType;
|
|
71
|
-
} @else {
|
|
72
|
-
$selector: $dataLayerElementType;
|
|
73
|
-
}
|
|
74
|
-
@each $key, $value in $prefixList {
|
|
75
|
-
&[#{$selector}="#{$key}"] {
|
|
76
|
-
#{$var}: #{prepareMediaVariable(convertIntoActualVariable($value, $type), $defaultValue)};
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
@if ($type != maxHeight) {
|
|
80
|
-
&#{$elementSelector} {
|
|
81
|
-
&:is(:not(#{convertListToCommaSeparateString($prefixList)})) {
|
|
82
|
-
#{$var}: #{prepareMediaVariable(--_ctm-#{map.get($VariableTypes, $type)}, $defaultValue)};
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "sass:list";
|
|
3
|
+
|
|
4
|
+
@use "./functions.scss" as *;
|
|
5
|
+
|
|
6
|
+
$dataElementType: "data-element-type";
|
|
7
|
+
$elementSelector: "[data-div-type='element']";
|
|
8
|
+
$dataLayerElementType: "data-layer-element-type";
|
|
9
|
+
|
|
10
|
+
$prefixList: (
|
|
11
|
+
section: sec,
|
|
12
|
+
grid: gri,
|
|
13
|
+
container: con,
|
|
14
|
+
stack: sta,
|
|
15
|
+
repeater: rep,
|
|
16
|
+
repeater-item: repe,
|
|
17
|
+
product: pro,
|
|
18
|
+
category: cat,
|
|
19
|
+
categoryWidget: cate,
|
|
20
|
+
brand: bran,
|
|
21
|
+
subCategory: subc,
|
|
22
|
+
productDetails: prod,
|
|
23
|
+
categoryDetails: categ,
|
|
24
|
+
lightboxv2: lig,
|
|
25
|
+
layouter: lay,
|
|
26
|
+
layouter-item: layo,
|
|
27
|
+
layouter-pro: layou,
|
|
28
|
+
layouter-pro-item: layout,
|
|
29
|
+
tbs-v2: tbs,
|
|
30
|
+
tbsContainer: tbsco,
|
|
31
|
+
marchandiserSets: march,
|
|
32
|
+
buyForWithTabs: buy,
|
|
33
|
+
buyForTabsContainer: buyFo,
|
|
34
|
+
spotlight: spo,
|
|
35
|
+
categoryGroups: catego,
|
|
36
|
+
mega-menu: meg,
|
|
37
|
+
mgContainer: mgcon,
|
|
38
|
+
cartWrapper: cartw,
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
$VariableTypes: (
|
|
42
|
+
width: "lt-wh",
|
|
43
|
+
maxHeight: "lt-mx-ht",
|
|
44
|
+
transform: "trsnf-vl",
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
@function convertListToCommaSeparateString($list) {
|
|
48
|
+
$items: ();
|
|
49
|
+
@each $key, $value in $list {
|
|
50
|
+
$sl: "[#{$dataElementType}=#{$key}]";
|
|
51
|
+
$items: list.append($items, $sl, comma);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@return $items;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@function convertIntoActualVariable($prefix, $type) {
|
|
58
|
+
// $types: (
|
|
59
|
+
// width: "lt-wh",
|
|
60
|
+
// maxHeight: "lt-mx-ht",
|
|
61
|
+
// transform: "trsnf-vl",
|
|
62
|
+
// );
|
|
63
|
+
$suffix: map.get($VariableTypes, $type);
|
|
64
|
+
@return --_ctm-#{$prefix}-#{$suffix};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@mixin FlexUpdatedPrefixCSSVariable($var, $isLayer: false, $type: width, $defaultValue: inherit) {
|
|
68
|
+
$selector: "";
|
|
69
|
+
@if ($isLayer == false) {
|
|
70
|
+
$selector: $dataElementType;
|
|
71
|
+
} @else {
|
|
72
|
+
$selector: $dataLayerElementType;
|
|
73
|
+
}
|
|
74
|
+
@each $key, $value in $prefixList {
|
|
75
|
+
&[#{$selector}="#{$key}"] {
|
|
76
|
+
#{$var}: #{prepareMediaVariable(convertIntoActualVariable($value, $type), $defaultValue)};
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
@if ($type != maxHeight) {
|
|
80
|
+
&#{$elementSelector} {
|
|
81
|
+
&:is(:not(#{convertListToCommaSeparateString($prefixList)})) {
|
|
82
|
+
#{$var}: #{prepareMediaVariable(--_ctm-#{map.get($VariableTypes, $type)}, $defaultValue)};
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|