@sc-360-v2/storefront-cms-library 0.5.69 → 0.5.70
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/builder.js +1 -1
- package/dist/filters.scss +1 -1
- package/dist/icon-list.scss +39 -0
- package/dist/order-status.scss +2 -2
- package/dist/product-price.scss +3392 -3388
- package/dist/types/builder/tools/element-edit/icon-list.d.ts +5 -0
- package/dist/types/builder/tools/element-edit/userElements.d.ts +99 -0
- package/dist/user-elements.scss +14 -29
- package/package.json +1 -1
package/dist/filters.scss
CHANGED
|
@@ -1751,7 +1751,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
|
|
|
1751
1751
|
// taller than one line of label text, and centring made a wrapped label sit
|
|
1752
1752
|
// visibly off its box. Starting both at the top keeps the box level with the
|
|
1753
1753
|
// label's first line at any size.
|
|
1754
|
-
align-items:
|
|
1754
|
+
align-items: center;
|
|
1755
1755
|
gap: 8px;
|
|
1756
1756
|
position: relative;
|
|
1757
1757
|
// margin-bottom: 12px;
|
package/dist/icon-list.scss
CHANGED
|
@@ -136,6 +136,13 @@ $pos2: (
|
|
|
136
136
|
display: var(--_d-flex);
|
|
137
137
|
gap: var(--_in_hr-gp, prepareMediaVariable(--_ctm-dn-in-dt-se-in-gp, 0px));
|
|
138
138
|
|
|
139
|
+
// Icon Position (layout.iconPosition). Absent on elements saved before
|
|
140
|
+
// the control existed, which the schema backfills as "left", so they
|
|
141
|
+
// keep the icon-left / text-right row.
|
|
142
|
+
&:is(.wrapper[data-icon-position="top"]>*) {
|
|
143
|
+
flex-direction: column;
|
|
144
|
+
}
|
|
145
|
+
|
|
139
146
|
&:hover {
|
|
140
147
|
--_in_hr-gp: #{prepareMediaVariable(--_ctm-dn-in-hr-se-in-gp, 0px)};
|
|
141
148
|
--_in-hr-sz: #{prepareMediaVariable(--_ctm-dn-in-hr-se-in-se)};
|
|
@@ -219,6 +226,38 @@ $pos2: (
|
|
|
219
226
|
height: prepareMediaVariable(--_ctm-dn-tt-cr-dr-wh);
|
|
220
227
|
border-radius: prepareMediaVariable(--_ctm-dn-tt-cr-dr-br-rs);
|
|
221
228
|
}
|
|
229
|
+
|
|
230
|
+
// Icon on top: the rule that separates it from the text runs across
|
|
231
|
+
// the top instead of down the side, and divider position slides
|
|
232
|
+
// along the x-axis.
|
|
233
|
+
// `.wrapper` is carried in the :is() so this outweighs the
|
|
234
|
+
// side-divider rules above rather than tying with them.
|
|
235
|
+
&:is(.wrapper[data-icon-position="top"]>*>*) {
|
|
236
|
+
margin-inline-start: 0;
|
|
237
|
+
margin-block-start: calc(var(--_in_hr-gp, prepareMediaVariable(--_ctm-dn-in-dt-se-in-gp, 0px)) + var(--_ctm-mob-dn-tt-cr-dr-wt,
|
|
238
|
+
var(--_ctm-tab-dn-tt-cr-dr-wt, var(--_ctm-dn-tt-cr-dr-wt, inherit))));
|
|
239
|
+
|
|
240
|
+
&::before {
|
|
241
|
+
top: calc(calc(-1 * var(--_ctm-mob-dn-tt-cr-dr-wt,
|
|
242
|
+
var(--_ctm-tab-dn-tt-cr-dr-wt, var(--_ctm-dn-tt-cr-dr-wt, inherit)))) - var(--_in_hr-gp, prepareMediaVariable(--_ctm-dn-in-dt-se-in-gp, 0px)));
|
|
243
|
+
bottom: auto;
|
|
244
|
+
left: 0;
|
|
245
|
+
right: auto;
|
|
246
|
+
transform: none;
|
|
247
|
+
width: prepareMediaVariable(--_ctm-dn-tt-cr-dr-wh);
|
|
248
|
+
height: prepareMediaVariable(--_ctm-dn-tt-cr-dr-wt);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
@each $key, $value in map.get(map.get($pos2, vtl), after) {
|
|
252
|
+
&[data-divider-pos="#{$key}"] {
|
|
253
|
+
&::before {
|
|
254
|
+
@each $key1, $value1 in $value {
|
|
255
|
+
#{$key1}: #{$value1};
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
222
261
|
}
|
|
223
262
|
|
|
224
263
|
&>.#{$text} {
|
package/dist/order-status.scss
CHANGED
|
@@ -273,7 +273,7 @@ $defaultValues: (
|
|
|
273
273
|
border-radius: 6px;
|
|
274
274
|
border: 1px solid #d0d5dd;
|
|
275
275
|
padding: 12px;
|
|
276
|
-
margin-bottom: 24px;
|
|
276
|
+
// margin-bottom: 24px;
|
|
277
277
|
|
|
278
278
|
.check-icon {
|
|
279
279
|
font-size: 28px;
|
|
@@ -1450,7 +1450,7 @@ $defaultValues: (
|
|
|
1450
1450
|
--_ctm-mob-dn-pt-wt-pt-wt-wr-br-rs,
|
|
1451
1451
|
var(--_ctm-tab-dn-pt-wt-pt-wt-wr-br-rs, var(--_ctm-dn-pt-wt-pt-wt-wr-br-rs))
|
|
1452
1452
|
);
|
|
1453
|
-
margin-bottom: 24px;
|
|
1453
|
+
// margin-bottom: 24px;
|
|
1454
1454
|
}
|
|
1455
1455
|
|
|
1456
1456
|
.item-card {
|