@lumx/core 4.28.0 → 4.29.0-next.0
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/package.json +2 -2
- package/scss/components/avatar/_index.scss +2 -2
- package/scss/components/badge/_index.scss +3 -3
- package/scss/components/button/_index.scss +29 -29
- package/scss/components/card/_index.scss +1 -1
- package/scss/components/checkbox/_index.scss +54 -54
- package/scss/components/chip/_index.scss +22 -22
- package/scss/components/combobox/_index.scss +4 -4
- package/scss/components/comment-block/_index.scss +1 -1
- package/scss/components/composite/_index.scss +2 -2
- package/scss/components/date-picker/_index.scss +1 -1
- package/scss/components/dialog/_index.scss +3 -3
- package/scss/components/divider/_index.scss +3 -3
- package/scss/components/drag-handle/_index.scss +1 -1
- package/scss/components/dropdown/_index.scss +1 -1
- package/scss/components/expansion-panel/_index.scss +1 -1
- package/scss/components/flag/_index.scss +4 -4
- package/scss/components/flex-box/_index.scss +34 -34
- package/scss/components/generic-block/_index.scss +1 -1
- package/scss/components/grid/_index.scss +30 -30
- package/scss/components/grid-column/_index.scss +1 -1
- package/scss/components/icon/_index.scss +9 -9
- package/scss/components/image-block/_index.scss +2 -2
- package/scss/components/image-lightbox/_index.scss +7 -7
- package/scss/components/inline-list/_index.scss +1 -1
- package/scss/components/input-helper/_index.scss +1 -1
- package/scss/components/input-label/_index.scss +2 -2
- package/scss/components/input-required-legend/_index.scss +2 -2
- package/scss/components/lightbox/_index.scss +1 -1
- package/scss/components/link/_index.scss +5 -5
- package/scss/components/link-preview/_index.scss +1 -1
- package/scss/components/list/_index.scss +25 -25
- package/scss/components/list/_mixins.scss +1 -1
- package/scss/components/list-box/_index.scss +8 -8
- package/scss/components/menu/_index.scss +1 -1
- package/scss/components/message/_index.scss +3 -3
- package/scss/components/mosaic/_index.scss +1 -1
- package/scss/components/navigation/_index.scss +10 -10
- package/scss/components/notification/_index.scss +2 -2
- package/scss/components/notification-block/_index.scss +1 -1
- package/scss/components/popover/_index.scss +2 -2
- package/scss/components/post-block/_index.scss +1 -1
- package/scss/components/progress/_index.scss +14 -14
- package/scss/components/progress-tracker/_index.scss +6 -6
- package/scss/components/radio-button/_index.scss +39 -39
- package/scss/components/scroll-box/_index.scss +1 -1
- package/scss/components/select/_index.scss +31 -31
- package/scss/components/side-navigation/_index.scss +3 -3
- package/scss/components/skeleton/_index.scss +13 -13
- package/scss/components/slider/_index.scss +10 -10
- package/scss/components/slideshow/_index.scss +6 -6
- package/scss/components/switch/_index.scss +54 -54
- package/scss/components/table/_index.scss +7 -7
- package/scss/components/tabs/_index.scss +13 -13
- package/scss/components/text/_index.scss +2 -2
- package/scss/components/text-field/_index.scss +43 -43
- package/scss/components/thumbnail/_index.scss +29 -29
- package/scss/components/toolbar/_index.scss +1 -1
- package/scss/components/tooltip/_index.scss +2 -2
- package/scss/components/tree-list/_index.scss +7 -7
- package/scss/components/uploader/_index.scss +3 -3
- package/scss/components/user-block/_index.scss +1 -1
- package/scss/core/base/_helpers.scss +4 -4
- package/scss/core/color/_index.scss +2 -2
- package/scss/core/spacing/_index.scss +1 -1
- package/scss/core/typography/_index.scss +3 -3
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Tabs
|
|
3
3
|
========================================================================== */
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
.lumx-tabs {
|
|
6
6
|
$self: &;
|
|
7
7
|
|
|
8
8
|
&__links {
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
/* Tabs layout
|
|
55
55
|
========================================================================== */
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
.lumx-tabs--layout-fixed {
|
|
58
|
+
.lumx-tabs__link {
|
|
59
59
|
@include lumx-tabs-link-layout("fixed");
|
|
60
60
|
}
|
|
61
61
|
}
|
|
@@ -63,20 +63,20 @@
|
|
|
63
63
|
/* Tabs position
|
|
64
64
|
========================================================================== */
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
.lumx-tabs--layout-clustered.lumx-tabs--position-left {
|
|
67
|
+
.lumx-tabs__links {
|
|
68
68
|
@include lumx-tabs-links-position(lumx-base-const("position", "LEFT"));
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
.lumx-tabs--layout-clustered.lumx-tabs--position-center {
|
|
73
|
+
.lumx-tabs__links {
|
|
74
74
|
@include lumx-tabs-links-position(lumx-base-const("position", "CENTER"));
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
.lumx-tabs--layout-clustered.lumx-tabs--position-right {
|
|
79
|
+
.lumx-tabs__links {
|
|
80
80
|
@include lumx-tabs-links-position(lumx-base-const("position", "RIGHT"));
|
|
81
81
|
}
|
|
82
82
|
}
|
|
@@ -85,15 +85,15 @@
|
|
|
85
85
|
========================================================================== */
|
|
86
86
|
|
|
87
87
|
// Disabled state
|
|
88
|
-
|
|
88
|
+
.lumx-tabs__link--is-disabled {
|
|
89
89
|
@include lumx-tabs-link(lumx-base-const("emphasis", "LOW"));
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
.lumx-tabs--theme-light & {
|
|
92
92
|
@include lumx-tabs-link-color(lumx-base-const("emphasis", "LOW"), lumx-base-const("theme", "LIGHT"));
|
|
93
93
|
@include lumx-state-disabled-text(lumx-base-const("theme", "LIGHT"));
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
.lumx-tabs--theme-dark & {
|
|
97
97
|
@include lumx-tabs-link-color(lumx-base-const("emphasis", "LOW"), lumx-base-const("theme", "DARK"));
|
|
98
98
|
@include lumx-state-disabled-text(lumx-base-const("theme", "DARK"));
|
|
99
99
|
}
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
/* Tab panel
|
|
103
103
|
========================================================================== */
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
.lumx-tab-panel {
|
|
106
106
|
display: none;
|
|
107
107
|
outline: none;
|
|
108
108
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Text
|
|
3
3
|
========================================================================== */
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
.lumx-text {
|
|
6
6
|
white-space: var(--lumx-text-white-space);
|
|
7
7
|
|
|
8
8
|
&--is-truncated {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
// Fix icon alignment
|
|
29
|
-
|
|
29
|
+
.lumx-icon, .lumx-icon > svg {
|
|
30
30
|
display: inline;
|
|
31
31
|
white-space: nowrap;
|
|
32
32
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
Text field
|
|
5
5
|
========================================================================== */
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
.lumx-text-field {
|
|
8
8
|
$self: &;
|
|
9
9
|
|
|
10
10
|
--lumx-text-field-wrapper-padding-vertical:
|
|
@@ -161,41 +161,41 @@
|
|
|
161
161
|
========================================================================== */
|
|
162
162
|
|
|
163
163
|
// Disabled state
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
.lumx-text-field--is-disabled {
|
|
165
|
+
.lumx-text-field__wrapper {
|
|
166
166
|
@include lumx-state-disabled-input;
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
169
|
+
&.lumx-text-field--theme-light {
|
|
170
|
+
.lumx-text-field__label,
|
|
171
|
+
.lumx-text-field__helper {
|
|
172
172
|
@include lumx-state-disabled-text(lumx-base-const("theme", "LIGHT"));
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
176
|
+
&.lumx-text-field--theme-dark {
|
|
177
|
+
.lumx-text-field__label,
|
|
178
|
+
.lumx-text-field__helper {
|
|
179
179
|
@include lumx-state-disabled-text(lumx-base-const("theme", "DARK"));
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
// Hover state
|
|
185
|
-
|
|
186
|
-
&:not(
|
|
185
|
+
.lumx-text-field--theme-light {
|
|
186
|
+
&:not(.lumx-text-field--is-disabled) .lumx-text-field__wrapper:hover {
|
|
187
187
|
@include lumx-text-field-wrapper-state(lumx-base-const("state", "HOVER"), lumx-base-const("theme", "LIGHT"));
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
|
|
191
|
-
|
|
190
|
+
.lumx-text-field__input-icon,
|
|
191
|
+
.lumx-text-field__input-native {
|
|
192
192
|
@include lumx-text-field-input-content-color(
|
|
193
193
|
lumx-base-const("state", "HOVER"),
|
|
194
194
|
lumx-base-const("theme", "LIGHT")
|
|
195
195
|
);
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
-
|
|
198
|
+
.lumx-text-field__input-native::placeholder {
|
|
199
199
|
@include lumx-text-field-input-placeholder-color(
|
|
200
200
|
lumx-base-const("state", "HOVER"),
|
|
201
201
|
lumx-base-const("theme", "LIGHT")
|
|
@@ -203,20 +203,20 @@
|
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
|
|
207
|
-
&:not(
|
|
206
|
+
.lumx-text-field--theme-dark {
|
|
207
|
+
&:not(.lumx-text-field--is-disabled) .lumx-text-field__wrapper:hover {
|
|
208
208
|
@include lumx-text-field-wrapper-state(lumx-base-const("state", "HOVER"), lumx-base-const("theme", "DARK"));
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
.lumx-text-field__input-icon,
|
|
212
|
+
.lumx-text-field__input-native {
|
|
213
213
|
@include lumx-text-field-input-content-color(
|
|
214
214
|
lumx-base-const("state", "HOVER"),
|
|
215
215
|
lumx-base-const("theme", "DARK")
|
|
216
216
|
);
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
-
|
|
219
|
+
.lumx-text-field__input-native::placeholder {
|
|
220
220
|
@include lumx-text-field-input-placeholder-color(
|
|
221
221
|
lumx-base-const("state", "HOVER"),
|
|
222
222
|
lumx-base-const("theme", "DARK")
|
|
@@ -225,24 +225,24 @@
|
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
// Focus state
|
|
228
|
-
|
|
229
|
-
&:not(
|
|
228
|
+
.lumx-text-field--theme-light.lumx-text-field--is-focus {
|
|
229
|
+
&:not(.lumx-text-field--is-disabled) .lumx-text-field__label {
|
|
230
230
|
@include lumx-text-field-label-color(lumx-base-const("state", "FOCUS"), lumx-base-const("theme", "LIGHT"));
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
|
|
233
|
+
.lumx-text-field__wrapper {
|
|
234
234
|
@include lumx-text-field-wrapper-state(lumx-base-const("state", "FOCUS"), lumx-base-const("theme", "LIGHT"));
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
.lumx-text-field__input-icon,
|
|
238
|
+
.lumx-text-field__input-native {
|
|
239
239
|
@include lumx-text-field-input-content-color(
|
|
240
240
|
lumx-base-const("state", "FOCUS"),
|
|
241
241
|
lumx-base-const("theme", "LIGHT")
|
|
242
242
|
);
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
-
|
|
245
|
+
.lumx-text-field__input-native::placeholder {
|
|
246
246
|
@include lumx-text-field-input-placeholder-color(
|
|
247
247
|
lumx-base-const("state", "FOCUS"),
|
|
248
248
|
lumx-base-const("theme", "LIGHT")
|
|
@@ -250,24 +250,24 @@
|
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
|
|
254
|
-
&:not(
|
|
253
|
+
.lumx-text-field--theme-dark.lumx-text-field--is-focus {
|
|
254
|
+
&:not(.lumx-text-field--is-disabled) .lumx-text-field__label {
|
|
255
255
|
@include lumx-text-field-label-color(lumx-base-const("state", "FOCUS"), lumx-base-const("theme", "DARK"));
|
|
256
256
|
}
|
|
257
257
|
|
|
258
|
-
|
|
258
|
+
.lumx-text-field__wrapper {
|
|
259
259
|
@include lumx-text-field-wrapper-state(lumx-base-const("state", "FOCUS"), lumx-base-const("theme", "DARK"));
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
|
|
263
|
-
|
|
262
|
+
.lumx-text-field__input-icon,
|
|
263
|
+
.lumx-text-field__input-native {
|
|
264
264
|
@include lumx-text-field-input-content-color(
|
|
265
265
|
lumx-base-const("state", "FOCUS"),
|
|
266
266
|
lumx-base-const("theme", "DARK")
|
|
267
267
|
);
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
|
|
270
|
+
.lumx-text-field__input-native::placeholder {
|
|
271
271
|
@include lumx-text-field-input-placeholder-color(
|
|
272
272
|
lumx-base-const("state", "FOCUS"),
|
|
273
273
|
lumx-base-const("theme", "DARK")
|
|
@@ -278,42 +278,42 @@
|
|
|
278
278
|
/* Text field validity
|
|
279
279
|
========================================================================== */
|
|
280
280
|
|
|
281
|
-
|
|
282
|
-
|
|
281
|
+
.lumx-text-field--theme-light.lumx-text-field--is-valid {
|
|
282
|
+
.lumx-text-field__wrapper {
|
|
283
283
|
@include lumx-text-field-wrapper-validity("valid", lumx-base-const("theme", "LIGHT"));
|
|
284
284
|
}
|
|
285
285
|
|
|
286
|
-
|
|
286
|
+
.lumx-text-field__input-validity {
|
|
287
287
|
@include lumx-text-field-input-validity("valid", lumx-base-const("theme", "LIGHT"));
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
|
|
292
|
-
|
|
291
|
+
.lumx-text-field--theme-light.lumx-text-field--has-error {
|
|
292
|
+
.lumx-text-field__wrapper {
|
|
293
293
|
@include lumx-text-field-wrapper-validity("error", lumx-base-const("theme", "LIGHT"));
|
|
294
294
|
}
|
|
295
295
|
|
|
296
|
-
|
|
296
|
+
.lumx-text-field__input-validity {
|
|
297
297
|
@include lumx-text-field-input-validity("error", lumx-base-const("theme", "LIGHT"));
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
-
|
|
302
|
-
|
|
301
|
+
.lumx-text-field--theme-dark.lumx-text-field--is-valid {
|
|
302
|
+
.lumx-text-field__wrapper {
|
|
303
303
|
@include lumx-text-field-wrapper-validity("valid", lumx-base-const("theme", "DARK"));
|
|
304
304
|
}
|
|
305
305
|
|
|
306
|
-
|
|
306
|
+
.lumx-text-field__input-validity {
|
|
307
307
|
@include lumx-text-field-input-validity("valid", lumx-base-const("theme", "DARK"));
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
|
|
311
|
-
|
|
312
|
-
|
|
311
|
+
.lumx-text-field--theme-dark.lumx-text-field--has-error {
|
|
312
|
+
.lumx-text-field__wrapper {
|
|
313
313
|
@include lumx-text-field-wrapper-validity("error", lumx-base-const("theme", "DARK"));
|
|
314
314
|
}
|
|
315
315
|
|
|
316
|
-
|
|
316
|
+
.lumx-text-field__input-validity {
|
|
317
317
|
@include lumx-text-field-input-validity("error", lumx-base-const("theme", "DARK"));
|
|
318
318
|
}
|
|
319
319
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Thumbnail
|
|
7
7
|
========================================================================== */
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
.lumx-thumbnail {
|
|
10
10
|
$self: &;
|
|
11
11
|
|
|
12
12
|
position: relative;
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
width: unset;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
&:not(
|
|
34
|
+
&:not(.lumx-thumbnail--aspect-ratio-original) {
|
|
35
35
|
#{$self}__image {
|
|
36
36
|
position: absolute;
|
|
37
37
|
top: 0;
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
========================================================================== */
|
|
99
99
|
|
|
100
100
|
@each $key, $size in $lumx-sizes {
|
|
101
|
-
|
|
101
|
+
.lumx-thumbnail--size-#{$key} {
|
|
102
102
|
width: $size;
|
|
103
103
|
}
|
|
104
104
|
}
|
|
@@ -106,8 +106,8 @@
|
|
|
106
106
|
/* Thumbnail aspect ratio
|
|
107
107
|
========================================================================== */
|
|
108
108
|
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
.lumx-thumbnail:not(.lumx-thumbnail--aspect-ratio-original) {
|
|
110
|
+
.lumx-thumbnail__image {
|
|
111
111
|
object-fit: var(--lumx-thumbnail-image-object-fit, cover);
|
|
112
112
|
object-position: center;
|
|
113
113
|
width: 100%;
|
|
@@ -129,8 +129,8 @@
|
|
|
129
129
|
|
|
130
130
|
@supports (aspect-ratio: 1 / 1) {
|
|
131
131
|
@each $key, $aspect-ratio-fraction in $lumx-thumbnail-aspect-ratio-fraction {
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
.lumx-thumbnail--aspect-ratio-#{$key}:not(.lumx-thumbnail--fill-height)
|
|
133
|
+
.lumx-thumbnail__image {
|
|
134
134
|
aspect-ratio: var(--lumx-thumbnail-aspect-ratio, string.unquote($aspect-ratio-fraction));
|
|
135
135
|
}
|
|
136
136
|
}
|
|
@@ -138,8 +138,8 @@
|
|
|
138
138
|
|
|
139
139
|
@supports not (aspect-ratio: 1 / 1) {
|
|
140
140
|
@each $key, $aspect-ratio in $lumx-thumbnail-aspect-ratio {
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
.lumx-thumbnail--aspect-ratio-#{$key}:not(.lumx-thumbnail--fill-height)
|
|
142
|
+
.lumx-thumbnail__background {
|
|
143
143
|
padding-top: $aspect-ratio;
|
|
144
144
|
}
|
|
145
145
|
}
|
|
@@ -148,19 +148,19 @@
|
|
|
148
148
|
/* Thumbnail object fit
|
|
149
149
|
========================================================================== */
|
|
150
150
|
|
|
151
|
-
|
|
151
|
+
.lumx-thumbnail--object-fit-cover {
|
|
152
152
|
--lumx-thumbnail-image-object-fit: cover;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
|
|
155
|
+
.lumx-thumbnail--object-fit-contain {
|
|
156
156
|
--lumx-thumbnail-image-object-fit: contain;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
/* Thumbnail states
|
|
160
160
|
========================================================================== */
|
|
161
161
|
|
|
162
|
-
|
|
163
|
-
&:not(
|
|
162
|
+
.lumx-thumbnail--is-clickable {
|
|
163
|
+
&:not(.lumx-thumbnail--fill-height) {
|
|
164
164
|
display: block;
|
|
165
165
|
}
|
|
166
166
|
|
|
@@ -192,42 +192,42 @@
|
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
/* Focused (variant rounded) */
|
|
195
|
-
|
|
195
|
+
.lumx-thumbnail--variant-rounded.lumx-thumbnail--is-clickable {
|
|
196
196
|
&[data-focus-visible-added]::after {
|
|
197
197
|
border-radius: var(--lumx-border-radius);
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
/* Focused (light theme) */
|
|
202
|
-
|
|
202
|
+
.lumx-thumbnail--theme-light.lumx-thumbnail--is-clickable {
|
|
203
203
|
&[data-focus-visible-added]::after {
|
|
204
204
|
@include lumx-state(lumx-base-const("state", "FOCUS"), lumx-base-const("emphasis", "LOW"), "dark");
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
/* Focused (dark theme) */
|
|
209
|
-
|
|
209
|
+
.lumx-thumbnail--theme-dark.lumx-thumbnail--is-clickable {
|
|
210
210
|
&[data-focus-visible-added]::after {
|
|
211
211
|
@include lumx-state(lumx-base-const("state", "FOCUS"), lumx-base-const("emphasis", "LOW"), "light");
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
|
|
215
215
|
/* Loading state */
|
|
216
|
-
|
|
217
|
-
|
|
216
|
+
.lumx-thumbnail--is-loading {
|
|
217
|
+
&.lumx-thumbnail--theme-light .lumx-thumbnail__background {
|
|
218
218
|
@include lumx-skeleton("light");
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
|
|
221
|
+
&.lumx-thumbnail--theme-dark .lumx-thumbnail__background {
|
|
222
222
|
@include lumx-skeleton("dark");
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
/* Error state */
|
|
227
|
-
|
|
227
|
+
.lumx-thumbnail--has-error {
|
|
228
228
|
/** Icon fallback */
|
|
229
|
-
|
|
230
|
-
|
|
229
|
+
&.lumx-thumbnail--has-icon-error-fallback {
|
|
230
|
+
.lumx-thumbnail__fallback {
|
|
231
231
|
position: absolute;
|
|
232
232
|
top: 0;
|
|
233
233
|
right: 0;
|
|
@@ -238,19 +238,19 @@
|
|
|
238
238
|
justify-content: center;
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
-
|
|
241
|
+
&.lumx-thumbnail--theme-light .lumx-thumbnail__fallback {
|
|
242
242
|
background-color: lumx-color-variant("dark", "L6");
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
-
|
|
245
|
+
&.lumx-thumbnail--theme-dark .lumx-thumbnail__fallback {
|
|
246
246
|
background-color: lumx-color-variant("light", "L6");
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
/* Custom fallback */
|
|
251
|
-
|
|
251
|
+
&.lumx-thumbnail--has-custom-error-fallback {
|
|
252
252
|
/* Disable aspect ratio */
|
|
253
|
-
|
|
253
|
+
.lumx-thumbnail__background {
|
|
254
254
|
padding-top: 0;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
@@ -261,9 +261,9 @@
|
|
|
261
261
|
|
|
262
262
|
$badge-radius-size: math.div(map.get($lumx-sizes, lumx-base-const("size", "XS")), 2) + 2;
|
|
263
263
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
264
|
+
.lumx-thumbnail--has-badge {
|
|
265
|
+
.lumx-thumbnail__background,
|
|
266
|
+
.lumx-thumbnail__fallback {
|
|
267
267
|
mask-image:
|
|
268
268
|
radial-gradient(
|
|
269
269
|
circle at calc(100% - #{$badge-radius-size - 6}) calc(100% - #{$badge-radius-size - 6}),
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
Tooltip
|
|
6
6
|
========================================================================== */
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
.lumx-tooltip {
|
|
9
9
|
$self: &;
|
|
10
10
|
|
|
11
11
|
position: absolute;
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
.lumx-tooltip-anchor-wrapper {
|
|
90
90
|
width: fit-content;
|
|
91
91
|
|
|
92
92
|
// Prevent text selection on mobile device that would hinder long press.
|
|
@@ -19,24 +19,24 @@ $lumx-tree-list-transition-duration: $lumx-expansion-panel-transition-duration;
|
|
|
19
19
|
|
|
20
20
|
// The composite sets `hidden` on the tree when it has no visible content (see `setupComposite`).
|
|
21
21
|
// Before the composite mounts: hide an empty tree.
|
|
22
|
-
|
|
22
|
+
.lumx-tree-list:empty {
|
|
23
23
|
display: none;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
// ---- Tree item -----------------------
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
.lumx-tree-list-item {
|
|
29
29
|
&__row {
|
|
30
30
|
padding-left: $lumx-tree-list-indent;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
// Allow the content to shrink below its text width so that a `truncate` label shows an ellipsis
|
|
34
|
-
&__row >
|
|
34
|
+
&__row > .lumx-list-item__wrapper > .lumx-list-item__content {
|
|
35
35
|
min-width: 0;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
// The `before` slot holds the expand toggle (or the spacer) and the `before` content: no fixed width
|
|
39
|
-
&__row >
|
|
39
|
+
&__row > .lumx-list-item__wrapper > .lumx-list-item__before {
|
|
40
40
|
justify-content: flex-start;
|
|
41
41
|
width: auto;
|
|
42
42
|
}
|
|
@@ -71,7 +71,7 @@ $lumx-tree-list-transition-duration: $lumx-expansion-panel-transition-duration;
|
|
|
71
71
|
|
|
72
72
|
// A bigger chevron than the default icon of a size `s` icon button
|
|
73
73
|
// (the icon size rule of the button, with the toggle class).
|
|
74
|
-
|
|
74
|
+
&.lumx-button--size-s.lumx-button--variant-icon > i {
|
|
75
75
|
width: $lumx-size-xs;
|
|
76
76
|
height: $lumx-size-xs;
|
|
77
77
|
font-size: $lumx-size-xs;
|
|
@@ -89,7 +89,7 @@ $lumx-tree-list-transition-duration: $lumx-expansion-panel-transition-duration;
|
|
|
89
89
|
|
|
90
90
|
// The button styles disable the pointer on `::before` and round it: the overlay catches the clicks
|
|
91
91
|
// on the row, with square corners (one class more than the button `::before` rules).
|
|
92
|
-
&__row &__toggle--main
|
|
92
|
+
&__row &__toggle--main.lumx-button.lumx-action-area__action::before {
|
|
93
93
|
pointer-events: auto;
|
|
94
94
|
border-radius: 0;
|
|
95
95
|
}
|
|
@@ -115,7 +115,7 @@ $lumx-tree-list-transition-duration: $lumx-expansion-panel-transition-duration;
|
|
|
115
115
|
list-style: none;
|
|
116
116
|
|
|
117
117
|
// Skeletons: a margin (they have no full width background)
|
|
118
|
-
> :not(
|
|
118
|
+
> :not(.lumx-tree-list-item) {
|
|
119
119
|
margin-left: $lumx-tree-list-indent;
|
|
120
120
|
}
|
|
121
121
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Uploader
|
|
3
3
|
========================================================================== */
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
.lumx-uploader {
|
|
6
6
|
$self: &;
|
|
7
7
|
|
|
8
8
|
@include lumx-state-transition;
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
========================================================================== */
|
|
119
119
|
|
|
120
120
|
@each $key, $size in $lumx-sizes {
|
|
121
|
-
|
|
121
|
+
.lumx-uploader--size-#{$key} {
|
|
122
122
|
width: $size;
|
|
123
123
|
}
|
|
124
124
|
}
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
========================================================================== */
|
|
128
128
|
|
|
129
129
|
@each $key, $aspect-ratio in $lumx-thumbnail-aspect-ratio {
|
|
130
|
-
|
|
130
|
+
.lumx-uploader--aspect-ratio-#{$key} .lumx-uploader__background {
|
|
131
131
|
padding-top: $aspect-ratio;
|
|
132
132
|
}
|
|
133
133
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/* Align
|
|
2
2
|
========================================================================== */
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
.lumx-base-text-left {
|
|
5
5
|
text-align: left;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
.lumx-base-text-right {
|
|
9
9
|
text-align: right;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
.lumx-base-text-center {
|
|
13
13
|
text-align: center;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
/* Display
|
|
17
17
|
========================================================================== */
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
.lumx-base-display-block {
|
|
20
20
|
display: block;
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
@each $color-key, $color in $lumx-color-palette {
|
|
6
6
|
@each $color-variant in $lumx-color-variants {
|
|
7
|
-
|
|
7
|
+
.lumx-color-background-#{$color-key}-#{$color-variant} {
|
|
8
8
|
background-color: lumx-color-variant($color-key, $color-variant);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
.lumx-color-font-#{$color-key}-#{$color-variant} {
|
|
12
12
|
color: lumx-color-variant($color-key, $color-variant);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
@each $property-namespace, $property in $lumx-spacing-properties {
|
|
6
6
|
@each $direction-namespace, $direction-rules in $lumx-spacing-directions {
|
|
7
7
|
@each $size-namespace, $size in $lumx-spacing-sizes {
|
|
8
|
-
|
|
8
|
+
.lumx-spacing-#{$property-namespace}#{$direction-namespace}#{$size-namespace} {
|
|
9
9
|
@each $direction in $direction-rules {
|
|
10
10
|
#{$property}#{$direction}: $size !important;
|
|
11
11
|
}
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
========================================================================== */
|
|
4
4
|
|
|
5
5
|
@each $key, $style in $lumx-typography-interface {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
.lumx-typography-#{$key},
|
|
7
|
+
.lumx-typography-interface-#{$key} {
|
|
8
8
|
@include lumx-typography($key);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
@each $key, $style in $lumx-typography-custom {
|
|
13
|
-
|
|
13
|
+
.lumx-typography-custom-#{$key} {
|
|
14
14
|
@include lumx-typography($key, "custom");
|
|
15
15
|
}
|
|
16
16
|
}
|