@sc-360-v2/storefront-cms-library 0.5.49 → 0.5.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/brand-basic-elements.scss +109 -46
- package/dist/brand.scss +6 -0
- package/dist/breadcrumbs.scss +144 -51
- package/dist/builder.js +1 -1
- package/dist/bundle.scss +74 -48
- package/dist/bundleDetails.scss +1360 -275
- package/dist/button copy.scss +271 -271
- package/dist/cart.scss +85 -4
- package/dist/category.scss +25 -4
- package/dist/container.scss +20 -17
- package/dist/embed-temp.scss +2 -2
- package/dist/hotspot.scss +12 -3
- package/dist/language-selector.scss +42 -0
- package/dist/line.scss +54 -36
- package/dist/login.scss +225 -69
- package/dist/map.scss +354 -147
- package/dist/marchandiserSets.scss +34 -0
- package/dist/product-actions.scss +53 -0
- package/dist/product-basic-elements.scss +50 -4
- package/dist/productDetails.scss +33 -0
- package/dist/quick-links.scss +23 -2
- package/dist/repeater copy.scss +635 -635
- package/dist/repeater-grid-toggle.scss +93 -3
- package/dist/repeater-item.scss +5 -1
- package/dist/review-cart.scss +7 -1
- package/dist/search.scss +45 -5
- package/dist/styles.css +1 -1
- package/dist/tab-v2.scss +724 -583
- package/dist/text-temp-v2.scss +7 -1
- package/dist/types/builder/tools/element-edit/breadcrumbs.d.ts +26 -0
- package/dist/types/builder/tools/element-edit/bundle.d.ts +104 -4
- package/dist/types/builder/tools/element-edit/cart.d.ts +7 -0
- package/dist/types/builder/tools/element-edit/map.d.ts +0 -1
- package/dist/types/builder/tools/element-edit/quickLinks.d.ts +6 -0
- package/dist/types/builder/tools/element-edit/search.d.ts +4 -61
- package/dist/types/builder/tools/element-edit/tabsV2.d.ts +110 -1
- package/dist/upload-media.scss +14 -2
- package/package.json +1 -1
- package/dist/add-products-tab copy.scss +0 -1122
- package/dist/allocationDetails copy.scss +0 -757
- package/dist/bulk-variant-picker copy.scss +0 -1121
- package/dist/bundleDetails copy.scss +0 -1431
- package/dist/product-actions copy.scss +0 -2765
- package/dist/product-highlights copy.scss +0 -217
- package/dist/product-image copy.scss +0 -787
- package/dist/user-elements copy.scss +0 -1437
- package/dist/volume-pricing copy 2.scss +0 -1468
- package/dist/volume-pricing copy.scss +0 -1076
|
@@ -89,6 +89,40 @@ $resizeActive: '[data-cms-element-resizer="true"]';
|
|
|
89
89
|
// );
|
|
90
90
|
min-height: var(--_ctm-mob-march-lt-ht, var(--_ctm-tab-march-lt-ht, var(--_ctm-march-lt-ht)));
|
|
91
91
|
|
|
92
|
+
// Layout padding, and the design section's border and shadow. None of these were
|
|
93
|
+
// consumed here before — the schema declares all of them, but this stylesheet only
|
|
94
|
+
// handled width, margin, min-height and the background, so Padding, Border Style,
|
|
95
|
+
// Border Radius and Box Shadow each had nothing reading the value they wrote.
|
|
96
|
+
// Every variable carries an explicit fallback so elements saved before this keep
|
|
97
|
+
// rendering bare rather than inheriting the parent's border or background.
|
|
98
|
+
padding: prepareMediaVariable(--_ctm-march-lt-pg, 0);
|
|
99
|
+
// Padding and border are drawn inside the width and height set in layout instead of
|
|
100
|
+
// adding to them, so the element keeps the size the user asked for.
|
|
101
|
+
box-sizing: border-box;
|
|
102
|
+
|
|
103
|
+
border-color: prepareMediaVariable(--_ctm-march-dn-br-cr, transparent);
|
|
104
|
+
border-style: prepareMediaVariable(--_ctm-march-dn-br-se, none);
|
|
105
|
+
border-width: prepareMediaVariable(--_ctm-march-dn-br-wh, 0);
|
|
106
|
+
border-radius: prepareMediaVariable(--_ctm-march-dn-br-rs, 0);
|
|
107
|
+
|
|
108
|
+
box-shadow: var(
|
|
109
|
+
--_show-shadow,
|
|
110
|
+
prepareMediaVariable(--_ctm-march-dn-sw-ae, 0 0)
|
|
111
|
+
prepareMediaVariable(--_ctm-march-dn-sw-br, 0)
|
|
112
|
+
prepareMediaVariable(--_ctm-march-dn-sw-sd, 0)
|
|
113
|
+
prepareMediaVariable(--_ctm-march-dn-sw-cr, transparent)
|
|
114
|
+
);
|
|
115
|
+
|
|
116
|
+
// "Show Border" / "Show Shadow" switches, surfaced as data attributes by the
|
|
117
|
+
// element since the properties above are painted from variables.
|
|
118
|
+
&[data-show-border="false"] {
|
|
119
|
+
border-width: 0;
|
|
120
|
+
border-style: none;
|
|
121
|
+
}
|
|
122
|
+
&[data-show-shadow="false"] {
|
|
123
|
+
--_show-shadow: none;
|
|
124
|
+
}
|
|
125
|
+
|
|
92
126
|
// &:not(:has(#{$resizerId}#{$resizeActive})) {
|
|
93
127
|
// min-height: 100px !important;
|
|
94
128
|
// }
|
|
@@ -44,6 +44,14 @@
|
|
|
44
44
|
var(--_ctm-tab-dn-wt-se-br-rs, var(--_ctm-dn-wt-se-br-rs))
|
|
45
45
|
);
|
|
46
46
|
|
|
47
|
+
// Widget Style's "Show Border" switch. The border above is painted from CSS
|
|
48
|
+
// variables, so the switch arrives as a data attribute and the width is zeroed
|
|
49
|
+
// here — same approach as the popover's border switch further down.
|
|
50
|
+
&[data-widget-border="false"] {
|
|
51
|
+
border-width: 0;
|
|
52
|
+
border-style: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
47
55
|
box-shadow: var(
|
|
48
56
|
--_show-shadow,
|
|
49
57
|
var(--_ctm-mob-dn-wt-se-sw-ae, var(--_ctm-tab-dn-wt-se-sw-ae, var(--_ctm-dn-wt-se-sw-ae)))
|
|
@@ -286,6 +294,7 @@
|
|
|
286
294
|
|
|
287
295
|
path {
|
|
288
296
|
stroke: var(--_sf-hr-in-c1, prepareMediaVariable(--_ctm-dn-ad-to-ct-dt-se-in-c1));
|
|
297
|
+
stroke-width: prepareMediaVariable(--_ctm-dn-ad-to-ct-dt-se-se-wh, 1);
|
|
289
298
|
}
|
|
290
299
|
}
|
|
291
300
|
}
|
|
@@ -509,6 +518,7 @@
|
|
|
509
518
|
|
|
510
519
|
path {
|
|
511
520
|
stroke: var(--_sf-hr-in-c1, prepareMediaVariable(--_ctm-dn-by-nw-dt-se-in-c1));
|
|
521
|
+
stroke-width: prepareMediaVariable(--_ctm-dn-by-nw-dt-se-se-wh, 1);
|
|
512
522
|
}
|
|
513
523
|
}
|
|
514
524
|
}
|
|
@@ -726,6 +736,7 @@
|
|
|
726
736
|
|
|
727
737
|
path {
|
|
728
738
|
stroke: var(--_sf-hr-in-c1, prepareMediaVariable(--_ctm-dn-wt-dt-se-in-c1));
|
|
739
|
+
stroke-width: prepareMediaVariable(--_ctm-dn-wt-dt-se-se-wh, 1);
|
|
729
740
|
}
|
|
730
741
|
}
|
|
731
742
|
}
|
|
@@ -942,6 +953,7 @@
|
|
|
942
953
|
|
|
943
954
|
path {
|
|
944
955
|
stroke: var(--_sf-hr-in-c1, prepareMediaVariable(--_ctm-dn-ce-dt-se-in-c1));
|
|
956
|
+
stroke-width: prepareMediaVariable(--_ctm-dn-ce-dt-se-se-wh, 1);
|
|
945
957
|
}
|
|
946
958
|
}
|
|
947
959
|
}
|
|
@@ -1167,6 +1179,7 @@
|
|
|
1167
1179
|
|
|
1168
1180
|
path {
|
|
1169
1181
|
stroke: var(--_sf-hr-in-c1, prepareMediaVariable(--_ctm-dn-ad-to-qe-dt-se-in-c1));
|
|
1182
|
+
stroke-width: prepareMediaVariable(--_ctm-dn-ad-to-qe-dt-se-se-wh, 1);
|
|
1170
1183
|
}
|
|
1171
1184
|
}
|
|
1172
1185
|
}
|
|
@@ -1425,6 +1438,7 @@
|
|
|
1425
1438
|
--_sf-hr-in-c1,
|
|
1426
1439
|
prepareMediaVariable(--_ctm-dn-ad-to-or-te-dt-se-in-c1)
|
|
1427
1440
|
);
|
|
1441
|
+
stroke-width: prepareMediaVariable(--_ctm-dn-ad-to-or-te-dt-se-se-wh, 1);
|
|
1428
1442
|
}
|
|
1429
1443
|
}
|
|
1430
1444
|
}
|
|
@@ -1643,6 +1657,7 @@
|
|
|
1643
1657
|
|
|
1644
1658
|
path {
|
|
1645
1659
|
stroke: var(--_sf-hr-in-c1, prepareMediaVariable(--_ctm-dn-ny-me-dt-se-in-c1));
|
|
1660
|
+
stroke-width: prepareMediaVariable(--_ctm-dn-ny-me-dt-se-se-wh, 1);
|
|
1646
1661
|
}
|
|
1647
1662
|
}
|
|
1648
1663
|
}
|
|
@@ -1858,6 +1873,7 @@
|
|
|
1858
1873
|
|
|
1859
1874
|
path {
|
|
1860
1875
|
stroke: var(--_sf-hr-in-c1, prepareMediaVariable(--_ctm-dn-dd-dt-se-in-c1));
|
|
1876
|
+
stroke-width: prepareMediaVariable(--_ctm-dn-dd-dt-se-se-wh, 1);
|
|
1861
1877
|
}
|
|
1862
1878
|
}
|
|
1863
1879
|
}
|
|
@@ -2073,6 +2089,7 @@
|
|
|
2073
2089
|
|
|
2074
2090
|
path {
|
|
2075
2091
|
stroke: var(--_sf-hr-in-c1, prepareMediaVariable(--_ctm-dn-me-dt-se-in-c1));
|
|
2092
|
+
stroke-width: prepareMediaVariable(--_ctm-dn-me-dt-se-se-wh, 1);
|
|
2076
2093
|
}
|
|
2077
2094
|
}
|
|
2078
2095
|
}
|
|
@@ -2321,6 +2338,11 @@
|
|
|
2321
2338
|
}
|
|
2322
2339
|
}
|
|
2323
2340
|
|
|
2341
|
+
// Horizontal side of the popover, from design > Popover Style > Popover Position.
|
|
2342
|
+
// Only the side changes — the vertical placement below is left to the display
|
|
2343
|
+
// style, so a vertically stacked list still opens beside its trigger and a
|
|
2344
|
+
// horizontal one still opens underneath it. "Right" is the original behaviour and
|
|
2345
|
+
// stays the default, so elements saved before this control are unaffected.
|
|
2324
2346
|
&[data-display-style="Stack Vertically"] {
|
|
2325
2347
|
.popover-box {
|
|
2326
2348
|
left: 100%;
|
|
@@ -2328,12 +2350,43 @@
|
|
|
2328
2350
|
margin-left: 6px;
|
|
2329
2351
|
top: 0;
|
|
2330
2352
|
}
|
|
2353
|
+
|
|
2354
|
+
// Beside the trigger, on its left instead of its right.
|
|
2355
|
+
.popover-container[data-popover-position="Left"] .popover-box {
|
|
2356
|
+
left: auto;
|
|
2357
|
+
right: 100%;
|
|
2358
|
+
margin-left: 0;
|
|
2359
|
+
margin-right: 6px;
|
|
2360
|
+
}
|
|
2331
2361
|
}
|
|
2332
2362
|
&[data-display-style="Stack Horizontally"] {
|
|
2333
2363
|
.popover-box {
|
|
2334
2364
|
right: 0;
|
|
2335
2365
|
margin-top: 6px;
|
|
2336
2366
|
}
|
|
2367
|
+
|
|
2368
|
+
// Under the trigger, aligned to its left edge instead of its right.
|
|
2369
|
+
.popover-container[data-popover-position="Left"] .popover-box {
|
|
2370
|
+
right: auto;
|
|
2371
|
+
left: 0;
|
|
2372
|
+
}
|
|
2373
|
+
}
|
|
2374
|
+
|
|
2375
|
+
// "Show Border" switch for the popover. The border is painted from CSS variables
|
|
2376
|
+
// above, so the switch arrives as a data attribute and the width is zeroed here.
|
|
2377
|
+
// Placed after the .popover-box rules and one attribute deeper, so it wins.
|
|
2378
|
+
.popover-container[data-popover-border="false"] .popover-box {
|
|
2379
|
+
border-width: 0;
|
|
2380
|
+
border-style: none;
|
|
2381
|
+
}
|
|
2382
|
+
|
|
2383
|
+
// The arrow sits on the edge facing the trigger, so it swaps sides with the box.
|
|
2384
|
+
// Its shadow is drawn on two adjacent sides, which also has to follow the flip.
|
|
2385
|
+
.popover-container[data-popover-position="Left"] .popover-arrow {
|
|
2386
|
+
left: auto;
|
|
2387
|
+
right: -5px;
|
|
2388
|
+
box-shadow: 1px 1px 0px
|
|
2389
|
+
var(--_ctm-mob-dn-pr-se-br-cr, var(--_ctm-tab-dn-pr-se-br-cr, var(--_ctm-dn-pr-se-br-cr)));
|
|
2337
2390
|
}
|
|
2338
2391
|
}
|
|
2339
2392
|
}
|
|
@@ -39,6 +39,9 @@ $overflowSelector: ".flex__overflow";
|
|
|
39
39
|
|
|
40
40
|
& > .wrapper {
|
|
41
41
|
width: 100%;
|
|
42
|
+
// Follow the elements own height so the styled box (background, border, shadow)
|
|
43
|
+
// matches the Height set in layout instead of only hugging the text.
|
|
44
|
+
min-height: inherit;
|
|
42
45
|
background-color: var(--_ctm-mob-dn-bd-cr, var(--_ctm-tab-dn-bd-cr, var(--_ctm-dn-bd-cr)));
|
|
43
46
|
padding: var(--_ctm-mob-lt-pg, var(--_ctm-tab-lt-pg, var(--_ctm-lt-pg)));
|
|
44
47
|
border-color: var(
|
|
@@ -128,7 +131,15 @@ $overflowSelector: ".flex__overflow";
|
|
|
128
131
|
font-style: var(--_ctm-mob-dn-ft-se-ic, var(--_ctm-tab-dn-ft-se-ic, var(--_ctm-dn-ft-se-ic)));
|
|
129
132
|
text-align: var(--_ctm-mob-dn-tt-an, var(--_ctm-tab-dn-tt-an, var(--_ctm-dn-tt-an)));
|
|
130
133
|
letter-spacing: var(--_ctm-mob-dn-lr-sg, var(--_ctm-tab-dn-lr-sg, var(--_ctm-dn-lr-sg)));
|
|
131
|
-
line-height
|
|
134
|
+
// Line box guard. The line-height control stores a fixed length (its default is
|
|
135
|
+
// 1rem), so it does not grow with the font size — at a large size the glyphs end
|
|
136
|
+
// up taller than their own line box and spill out of it, which is what makes the
|
|
137
|
+
// text look cut off. max(..., 1em) keeps the box at least as tall as the text
|
|
138
|
+
// while still honouring any larger value the user sets.
|
|
139
|
+
line-height: max(
|
|
140
|
+
var(--_ctm-mob-dn-le-ht, var(--_ctm-tab-dn-le-ht, var(--_ctm-dn-le-ht, 1em))),
|
|
141
|
+
1em
|
|
142
|
+
);
|
|
132
143
|
text-decoration: var(
|
|
133
144
|
--_sf-hr-tt-dn,
|
|
134
145
|
var(
|
|
@@ -179,6 +190,9 @@ $overflowSelector: ".flex__overflow";
|
|
|
179
190
|
|
|
180
191
|
& > .wrapper {
|
|
181
192
|
width: 100%;
|
|
193
|
+
// Follow the elements own height so the styled box (background, border, shadow)
|
|
194
|
+
// matches the Height set in layout instead of only hugging the text.
|
|
195
|
+
min-height: inherit;
|
|
182
196
|
|
|
183
197
|
background-color: var(--_ctm-mob-dn-bd-cr, var(--_ctm-tab-dn-bd-cr, var(--_ctm-dn-bd-cr)));
|
|
184
198
|
padding: var(--_ctm-mob-lt-pg, var(--_ctm-tab-lt-pg, var(--_ctm-lt-pg)));
|
|
@@ -287,7 +301,11 @@ $overflowSelector: ".flex__overflow";
|
|
|
287
301
|
);
|
|
288
302
|
text-align: var(--_ctm-mob-dn-tt-an, var(--_ctm-tab-dn-tt-an, var(--_ctm-dn-tt-an)));
|
|
289
303
|
letter-spacing: var(--_ctm-mob-dn-lr-sg, var(--_ctm-tab-dn-lr-sg, var(--_ctm-dn-lr-sg)));
|
|
290
|
-
|
|
304
|
+
// Line box guard — see the note on the other groups in this file.
|
|
305
|
+
line-height: max(
|
|
306
|
+
var(--_ctm-mob-dn-le-ht, var(--_ctm-tab-dn-le-ht, var(--_ctm-dn-le-ht, 1em))),
|
|
307
|
+
1em
|
|
308
|
+
);
|
|
291
309
|
text-decoration: var(
|
|
292
310
|
--_sf-hr-tt-dn,
|
|
293
311
|
var(
|
|
@@ -329,6 +347,9 @@ $overflowSelector: ".flex__overflow";
|
|
|
329
347
|
|
|
330
348
|
& > .wrapper {
|
|
331
349
|
width: 100%;
|
|
350
|
+
// Follow the elements own height so the styled box (background, border, shadow)
|
|
351
|
+
// matches the Height set in layout instead of only hugging the text.
|
|
352
|
+
min-height: inherit;
|
|
332
353
|
background-color: var(--_ctm-mob-dn-bd-cr, var(--_ctm-tab-dn-bd-cr, var(--_ctm-dn-bd-cr)));
|
|
333
354
|
padding: var(--_ctm-mob-lt-pg, var(--_ctm-tab-lt-pg, var(--_ctm-lt-pg)));
|
|
334
355
|
border-color: var(
|
|
@@ -402,7 +423,15 @@ $overflowSelector: ".flex__overflow";
|
|
|
402
423
|
font-style: var(--_ctm-mob-dn-ft-se-ic, var(--_ctm-tab-dn-ft-se-ic, var(--_ctm-dn-ft-se-ic)));
|
|
403
424
|
text-align: var(--_ctm-mob-dn-tt-an, var(--_ctm-tab-dn-tt-an, var(--_ctm-dn-tt-an)));
|
|
404
425
|
letter-spacing: var(--_ctm-mob-dn-lr-sg, var(--_ctm-tab-dn-lr-sg, var(--_ctm-dn-lr-sg)));
|
|
405
|
-
line-height
|
|
426
|
+
// Line box guard. The line-height control stores a fixed length (its default is
|
|
427
|
+
// 1rem), so it does not grow with the font size — at a large size the glyphs end
|
|
428
|
+
// up taller than their own line box and spill out of it, which is what makes the
|
|
429
|
+
// text look cut off. max(..., 1em) keeps the box at least as tall as the text
|
|
430
|
+
// while still honouring any larger value the user sets.
|
|
431
|
+
line-height: max(
|
|
432
|
+
var(--_ctm-mob-dn-le-ht, var(--_ctm-tab-dn-le-ht, var(--_ctm-dn-le-ht, 1em))),
|
|
433
|
+
1em
|
|
434
|
+
);
|
|
406
435
|
text-decoration: var(
|
|
407
436
|
--_sf-hr-tt-dn,
|
|
408
437
|
var(
|
|
@@ -453,6 +482,9 @@ $overflowSelector: ".flex__overflow";
|
|
|
453
482
|
|
|
454
483
|
& > .wrapper {
|
|
455
484
|
width: 100%;
|
|
485
|
+
// Follow the elements own height so the styled box (background, border, shadow)
|
|
486
|
+
// matches the Height set in layout instead of only hugging the text.
|
|
487
|
+
min-height: inherit;
|
|
456
488
|
background-color: var(--_ctm-mob-dn-bd-cr, var(--_ctm-tab-dn-bd-cr, var(--_ctm-dn-bd-cr)));
|
|
457
489
|
padding: var(--_ctm-mob-lt-pg, var(--_ctm-tab-lt-pg, var(--_ctm-lt-pg)));
|
|
458
490
|
border-color: var(
|
|
@@ -526,7 +558,15 @@ $overflowSelector: ".flex__overflow";
|
|
|
526
558
|
font-style: var(--_ctm-mob-dn-ft-se-ic, var(--_ctm-tab-dn-ft-se-ic, var(--_ctm-dn-ft-se-ic)));
|
|
527
559
|
text-align: var(--_ctm-mob-dn-tt-an, var(--_ctm-tab-dn-tt-an, var(--_ctm-dn-tt-an)));
|
|
528
560
|
letter-spacing: var(--_ctm-mob-dn-lr-sg, var(--_ctm-tab-dn-lr-sg, var(--_ctm-dn-lr-sg)));
|
|
529
|
-
line-height
|
|
561
|
+
// Line box guard. The line-height control stores a fixed length (its default is
|
|
562
|
+
// 1rem), so it does not grow with the font size — at a large size the glyphs end
|
|
563
|
+
// up taller than their own line box and spill out of it, which is what makes the
|
|
564
|
+
// text look cut off. max(..., 1em) keeps the box at least as tall as the text
|
|
565
|
+
// while still honouring any larger value the user sets.
|
|
566
|
+
line-height: max(
|
|
567
|
+
var(--_ctm-mob-dn-le-ht, var(--_ctm-tab-dn-le-ht, var(--_ctm-dn-le-ht, 1em))),
|
|
568
|
+
1em
|
|
569
|
+
);
|
|
530
570
|
text-decoration: var(
|
|
531
571
|
--_sf-hr-tt-dn,
|
|
532
572
|
var(
|
|
@@ -577,6 +617,9 @@ $overflowSelector: ".flex__overflow";
|
|
|
577
617
|
|
|
578
618
|
& > .wrapper {
|
|
579
619
|
width: 100%;
|
|
620
|
+
// Follow the elements own height so the styled box (background, border, shadow)
|
|
621
|
+
// matches the Height set in layout instead of only hugging the text.
|
|
622
|
+
min-height: inherit;
|
|
580
623
|
background-color: var(--_ctm-mob-dn-bd-cr, var(--_ctm-tab-dn-bd-cr, var(--_ctm-dn-bd-cr)));
|
|
581
624
|
padding: var(--_ctm-mob-lt-pg, var(--_ctm-tab-lt-pg, var(--_ctm-lt-pg)));
|
|
582
625
|
border-color: var(
|
|
@@ -696,6 +739,9 @@ $overflowSelector: ".flex__overflow";
|
|
|
696
739
|
|
|
697
740
|
& > .wrapper {
|
|
698
741
|
width: 100%;
|
|
742
|
+
// Follow the elements own height so the styled box (background, border, shadow)
|
|
743
|
+
// matches the Height set in layout instead of only hugging the text.
|
|
744
|
+
min-height: inherit;
|
|
699
745
|
// height: 100%;
|
|
700
746
|
|
|
701
747
|
border-color: var(
|
package/dist/productDetails.scss
CHANGED
|
@@ -97,6 +97,39 @@ $resizeActive: '[data-cms-element-resizer="true"]';
|
|
|
97
97
|
// );
|
|
98
98
|
min-height: var(--_ctm-mob-prod-lt-ht, var(--_ctm-tab-prod-lt-ht, var(--_ctm-prod-lt-ht)));
|
|
99
99
|
|
|
100
|
+
// Layout padding, and the design section's border and shadow. None of these were
|
|
101
|
+
// consumed here before — the schema declares all of them, but this stylesheet only
|
|
102
|
+
// handled width, margin, min-height and the background, so Padding, Border Style,
|
|
103
|
+
// Border Radius and Box Shadow each had nothing reading the value they wrote.
|
|
104
|
+
// Every variable carries an explicit fallback so elements saved before this keep
|
|
105
|
+
// rendering bare rather than inheriting the parent's border or background.
|
|
106
|
+
padding: prepareMediaVariable(--_ctm-prod-lt-pg, 0);
|
|
107
|
+
// Padding and border are drawn inside the width and height set in layout instead of
|
|
108
|
+
// adding to them, so the element keeps the size the user asked for.
|
|
109
|
+
box-sizing: border-box;
|
|
110
|
+
|
|
111
|
+
border-color: prepareMediaVariable(--_ctm-prod-dn-br-cr, transparent);
|
|
112
|
+
border-style: prepareMediaVariable(--_ctm-prod-dn-br-se, none);
|
|
113
|
+
border-width: prepareMediaVariable(--_ctm-prod-dn-br-wh, 0);
|
|
114
|
+
border-radius: prepareMediaVariable(--_ctm-prod-dn-br-rs, 0);
|
|
115
|
+
|
|
116
|
+
box-shadow: var(
|
|
117
|
+
--_show-shadow,
|
|
118
|
+
prepareMediaVariable(--_ctm-prod-dn-sw-ae, 0 0) prepareMediaVariable(--_ctm-prod-dn-sw-br, 0)
|
|
119
|
+
prepareMediaVariable(--_ctm-prod-dn-sw-sd, 0)
|
|
120
|
+
prepareMediaVariable(--_ctm-prod-dn-sw-cr, transparent)
|
|
121
|
+
);
|
|
122
|
+
|
|
123
|
+
// "Show Border" / "Show Shadow" switches, surfaced as data attributes by the
|
|
124
|
+
// element since the properties above are painted from variables.
|
|
125
|
+
&[data-show-border="false"] {
|
|
126
|
+
border-width: 0;
|
|
127
|
+
border-style: none;
|
|
128
|
+
}
|
|
129
|
+
&[data-show-shadow="false"] {
|
|
130
|
+
--_show-shadow: none;
|
|
131
|
+
}
|
|
132
|
+
|
|
100
133
|
// &:not(:has(#{$resizerId}#{$resizeActive})) {
|
|
101
134
|
// min-height: 100px !important;
|
|
102
135
|
// }
|
package/dist/quick-links.scss
CHANGED
|
@@ -78,7 +78,6 @@
|
|
|
78
78
|
border-width: prepareMediaVariable(--_ctm-dn-im-se-dt-se-br-wh);
|
|
79
79
|
border-color: prepareMediaVariable(--_ctm-dn-im-se-dt-se-br-cr);
|
|
80
80
|
border-style: prepareMediaVariable(--_ctm-dn-im-se-dt-se-br-se);
|
|
81
|
-
border-radius: prepareMediaVariable(--_ctm-dn-im-se-dt-se-br-rs);
|
|
82
81
|
}
|
|
83
82
|
}
|
|
84
83
|
|
|
@@ -94,7 +93,6 @@
|
|
|
94
93
|
border-width: prepareMediaVariable(--_ctm-dn-im-se-hr-se-br-wh);
|
|
95
94
|
border-color: prepareMediaVariable(--_ctm-dn-im-se-hr-se-br-cr);
|
|
96
95
|
border-style: prepareMediaVariable(--_ctm-dn-im-se-hr-se-br-se);
|
|
97
|
-
border-radius: prepareMediaVariable(--_ctm-dn-im-se-hr-se-br-rs);
|
|
98
96
|
}
|
|
99
97
|
}
|
|
100
98
|
|
|
@@ -185,6 +183,7 @@
|
|
|
185
183
|
gap: var(--_ctm-mob-lt-gp-bn-is, var(--_ctm-tab-gp-bn-is, var(--_ctm-lt-gp-bn-is)));
|
|
186
184
|
}
|
|
187
185
|
}
|
|
186
|
+
|
|
188
187
|
&[data-display-style="Wrap Horizontal"] {
|
|
189
188
|
.quick__links__container .items__container {
|
|
190
189
|
display: flex;
|
|
@@ -199,45 +198,54 @@
|
|
|
199
198
|
flex-direction: column;
|
|
200
199
|
}
|
|
201
200
|
}
|
|
201
|
+
|
|
202
202
|
&[data-text-position="bottom"] {
|
|
203
203
|
.quick__links__container {
|
|
204
204
|
flex-direction: column-reverse;
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
+
|
|
207
208
|
&[data-text-position="left"] {
|
|
208
209
|
.quick__links__container {
|
|
209
210
|
flex-direction: row;
|
|
210
211
|
}
|
|
212
|
+
|
|
211
213
|
&[data-widget-alignment="top"] {
|
|
212
214
|
.quick__links__container {
|
|
213
215
|
align-items: flex-start;
|
|
214
216
|
}
|
|
215
217
|
}
|
|
218
|
+
|
|
216
219
|
&[data-widget-alignment="center"] {
|
|
217
220
|
.quick__links__container {
|
|
218
221
|
align-items: center;
|
|
219
222
|
}
|
|
220
223
|
}
|
|
224
|
+
|
|
221
225
|
&[data-widget-alignment="bottom"] {
|
|
222
226
|
.quick__links__container {
|
|
223
227
|
align-items: flex-end;
|
|
224
228
|
}
|
|
225
229
|
}
|
|
226
230
|
}
|
|
231
|
+
|
|
227
232
|
&[data-text-position="right"] {
|
|
228
233
|
.quick__links__container {
|
|
229
234
|
flex-direction: row-reverse;
|
|
230
235
|
}
|
|
236
|
+
|
|
231
237
|
&[data-widget-alignment="top"] {
|
|
232
238
|
.quick__links__container {
|
|
233
239
|
align-items: flex-start;
|
|
234
240
|
}
|
|
235
241
|
}
|
|
242
|
+
|
|
236
243
|
&[data-widget-alignment="center"] {
|
|
237
244
|
.quick__links__container {
|
|
238
245
|
align-items: center;
|
|
239
246
|
}
|
|
240
247
|
}
|
|
248
|
+
|
|
241
249
|
&[data-widget-alignment="bottom"] {
|
|
242
250
|
.quick__links__container {
|
|
243
251
|
align-items: flex-end;
|
|
@@ -297,11 +305,13 @@
|
|
|
297
305
|
&[data-content-shadow="false"] {
|
|
298
306
|
--_show-text-content-shadow: none;
|
|
299
307
|
}
|
|
308
|
+
|
|
300
309
|
&[data-icon-background-shape="circle"] {
|
|
301
310
|
.video__icon {
|
|
302
311
|
border-radius: 50%;
|
|
303
312
|
}
|
|
304
313
|
}
|
|
314
|
+
|
|
305
315
|
&[data-icon-background-shape="rectange"] {
|
|
306
316
|
.video__icon {
|
|
307
317
|
border-radius: 6px;
|
|
@@ -398,6 +408,7 @@
|
|
|
398
408
|
var(--_ctm-tab-dn-qk-ls-tt-cr-dn-sw-cr, var(--_ctm-dn-qk-ls-tt-cr-dn-sw-cr))
|
|
399
409
|
)
|
|
400
410
|
);
|
|
411
|
+
|
|
401
412
|
h3 {
|
|
402
413
|
font-family: prepareMediaVariable(--_ctm-dn-qk-ls-wt-dn-ft-fy);
|
|
403
414
|
font-size: prepareMediaVariable(--_ctm-dn-qk-ls-wt-dn-ft-se);
|
|
@@ -502,6 +513,10 @@
|
|
|
502
513
|
}
|
|
503
514
|
|
|
504
515
|
.items__container {
|
|
516
|
+
.dropdown__container {
|
|
517
|
+
width: prepareMediaVariable(--_ctm-lt-dn-wh);
|
|
518
|
+
}
|
|
519
|
+
|
|
505
520
|
.links__item,
|
|
506
521
|
.dropdown__container .est__dropdown__main .est__dropdown .list .list__option {
|
|
507
522
|
display: block;
|
|
@@ -517,6 +532,7 @@
|
|
|
517
532
|
background-color: prepareMediaVariable(--_ctm-dn-im-se-dt-se-bd-cr);
|
|
518
533
|
padding: prepareMediaVariable(--_ctm-dn-im-se-dt-se-pg);
|
|
519
534
|
width: fit-content;
|
|
535
|
+
border-radius: prepareMediaVariable(--_ctm-dn-im-se-dt-se-br-rs);
|
|
520
536
|
|
|
521
537
|
&:hover {
|
|
522
538
|
font-family: prepareMediaVariable(--_ctm-dn-im-se-hr-se-ft-fy);
|
|
@@ -530,9 +546,11 @@
|
|
|
530
546
|
line-height: prepareMediaVariable(--_ctm-dn-im-se-hr-se-le-ht);
|
|
531
547
|
background-color: prepareMediaVariable(--_ctm-dn-im-se-hr-se-bd-cr);
|
|
532
548
|
padding: prepareMediaVariable(--_ctm-dn-im-se-hr-se-pg);
|
|
549
|
+
border-radius: prepareMediaVariable(--_ctm-dn-im-se-hr-se-br-rs);
|
|
533
550
|
}
|
|
534
551
|
}
|
|
535
552
|
}
|
|
553
|
+
|
|
536
554
|
.placeholder__text {
|
|
537
555
|
display: flex !important;
|
|
538
556
|
justify-content: space-between !important;
|
|
@@ -543,12 +561,14 @@
|
|
|
543
561
|
background-color: #fff !important;
|
|
544
562
|
width: 100% !important;
|
|
545
563
|
}
|
|
564
|
+
|
|
546
565
|
.est__dropdown .list {
|
|
547
566
|
gap: var(
|
|
548
567
|
--_ctm-mob-lt-dn-gp-bn-is,
|
|
549
568
|
var(--_ctm-tab-lt-dn-gp-bn-is, var(--_ctm-lt-dn-gp-bn-is))
|
|
550
569
|
);
|
|
551
570
|
}
|
|
571
|
+
|
|
552
572
|
.items__container {
|
|
553
573
|
.dropdown__container {
|
|
554
574
|
.est__dropdown__main {
|
|
@@ -561,6 +581,7 @@
|
|
|
561
581
|
padding: 0px !important;
|
|
562
582
|
background-color: transparent;
|
|
563
583
|
}
|
|
584
|
+
|
|
564
585
|
.list {
|
|
565
586
|
width: var(
|
|
566
587
|
--_ctm-mob-lt-dn-wh,
|