@siemens/element-theme 49.0.0-rc.4 → 49.1.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
CHANGED
|
@@ -127,6 +127,7 @@ button.card {
|
|
|
127
127
|
background-color: variables.$card-cap-bg;
|
|
128
128
|
line-height: typography.$si-font-size-h5;
|
|
129
129
|
|
|
130
|
+
+ * .card-body, // for action cards, where we wrap the content
|
|
130
131
|
+ .card-body {
|
|
131
132
|
margin-block-start: map.get(spacers.$spacers, 2) * -1;
|
|
132
133
|
padding-block-start: map.get(spacers.$spacers, 2);
|
|
@@ -105,11 +105,11 @@ $escaped-characters: (
|
|
|
105
105
|
@return $value1 + $value2;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
@return
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
$value1 + string.unquote(' + ') + $value2
|
|
112
|
-
|
|
108
|
+
@if $return-calc {
|
|
109
|
+
@return calc(#{$value1} + #{$value2});
|
|
110
|
+
} @else {
|
|
111
|
+
@return $value1 + string.unquote(' + ') + $value2;
|
|
112
|
+
}
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
@function subtract($value1, $value2, $return-calc: true) {
|
|
@@ -138,15 +138,18 @@ $escaped-characters: (
|
|
|
138
138
|
$value2: string.unquote('(') + $value2 + string.unquote(')');
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
@return
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
$value1 + string.unquote(' - ') + $value2
|
|
145
|
-
|
|
141
|
+
@if $return-calc {
|
|
142
|
+
@return calc(#{$value1} - #{$value2});
|
|
143
|
+
} @else {
|
|
144
|
+
@return $value1 + string.unquote(' - ') + $value2;
|
|
145
|
+
}
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
@function divide($dividend, $divisor, $precision: 10) {
|
|
149
|
-
$sign:
|
|
149
|
+
$sign: -1;
|
|
150
|
+
@if ($dividend > 0 and $divisor > 0) or ($dividend < 0 and $divisor < 0) {
|
|
151
|
+
$sign: 1;
|
|
152
|
+
}
|
|
150
153
|
$dividend: math.abs($dividend);
|
|
151
154
|
$divisor: math.abs($divisor);
|
|
152
155
|
@if $dividend == 0 {
|
|
@@ -33,8 +33,11 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.lead {
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
@include typography.si-font(
|
|
37
|
+
variables.$lead-font-size,
|
|
38
|
+
variables.$lead-line-height,
|
|
39
|
+
variables.$lead-font-weight
|
|
40
|
+
);
|
|
38
41
|
}
|
|
39
42
|
|
|
40
43
|
//
|
|
@@ -205,7 +205,8 @@ $headings-line-height: 1.2 !default;
|
|
|
205
205
|
$headings-color: semantic-tokens.$element-text-primary !default;
|
|
206
206
|
|
|
207
207
|
$lead-font-size: typography.$si-font-size-body-lg !default;
|
|
208
|
-
$lead-
|
|
208
|
+
$lead-line-height: typography.$si-line-height-body-lg !default;
|
|
209
|
+
$lead-font-weight: typography.$si-font-weight-body-lg !default;
|
|
209
210
|
|
|
210
211
|
$small-font-size: typography.$si-font-size-caption !default;
|
|
211
212
|
|
|
@@ -14,6 +14,8 @@ $datatable-header-background-color: transparent !default;
|
|
|
14
14
|
$datatable-header-color: semantic-tokens.$element-text-primary !default;
|
|
15
15
|
$datatable-footer-background-color: transparent !default;
|
|
16
16
|
|
|
17
|
+
$datatable-summary-background-color: semantic-tokens.$element-base-4 !default;
|
|
18
|
+
|
|
17
19
|
$datatable-header-height: 40px !default;
|
|
18
20
|
$datatable-cell-min-width: 40px !default;
|
|
19
21
|
$datatable-body-row-min-height: 48px !default;
|
|
@@ -246,6 +248,12 @@ $datatable-ghost-cell-strip-radius: 0 !default;
|
|
|
246
248
|
}
|
|
247
249
|
}
|
|
248
250
|
|
|
251
|
+
// Summary Styles
|
|
252
|
+
.datatable-summary-row .datatable-body-row {
|
|
253
|
+
background-color: $datatable-summary-background-color;
|
|
254
|
+
font-weight: typography.$si-font-weight-title-2;
|
|
255
|
+
}
|
|
256
|
+
|
|
249
257
|
// Body Styles
|
|
250
258
|
.datatable-body {
|
|
251
259
|
.datatable-row-wrapper {
|