@sc-360-v2/storefront-cms-library 0.5.69 → 0.5.71
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 +68 -68
- package/dist/add-products-tab-details.scss +4071 -4071
- package/dist/add-products-tab-uom-details.scss +1106 -1106
- package/dist/add-products-tab.scss +2377 -2377
- package/dist/allocation-header-quota-details.scss +609 -609
- package/dist/allocations-quota-details.scss +525 -525
- package/dist/amount-estimator.scss +1192 -1192
- package/dist/animation-control.scss +23 -23
- package/dist/badge.scss +408 -408
- package/dist/brand-basic-elements.scss +387 -387
- package/dist/brand.scss +142 -142
- package/dist/breadcrumbs.scss +966 -966
- package/dist/builder.js +1 -1
- package/dist/bulk-order-pad.scss +692 -692
- package/dist/bundleCategories.scss +301 -301
- package/dist/bundleDetails.scss +6189 -6189
- package/dist/buy-for-tab-container.scss +141 -141
- package/dist/buy-for-tab.scss +649 -649
- package/dist/buy-for-tabs-container-item.scss +80 -80
- package/dist/buyForPopup.scss +339 -339
- package/dist/cart-details.scss +3986 -3986
- package/dist/cart-products-sidebar.scss +211 -211
- package/dist/cart-summary.scss +2826 -2826
- package/dist/cart-wrapper.scss +127 -127
- package/dist/cartAttributes.scss +1422 -1422
- package/dist/cartDropdownOverlay.scss +653 -653
- package/dist/cartGrouping.scss +89 -89
- package/dist/category-groups-element.scss +739 -739
- package/dist/category-groups-quota-details.scss +626 -626
- package/dist/category.scss +137 -137
- package/dist/categoryDetails.scss +61 -61
- package/dist/categoryWidget.scss +34 -34
- package/dist/checkbox-radio.scss +124 -124
- package/dist/code-temp.scss +59 -59
- package/dist/colorpicker_v2.scss +62 -62
- package/dist/common-element.scss +35 -35
- package/dist/confirm-modal.scss +370 -370
- package/dist/confirmationModal.scss +139 -139
- package/dist/contact-us.scss +105 -105
- package/dist/container.scss +168 -168
- package/dist/countdown.scss +899 -899
- package/dist/coupon.scss +1519 -1519
- package/dist/custom-fonts.scss +100 -100
- package/dist/customization-tree.scss +162 -162
- package/dist/default-dropdown.scss +259 -259
- package/dist/dropdownTemplate.scss +699 -699
- package/dist/editCartItem.scss +110 -110
- package/dist/embed-temp.scss +73 -73
- package/dist/embroider-preview-element.scss +94 -94
- package/dist/embroider-template-1-v2.scss +1105 -1105
- package/dist/embroider-template-1.scss +501 -501
- package/dist/embroidery.scss +247 -247
- package/dist/employee-bulk-order.scss +4060 -4060
- package/dist/emtpy-templates.scss +165 -165
- package/dist/faq.scss +696 -696
- package/dist/fb-dropdown.scss +135 -135
- package/dist/filter-results.scss +361 -361
- package/dist/filters.scss +3040 -3040
- package/dist/flex-text-editor.scss +271 -271
- package/dist/form-preview.scss +530 -530
- package/dist/gallery-slider-temp.scss +1776 -1776
- package/dist/global-styles.scss +198 -198
- package/dist/grid.scss +169 -169
- package/dist/icon-library.scss +78 -78
- package/dist/icon-list.scss +39 -0
- package/dist/image-for-product.scss +21 -21
- package/dist/image-temp.scss +203 -203
- package/dist/item-stock.scss +93 -93
- package/dist/kitDetails.scss +5739 -5739
- package/dist/kits.scss +305 -305
- package/dist/language-selector.scss +948 -948
- package/dist/last-x-orders.scss +285 -285
- package/dist/layouter-item.scss +141 -141
- package/dist/layouter-pro-item.scss +139 -139
- package/dist/layouter-pro.scss +134 -134
- package/dist/layouter.scss +491 -491
- package/dist/light-box-v2.scss +155 -155
- package/dist/lightbox.scss +78 -78
- package/dist/loader.scss +37 -37
- package/dist/login.scss +29 -11
- package/dist/map.scss +1359 -1359
- package/dist/marchandiserSets.scss +141 -141
- package/dist/mega-menu-container.scss +152 -152
- package/dist/menu-item.scss +19 -19
- package/dist/menu-v2.scss +999 -999
- package/dist/menu.scss +174 -174
- package/dist/multi-select-dropdown.scss +316 -316
- package/dist/my-templates.scss +477 -477
- package/dist/my-wishlist.scss +27 -27
- package/dist/option-bar.scss +886 -886
- package/dist/order-processing.scss +61 -61
- package/dist/order-status.scss +2187 -2187
- package/dist/overflow-module.scss +63 -63
- package/dist/past-orders.scss +1039 -1039
- package/dist/payment-methods.scss +307 -307
- package/dist/phone-input.scss +208 -208
- package/dist/pickup-locations.scss +1359 -1359
- package/dist/position-module.scss +95 -95
- package/dist/prefix-list.scss +86 -86
- package/dist/product-actions.scss +2872 -2872
- package/dist/product-basic-elements.scss +600 -600
- package/dist/product-customizations.scss +155 -155
- package/dist/product-highlights.scss +348 -348
- package/dist/product-image-allocation.scss +1477 -1477
- package/dist/product-inventory.scss +1621 -1621
- package/dist/product-labels.scss +265 -265
- package/dist/product-options.scss +1444 -1444
- package/dist/product-price.scss +4 -0
- package/dist/product-promotions.scss +3224 -3224
- package/dist/product-sizechart.scss +1921 -1921
- package/dist/product.scss +140 -140
- package/dist/profile.scss +824 -824
- package/dist/quantity-selector.scss +1074 -1074
- package/dist/quick-inventory-check.scss +285 -285
- package/dist/quick-links.scss +627 -627
- package/dist/quota-details.scss +526 -526
- package/dist/quotes.scss +847 -847
- package/dist/repeater-embla-controls.scss +211 -211
- package/dist/repeater-grid-toggle.scss +206 -206
- package/dist/repeater-item.scss +152 -152
- package/dist/repeater.scss +946 -946
- package/dist/request-for-quotes.scss +841 -841
- package/dist/responsive-behaviour.scss +29 -29
- package/dist/rfqs.scss +861 -861
- package/dist/scroll.scss +414 -414
- package/dist/search-results-heading.scss +309 -309
- package/dist/search.scss +689 -689
- package/dist/section.scss +276 -276
- package/dist/shareCartSideBar.scss +254 -254
- package/dist/shipping-estimator.scss +41 -41
- package/dist/shipping-payments.scss +2518 -2518
- package/dist/simple-list.scss +338 -338
- package/dist/skeleton.scss +64 -64
- package/dist/spotlight.scss +1706 -1706
- package/dist/stack.scss +171 -171
- package/dist/static-global.scss +292 -292
- package/dist/static-text.scss +52 -52
- package/dist/stockStatus.scss +70 -70
- package/dist/store-locations.scss +1592 -1592
- 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 +141 -141
- package/dist/table.scss +9 -0
- package/dist/tabs.scss +440 -440
- package/dist/text-temp.scss +109 -109
- package/dist/theme-classes.scss +421 -421
- package/dist/toaster.scss +392 -392
- package/dist/toggle-button.scss +32 -32
- package/dist/transform-properties-module.scss +20 -20
- package/dist/types/builder/tools/element-edit/icon-list.d.ts +5 -0
- package/dist/types/builder/tools/element-edit/login.d.ts +1 -0
- package/dist/types/builder/tools/element-edit/resetPassword.d.ts +1 -0
- package/dist/types/builder/tools/element-edit/userElements.d.ts +99 -0
- package/dist/user-elements.scss +2896 -2911
- package/dist/widget.scss +153 -153
- package/dist/wishlist-overlay.scss +48 -48
- package/package.json +1 -1
package/dist/global-styles.scss
CHANGED
|
@@ -1,198 +1,198 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "sass:list";
|
|
3
|
-
@use "./functions.scss" as *;
|
|
4
|
-
|
|
5
|
-
.custom-upload {
|
|
6
|
-
display: flex;
|
|
7
|
-
&:has(.preview_image_container) {
|
|
8
|
-
justify-content: space-between;
|
|
9
|
-
}
|
|
10
|
-
align-items: center;
|
|
11
|
-
border: 1px solid var(--_gray-300);
|
|
12
|
-
background-color: var(--_base-white);
|
|
13
|
-
padding: 16px;
|
|
14
|
-
border-radius: 4px;
|
|
15
|
-
gap: 12px;
|
|
16
|
-
.preview_image_container {
|
|
17
|
-
width: 100%;
|
|
18
|
-
display: flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
gap: 12px;
|
|
21
|
-
.image_title {
|
|
22
|
-
font-size: 14px;
|
|
23
|
-
margin-top: 3px;
|
|
24
|
-
.label {
|
|
25
|
-
color: var(--_thm-cs-at-sy);
|
|
26
|
-
@include restrictToLinesShow(1);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
.preview_image {
|
|
30
|
-
height: 36px;
|
|
31
|
-
width: 36px;
|
|
32
|
-
border-radius: 50%;
|
|
33
|
-
padding: 4px;
|
|
34
|
-
background: var(--_base-white);
|
|
35
|
-
border: 1px solid var(--_gray-300);
|
|
36
|
-
img {
|
|
37
|
-
width: 100%;
|
|
38
|
-
width: 100%;
|
|
39
|
-
object-fit: contain;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
.clear_upload_icon {
|
|
44
|
-
svg {
|
|
45
|
-
width: 18px;
|
|
46
|
-
height: 18px;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
.uploadicon {
|
|
50
|
-
padding: 8px;
|
|
51
|
-
display: flex;
|
|
52
|
-
justify-content: center;
|
|
53
|
-
align-items: center;
|
|
54
|
-
background: var(--_gray-200);
|
|
55
|
-
outline: 6px solid var(--_gray-100);
|
|
56
|
-
border-radius: 50%;
|
|
57
|
-
height: 36px;
|
|
58
|
-
width: 36px;
|
|
59
|
-
.svg_icon {
|
|
60
|
-
svg {
|
|
61
|
-
width: 20px;
|
|
62
|
-
height: 20px;
|
|
63
|
-
path {
|
|
64
|
-
stroke: var(--_gray-700);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.file_upload_text {
|
|
71
|
-
display: flex;
|
|
72
|
-
flex-direction: column;
|
|
73
|
-
gap: 8px;
|
|
74
|
-
.label {
|
|
75
|
-
@include restrictToLinesShow(1);
|
|
76
|
-
}
|
|
77
|
-
p {
|
|
78
|
-
color: var(--_thm-cs-at-py);
|
|
79
|
-
font-weight: 600;
|
|
80
|
-
}
|
|
81
|
-
span {
|
|
82
|
-
color: var(--_thm-cs-at-sy);
|
|
83
|
-
font-size: 14px;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
// Skeleton for the reused ProductOptions swatches (rendered inside the CMS
|
|
89
|
-
// builder/preview, e.g. the Category Groups product cards). Mirrors the website
|
|
90
|
-
// globals so the swatch placeholders keep their spacing here too.
|
|
91
|
-
.product_options_skeleton {
|
|
92
|
-
width: 100%;
|
|
93
|
-
.sklts_swatch {
|
|
94
|
-
display: flex;
|
|
95
|
-
gap: 8px;
|
|
96
|
-
margin-bottom: 8px;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// Skeleton base styles (mirrored from storefront-websites globals so reused
|
|
101
|
-
// element skeletons render identically inside the CMS builder/preview).
|
|
102
|
-
.skeleton {
|
|
103
|
-
background-color: #e5e7eb !important;
|
|
104
|
-
border: none !important;
|
|
105
|
-
min-height: 8px;
|
|
106
|
-
position: relative;
|
|
107
|
-
overflow: hidden;
|
|
108
|
-
display: block;
|
|
109
|
-
|
|
110
|
-
&--rectangular {
|
|
111
|
-
width: 100%;
|
|
112
|
-
height: 100%;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
&--circular {
|
|
116
|
-
border-radius: 50%;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
&--text {
|
|
120
|
-
transform-origin: 0 55%;
|
|
121
|
-
transform: scale(1, 0.6);
|
|
122
|
-
border-radius: 4px;
|
|
123
|
-
|
|
124
|
-
&::before {
|
|
125
|
-
content: "\00a0";
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
&--shimmer {
|
|
130
|
-
&::after {
|
|
131
|
-
content: "";
|
|
132
|
-
position: absolute;
|
|
133
|
-
top: 0;
|
|
134
|
-
left: 0;
|
|
135
|
-
right: 0;
|
|
136
|
-
bottom: 0;
|
|
137
|
-
background: linear-gradient(
|
|
138
|
-
90deg,
|
|
139
|
-
transparent 0%,
|
|
140
|
-
rgba(255, 255, 255, 0.4) 50%,
|
|
141
|
-
transparent 100%
|
|
142
|
-
);
|
|
143
|
-
animation: skeleton-shimmer 1.5s infinite;
|
|
144
|
-
transform: translateX(-100%);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
&--pulse {
|
|
149
|
-
animation: skeleton-pulse 1.5s ease-in-out infinite;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
@keyframes skeleton-shimmer {
|
|
154
|
-
0% {
|
|
155
|
-
transform: translateX(-100%);
|
|
156
|
-
}
|
|
157
|
-
100% {
|
|
158
|
-
transform: translateX(100%);
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
@keyframes skeleton-pulse {
|
|
163
|
-
0%,
|
|
164
|
-
100% {
|
|
165
|
-
opacity: 1;
|
|
166
|
-
}
|
|
167
|
-
50% {
|
|
168
|
-
opacity: 0.5;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.skeleton__element {
|
|
173
|
-
@extend .skeleton;
|
|
174
|
-
@extend .skeleton--shimmer;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
// Text Overflow fallback.
|
|
178
|
-
//
|
|
179
|
-
// Text Overflow is a `controls` property, not a CSS one, so it cannot travel to the
|
|
180
|
-
// stylesheet as a variable — the renderer opts a text node in with `.flex__overflow`
|
|
181
|
-
// and carries the line count in `--_sf-line-clamp`.
|
|
182
|
-
//
|
|
183
|
-
// This is the clamp declared once, for every text node whose own block does not set a
|
|
184
|
-
// competing `display`. Blocks that do (a flex label, say) carry their own scoped
|
|
185
|
-
// `&.flex__overflow` rule, since this one is a single class and would lose to them.
|
|
186
|
-
//
|
|
187
|
-
// The class is only ever emitted when the toggle is on, so this cannot clamp a node
|
|
188
|
-
// that was not asked to be clamped.
|
|
189
|
-
//
|
|
190
|
-
// Mirrored in storefront-cms-library/src/components/css/widgets/global-styles.scss —
|
|
191
|
-
// change one, copy it across.
|
|
192
|
-
.flex__overflow {
|
|
193
|
-
// A clamp can only reach its second line if the text is allowed to wrap, so this
|
|
194
|
-
// undoes any `white-space: nowrap` the node carries — the same thing the hand-written
|
|
195
|
-
// clamps in allocations-quota-details.scss and friends do.
|
|
196
|
-
white-space: normal;
|
|
197
|
-
@include restrictToLinesShow(#{var(--_sf-line-clamp, 1)});
|
|
198
|
-
}
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "sass:list";
|
|
3
|
+
@use "./functions.scss" as *;
|
|
4
|
+
|
|
5
|
+
.custom-upload {
|
|
6
|
+
display: flex;
|
|
7
|
+
&:has(.preview_image_container) {
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
}
|
|
10
|
+
align-items: center;
|
|
11
|
+
border: 1px solid var(--_gray-300);
|
|
12
|
+
background-color: var(--_base-white);
|
|
13
|
+
padding: 16px;
|
|
14
|
+
border-radius: 4px;
|
|
15
|
+
gap: 12px;
|
|
16
|
+
.preview_image_container {
|
|
17
|
+
width: 100%;
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
gap: 12px;
|
|
21
|
+
.image_title {
|
|
22
|
+
font-size: 14px;
|
|
23
|
+
margin-top: 3px;
|
|
24
|
+
.label {
|
|
25
|
+
color: var(--_thm-cs-at-sy);
|
|
26
|
+
@include restrictToLinesShow(1);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
.preview_image {
|
|
30
|
+
height: 36px;
|
|
31
|
+
width: 36px;
|
|
32
|
+
border-radius: 50%;
|
|
33
|
+
padding: 4px;
|
|
34
|
+
background: var(--_base-white);
|
|
35
|
+
border: 1px solid var(--_gray-300);
|
|
36
|
+
img {
|
|
37
|
+
width: 100%;
|
|
38
|
+
width: 100%;
|
|
39
|
+
object-fit: contain;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
.clear_upload_icon {
|
|
44
|
+
svg {
|
|
45
|
+
width: 18px;
|
|
46
|
+
height: 18px;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
.uploadicon {
|
|
50
|
+
padding: 8px;
|
|
51
|
+
display: flex;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
align-items: center;
|
|
54
|
+
background: var(--_gray-200);
|
|
55
|
+
outline: 6px solid var(--_gray-100);
|
|
56
|
+
border-radius: 50%;
|
|
57
|
+
height: 36px;
|
|
58
|
+
width: 36px;
|
|
59
|
+
.svg_icon {
|
|
60
|
+
svg {
|
|
61
|
+
width: 20px;
|
|
62
|
+
height: 20px;
|
|
63
|
+
path {
|
|
64
|
+
stroke: var(--_gray-700);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.file_upload_text {
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
gap: 8px;
|
|
74
|
+
.label {
|
|
75
|
+
@include restrictToLinesShow(1);
|
|
76
|
+
}
|
|
77
|
+
p {
|
|
78
|
+
color: var(--_thm-cs-at-py);
|
|
79
|
+
font-weight: 600;
|
|
80
|
+
}
|
|
81
|
+
span {
|
|
82
|
+
color: var(--_thm-cs-at-sy);
|
|
83
|
+
font-size: 14px;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// Skeleton for the reused ProductOptions swatches (rendered inside the CMS
|
|
89
|
+
// builder/preview, e.g. the Category Groups product cards). Mirrors the website
|
|
90
|
+
// globals so the swatch placeholders keep their spacing here too.
|
|
91
|
+
.product_options_skeleton {
|
|
92
|
+
width: 100%;
|
|
93
|
+
.sklts_swatch {
|
|
94
|
+
display: flex;
|
|
95
|
+
gap: 8px;
|
|
96
|
+
margin-bottom: 8px;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// Skeleton base styles (mirrored from storefront-websites globals so reused
|
|
101
|
+
// element skeletons render identically inside the CMS builder/preview).
|
|
102
|
+
.skeleton {
|
|
103
|
+
background-color: #e5e7eb !important;
|
|
104
|
+
border: none !important;
|
|
105
|
+
min-height: 8px;
|
|
106
|
+
position: relative;
|
|
107
|
+
overflow: hidden;
|
|
108
|
+
display: block;
|
|
109
|
+
|
|
110
|
+
&--rectangular {
|
|
111
|
+
width: 100%;
|
|
112
|
+
height: 100%;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&--circular {
|
|
116
|
+
border-radius: 50%;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&--text {
|
|
120
|
+
transform-origin: 0 55%;
|
|
121
|
+
transform: scale(1, 0.6);
|
|
122
|
+
border-radius: 4px;
|
|
123
|
+
|
|
124
|
+
&::before {
|
|
125
|
+
content: "\00a0";
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&--shimmer {
|
|
130
|
+
&::after {
|
|
131
|
+
content: "";
|
|
132
|
+
position: absolute;
|
|
133
|
+
top: 0;
|
|
134
|
+
left: 0;
|
|
135
|
+
right: 0;
|
|
136
|
+
bottom: 0;
|
|
137
|
+
background: linear-gradient(
|
|
138
|
+
90deg,
|
|
139
|
+
transparent 0%,
|
|
140
|
+
rgba(255, 255, 255, 0.4) 50%,
|
|
141
|
+
transparent 100%
|
|
142
|
+
);
|
|
143
|
+
animation: skeleton-shimmer 1.5s infinite;
|
|
144
|
+
transform: translateX(-100%);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&--pulse {
|
|
149
|
+
animation: skeleton-pulse 1.5s ease-in-out infinite;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
@keyframes skeleton-shimmer {
|
|
154
|
+
0% {
|
|
155
|
+
transform: translateX(-100%);
|
|
156
|
+
}
|
|
157
|
+
100% {
|
|
158
|
+
transform: translateX(100%);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
@keyframes skeleton-pulse {
|
|
163
|
+
0%,
|
|
164
|
+
100% {
|
|
165
|
+
opacity: 1;
|
|
166
|
+
}
|
|
167
|
+
50% {
|
|
168
|
+
opacity: 0.5;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.skeleton__element {
|
|
173
|
+
@extend .skeleton;
|
|
174
|
+
@extend .skeleton--shimmer;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// Text Overflow fallback.
|
|
178
|
+
//
|
|
179
|
+
// Text Overflow is a `controls` property, not a CSS one, so it cannot travel to the
|
|
180
|
+
// stylesheet as a variable — the renderer opts a text node in with `.flex__overflow`
|
|
181
|
+
// and carries the line count in `--_sf-line-clamp`.
|
|
182
|
+
//
|
|
183
|
+
// This is the clamp declared once, for every text node whose own block does not set a
|
|
184
|
+
// competing `display`. Blocks that do (a flex label, say) carry their own scoped
|
|
185
|
+
// `&.flex__overflow` rule, since this one is a single class and would lose to them.
|
|
186
|
+
//
|
|
187
|
+
// The class is only ever emitted when the toggle is on, so this cannot clamp a node
|
|
188
|
+
// that was not asked to be clamped.
|
|
189
|
+
//
|
|
190
|
+
// Mirrored in storefront-cms-library/src/components/css/widgets/global-styles.scss —
|
|
191
|
+
// change one, copy it across.
|
|
192
|
+
.flex__overflow {
|
|
193
|
+
// A clamp can only reach its second line if the text is allowed to wrap, so this
|
|
194
|
+
// undoes any `white-space: nowrap` the node carries — the same thing the hand-written
|
|
195
|
+
// clamps in allocations-quota-details.scss and friends do.
|
|
196
|
+
white-space: normal;
|
|
197
|
+
@include restrictToLinesShow(#{var(--_sf-line-clamp, 1)});
|
|
198
|
+
}
|