@siemens/element-theme 51.0.0-rc.1 → 51.0.0-rc.10
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/README.md +13 -0
- package/package.json +3 -2
- package/src/styles/_accessibility.scss +8 -2
- package/src/styles/_density.scss +144 -0
- package/src/styles/_reboot-shadow-dom.scss +5 -0
- package/src/styles/_root-font-size.scss +4 -2
- package/src/styles/_selectors.scss +3 -0
- package/src/styles/_themes.scss +15 -3
- package/src/styles/_utilities.scss +5 -0
- package/src/styles/_variables.scss +2 -0
- package/src/styles/bootstrap/_alert.scss +19 -19
- package/src/styles/bootstrap/_badges.scss +41 -41
- package/src/styles/bootstrap/_button-group.scss +12 -11
- package/src/styles/bootstrap/_buttons.scss +85 -85
- package/src/styles/bootstrap/_card.scss +23 -17
- package/src/styles/bootstrap/_dropdowns.scss +18 -18
- package/src/styles/bootstrap/_forms.scss +1 -0
- package/src/styles/bootstrap/_images.scss +4 -2
- package/src/styles/bootstrap/_list-group.scss +52 -14
- package/src/styles/bootstrap/_mixins.scss +1 -0
- package/src/styles/bootstrap/_modals.scss +11 -10
- package/src/styles/bootstrap/_nav.scss +17 -8
- package/src/styles/bootstrap/_pagination.scss +6 -5
- package/src/styles/bootstrap/_popovers.scss +3 -2
- package/src/styles/bootstrap/_reboot.scss +9 -3
- package/src/styles/bootstrap/_root.scss +2 -1
- package/src/styles/bootstrap/_tables.scss +8 -6
- package/src/styles/bootstrap/_type.scss +144 -36
- package/src/styles/bootstrap/_utilities.scss +41 -45
- package/src/styles/bootstrap/_variables.scss +154 -140
- package/src/styles/bootstrap/forms/_form-check.scss +43 -73
- package/src/styles/bootstrap/forms/_form-control.scss +35 -29
- package/src/styles/bootstrap/forms/_form-file.scss +9 -9
- package/src/styles/bootstrap/forms/_form-label.scss +1 -1
- package/src/styles/bootstrap/forms/_form-layout.scss +46 -0
- package/src/styles/bootstrap/forms/_form-range.scss +13 -14
- package/src/styles/bootstrap/forms/_validation.scss +3 -6
- package/src/styles/bootstrap/mixins/_badge-text.scss +3 -3
- package/src/styles/bootstrap/mixins/_form-layout.scss +62 -0
- package/src/styles/bootstrap/mixins/_grid.scss +3 -3
- package/src/styles/bootstrap/mixins/_utilities.scss +14 -3
- package/src/styles/components/_application-header.scss +30 -30
- package/src/styles/components/_datatable.scss +57 -48
- package/src/styles/components/_drag_drop.scss +7 -6
- package/src/styles/components/_elevation.scss +11 -6
- package/src/styles/components/_layout.scss +26 -13
- package/src/styles/components/_links.scss +2 -2
- package/src/styles/components/_list-item.scss +69 -30
- package/src/styles/components/_markdown.scss +33 -19
- package/src/styles/components/_pills.scss +6 -6
- package/src/styles/components/_scrollbar.scss +6 -5
- package/src/styles/components/_search-bar.scss +67 -0
- package/src/styles/components/_skeleton.scss +4 -3
- package/src/styles/components/_switch.scss +16 -18
- package/src/styles/components/_widgets.scss +12 -10
- package/src/styles/mixins/_utilities.scss +271 -0
- package/src/styles/variables/_elevation.scss +14 -12
- package/src/styles/variables/_focus.scss +4 -3
- package/src/styles/variables/_si-vars.scss +13 -7
- package/src/styles/variables/_sizing.scss +22 -0
- package/src/styles/variables/_spacers.scss +53 -25
- package/src/styles/variables/_system-tokens.scss +190 -0
- package/src/styles/variables/_typography.scss +112 -99
- package/src/styles/variables/_utilities.scss +64 -51
- package/src/theme/_theme-element.scss +386 -2
- package/src/theme-shadow-dom.scss +17 -0
- package/src/theme.scss +14 -3
- /package/{LICENSE.md → LICENSE} +0 -0
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
.blockquote-footer {
|
|
96
|
-
margin-block:
|
|
96
|
+
margin-block: calc(variables.$blockquote-margin-y * -1) variables.$blockquote-margin-y;
|
|
97
97
|
font-size: variables.$blockquote-footer-font-size;
|
|
98
98
|
color: variables.$blockquote-footer-color;
|
|
99
99
|
|
|
@@ -112,9 +112,8 @@ h1,
|
|
|
112
112
|
);
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
.si-h1
|
|
116
|
-
|
|
117
|
-
.si-h1-black {
|
|
115
|
+
// DEPRECATED: Use .si-h1 instead.
|
|
116
|
+
.si-h1-bold {
|
|
118
117
|
@include typography.si-font(
|
|
119
118
|
typography.$si-font-size-h1-bold,
|
|
120
119
|
typography.$si-line-height-h1-bold,
|
|
@@ -142,9 +141,8 @@ h3,
|
|
|
142
141
|
);
|
|
143
142
|
}
|
|
144
143
|
|
|
145
|
-
.si-h4
|
|
146
|
-
|
|
147
|
-
.si-title-1-bold {
|
|
144
|
+
// DEPRECATED: Use .si-h4 instead.
|
|
145
|
+
.si-h4-bold {
|
|
148
146
|
@include typography.si-font(
|
|
149
147
|
typography.$si-font-size-h4-bold,
|
|
150
148
|
typography.$si-line-height-h4-bold,
|
|
@@ -154,9 +152,7 @@ h3,
|
|
|
154
152
|
|
|
155
153
|
h4,
|
|
156
154
|
.h4,
|
|
157
|
-
.si-h4
|
|
158
|
-
// @deprecated Will be removed in a future major version, use `.si-h4` instead.
|
|
159
|
-
.si-title-1 {
|
|
155
|
+
.si-h4 {
|
|
160
156
|
@include typography.si-font(
|
|
161
157
|
typography.$si-font-size-h4,
|
|
162
158
|
typography.$si-line-height-h4,
|
|
@@ -164,9 +160,7 @@ h4,
|
|
|
164
160
|
);
|
|
165
161
|
}
|
|
166
162
|
|
|
167
|
-
.si-h5-bold
|
|
168
|
-
// @deprecated Will be removed in a future major version, use `.si-h5-bold` instead.
|
|
169
|
-
.si-title-2-bold {
|
|
163
|
+
.si-h5-bold {
|
|
170
164
|
@include typography.si-font(
|
|
171
165
|
typography.$si-font-size-h5-bold,
|
|
172
166
|
typography.$si-line-height-h5-bold,
|
|
@@ -175,12 +169,8 @@ h4,
|
|
|
175
169
|
}
|
|
176
170
|
|
|
177
171
|
h5,
|
|
178
|
-
h6,
|
|
179
172
|
.h5,
|
|
180
|
-
.
|
|
181
|
-
.si-h5,
|
|
182
|
-
// @deprecated Will be removed in a future major version, use `.si-h5` instead.
|
|
183
|
-
.si-title-2 {
|
|
173
|
+
.si-h5 {
|
|
184
174
|
@include typography.si-font(
|
|
185
175
|
typography.$si-font-size-h5,
|
|
186
176
|
typography.$si-line-height-h5,
|
|
@@ -188,9 +178,17 @@ h6,
|
|
|
188
178
|
);
|
|
189
179
|
}
|
|
190
180
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
.si-
|
|
181
|
+
h6,
|
|
182
|
+
.h6,
|
|
183
|
+
.si-h6 {
|
|
184
|
+
@include typography.si-font(
|
|
185
|
+
typography.$si-font-size-h6,
|
|
186
|
+
typography.$si-line-height-h6,
|
|
187
|
+
typography.$si-font-weight-h6
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.si-body-lg {
|
|
194
192
|
@include typography.si-font(
|
|
195
193
|
typography.$si-font-size-body-lg,
|
|
196
194
|
typography.$si-line-height-body-lg,
|
|
@@ -198,9 +196,15 @@ h6,
|
|
|
198
196
|
);
|
|
199
197
|
}
|
|
200
198
|
|
|
201
|
-
.si-body
|
|
202
|
-
|
|
203
|
-
|
|
199
|
+
.si-body-lg-sbold {
|
|
200
|
+
@include typography.si-font(
|
|
201
|
+
typography.$si-font-size-body-lg-sbold,
|
|
202
|
+
typography.$si-line-height-body-lg-sbold,
|
|
203
|
+
typography.$si-font-weight-body-lg-sbold
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.si-body {
|
|
204
208
|
@include typography.si-font(
|
|
205
209
|
typography.$si-font-size-body,
|
|
206
210
|
typography.$si-line-height-body,
|
|
@@ -208,6 +212,47 @@ h6,
|
|
|
208
212
|
);
|
|
209
213
|
}
|
|
210
214
|
|
|
215
|
+
.si-body-sbold {
|
|
216
|
+
@include typography.si-font(
|
|
217
|
+
typography.$si-font-size-body-sbold,
|
|
218
|
+
typography.$si-line-height-body-sbold,
|
|
219
|
+
typography.$si-font-weight-body-sbold
|
|
220
|
+
);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.si-body-paragraph {
|
|
224
|
+
@include typography.si-font(
|
|
225
|
+
typography.$si-font-size-body-paragraph,
|
|
226
|
+
typography.$si-line-height-body-paragraph,
|
|
227
|
+
typography.$si-font-weight-body-paragraph
|
|
228
|
+
);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.si-body-paragraph-sbold {
|
|
232
|
+
@include typography.si-font(
|
|
233
|
+
typography.$si-font-size-body-paragraph-sbold,
|
|
234
|
+
typography.$si-line-height-body-paragraph-sbold,
|
|
235
|
+
typography.$si-font-weight-body-paragraph-sbold
|
|
236
|
+
);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.si-body-sm {
|
|
240
|
+
@include typography.si-font(
|
|
241
|
+
typography.$si-font-size-body-sm,
|
|
242
|
+
typography.$si-line-height-body-sm,
|
|
243
|
+
typography.$si-font-weight-body-sm
|
|
244
|
+
);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.si-body-sm-sbold {
|
|
248
|
+
@include typography.si-font(
|
|
249
|
+
typography.$si-font-size-body-sm-sbold,
|
|
250
|
+
typography.$si-line-height-body-sm-sbold,
|
|
251
|
+
typography.$si-font-weight-body-sm-sbold
|
|
252
|
+
);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
// DEPRECATED: Use .si-body-sm instead.
|
|
211
256
|
.si-caption {
|
|
212
257
|
@include typography.si-font(
|
|
213
258
|
typography.$si-font-size-caption,
|
|
@@ -217,9 +262,7 @@ h6,
|
|
|
217
262
|
}
|
|
218
263
|
|
|
219
264
|
.si-display-xl,
|
|
220
|
-
.display-1
|
|
221
|
-
// @deprecated Will be removed in a future major version, use `.si-display-xl` instead.
|
|
222
|
-
.si-display-1 {
|
|
265
|
+
.display-1 {
|
|
223
266
|
@include typography.si-font(
|
|
224
267
|
typography.$si-font-size-display-xl,
|
|
225
268
|
typography.$si-line-height-display-xl,
|
|
@@ -227,10 +270,32 @@ h6,
|
|
|
227
270
|
);
|
|
228
271
|
}
|
|
229
272
|
|
|
273
|
+
.si-display-xl-sbold {
|
|
274
|
+
@include typography.si-font(
|
|
275
|
+
typography.$si-font-size-display-xl-sbold,
|
|
276
|
+
typography.$si-line-height-display-xl-sbold,
|
|
277
|
+
typography.$si-font-weight-display-xl-sbold
|
|
278
|
+
);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.si-display-xxl {
|
|
282
|
+
@include typography.si-font(
|
|
283
|
+
typography.$si-font-size-display-xxl,
|
|
284
|
+
typography.$si-line-height-display-xxl,
|
|
285
|
+
typography.$si-font-weight-display-xxl
|
|
286
|
+
);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.si-display-xxl-sbold {
|
|
290
|
+
@include typography.si-font(
|
|
291
|
+
typography.$si-font-size-display-xxl-sbold,
|
|
292
|
+
typography.$si-line-height-display-xxl-sbold,
|
|
293
|
+
typography.$si-font-weight-display-xxl-sbold
|
|
294
|
+
);
|
|
295
|
+
}
|
|
296
|
+
|
|
230
297
|
.si-display-lg,
|
|
231
|
-
.display-2
|
|
232
|
-
// @deprecated Will be removed in a future major version, use `.si-display-lg` instead.
|
|
233
|
-
.si-display-2 {
|
|
298
|
+
.display-2 {
|
|
234
299
|
@include typography.si-font(
|
|
235
300
|
typography.$si-font-size-display-lg,
|
|
236
301
|
typography.$si-line-height-display-lg,
|
|
@@ -238,10 +303,17 @@ h6,
|
|
|
238
303
|
);
|
|
239
304
|
}
|
|
240
305
|
|
|
306
|
+
.si-display-lg-sbold {
|
|
307
|
+
@include typography.si-font(
|
|
308
|
+
typography.$si-font-size-display-lg-sbold,
|
|
309
|
+
typography.$si-line-height-display-lg-sbold,
|
|
310
|
+
typography.$si-font-weight-display-lg-sbold
|
|
311
|
+
);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
// DEPRECATED: Use .si-display-lg-sbold instead of .si-display-bold.
|
|
241
315
|
.si-display-bold,
|
|
242
|
-
.display-3
|
|
243
|
-
// @deprecated Will be removed in a future major version, use `.si-display-bold` instead.
|
|
244
|
-
.si-display-3 {
|
|
316
|
+
.display-3 {
|
|
245
317
|
@include typography.si-font(
|
|
246
318
|
typography.$si-font-size-display-bold,
|
|
247
319
|
typography.$si-line-height-display-bold,
|
|
@@ -249,10 +321,16 @@ h6,
|
|
|
249
321
|
);
|
|
250
322
|
}
|
|
251
323
|
|
|
324
|
+
.si-display-sbold {
|
|
325
|
+
@include typography.si-font(
|
|
326
|
+
typography.$si-font-size-display-sbold,
|
|
327
|
+
typography.$si-line-height-display-sbold,
|
|
328
|
+
typography.$si-font-weight-display-sbold
|
|
329
|
+
);
|
|
330
|
+
}
|
|
331
|
+
|
|
252
332
|
.si-display,
|
|
253
|
-
.display-4
|
|
254
|
-
// @deprecated Will be removed in a future major version, use `.si-display` instead.
|
|
255
|
-
.si-display-4 {
|
|
333
|
+
.display-4 {
|
|
256
334
|
@include typography.si-font(
|
|
257
335
|
typography.$si-font-size-display,
|
|
258
336
|
typography.$si-line-height-display,
|
|
@@ -260,6 +338,36 @@ h6,
|
|
|
260
338
|
);
|
|
261
339
|
}
|
|
262
340
|
|
|
341
|
+
.si-code-sm,
|
|
342
|
+
.si-code,
|
|
343
|
+
.si-code-lg {
|
|
344
|
+
font-family: typography.$si-font-family-mono;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.si-code-sm {
|
|
348
|
+
@include typography.si-font(
|
|
349
|
+
typography.$si-font-size-code-sm,
|
|
350
|
+
typography.$si-line-height-code-sm,
|
|
351
|
+
typography.$si-font-weight-code-sm
|
|
352
|
+
);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.si-code {
|
|
356
|
+
@include typography.si-font(
|
|
357
|
+
typography.$si-font-size-code,
|
|
358
|
+
typography.$si-line-height-code,
|
|
359
|
+
typography.$si-font-weight-code
|
|
360
|
+
);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.si-code-lg {
|
|
364
|
+
@include typography.si-font(
|
|
365
|
+
typography.$si-font-size-code-lg,
|
|
366
|
+
typography.$si-line-height-code-lg,
|
|
367
|
+
typography.$si-font-weight-code-lg
|
|
368
|
+
);
|
|
369
|
+
}
|
|
370
|
+
|
|
263
371
|
.text-pre {
|
|
264
372
|
white-space: pre;
|
|
265
373
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../variables/
|
|
1
|
+
@use '../variables/system-tokens';
|
|
2
2
|
@use '../variables/utilities' as variables-utilities;
|
|
3
3
|
@use 'mixins/breakpoints';
|
|
4
4
|
@use 'mixins/utilities' as mixins-utilities;
|
|
@@ -35,18 +35,12 @@
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
// Deprecated legacy utilities. Use system-token text utilities instead.
|
|
38
39
|
$text-colors: (
|
|
39
|
-
'
|
|
40
|
-
'
|
|
41
|
-
'
|
|
42
|
-
'
|
|
43
|
-
'success': semantic-tokens.$element-text-success,
|
|
44
|
-
'info': semantic-tokens.$element-text-information,
|
|
45
|
-
'warning': semantic-tokens.$element-text-warning,
|
|
46
|
-
'caution': semantic-tokens.$element-text-caution,
|
|
47
|
-
'danger': semantic-tokens.$element-text-danger,
|
|
48
|
-
'inverse': semantic-tokens.$element-text-inverse,
|
|
49
|
-
'muted': semantic-tokens.$element-text-disabled
|
|
40
|
+
'body': system-tokens.$si-sys-text-primary,
|
|
41
|
+
'tertiary': system-tokens.$si-sys-text-disabled,
|
|
42
|
+
'info': system-tokens.$si-sys-text-information,
|
|
43
|
+
'muted': system-tokens.$si-sys-text-disabled
|
|
50
44
|
) !default;
|
|
51
45
|
|
|
52
46
|
@each $color, $value in $text-colors {
|
|
@@ -55,27 +49,28 @@ $text-colors: (
|
|
|
55
49
|
}
|
|
56
50
|
}
|
|
57
51
|
|
|
52
|
+
// Deprecated legacy utilities. Use system-token background utilities instead.
|
|
58
53
|
$background-colors: (
|
|
59
|
-
'primary':
|
|
60
|
-
'secondary':
|
|
61
|
-
'tertiary':
|
|
62
|
-
'success':
|
|
63
|
-
'info':
|
|
64
|
-
'warning':
|
|
65
|
-
'danger':
|
|
66
|
-
'base-0':
|
|
67
|
-
'base-1':
|
|
68
|
-
'base-2':
|
|
69
|
-
'base-3':
|
|
70
|
-
'base-4':
|
|
71
|
-
'base-success':
|
|
72
|
-
'base-info':
|
|
73
|
-
'base-caution':
|
|
74
|
-
'base-warning':
|
|
75
|
-
'base-danger':
|
|
76
|
-
'base-critical':
|
|
77
|
-
'base-translucent-1':
|
|
78
|
-
'base-translucent-2':
|
|
54
|
+
'primary': system-tokens.$si-sys-background-accent,
|
|
55
|
+
'secondary': system-tokens.$si-sys-text-secondary,
|
|
56
|
+
'tertiary': system-tokens.$si-sys-text-disabled,
|
|
57
|
+
'success': system-tokens.$si-sys-background-success,
|
|
58
|
+
'info': system-tokens.$si-sys-background-information,
|
|
59
|
+
'warning': system-tokens.$si-sys-background-warning,
|
|
60
|
+
'danger': system-tokens.$si-sys-background-danger,
|
|
61
|
+
'base-0': system-tokens.$si-sys-background-0,
|
|
62
|
+
'base-1': system-tokens.$si-sys-background-1,
|
|
63
|
+
'base-2': system-tokens.$si-sys-background-2,
|
|
64
|
+
'base-3': system-tokens.$si-sys-background-3,
|
|
65
|
+
'base-4': system-tokens.$si-sys-background-4,
|
|
66
|
+
'base-success': system-tokens.$si-sys-background-success-subtle,
|
|
67
|
+
'base-info': system-tokens.$si-sys-background-information-subtle,
|
|
68
|
+
'base-caution': system-tokens.$si-sys-background-caution-subtle,
|
|
69
|
+
'base-warning': system-tokens.$si-sys-background-warning-subtle,
|
|
70
|
+
'base-danger': system-tokens.$si-sys-background-danger-subtle,
|
|
71
|
+
'base-critical': system-tokens.$si-sys-background-critical-subtle,
|
|
72
|
+
'base-translucent-1': system-tokens.$si-sys-effects-backdrop,
|
|
73
|
+
'base-translucent-2': system-tokens.$si-sys-background-inverse
|
|
79
74
|
) !default;
|
|
80
75
|
|
|
81
76
|
@each $color, $value in $background-colors {
|
|
@@ -85,19 +80,20 @@ $background-colors: (
|
|
|
85
80
|
}
|
|
86
81
|
|
|
87
82
|
$status-colors: (
|
|
88
|
-
'success':
|
|
89
|
-
'info':
|
|
90
|
-
'caution':
|
|
91
|
-
'warning':
|
|
92
|
-
'danger':
|
|
93
|
-
'critical':
|
|
94
|
-
'neutral':
|
|
95
|
-
'success-contrast':
|
|
96
|
-
'info-contrast':
|
|
97
|
-
'caution-contrast':
|
|
98
|
-
'warning-contrast':
|
|
99
|
-
'danger-contrast':
|
|
100
|
-
'critical-contrast':
|
|
83
|
+
'success': system-tokens.$si-sys-background-success,
|
|
84
|
+
'info': system-tokens.$si-sys-background-information,
|
|
85
|
+
'caution': system-tokens.$si-sys-background-caution,
|
|
86
|
+
'warning': system-tokens.$si-sys-background-warning,
|
|
87
|
+
'danger': system-tokens.$si-sys-background-danger,
|
|
88
|
+
'critical': system-tokens.$si-sys-background-critical,
|
|
89
|
+
'neutral': system-tokens.$si-sys-background-neutral,
|
|
90
|
+
'success-contrast': system-tokens.$si-sys-text-on-success,
|
|
91
|
+
'info-contrast': system-tokens.$si-sys-text-on-information,
|
|
92
|
+
'caution-contrast': system-tokens.$si-sys-text-on-caution,
|
|
93
|
+
'warning-contrast': system-tokens.$si-sys-text-on-warning,
|
|
94
|
+
'danger-contrast': system-tokens.$si-sys-text-on-danger,
|
|
95
|
+
'critical-contrast': system-tokens.$si-sys-text-on-critical,
|
|
96
|
+
'neutral-contrast': system-tokens.$si-sys-text-on-neutral
|
|
101
97
|
) !default;
|
|
102
98
|
|
|
103
99
|
@each $color, $value in $status-colors {
|