@siemens/element-theme 47.9.0 → 48.0.0-next.2
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 +1 -1
- package/src/styles/bootstrap/_badges.scss +13 -2
- package/src/styles/bootstrap/_card.scss +3 -2
- package/src/styles/bootstrap/_nav.scss +1 -3
- package/src/styles/bootstrap/forms/_form-check.scss +12 -2
- package/src/styles/components/_switch.scss +5 -5
- package/src/styles/variables/_utilities.scss +1 -1
- package/src/theme/_theme-element.scss +6 -6
package/package.json
CHANGED
|
@@ -7,6 +7,11 @@
|
|
|
7
7
|
|
|
8
8
|
// stylelint-disable declaration-no-important
|
|
9
9
|
|
|
10
|
+
%badge-text-emphasis {
|
|
11
|
+
font-size: typography.$si-font-size-title-2;
|
|
12
|
+
font-weight: typography.$si-font-weight-title-2;
|
|
13
|
+
}
|
|
14
|
+
|
|
10
15
|
.badge {
|
|
11
16
|
display: inline-block;
|
|
12
17
|
color: semantic-tokens.$element-text-primary;
|
|
@@ -17,8 +22,8 @@
|
|
|
17
22
|
block-size: map.get(spacers.$spacers, 8);
|
|
18
23
|
line-height: map.get(spacers.$spacers, 8);
|
|
19
24
|
flex-shrink: 0;
|
|
20
|
-
font-size: typography.$si-font-size-
|
|
21
|
-
font-weight: typography.$si-font-weight-
|
|
25
|
+
font-size: typography.$si-font-size-body-2;
|
|
26
|
+
font-weight: typography.$si-font-weight-body-2;
|
|
22
27
|
max-inline-size: 196px;
|
|
23
28
|
min-inline-size: map.get(spacers.$spacers, 8);
|
|
24
29
|
text-overflow: ellipsis;
|
|
@@ -86,31 +91,37 @@
|
|
|
86
91
|
&.bg-info-emphasis {
|
|
87
92
|
background: semantic-tokens.$element-status-information;
|
|
88
93
|
color: semantic-tokens.$element-status-information-contrast;
|
|
94
|
+
@extend %badge-text-emphasis;
|
|
89
95
|
}
|
|
90
96
|
|
|
91
97
|
&.bg-success-emphasis {
|
|
92
98
|
background: semantic-tokens.$element-status-success;
|
|
93
99
|
color: semantic-tokens.$element-status-success-contrast;
|
|
100
|
+
@extend %badge-text-emphasis;
|
|
94
101
|
}
|
|
95
102
|
|
|
96
103
|
&.bg-warning-emphasis {
|
|
97
104
|
background: semantic-tokens.$element-status-warning;
|
|
98
105
|
color: semantic-tokens.$element-status-warning-contrast;
|
|
106
|
+
@extend %badge-text-emphasis;
|
|
99
107
|
}
|
|
100
108
|
|
|
101
109
|
&.bg-danger-emphasis {
|
|
102
110
|
background: semantic-tokens.$element-status-danger;
|
|
103
111
|
color: semantic-tokens.$element-status-danger-contrast;
|
|
112
|
+
@extend %badge-text-emphasis;
|
|
104
113
|
}
|
|
105
114
|
|
|
106
115
|
&.bg-critical-emphasis {
|
|
107
116
|
background: semantic-tokens.$element-status-critical;
|
|
108
117
|
color: semantic-tokens.$element-status-critical-contrast;
|
|
118
|
+
@extend %badge-text-emphasis;
|
|
109
119
|
}
|
|
110
120
|
|
|
111
121
|
&.bg-caution-emphasis {
|
|
112
122
|
background: semantic-tokens.$element-status-caution;
|
|
113
123
|
color: semantic-tokens.$element-status-caution-contrast;
|
|
124
|
+
@extend %badge-text-emphasis;
|
|
114
125
|
}
|
|
115
126
|
|
|
116
127
|
.icon {
|
|
@@ -88,10 +88,11 @@
|
|
|
88
88
|
margin-block-end: 0; // Removes the default margin-bottom of <hN>
|
|
89
89
|
color: variables.$card-cap-color;
|
|
90
90
|
background-color: variables.$card-cap-bg;
|
|
91
|
+
line-height: typography.$si-font-size-title-2;
|
|
91
92
|
|
|
92
|
-
&,
|
|
93
93
|
.icon {
|
|
94
|
-
|
|
94
|
+
// The icon would be 8px too high without this.
|
|
95
|
+
margin-block: - map.get(spacers.$spacers, 2);
|
|
95
96
|
}
|
|
96
97
|
|
|
97
98
|
+ .card-body {
|
|
@@ -16,17 +16,27 @@ $form-check-padding-x: map.get(spacers.$spacers, 2);
|
|
|
16
16
|
|
|
17
17
|
$form-check-label-start: $form-check-size + map.get(spacers.$spacers, 4);
|
|
18
18
|
|
|
19
|
+
%form-check-spacing {
|
|
20
|
+
.form-check-input {
|
|
21
|
+
margin-inline-start: -1 * $form-check-label-start;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
19
25
|
.form-check {
|
|
20
26
|
padding-block: map.get(spacers.$spacers, 1);
|
|
27
|
+
padding-inline-start: map.get(spacers.$spacers, 8);
|
|
28
|
+
|
|
29
|
+
@extend %form-check-spacing;
|
|
21
30
|
|
|
22
31
|
:is(.valid-feedback, .invalid-feedback) {
|
|
23
|
-
margin-inline-start:
|
|
32
|
+
margin-inline-start: 0;
|
|
24
33
|
}
|
|
25
34
|
}
|
|
26
35
|
|
|
27
36
|
.form-check-inline {
|
|
28
37
|
display: inline-block;
|
|
29
38
|
margin-inline-end: variables.$form-check-inline-margin-end;
|
|
39
|
+
@extend %form-check-spacing;
|
|
30
40
|
}
|
|
31
41
|
|
|
32
42
|
%form-check-base {
|
|
@@ -162,7 +172,7 @@ $form-check-label-start: $form-check-size + map.get(spacers.$spacers, 4);
|
|
|
162
172
|
%form-check-label {
|
|
163
173
|
display: inline-block;
|
|
164
174
|
position: relative;
|
|
165
|
-
padding-inline:
|
|
175
|
+
padding-inline-end: $form-check-padding-x;
|
|
166
176
|
color: semantic-tokens.$element-text-primary;
|
|
167
177
|
}
|
|
168
178
|
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
@use 'sass:map';
|
|
4
4
|
|
|
5
5
|
$si-switch-size: 20px !default;
|
|
6
|
+
$si-switch-inline-size: calc(2 * #{$si-switch-size});
|
|
7
|
+
$si-switch-inline-spacing: calc($si-switch-inline-size + map.get(variables.$spacers, 4));
|
|
6
8
|
$si-switch-background-off-color: variables.$element-ui-4 !default;
|
|
7
9
|
$si-switch-background-on-color: variables.$element-ui-0 !default;
|
|
8
10
|
$si-switch-background-disabled-color: variables.$element-ui-3 !default;
|
|
@@ -15,16 +17,14 @@ $si-switch-knob-size: calc(#{$si-switch-size} - 2 * #{$si-switch-slider-margin})
|
|
|
15
17
|
|
|
16
18
|
.form-switch {
|
|
17
19
|
padding-block: map.get(variables.$spacers, 1);
|
|
20
|
+
padding-inline-start: $si-switch-inline-spacing;
|
|
18
21
|
|
|
19
22
|
.form-check-input {
|
|
20
23
|
cursor: pointer;
|
|
21
|
-
position: relative;
|
|
22
24
|
inset: 0;
|
|
23
|
-
margin-inline: 0 map.get(variables.$spacers, 3);
|
|
24
25
|
margin-block: - map.get(variables.$spacers, 1);
|
|
25
|
-
inline-
|
|
26
|
-
|
|
27
|
-
) !important; // stylelint-disable-line declaration-no-important
|
|
26
|
+
margin-inline-start: calc(-1 * $si-switch-inline-spacing);
|
|
27
|
+
inline-size: $si-switch-inline-size !important; // stylelint-disable-line declaration-no-important
|
|
28
28
|
block-size: #{$si-switch-size} !important; // stylelint-disable-line declaration-no-important
|
|
29
29
|
background-color: $si-switch-background-off-color;
|
|
30
30
|
transition: $si-switch-transition-length;
|
|
@@ -40,7 +40,7 @@ $theme-element-light: (
|
|
|
40
40
|
base-caution: base.$color-yellow-100,
|
|
41
41
|
base-warning: base.$color-orange-100,
|
|
42
42
|
base-danger: base.$color-red-100,
|
|
43
|
-
base-critical:
|
|
43
|
+
base-critical: data.$color-data-orchid-100,
|
|
44
44
|
base-translucent-1: rgba(base.$color-black, 0.3),
|
|
45
45
|
base-translucent-2: rgba(base.$color-deep-blue-900, 0.88),
|
|
46
46
|
// EXPERIMENTAL: Do not use
|
|
@@ -74,7 +74,7 @@ $theme-element-light: (
|
|
|
74
74
|
text-caution: base.$color-yellow-900,
|
|
75
75
|
text-warning: base.$color-orange-900,
|
|
76
76
|
text-danger: base.$color-red-700,
|
|
77
|
-
text-critical:
|
|
77
|
+
text-critical: data.$color-data-orchid-700,
|
|
78
78
|
|
|
79
79
|
status-information: base.$color-blue-500,
|
|
80
80
|
status-information-contrast: base.$color-white,
|
|
@@ -86,7 +86,7 @@ $theme-element-light: (
|
|
|
86
86
|
status-warning-contrast: base.$color-white,
|
|
87
87
|
status-danger: base.$color-red-500,
|
|
88
88
|
status-danger-contrast: base.$color-white,
|
|
89
|
-
status-critical:
|
|
89
|
+
status-critical: data.$color-data-orchid-500,
|
|
90
90
|
status-critical-contrast: base.$color-white,
|
|
91
91
|
|
|
92
92
|
focus-default: base.$color-focus,
|
|
@@ -228,7 +228,7 @@ $theme-element-dark: (
|
|
|
228
228
|
base-caution: base.$color-yellow-900,
|
|
229
229
|
base-warning: base.$color-orange-900,
|
|
230
230
|
base-danger: base.$color-red-900,
|
|
231
|
-
base-critical:
|
|
231
|
+
base-critical: data.$color-data-orchid-700,
|
|
232
232
|
base-translucent-1: rgba(base.$color-black, 0.7),
|
|
233
233
|
base-translucent-2: rgba(base.$color-white, 0.88),
|
|
234
234
|
// EXPERIMENTAL: Do not use
|
|
@@ -262,7 +262,7 @@ $theme-element-dark: (
|
|
|
262
262
|
text-caution: base.$color-yellow-100,
|
|
263
263
|
text-warning: base.$color-orange-100,
|
|
264
264
|
text-danger: base.$color-red-100,
|
|
265
|
-
text-critical:
|
|
265
|
+
text-critical: data.$color-data-orchid-100,
|
|
266
266
|
|
|
267
267
|
status-information: base.$color-blue-500,
|
|
268
268
|
status-information-contrast: base.$color-white,
|
|
@@ -274,7 +274,7 @@ $theme-element-dark: (
|
|
|
274
274
|
status-warning-contrast: base.$color-deep-blue-900,
|
|
275
275
|
status-danger: base.$color-red-500,
|
|
276
276
|
status-danger-contrast: base.$color-white,
|
|
277
|
-
status-critical:
|
|
277
|
+
status-critical: data.$color-data-orchid-500,
|
|
278
278
|
status-critical-contrast: base.$color-white,
|
|
279
279
|
|
|
280
280
|
focus-default: base.$color-focus,
|