@sc-360-v2/storefront-cms-library 0.1.8 → 0.1.9
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/App.scss +31 -0
- package/dist/amount-estimator.scss +28 -0
- package/dist/builder.js +1 -1
- package/dist/bulk-variant-picker.scss +28 -0
- package/dist/button.scss +4 -2
- package/dist/code-temp.scss +2 -1
- package/dist/countdown.scss +2 -1
- package/dist/editor-core.scss +66 -8
- package/dist/embed-temp.scss +2 -1
- package/dist/faq.scss +7 -1
- package/dist/gallery-slider-temp.scss +230 -66
- package/dist/global.scss +342 -0
- package/dist/hotspot.scss +2 -1
- package/dist/icons.js +1 -1
- package/dist/image-temp.scss +2 -1
- package/dist/index.js +1 -1
- package/dist/map.scss +2 -1
- package/dist/mixin.scss +9 -0
- package/dist/payment-methods.scss +57 -0
- package/dist/pickup-locations.scss +10 -162
- package/dist/product-actions.scss +3 -1
- package/dist/product-basic-elements.scss +329 -0
- package/dist/product-highlights.scss +28 -0
- package/dist/product-image.scss +572 -0
- package/dist/product-inventory.scss +10 -159
- package/dist/product-price.scss +11 -3
- package/dist/product-promotions.scss +45 -0
- package/dist/quantity-selector.scss +265 -0
- package/dist/range-slider.module.scss +85 -0
- package/dist/scroll.scss +2 -1
- package/dist/shipping-estimator.scss +29 -0
- package/dist/social.scss +2 -1
- package/dist/store-locations.scss +13 -162
- package/dist/table.scss +2 -1
- package/dist/text-temp.scss +2 -1
- package/dist/types/builder/elements/product-image/index.d.ts +30 -0
- package/dist/types/builder/index.d.ts +2 -1
- package/dist/types/builder/tools/element-edit/index.d.ts +2 -1
- package/dist/types/builder/tools/element-edit/product-image.d.ts +112 -0
- package/dist/uom-selector.scss +28 -0
- package/dist/variable.scss +128 -0
- package/dist/variant-picker.scss +28 -0
- package/dist/video.scss +4 -2
- package/dist/volume-pricing.scss +18 -0
- package/package.json +1 -1
|
@@ -8,173 +8,24 @@
|
|
|
8
8
|
aspect-ratio: 1 / var(--_sf-aspect-ratio);
|
|
9
9
|
|
|
10
10
|
& > .wrapper {
|
|
11
|
-
|
|
12
|
-
// height: 100%;
|
|
11
|
+
width: 100%;
|
|
13
12
|
}
|
|
14
13
|
|
|
15
14
|
&[data-show-shadow="false"] {
|
|
16
15
|
--_show-shadow: none;
|
|
17
16
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
&[data-icon-position="right"] {
|
|
22
|
-
--_sf-fd-bn: row-reverse;
|
|
23
|
-
}
|
|
24
|
-
&[data-icon-position="center"] {
|
|
25
|
-
--_sf-fd-bn: row;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&:hover {
|
|
29
|
-
--_sf-hr-bd-cr: var(--_ctm-dn-hr-se-bd-cr, var(--_tst-dn-hr-se-bd-cr));
|
|
30
|
-
--_sf-hr-br-cr: var(--_ctm-dn-hr-se-br-cr, var(--_tst-dn-hr-se-br-cr));
|
|
31
|
-
--_sf-hr-br-st: var(--_ctm-dn-hr-se-br-se, var(--_tst-dn-hr-se-br-se));
|
|
32
|
-
--_sf-hr-br-wt: var(--_ctm-dn-hr-se-br-wh, var(--_tst-dn-hr-se-br-wh));
|
|
33
|
-
--_sf-hr-br-br: var(--_ctm-dn-hr-se-br-rs, var(--_tst-dn-hr-se-br-rs));
|
|
34
|
-
--_sf-hr-bx-sw: var(--_ctm-dn-hr-se-sw-ae, var(--_tst-dn-hr-se-sw-ae))
|
|
35
|
-
var(--_ctm-dn-hr-se-sw-br, var(--_tst-dn-hr-se-sw-br))
|
|
36
|
-
var(--_ctm-dn-hr-se-sw-sd, var(--_tst-dn-hr-se-sw-sd))
|
|
37
|
-
var(--_ctm-dn-hr-se-sw-cr, var(--_tst-dn-hr-se-sw-cr));
|
|
38
|
-
|
|
39
|
-
--_sf-hr-fc: var(--_ctm-dn-hr-se-cr, var(--_tst-dn-hr-se-cr));
|
|
40
|
-
--_sf-hr-ff: var(--_ctm-dn-hr-se-ft-fy, var(--_tst-dn-hr-se-ft-fy));
|
|
41
|
-
--_sf-hr-fs: var(--_ctm-dn-hr-se-ft-se, var(--_tst-dn-hr-se-ft-se));
|
|
42
|
-
--_sf-hr-fw: var(--_ctm-dn-hr-se-ft-wt, var(--_tst-dn-hr-se-ft-wt));
|
|
43
|
-
--_sf-hr-ft: var(--_ctm-dn-hr-se-ft-se-ic, var(--_tst-dn-hr-se-ft-se-ic));
|
|
44
|
-
--_sf-hr-ta: var(--_ctm-dn-hr-se-tt-an, var(--_tst-dn-hr-se-tt-an));
|
|
45
|
-
--_sf-hr-ls: var(--_ctm-dn-hr-se-lr-sg, var(--_tst-dn-hr-se-lr-sg));
|
|
46
|
-
--_sf-hr-lh: var(--_ctm-dn-hr-se-le-ht, var(--_tst-dn-hr-se-le-ht));
|
|
47
|
-
|
|
48
|
-
--_sf-hr-ic-wt: var(--_ctm-dn-hr-se-in-se, var(--_tst-dn-hr-se-in-se));
|
|
49
|
-
--_sf-hr-ic-ht: var(--_ctm-dn-hr-se-in-se, var(--_tst-dn-hr-se-in-se));
|
|
50
|
-
--_sf-hr-ic-st: var(--_ctm-dn-hr-se-in-c1, var(--_tst-dn-hr-se-in-c1));
|
|
51
|
-
--_sf-hr-tt-dn: var(--_ctm-dn-hr-se-ue, var(--_tst-dn-hr-se-in-c1));
|
|
52
|
-
|
|
53
|
-
&[data-hover-show-shadow="false"] {
|
|
54
|
-
--_hover-show-shadow: none;
|
|
55
|
-
}
|
|
56
|
-
&[data-hover-show-icon="false"] {
|
|
57
|
-
--_hover-show-icon: none;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
&[data-show-icon="false"] {
|
|
61
|
-
--_show-icon: none;
|
|
62
|
-
}
|
|
63
|
-
&[data-element-style="Icon"] {
|
|
64
|
-
&[data-icon-position="left"] {
|
|
65
|
-
--_sf-jc: start;
|
|
66
|
-
}
|
|
67
|
-
&[data-icon-position="right"] {
|
|
68
|
-
--_sf-jc: end;
|
|
69
|
-
}
|
|
70
|
-
&[data-icon-position="center"] {
|
|
71
|
-
--_sf-jc: center;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.btn__with__text {
|
|
76
|
-
background-color: var(--_sf-hr-bd-cr, var(--_ctm-dn-dt-se-bd-cr, var(--_tst-dn-dt-se-bd-cr)));
|
|
77
|
-
// padding: var(--_ctm-lt-pg, var(--_tst-lt-pg));
|
|
78
|
-
padding: var(--_sf-element-vt-pd) var(--_sf-element-hr-pd);
|
|
79
|
-
display: flex;
|
|
80
|
-
flex-direction: var(--_sf-fd-bn);
|
|
81
|
-
align-items: center;
|
|
82
|
-
// justify-content: var(--_sf-jc, center);
|
|
83
|
-
justify-content: var(--_ctm-lt-tt-an, center);
|
|
84
|
-
gap: var(--_ctm-lt-gp, var(--_tst-lt-gp));
|
|
85
|
-
|
|
17
|
+
table {
|
|
18
|
+
font-family: arial, sans-serif;
|
|
19
|
+
border-collapse: collapse;
|
|
86
20
|
width: 100%;
|
|
87
21
|
height: 100%;
|
|
22
|
+
}
|
|
88
23
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
var(
|
|
95
|
-
--_show-shadow,
|
|
96
|
-
var(--_ctm-dn-dt-se-sw-ae, var(--_tst-dn-dt-se-sw-ae))
|
|
97
|
-
var(--_ctm-dn-dt-se-sw-br, var(--_tst-dn-dt-se-sw-br))
|
|
98
|
-
var(--_ctm-dn-dt-se-sw-sd, var(--_tst-dn-dt-se-sw-sd))
|
|
99
|
-
var(--_ctm-dn-dt-se-sw-cr, var(--_tst-dn-dt-se-sw-cr))
|
|
100
|
-
)
|
|
101
|
-
)
|
|
102
|
-
);
|
|
103
|
-
&[data-show-border="true"] {
|
|
104
|
-
border-color: var(--_sf-hr-br-cr, var(--_ctm-dn-dt-se-br-cr, var(--_tst-dn-dt-se-br-cr)));
|
|
105
|
-
border-style: var(--_sf-hr-br-st, var(--_ctm-dn-dt-se-br-se, var(--_tst-dn-dt-se-br-se)));
|
|
106
|
-
border-width: var(--_sf-hr-br-wt, var(--_ctm-dn-dt-se-br-wh, var(--_tst-dn-dt-se-br-wh)));
|
|
107
|
-
}
|
|
108
|
-
// &.btn__with__text__icon {
|
|
109
|
-
// justify-content: center;
|
|
110
|
-
// // gap: 10px;
|
|
111
|
-
// }
|
|
112
|
-
// & > span {
|
|
113
|
-
// align-items: center;
|
|
114
|
-
// justify-content: center;
|
|
115
|
-
// &.txt {
|
|
116
|
-
// display: flex;
|
|
117
|
-
// color: var(--_sf-hr-fc, var(--_ctm-dn-dt-se-cr, var(--_tst-dn-dt-se-cr)));
|
|
118
|
-
// font-family: var(--_sf-hr-ff, var(--_ctm-dn-dt-se-ft-fy, var(--_tst-dn-dt-se-ft-fy))),
|
|
119
|
-
// sans-serif;
|
|
120
|
-
// font-size: var(--_sf-hr-fs, var(--_ctm-dn-dt-se-ft-se, var(--_tst-dn-dt-se-ft-se)));
|
|
121
|
-
// font-weight: var(--_sf-hr-fw, var(--_ctm-dn-dt-se-ft-wt, var(--_tst-dn-dt-se-ft-wt)));
|
|
122
|
-
// font-style: var(
|
|
123
|
-
// --_sf-hr-ft,
|
|
124
|
-
// var(--_ctm-dn-dt-se-ft-se-ic, var(--_tst-dn-dt-se-ft-se-ic))
|
|
125
|
-
// );
|
|
126
|
-
// text-align: var(--_sf-hr-ta, var(--_ctm-dn-dt-se-tt-an, var(--_tst-dn-dt-se-tt-an)));
|
|
127
|
-
// letter-spacing: var(--_sf-hr-ls, var(--_ctm-dn-dt-se-lr-sg, var(--_tst-dn-dt-se-lr-sg)));
|
|
128
|
-
// line-height: var(--_sf-hr-lh, var(--_ctm-dn-dt-se-le-ht, var(--_tst-dn-dt-se-le-ht)));
|
|
129
|
-
// text-decoration: var(--_sf-hr-tt-dn, var(--_ctm-dn-dt-se-ue, var(--_tst-dn-dt-se-le-ht)));
|
|
130
|
-
// // --_sf-hr-tt-dn: var(--_ctm-dn-hr-se-ue, var(--_tst-dn-hr-se-in-c1));
|
|
131
|
-
// }
|
|
132
|
-
|
|
133
|
-
// &.icon {
|
|
134
|
-
// display: var(--_hover-show-icon, var(--_show-icon, flex));
|
|
135
|
-
// svg {
|
|
136
|
-
// width: var(--_sf-hr-ic-wt, var(--_ctm-dn-dt-se-in-se, var(--_tst-dn-dt-se-in-se)));
|
|
137
|
-
// height: var(--_sf-hr-ic-ht, var(--_ctm-dn-dt-se-in-se, var(--_tst-dn-dt-se-in-se)));
|
|
138
|
-
// path {
|
|
139
|
-
// stroke: var(--_sf-hr-ic-st, var(--_ctm-dn-dt-se-in-c1, var(--_tst-dn-dt-se-in-c1)));
|
|
140
|
-
// }
|
|
141
|
-
// }
|
|
142
|
-
// }
|
|
143
|
-
// &[data-element-style="Text"] {
|
|
144
|
-
// display: inline-block;
|
|
145
|
-
// width: 100%;
|
|
146
|
-
// }
|
|
147
|
-
// }
|
|
148
|
-
|
|
149
|
-
.txt {
|
|
150
|
-
display: flex;
|
|
151
|
-
color: var(--_sf-hr-fc, var(--_ctm-dn-dt-se-cr, var(--_tst-dn-dt-se-cr)));
|
|
152
|
-
font-family: var(--_sf-hr-ff, var(--_ctm-dn-dt-se-ft-fy, var(--_tst-dn-dt-se-ft-fy))),
|
|
153
|
-
sans-serif;
|
|
154
|
-
font-size: var(--_sf-hr-fs, var(--_ctm-dn-dt-se-ft-se, var(--_tst-dn-dt-se-ft-se)));
|
|
155
|
-
font-weight: var(--_sf-hr-fw, var(--_ctm-dn-dt-se-ft-wt, var(--_tst-dn-dt-se-ft-wt)));
|
|
156
|
-
font-style: var(--_sf-hr-ft, var(--_ctm-dn-dt-se-ft-se-ic, var(--_tst-dn-dt-se-ft-se-ic)));
|
|
157
|
-
text-align: var(--_sf-hr-ta, var(--_ctm-dn-dt-se-tt-an, var(--_tst-dn-dt-se-tt-an)));
|
|
158
|
-
letter-spacing: var(--_sf-hr-ls, var(--_ctm-dn-dt-se-lr-sg, var(--_tst-dn-dt-se-lr-sg)));
|
|
159
|
-
line-height: var(--_sf-hr-lh, var(--_ctm-dn-dt-se-le-ht, var(--_tst-dn-dt-se-le-ht)));
|
|
160
|
-
text-decoration: var(--_sf-hr-tt-dn, var(--_ctm-dn-dt-se-ue, var(--_tst-dn-dt-se-le-ht)));
|
|
161
|
-
// --_sf-hr-tt-dn: var(--_ctm-dn-hr-se-ue, var(--_tst-dn-hr-se-in-c1));
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.icon {
|
|
165
|
-
display: var(--_hover-show-icon, var(--_show-icon, flex));
|
|
166
|
-
svg {
|
|
167
|
-
width: var(--_sf-hr-ic-wt, var(--_ctm-dn-dt-se-in-se, var(--_tst-dn-dt-se-in-se)));
|
|
168
|
-
height: var(--_sf-hr-ic-ht, var(--_ctm-dn-dt-se-in-se, var(--_tst-dn-dt-se-in-se)));
|
|
169
|
-
path {
|
|
170
|
-
stroke: var(--_sf-hr-ic-st, var(--_ctm-dn-dt-se-in-c1, var(--_tst-dn-dt-se-in-c1)));
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
[data-element-style="Text"] {
|
|
175
|
-
display: inline-block;
|
|
176
|
-
width: 100%;
|
|
177
|
-
}
|
|
24
|
+
td,
|
|
25
|
+
th {
|
|
26
|
+
border: 1px solid #dddddd;
|
|
27
|
+
text-align: center;
|
|
28
|
+
padding: 8px;
|
|
178
29
|
}
|
|
179
30
|
}
|
|
180
31
|
}
|
package/dist/product-price.scss
CHANGED
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
--_show-shadow: none;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
.text-element {
|
|
28
|
+
.price-text-element {
|
|
29
29
|
background-color: var(--_ctm-dn-bd-cr, var(--_tst-dn-bd-cr));
|
|
30
30
|
padding: var(--_ctm-lt-pg, var(--_tst-lt-pg));
|
|
31
31
|
display: flex;
|
|
32
32
|
flex-direction: column;
|
|
33
33
|
--_sf-gp: 16px;
|
|
34
34
|
--_sf-cd-gp: calc(var(--_sf-gp) * 0.5);
|
|
35
|
-
row-gap: var(--_sf-gp);
|
|
35
|
+
// row-gap: var(--_sf-gp);
|
|
36
36
|
width: 100%;
|
|
37
37
|
// height: 100%;
|
|
38
38
|
border-color: var(--_ctm-dn-br-cr, var(--_tst-dn-br-cr));
|
|
@@ -53,8 +53,16 @@
|
|
|
53
53
|
&[data-flip-y="true"] {
|
|
54
54
|
transform: scaleY(-1);
|
|
55
55
|
}
|
|
56
|
-
.
|
|
56
|
+
.meta_text_element {
|
|
57
57
|
color: green;
|
|
58
|
+
//styleName: Text md/Medium;
|
|
59
|
+
font-family: Lato;
|
|
60
|
+
font-size: 16px;
|
|
61
|
+
font-weight: 500;
|
|
62
|
+
line-height: 24px;
|
|
63
|
+
text-align: left;
|
|
64
|
+
text-underline-position: from-font;
|
|
65
|
+
text-decoration-skip-ink: none;
|
|
58
66
|
}
|
|
59
67
|
}
|
|
60
68
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "sass:list";
|
|
3
|
+
|
|
4
|
+
[data-div-type="element"] {
|
|
5
|
+
&[data-element-type="productPromotions"] {
|
|
6
|
+
// width: var(--_lt-wh);
|
|
7
|
+
// height: var(--_lt-ht);
|
|
8
|
+
// margin: var(--_lt-mn);
|
|
9
|
+
// padding: var(--_lt-pg);
|
|
10
|
+
// width: var(--_ctm-lt-wh, var(--_tst-lt-wh));
|
|
11
|
+
width: var(--_sf-nw-wh, var(--_tst-lt-wh));
|
|
12
|
+
margin: var(--_ctm-lt-mn, --_tst-lt-mn);
|
|
13
|
+
// height: var(--_ctm-lt-ht, var(--_tst-lt-ht));
|
|
14
|
+
// height: ;
|
|
15
|
+
aspect-ratio: 1 / var(--_sf-aspect-ratio);
|
|
16
|
+
--_aspect-ratio: calc(
|
|
17
|
+
1 * (var(--_ctm-lt-ht, var(--_tst-lt-ht)) / var(--_ctm-lt-wh, var(--_tst-lt-wh)))
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
& > .wrapper {
|
|
21
|
+
width: 100%;
|
|
22
|
+
// height: 100%;
|
|
23
|
+
}
|
|
24
|
+
&[data-show-shadow="false"] {
|
|
25
|
+
--_show-shadow: none;
|
|
26
|
+
}
|
|
27
|
+
table {
|
|
28
|
+
font-family: arial, sans-serif;
|
|
29
|
+
border-collapse: collapse;
|
|
30
|
+
width: 100%;
|
|
31
|
+
height: 100%;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
td,
|
|
35
|
+
th {
|
|
36
|
+
border: 1px solid #dddddd;
|
|
37
|
+
text-align: center;
|
|
38
|
+
padding: 8px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
tr:nth-child(even) {
|
|
42
|
+
// background-color: #dddddd;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "sass:list";
|
|
3
|
+
|
|
4
|
+
[data-div-type="element"] {
|
|
5
|
+
&[data-element-type="quantitySelector"] {
|
|
6
|
+
// width: var(--_lt-wh);
|
|
7
|
+
// height: var(--_lt-ht);
|
|
8
|
+
// margin: var(--_lt-mn);
|
|
9
|
+
// padding: var(--_lt-pg);
|
|
10
|
+
// width: var(--_ctm-lt-wh, var(--_tst-lt-wh));
|
|
11
|
+
width: var(--_sf-nw-wh, var(--_tst-lt-wh));
|
|
12
|
+
margin: var(--_ctm-lt-mn, --_tst-lt-mn);
|
|
13
|
+
// height: var(--_ctm-lt-ht, var(--_tst-lt-ht));
|
|
14
|
+
// height: ;
|
|
15
|
+
aspect-ratio: 1 / var(--_sf-aspect-ratio);
|
|
16
|
+
--_aspect-ratio: calc(
|
|
17
|
+
1 * (var(--_ctm-lt-ht, var(--_tst-lt-ht)) / var(--_ctm-lt-wh, var(--_tst-lt-wh)))
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
& > .wrapper {
|
|
21
|
+
width: 100%;
|
|
22
|
+
// height: 100%;
|
|
23
|
+
}
|
|
24
|
+
&[data-show-shadow="false"] {
|
|
25
|
+
--_show-shadow: none;
|
|
26
|
+
}
|
|
27
|
+
// /* Chrome, Safari, Edge, Opera */
|
|
28
|
+
// input::-webkit-outer-spin-button,
|
|
29
|
+
// input::-webkit-inner-spin-button {
|
|
30
|
+
// -webkit-appearance: none;
|
|
31
|
+
// margin: 0;
|
|
32
|
+
// }
|
|
33
|
+
|
|
34
|
+
// /* Firefox */
|
|
35
|
+
// input[type="number"] {
|
|
36
|
+
// -moz-appearance: textfield;
|
|
37
|
+
// }
|
|
38
|
+
.quantity_container {
|
|
39
|
+
.quantity_open_input {
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: flex-start;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
span {
|
|
44
|
+
//styleName: Text sm/Medium;
|
|
45
|
+
font-family: Lato;
|
|
46
|
+
font-size: 14px;
|
|
47
|
+
font-weight: 500;
|
|
48
|
+
line-height: 20px;
|
|
49
|
+
text-align: left;
|
|
50
|
+
text-underline-position: from-font;
|
|
51
|
+
text-decoration-skip-ink: none;
|
|
52
|
+
color: #344054;
|
|
53
|
+
}
|
|
54
|
+
input[type="number"] {
|
|
55
|
+
width: 125px;
|
|
56
|
+
height: 40px;
|
|
57
|
+
padding: 8px 12px 8px 12px;
|
|
58
|
+
gap: 8px;
|
|
59
|
+
border-radius: 0.5rem;
|
|
60
|
+
border: 0.5px 0px 0px 0px;
|
|
61
|
+
opacity: 0px;
|
|
62
|
+
background: #ffffff;
|
|
63
|
+
border: 0.5px solid #d0d5dd;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
.quantity_input_dropdown {
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
justify-content: space-between;
|
|
70
|
+
width: 120px;
|
|
71
|
+
height: 40px;
|
|
72
|
+
border: 1px solid #ccc;
|
|
73
|
+
border-radius: 8px;
|
|
74
|
+
background-color: #fff;
|
|
75
|
+
font-family: Arial, sans-serif;
|
|
76
|
+
font-size: 14px;
|
|
77
|
+
|
|
78
|
+
.label {
|
|
79
|
+
padding: 0 10px;
|
|
80
|
+
color: #333;
|
|
81
|
+
font-weight: 500;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.input-wrapper {
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
justify-content: space-between;
|
|
88
|
+
width: 60px;
|
|
89
|
+
border-left: 1px solid #ccc;
|
|
90
|
+
|
|
91
|
+
input {
|
|
92
|
+
width: 40%;
|
|
93
|
+
text-align: center;
|
|
94
|
+
border: none;
|
|
95
|
+
outline: none;
|
|
96
|
+
font-size: 14px;
|
|
97
|
+
color: #333;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.buttons {
|
|
101
|
+
display: flex;
|
|
102
|
+
flex-direction: column;
|
|
103
|
+
align-items: center;
|
|
104
|
+
justify-content: space-between;
|
|
105
|
+
|
|
106
|
+
button {
|
|
107
|
+
width: 20px;
|
|
108
|
+
height: 20px;
|
|
109
|
+
background: none;
|
|
110
|
+
border: none;
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
padding: 0;
|
|
113
|
+
font-size: 14px;
|
|
114
|
+
color: #333;
|
|
115
|
+
|
|
116
|
+
&:hover {
|
|
117
|
+
color: #000;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&:disabled {
|
|
121
|
+
color: #ccc;
|
|
122
|
+
cursor: not-allowed;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
.number-dropdown {
|
|
129
|
+
display: flex;
|
|
130
|
+
align-items: center;
|
|
131
|
+
justify-content: space-between;
|
|
132
|
+
width: 120px; // Adjust as needed
|
|
133
|
+
height: 40px; // Adjust as needed
|
|
134
|
+
border: 1px solid #ccc;
|
|
135
|
+
border-radius: 8px;
|
|
136
|
+
background-color: #fff;
|
|
137
|
+
font-family: Arial, sans-serif;
|
|
138
|
+
font-size: 14px;
|
|
139
|
+
|
|
140
|
+
.label {
|
|
141
|
+
padding: 0 10px;
|
|
142
|
+
color: #333;
|
|
143
|
+
font-weight: 500;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.input-wrapper {
|
|
147
|
+
display: flex;
|
|
148
|
+
align-items: center;
|
|
149
|
+
position: relative;
|
|
150
|
+
width: 60px;
|
|
151
|
+
|
|
152
|
+
select {
|
|
153
|
+
width: 100%;
|
|
154
|
+
border: none;
|
|
155
|
+
outline: none;
|
|
156
|
+
background: none;
|
|
157
|
+
text-align: center;
|
|
158
|
+
font-size: 14px;
|
|
159
|
+
color: #333;
|
|
160
|
+
// appearance: none;
|
|
161
|
+
padding: 0 10px;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.buttons {
|
|
165
|
+
position: absolute;
|
|
166
|
+
top: 0;
|
|
167
|
+
right: -30px; // Adjust spacing for the buttons
|
|
168
|
+
display: flex;
|
|
169
|
+
flex-direction: column;
|
|
170
|
+
|
|
171
|
+
button {
|
|
172
|
+
width: 20px;
|
|
173
|
+
height: 20px;
|
|
174
|
+
background: none;
|
|
175
|
+
border: 1px solid #ccc;
|
|
176
|
+
cursor: pointer;
|
|
177
|
+
padding: 0;
|
|
178
|
+
font-size: 14px;
|
|
179
|
+
color: #333;
|
|
180
|
+
display: flex;
|
|
181
|
+
align-items: center;
|
|
182
|
+
justify-content: center;
|
|
183
|
+
|
|
184
|
+
&:hover {
|
|
185
|
+
background-color: #f0f0f0;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
&:disabled {
|
|
189
|
+
color: #ccc;
|
|
190
|
+
cursor: not-allowed;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
&:first-child {
|
|
194
|
+
border-bottom: none; // Remove border between the two buttons
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
.quantity-selector {
|
|
201
|
+
display: flex;
|
|
202
|
+
align-items: center;
|
|
203
|
+
justify-content: space-between;
|
|
204
|
+
width: 150px;
|
|
205
|
+
height: 40px;
|
|
206
|
+
border: 1px solid #ccc;
|
|
207
|
+
border-radius: 8px;
|
|
208
|
+
background-color: #fff;
|
|
209
|
+
font-family: Arial, sans-serif;
|
|
210
|
+
font-size: 14px;
|
|
211
|
+
|
|
212
|
+
.label {
|
|
213
|
+
padding: 0 10px;
|
|
214
|
+
font-weight: 500;
|
|
215
|
+
color: #333;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.controls {
|
|
219
|
+
display: flex;
|
|
220
|
+
align-items: center;
|
|
221
|
+
border-left: 1px solid #ccc;
|
|
222
|
+
flex: 1;
|
|
223
|
+
justify-content: space-around;
|
|
224
|
+
|
|
225
|
+
button {
|
|
226
|
+
width: 30px;
|
|
227
|
+
height: 30px;
|
|
228
|
+
border: none;
|
|
229
|
+
background-color: transparent;
|
|
230
|
+
font-size: 18px;
|
|
231
|
+
font-weight: bold;
|
|
232
|
+
color: #555;
|
|
233
|
+
cursor: pointer;
|
|
234
|
+
|
|
235
|
+
&:hover {
|
|
236
|
+
color: #000;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
&:disabled {
|
|
240
|
+
color: #ccc;
|
|
241
|
+
cursor: not-allowed;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.value {
|
|
246
|
+
font-size: 16px;
|
|
247
|
+
font-weight: bold;
|
|
248
|
+
color: #333;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
.min_order_qty {
|
|
253
|
+
//styleName: Text md/Medium;
|
|
254
|
+
font-family: Lato;
|
|
255
|
+
font-size: 16px;
|
|
256
|
+
font-weight: 500;
|
|
257
|
+
line-height: 24px;
|
|
258
|
+
text-align: left;
|
|
259
|
+
text-underline-position: from-font;
|
|
260
|
+
text-decoration-skip-ink: none;
|
|
261
|
+
color: #1f1930;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
div[data-cmsdivtype="cms__react__slider"] {
|
|
2
|
+
display: var(--_d-flex);
|
|
3
|
+
align-items: var(--_align-center);
|
|
4
|
+
justify-content: var(--_justify-center);
|
|
5
|
+
--_cms-range-circle: 20px;
|
|
6
|
+
--_cms-range-track-size: 8px;
|
|
7
|
+
|
|
8
|
+
&[data-islinear="true"] {
|
|
9
|
+
position: var(--_p-relative);
|
|
10
|
+
|
|
11
|
+
span {
|
|
12
|
+
&[data-type="cms__linearbg"] {
|
|
13
|
+
position: var(--_p-absolute);
|
|
14
|
+
display: var(--_d-flex);
|
|
15
|
+
// inset: 0 0 0 0;
|
|
16
|
+
// min-width: calc(var(--_sidebar-small-width) - calc(2 * var(--_pd-24)) - 2px);
|
|
17
|
+
width: calc(100% - 2px);
|
|
18
|
+
height: var(--_cms-range-track-size);
|
|
19
|
+
top: 50%;
|
|
20
|
+
left: 0;
|
|
21
|
+
transform: translateY(-50%);
|
|
22
|
+
border-radius: var(--_br-4);
|
|
23
|
+
background: linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%),
|
|
24
|
+
linear-gradient(90deg, rgba(22, 37, 120, 0) 0%, #162578 101.3%);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.horizontal-slider {
|
|
29
|
+
.example-track {
|
|
30
|
+
&.example-track-0 {
|
|
31
|
+
background: transparent;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
.horizontal-slider {
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: var(--_cms-range-circle);
|
|
39
|
+
}
|
|
40
|
+
.example-thumb {
|
|
41
|
+
background-color: var(--_base-white);
|
|
42
|
+
color: var(--_base-white);
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
box-sizing: border-box;
|
|
45
|
+
border-radius: 50%;
|
|
46
|
+
&:focus {
|
|
47
|
+
outline: none;
|
|
48
|
+
box-shadow: none;
|
|
49
|
+
border-radius: 50%;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
.example-track {
|
|
53
|
+
position: relative;
|
|
54
|
+
background: var(--_primary-500);
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
}
|
|
57
|
+
.example-track.example-track-1 {
|
|
58
|
+
background: var(--_gray-200);
|
|
59
|
+
border-radius: var(--_br-4);
|
|
60
|
+
}
|
|
61
|
+
.example-mark {
|
|
62
|
+
width: var(--_cms-range-track-size);
|
|
63
|
+
height: var(--_cms-range-track-size);
|
|
64
|
+
background-color: var(--_base-white);
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
border-radius: 50%;
|
|
67
|
+
vertical-align: middle;
|
|
68
|
+
}
|
|
69
|
+
.horizontal-slider .example-track {
|
|
70
|
+
transform: translateY(-50%);
|
|
71
|
+
top: 50%;
|
|
72
|
+
height: var(--_cms-range-track-size);
|
|
73
|
+
border-radius: var(--_br-4);
|
|
74
|
+
}
|
|
75
|
+
.horizontal-slider .example-thumb {
|
|
76
|
+
top: 50%;
|
|
77
|
+
translate: 0 -50%;
|
|
78
|
+
width: var(--_cms-range-circle);
|
|
79
|
+
height: var(--_cms-range-circle);
|
|
80
|
+
// box-shadow: 0px 0px 0px 1px var(--_primary-500);
|
|
81
|
+
outline: none;
|
|
82
|
+
font-size: 0;
|
|
83
|
+
border: 1.5px solid var(--_primary-500);
|
|
84
|
+
}
|
|
85
|
+
}
|
package/dist/scroll.scss
CHANGED
|
@@ -5,7 +5,8 @@ $max-items: 50;
|
|
|
5
5
|
|
|
6
6
|
[data-div-type="element"] {
|
|
7
7
|
&[data-element-type="scroll"] {
|
|
8
|
-
width: var(--_sf-nw-wh, var(--_tst-lt-wh));
|
|
8
|
+
// width: var(--_sf-nw-wh, var(--_tst-lt-wh));
|
|
9
|
+
width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
|
|
9
10
|
margin: var(--_ctm-lt-mn, --_tst-lt-mn);
|
|
10
11
|
aspect-ratio: 1 / var(--_sf-aspect-ratio);
|
|
11
12
|
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "sass:list";
|
|
3
|
+
|
|
4
|
+
[data-div-type="element"] {
|
|
5
|
+
&[data-element-type="shippingEstimator"] {
|
|
6
|
+
// width: var(--_lt-wh);
|
|
7
|
+
// height: var(--_lt-ht);
|
|
8
|
+
// margin: var(--_lt-mn);
|
|
9
|
+
// padding: var(--_lt-pg);
|
|
10
|
+
// width: var(--_ctm-lt-wh, var(--_tst-lt-wh));
|
|
11
|
+
width: var(--_sf-nw-wh, var(--_tst-lt-wh));
|
|
12
|
+
margin: var(--_ctm-lt-mn, --_tst-lt-mn);
|
|
13
|
+
aspect-ratio: 1 / var(--_sf-aspect-ratio);
|
|
14
|
+
// height: var(--_ctm-lt-ht, var(--_tst-lt-ht));
|
|
15
|
+
// height: ;
|
|
16
|
+
aspect-ratio: 1 / var(--_sf-aspect-ratio);
|
|
17
|
+
--_aspect-ratio: calc(
|
|
18
|
+
1 * (var(--_ctm-lt-ht, var(--_tst-lt-ht)) / var(--_ctm-lt-wh, var(--_tst-lt-wh)))
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
& > .wrapper {
|
|
22
|
+
width: 100%;
|
|
23
|
+
// height: 100%;
|
|
24
|
+
}
|
|
25
|
+
&[data-show-shadow="false"] {
|
|
26
|
+
--_show-shadow: none;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
package/dist/social.scss
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
[data-div-type="element"] {
|
|
5
5
|
&[data-element-type="social"] {
|
|
6
|
-
width: var(--_sf-nw-wh, var(--_tst-lt-wh));
|
|
6
|
+
// width: var(--_sf-nw-wh, var(--_tst-lt-wh));
|
|
7
|
+
width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
|
|
7
8
|
margin: var(--_ctm-lt-mn, --_tst-lt-mn);
|
|
8
9
|
aspect-ratio: 1 / var(--_sf-aspect-ratio);
|
|
9
10
|
--_aspect-ratio: calc(
|