@sc-360-v2/storefront-cms-library 0.4.36 → 0.4.38
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-products-tab.scss +9 -1
- package/dist/builder.js +1 -1
- package/dist/bundleDetails.scss +1 -1
- package/dist/buyForHeaders.scss +1 -1
- package/dist/cart-details.scss +83 -77
- package/dist/confirm-modal.scss +351 -0
- package/dist/countdown.scss +122 -10
- package/dist/coupon.scss +119 -5
- package/dist/dropdownTemplate.scss +38 -0
- package/dist/embroider-template-1-v2.scss +238 -19
- package/dist/icons.js +1 -1
- package/dist/index.js +1 -1
- package/dist/product-image.scss +4 -0
- package/dist/static-global.scss +88 -0
- package/dist/uom-selector.scss +7 -7
- package/dist/widget.scss +2 -0
- package/package.json +1 -1
package/dist/product-image.scss
CHANGED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "sass:list";
|
|
3
|
+
@use "./functions.scss" as *;
|
|
4
|
+
|
|
5
|
+
// how to use for buttons for theming
|
|
6
|
+
// primary => .thm__btn.btn__sm.primary
|
|
7
|
+
// secondary => .thm__btn.btn__md.secondary
|
|
8
|
+
// tertiary => .thm__btn.btn__lg.tertiary
|
|
9
|
+
|
|
10
|
+
@function getPropertyValueV1($type: "py", $prop: "bg", $state: "dt") {
|
|
11
|
+
$keys: (
|
|
12
|
+
"bg": "--_thm-#{$type}-bs-#{$state}-se-bd-cr",
|
|
13
|
+
"ft": "--_thm-#{$type}-bs-#{$state}-se-tt-cr",
|
|
14
|
+
);
|
|
15
|
+
@return map.get($keys, $prop);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
$data: (
|
|
19
|
+
size: (
|
|
20
|
+
btn__sm: (
|
|
21
|
+
padding: 12px 24px,
|
|
22
|
+
font-size: 14px,
|
|
23
|
+
),
|
|
24
|
+
btn__md: (
|
|
25
|
+
padding: 12px 24px,
|
|
26
|
+
font-size: 14px,
|
|
27
|
+
),
|
|
28
|
+
btn__lg: (
|
|
29
|
+
padding: 12px 24px,
|
|
30
|
+
font-size: 14px,
|
|
31
|
+
),
|
|
32
|
+
),
|
|
33
|
+
commonKeys: (
|
|
34
|
+
primary: "py",
|
|
35
|
+
secondary: "sy",
|
|
36
|
+
tertiary: "ty",
|
|
37
|
+
),
|
|
38
|
+
);
|
|
39
|
+
.thm__btn {
|
|
40
|
+
border-radius: var(--_thm-py-bs-dt-se-br-rs);
|
|
41
|
+
|
|
42
|
+
@each $k1, $k2 in $data {
|
|
43
|
+
@if ($k1 == "size") {
|
|
44
|
+
@each $sizeKey, $sizeValue in $k2 {
|
|
45
|
+
&.#{$sizeKey} {
|
|
46
|
+
@each $propKey, $propValue in $sizeValue {
|
|
47
|
+
#{$propKey}: $propValue;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
@if ($k1 == "commonKeys") {
|
|
53
|
+
@each $typeKey, $typeValue in $k2 {
|
|
54
|
+
&.#{$typeKey} {
|
|
55
|
+
background-color: var(
|
|
56
|
+
--_sf-bg-clr,
|
|
57
|
+
#{prepareMediaVariable(getPropertyValueV1($typeValue, "bg", "dt"))}
|
|
58
|
+
);
|
|
59
|
+
color: var(
|
|
60
|
+
--_sf-ft-clr,
|
|
61
|
+
#{prepareMediaVariable(getPropertyValueV1($typeValue, "ft", "dt"))}
|
|
62
|
+
);
|
|
63
|
+
&:hover {
|
|
64
|
+
--_sf-bg-clr: #{prepareMediaVariable(getPropertyValueV1($typeValue, "bg", "hr"))};
|
|
65
|
+
--_sf-ft-clr: #{prepareMediaVariable(getPropertyValueV1($typeValue, "ft", "hr"))};
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
&:has(svg) {
|
|
72
|
+
gap: 8px;
|
|
73
|
+
}
|
|
74
|
+
// &.danger {
|
|
75
|
+
// background-color: var(--_error-700);
|
|
76
|
+
// color: var(--_base-white);
|
|
77
|
+
// &:hover {
|
|
78
|
+
// @include BgColorLighter(var(--_error-700), 90%);
|
|
79
|
+
// }
|
|
80
|
+
// }
|
|
81
|
+
// &.danger.tertiary {
|
|
82
|
+
// background-color: transparent;
|
|
83
|
+
// color: var(--_error-700);
|
|
84
|
+
// &:hover {
|
|
85
|
+
// @include BgColorLighter(var(--_error-700), 10%);
|
|
86
|
+
// }
|
|
87
|
+
// }
|
|
88
|
+
}
|
package/dist/uom-selector.scss
CHANGED
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
);
|
|
31
31
|
margin: var(--_ctm-mob-lt-mn, var(--_ctm-tab-lt-mn, var(--_ctm-lt-mn)));
|
|
32
32
|
|
|
33
|
-
--_aspect-ratio: calc(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
);
|
|
33
|
+
// --_aspect-ratio: calc(
|
|
34
|
+
// 1 *
|
|
35
|
+
// (
|
|
36
|
+
// var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht))) /
|
|
37
|
+
// var(--_ctm-mob-lt-wh, var(--_ctm-tab-lt-wh, var(--_ctm-lt-wh)))
|
|
38
|
+
// )
|
|
39
|
+
// );
|
|
40
40
|
& > .wrapper {
|
|
41
41
|
width: 100%;
|
|
42
42
|
// height: 100%;
|
package/dist/widget.scss
CHANGED