@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.
Files changed (68) hide show
  1. package/README.md +13 -0
  2. package/package.json +3 -2
  3. package/src/styles/_accessibility.scss +8 -2
  4. package/src/styles/_density.scss +144 -0
  5. package/src/styles/_reboot-shadow-dom.scss +5 -0
  6. package/src/styles/_root-font-size.scss +4 -2
  7. package/src/styles/_selectors.scss +3 -0
  8. package/src/styles/_themes.scss +15 -3
  9. package/src/styles/_utilities.scss +5 -0
  10. package/src/styles/_variables.scss +2 -0
  11. package/src/styles/bootstrap/_alert.scss +19 -19
  12. package/src/styles/bootstrap/_badges.scss +41 -41
  13. package/src/styles/bootstrap/_button-group.scss +12 -11
  14. package/src/styles/bootstrap/_buttons.scss +85 -85
  15. package/src/styles/bootstrap/_card.scss +23 -17
  16. package/src/styles/bootstrap/_dropdowns.scss +18 -18
  17. package/src/styles/bootstrap/_forms.scss +1 -0
  18. package/src/styles/bootstrap/_images.scss +4 -2
  19. package/src/styles/bootstrap/_list-group.scss +52 -14
  20. package/src/styles/bootstrap/_mixins.scss +1 -0
  21. package/src/styles/bootstrap/_modals.scss +11 -10
  22. package/src/styles/bootstrap/_nav.scss +17 -8
  23. package/src/styles/bootstrap/_pagination.scss +6 -5
  24. package/src/styles/bootstrap/_popovers.scss +3 -2
  25. package/src/styles/bootstrap/_reboot.scss +9 -3
  26. package/src/styles/bootstrap/_root.scss +2 -1
  27. package/src/styles/bootstrap/_tables.scss +8 -6
  28. package/src/styles/bootstrap/_type.scss +144 -36
  29. package/src/styles/bootstrap/_utilities.scss +41 -45
  30. package/src/styles/bootstrap/_variables.scss +154 -140
  31. package/src/styles/bootstrap/forms/_form-check.scss +43 -73
  32. package/src/styles/bootstrap/forms/_form-control.scss +35 -29
  33. package/src/styles/bootstrap/forms/_form-file.scss +9 -9
  34. package/src/styles/bootstrap/forms/_form-label.scss +1 -1
  35. package/src/styles/bootstrap/forms/_form-layout.scss +46 -0
  36. package/src/styles/bootstrap/forms/_form-range.scss +13 -14
  37. package/src/styles/bootstrap/forms/_validation.scss +3 -6
  38. package/src/styles/bootstrap/mixins/_badge-text.scss +3 -3
  39. package/src/styles/bootstrap/mixins/_form-layout.scss +62 -0
  40. package/src/styles/bootstrap/mixins/_grid.scss +3 -3
  41. package/src/styles/bootstrap/mixins/_utilities.scss +14 -3
  42. package/src/styles/components/_application-header.scss +30 -30
  43. package/src/styles/components/_datatable.scss +57 -48
  44. package/src/styles/components/_drag_drop.scss +7 -6
  45. package/src/styles/components/_elevation.scss +11 -6
  46. package/src/styles/components/_layout.scss +26 -13
  47. package/src/styles/components/_links.scss +2 -2
  48. package/src/styles/components/_list-item.scss +69 -30
  49. package/src/styles/components/_markdown.scss +33 -19
  50. package/src/styles/components/_pills.scss +6 -6
  51. package/src/styles/components/_scrollbar.scss +6 -5
  52. package/src/styles/components/_search-bar.scss +67 -0
  53. package/src/styles/components/_skeleton.scss +4 -3
  54. package/src/styles/components/_switch.scss +16 -18
  55. package/src/styles/components/_widgets.scss +12 -10
  56. package/src/styles/mixins/_utilities.scss +271 -0
  57. package/src/styles/variables/_elevation.scss +14 -12
  58. package/src/styles/variables/_focus.scss +4 -3
  59. package/src/styles/variables/_si-vars.scss +13 -7
  60. package/src/styles/variables/_sizing.scss +22 -0
  61. package/src/styles/variables/_spacers.scss +53 -25
  62. package/src/styles/variables/_system-tokens.scss +190 -0
  63. package/src/styles/variables/_typography.scss +112 -99
  64. package/src/styles/variables/_utilities.scss +64 -51
  65. package/src/theme/_theme-element.scss +386 -2
  66. package/src/theme-shadow-dom.scss +17 -0
  67. package/src/theme.scss +14 -3
  68. /package/{LICENSE.md → LICENSE} +0 -0
@@ -133,15 +133,15 @@
133
133
  // Gutters
134
134
  //
135
135
  // Make use of `.g-*`, `.gx-*` or `.gy-*` utilities to change spacing between the columns.
136
- @each $key, $value in variables.$gutters {
136
+ @each $key, $block-value in variables.$gutters-block {
137
137
  .g#{$infix}-#{$key},
138
138
  .gx#{$infix}-#{$key} {
139
- --#{variables.$variable-prefix}gutter-x: #{$value};
139
+ --#{variables.$variable-prefix}gutter-x: #{map.get(variables.$gutters-inline, $key)};
140
140
  }
141
141
 
142
142
  .g#{$infix}-#{$key},
143
143
  .gy#{$infix}-#{$key} {
144
- --#{variables.$variable-prefix}gutter-y: #{$value};
144
+ --#{variables.$variable-prefix}gutter-y: #{$block-value};
145
145
  }
146
146
  }
147
147
  }
@@ -17,6 +17,7 @@
17
17
 
18
18
  @each $key, $value in $values {
19
19
  $properties: map.get($utility, property);
20
+ $property-values: map.get($utility, property-values);
20
21
 
21
22
  // Multiple properties are possible, for example with vertical or horizontal margins or paddings
22
23
  @if meta.type-of($properties) == 'string' {
@@ -45,7 +46,9 @@
45
46
  // Don't prefix if value key is null (eg. with shadow class)
46
47
  $property-class-modifier: '';
47
48
  @if ($key) {
48
- @if ($property-class == '' and $infix == '') {
49
+ @if map.get($utility, negative) {
50
+ $property-class-modifier: '-n' + $key;
51
+ } @else if ($property-class == '' and $infix == '') {
49
52
  $property-class-modifier: $key;
50
53
  } @else {
51
54
  $property-class-modifier: '-' + $key;
@@ -79,14 +82,22 @@
79
82
  --#{variables.$variable-prefix}#{$local-var}: #{$value};
80
83
  }
81
84
  }
82
- #{$property}: $value $important;
85
+ @if $property-values {
86
+ #{$property}: map.get(map.get($property-values, $property), $key) $important;
87
+ } @else {
88
+ #{$property}: $value $important;
89
+ }
83
90
  }
84
91
  }
85
92
 
86
93
  @each $pseudo in $state {
87
94
  .#{$property-class + $infix + $property-class-modifier}-#{$pseudo}:#{$pseudo} {
88
95
  @each $property in $properties {
89
- #{$property}: $value $important;
96
+ @if $property-values {
97
+ #{$property}: map.get(map.get($property-values, $property), $key) $important;
98
+ } @else {
99
+ #{$property}: $value $important;
100
+ }
90
101
  }
91
102
  }
92
103
  }
@@ -1,7 +1,7 @@
1
1
  @use '../bootstrap/mixins/breakpoints';
2
2
  @use '../bootstrap/variables' as bootstrap-variables;
3
- @use '../variables';
4
- @use '../variables/elevation';
3
+ @use '../variables/si-vars';
4
+ @use '../variables/system-tokens';
5
5
  @use '../variables/semantic-tokens';
6
6
  @use '../variables/spacers';
7
7
  @use '../variables/typography';
@@ -12,8 +12,8 @@
12
12
  .has-application-header,
13
13
  .has-navbar-fixed-top {
14
14
  padding-block-start: calc(
15
- variables.$si-application-header-height + variables.$si-titlebar-spacing +
16
- variables.$si-system-banner-spacing
15
+ si-vars.$si-application-header-height + si-vars.$si-titlebar-spacing +
16
+ si-vars.$si-system-banner-spacing
17
17
  );
18
18
  }
19
19
 
@@ -26,10 +26,10 @@
26
26
  var(--element-titlebar-spacing, 0px) + var(--element-system-banner-spacing, 0px)
27
27
  );
28
28
  z-index: zindex.$zindex-application-header;
29
- background: semantic-tokens.$element-base-1;
30
- min-block-size: variables.$si-application-header-height;
29
+ background: system-tokens.$si-sys-background-1;
30
+ min-block-size: si-vars.$si-application-header-height;
31
31
  align-items: stretch;
32
- border-block-end: 1px solid semantic-tokens.$element-ui-4;
32
+ border-block-end: 1px solid system-tokens.$si-sys-border-4;
33
33
 
34
34
  // hide border when mobile styles are applied and either the dropdown-menu is shown or navigation is expanded
35
35
  &:has(.dropdown-menu.show),
@@ -42,7 +42,7 @@
42
42
  order: 2;
43
43
  flex-basis: 100%;
44
44
  box-shadow: none;
45
- border-block-start: 1px solid semantic-tokens.$element-ui-4;
45
+ border-block-start: 1px solid system-tokens.$si-sys-border-4;
46
46
  margin-block: 0;
47
47
  border-radius: 0;
48
48
  }
@@ -80,7 +80,7 @@
80
80
  .application-name {
81
81
  font-size: typography.$si-font-size-body-lg;
82
82
  font-weight: typography.$si-font-weight-body-lg;
83
- padding: map.get(spacers.$spacers, 5);
83
+ padding: map.get(spacers.$spacers-block, 5) map.get(spacers.$spacers-inline, 5);
84
84
  margin: 0;
85
85
  line-height: normal;
86
86
  white-space: nowrap;
@@ -93,8 +93,8 @@
93
93
  flex-basis: 100%;
94
94
  display: flex;
95
95
  flex-flow: column;
96
- padding-block: map.get(spacers.$spacers, 4);
97
- border-block-start: 1px solid semantic-tokens.$element-ui-4;
96
+ padding-block: map.get(spacers.$spacers-block, 4);
97
+ border-block-start: 1px solid system-tokens.$si-sys-border-4;
98
98
  }
99
99
 
100
100
  .header-navigation {
@@ -106,13 +106,13 @@
106
106
 
107
107
  .header-item {
108
108
  &.active {
109
- --si-header-item-border: #{semantic-tokens.$element-action-primary};
110
- color: semantic-tokens.$element-action-primary;
109
+ --si-header-item-border: #{system-tokens.$si-sys-border-accent};
110
+ color: system-tokens.$si-sys-text-accent;
111
111
  }
112
112
 
113
113
  &:hover {
114
- --si-header-item-border: #{semantic-tokens.$element-action-primary-hover};
115
- color: semantic-tokens.$element-action-primary-hover;
114
+ --si-header-item-border: #{system-tokens.$si-sys-border-accent-hover};
115
+ color: system-tokens.$si-sys-text-accent-hover;
116
116
  }
117
117
  }
118
118
  }
@@ -130,13 +130,13 @@
130
130
  }
131
131
 
132
132
  .header-toggle {
133
- color: semantic-tokens.$element-text-primary;
133
+ color: system-tokens.$si-sys-text-primary;
134
134
  border: 0;
135
- padding: map.get(spacers.$spacers, 5);
135
+ padding: map.get(spacers.$spacers-block, 5) map.get(spacers.$spacers-inline, 5);
136
136
  background-color: transparent; // remove default button style
137
137
 
138
138
  &:is(:hover, .show, :active) {
139
- background: semantic-tokens.$element-base-1-hover;
139
+ background: system-tokens.$si-sys-background-hover;
140
140
  text-decoration: none;
141
141
  }
142
142
  }
@@ -147,23 +147,23 @@
147
147
  flex-basis: 0;
148
148
  align-items: center;
149
149
  position: relative;
150
- color: semantic-tokens.$element-text-primary;
150
+ color: system-tokens.$si-sys-text-primary;
151
151
  inline-size: 100%;
152
152
  font-size: typography.$si-font-size-h4;
153
153
  line-height: typography.$si-line-height-h4;
154
154
  font-weight: typography.$si-font-weight-h4;
155
- padding-block: 13px;
156
- padding-inline: map.get(spacers.$spacers, 5);
155
+ padding-block: map.get(spacers.$spacers-block, 5);
156
+ padding-inline: map.get(spacers.$spacers-inline, 5);
157
157
  background: none;
158
158
  box-shadow: none;
159
159
  border: 0;
160
160
  white-space: nowrap;
161
161
 
162
- .icon-lg {
163
- margin-block: -3px;
162
+ .icon {
163
+ margin-block: -0.125rem;
164
164
 
165
165
  ~ .item-title {
166
- padding-inline-start: map.get(spacers.$spacers, 5);
166
+ padding-inline-start: map.get(spacers.$spacers-inline, 5);
167
167
  }
168
168
  }
169
169
 
@@ -176,8 +176,8 @@
176
176
  }
177
177
 
178
178
  &:hover {
179
- color: semantic-tokens.$element-text-primary;
180
- background-color: semantic-tokens.$element-base-1-hover;
179
+ color: system-tokens.$si-sys-text-primary;
180
+ background-color: system-tokens.$si-sys-background-hover;
181
181
  text-decoration: none;
182
182
  }
183
183
 
@@ -189,17 +189,17 @@
189
189
  background: var(--si-header-item-border);
190
190
 
191
191
  block-size: 100%;
192
- inline-size: map.get(spacers.$spacers, 2);
192
+ inline-size: map.get(spacers.$spacers-inline, 2);
193
193
  }
194
194
 
195
195
  &.header-selection-item {
196
- color: semantic-tokens.$element-action-secondary-text;
196
+ color: system-tokens.$si-sys-text-accent;
197
197
  font-size: typography.$si-font-size-h5;
198
198
  font-weight: typography.$si-font-weight-h5;
199
199
  line-height: typography.$si-line-height-h5;
200
200
 
201
201
  &:hover {
202
- color: semantic-tokens.$element-action-secondary-text-hover;
202
+ color: system-tokens.$si-sys-text-accent-hover;
203
203
  }
204
204
  }
205
205
  }
@@ -248,7 +248,7 @@
248
248
 
249
249
  &::after {
250
250
  inline-size: 100%;
251
- block-size: map.get(spacers.$spacers, 2);
251
+ block-size: map.get(spacers.$spacers-block, 2);
252
252
  }
253
253
  }
254
254
  }
@@ -3,6 +3,7 @@
3
3
  @use '../variables/animations';
4
4
  @use '../variables/focus';
5
5
  @use '../variables/semantic-tokens';
6
+ @use '../variables/system-tokens';
6
7
  @use '../variables/spacers';
7
8
  @use '../variables/typography';
8
9
  @use '../variables/utilities';
@@ -10,11 +11,12 @@
10
11
  @use 'sass:map';
11
12
 
12
13
  $datatable-header-border-color: variables.$table-border-color !default;
13
- $datatable-header-background-color: transparent !default;
14
- $datatable-header-color: semantic-tokens.$element-text-primary !default;
14
+ $datatable-header-background-color: variables.$table-bg !default;
15
+ $datatable-header-color: system-tokens.$si-sys-text-primary !default;
15
16
  $datatable-footer-background-color: transparent !default;
16
17
 
17
- $datatable-summary-background-color: semantic-tokens.$element-base-4 !default;
18
+ $datatable-summary-background-color: system-tokens.$si-sys-background-2 !default;
19
+ $datatable-striped-background-color: variables.$table-striped-bg !default;
18
20
 
19
21
  $datatable-header-height: 40px !default;
20
22
  $datatable-cell-min-width: 40px !default;
@@ -22,12 +24,12 @@ $datatable-body-row-min-height: 48px !default;
22
24
 
23
25
  $datatable-ghost-cell-container-background: variables.$table-bg !default;
24
26
 
25
- $datatable-ghost-cell-strip-background: semantic-tokens.$element-base-1-hover !default;
27
+ $datatable-ghost-cell-strip-background: system-tokens.$si-sys-background-hover !default;
26
28
  $datatable-ghost-cell-strip-background-image: linear-gradient(
27
29
  90deg,
28
- semantic-tokens.$element-base-1-hover 0%,
29
- semantic-tokens.$element-base-1-selected 25%,
30
- semantic-tokens.$element-base-1-hover 50%
30
+ system-tokens.$si-sys-background-hover 0%,
31
+ system-tokens.$si-sys-background-active 25%,
32
+ system-tokens.$si-sys-background-hover 50%
31
33
  ) !default;
32
34
  $datatable-ghost-cell-strip-radius: 0 !default;
33
35
 
@@ -46,10 +48,26 @@ $datatable-ghost-cell-strip-radius: 0 !default;
46
48
  background-color: variables.$table-bg;
47
49
  border-radius: semantic-tokens.$element-radius-2;
48
50
 
51
+ // Compat for v26. This element hos no class.
52
+ [role='table'] {
53
+ flex: 1;
54
+ }
55
+
49
56
  &.table-custom {
50
57
  --si-datatable-row-min-height: 24px;
51
58
  }
52
59
 
60
+ // Zebra striping, the counterpart of `.table-striped` for HTML tables.
61
+ // Interactive states are excluded so that hover, active and focus keep precedence.
62
+ &.table-striped {
63
+ .datatable-row-wrapper .datatable-body-row.datatable-row-odd:not(.active, :hover, :focus) {
64
+ &,
65
+ :is(.datatable-row-left, .datatable-row-right) {
66
+ background-color: $datatable-striped-background-color;
67
+ }
68
+ }
69
+ }
70
+
53
71
  // any kind of selection: apply a row hover state
54
72
  &:is(
55
73
  .single-selection,
@@ -99,6 +117,24 @@ $datatable-ghost-cell-strip-radius: 0 !default;
99
117
  }
100
118
  }
101
119
 
120
+ &.scroll-horz {
121
+ .datatable-row-left {
122
+ .datatable-body-cell:last-child,
123
+ .datatable-header-cell:last-child {
124
+ box-shadow: system-tokens.$si-sys-effects-shadow-3;
125
+ clip-path: inset(0 -8px 0 0);
126
+ }
127
+ }
128
+
129
+ .datatable-row-right {
130
+ .datatable-body-cell:first-child,
131
+ .datatable-header-cell:first-child {
132
+ box-shadow: system-tokens.$si-sys-effects-shadow-3;
133
+ clip-path: inset(0 0 0 -8px);
134
+ }
135
+ }
136
+ }
137
+
102
138
  // 'checkbox' selection
103
139
  :is(.datatable-header-cell, .datatable-body-cell) {
104
140
  label.datatable-checkbox {
@@ -106,7 +142,7 @@ $datatable-ghost-cell-strip-radius: 0 !default;
106
142
  inline-size: 13px;
107
143
  block-size: 13px;
108
144
  margin-block: 0;
109
- margin-inline: 0 map.get(spacers.$spacers, 6);
145
+ margin-inline: 0 map.get(spacers.$spacers-inline, 6);
110
146
  position: relative;
111
147
 
112
148
  > input {
@@ -160,11 +196,11 @@ $datatable-ghost-cell-strip-radius: 0 !default;
160
196
  }
161
197
 
162
198
  &:first-child {
163
- padding-inline-start: map.get(spacers.$spacers, 5);
199
+ padding-inline-start: map.get(spacers.$spacers-inline, 5);
164
200
  }
165
201
 
166
202
  &:last-child {
167
- padding-inline-end: map.get(spacers.$spacers, 5);
203
+ padding-inline-end: map.get(spacers.$spacers-inline, 5);
168
204
  }
169
205
  }
170
206
 
@@ -179,36 +215,15 @@ $datatable-ghost-cell-strip-radius: 0 !default;
179
215
  }
180
216
  }
181
217
  }
182
-
183
- .horizontal-overflow {
184
- .datatable-row-left {
185
- .datatable-body-cell:last-child,
186
- .datatable-header-cell:last-child {
187
- box-shadow: 0 0 8px var(--element-box-shadow-color-1);
188
- clip-path: inset(0 -8px 0 0);
189
- }
190
- }
191
-
192
- .datatable-row-right {
193
- .datatable-body-cell:first-child,
194
- .datatable-header-cell:first-child {
195
- box-shadow: 0 0 8px var(--element-box-shadow-color-1);
196
- clip-path: inset(0 0 0 -8px);
197
- }
198
- }
199
- }
200
218
  }
201
219
 
202
220
  // Header Styles
203
221
  .datatable-header {
204
222
  padding: 0;
205
- display: flex;
206
- align-items: center;
207
223
  border-block-end: 4px solid $datatable-header-border-color;
208
224
  background-color: $datatable-header-background-color;
209
225
  color: $datatable-header-color;
210
226
  block-size: $datatable-header-height;
211
- vertical-align: baseline;
212
227
  font-size: typography.$si-font-size-h5;
213
228
  font-weight: typography.$si-font-weight-h5;
214
229
  line-height: typography.$si-line-height-h5;
@@ -216,13 +231,13 @@ $datatable-ghost-cell-strip-radius: 0 !default;
216
231
 
217
232
  .sort-btn {
218
233
  color: $datatable-header-color !important; // stylelint-disable-line declaration-no-important
219
- margin-inline-start: map.get(spacers.$spacers, 1);
234
+ margin-inline-start: map.get(spacers.$spacers-inline, 1);
220
235
  }
221
236
 
222
237
  // Resizable handle
223
238
  .resizeable:hover {
224
239
  .resize-handle {
225
- background-color: semantic-tokens.$element-base-0;
240
+ background-color: system-tokens.$si-sys-background-0;
226
241
  inline-size: 2px;
227
242
  border-radius: 2px;
228
243
  padding-block: 0;
@@ -236,7 +251,6 @@ $datatable-ghost-cell-strip-radius: 0 !default;
236
251
 
237
252
  :is(.datatable-row-left, .datatable-row-right) {
238
253
  background-color: variables.$table-bg;
239
- display: flex;
240
254
 
241
255
  .datatable-header-cell {
242
256
  flex-shrink: 0;
@@ -244,14 +258,14 @@ $datatable-ghost-cell-strip-radius: 0 !default;
244
258
  }
245
259
 
246
260
  .datatable-header-cell:focus-visible {
247
- @include focus.make-outline-focus();
261
+ @include focus.make-outline-focus-inside();
248
262
  }
249
263
  }
250
264
 
251
265
  // Summary Styles
252
266
  .datatable-summary-row .datatable-body-row {
253
267
  background-color: $datatable-summary-background-color;
254
- font-weight: typography.$si-font-weight-title-2;
268
+ font-weight: typography.$si-font-weight-h5;
255
269
  }
256
270
 
257
271
  // Body Styles
@@ -293,7 +307,7 @@ $datatable-ghost-cell-strip-radius: 0 !default;
293
307
  .datatable-group-cell {
294
308
  display: flex;
295
309
  align-items: center;
296
- padding-inline-start: map.get(spacers.$spacers, 6);
310
+ padding-inline-start: map.get(spacers.$spacers-inline, 6);
297
311
  }
298
312
  }
299
313
 
@@ -312,29 +326,24 @@ $datatable-ghost-cell-strip-radius: 0 !default;
312
326
  }
313
327
  }
314
328
  }
315
-
316
- .datatable-body-row:has(.datatable-row-group) {
317
- min-inline-size: fit-content;
318
- }
319
329
  }
320
330
 
321
331
  // Footer Styles
322
332
  .datatable-footer {
323
333
  display: flex;
324
334
  align-items: flex-end;
325
- flex: 1;
326
335
  align-content: flex-end;
327
336
  background-color: $datatable-footer-background-color;
328
- color: semantic-tokens.$element-text-secondary;
329
- font-size: typography.$si-font-size-caption;
337
+ color: system-tokens.$si-sys-text-secondary;
338
+ font-size: typography.$si-font-size-body-sm;
330
339
  margin-block-start: -1px;
331
340
  position: relative;
332
341
  z-index: 11;
333
342
 
334
343
  .datatable-footer-inner {
335
344
  background-color: variables.$table-bg;
336
- padding-inline-start: map.get(spacers.$spacers, 6);
337
- padding-inline-end: map.get(spacers.$spacers, 4);
345
+ padding-inline-start: map.get(spacers.$spacers-inline, 6);
346
+ padding-inline-end: map.get(spacers.$spacers-inline, 4);
338
347
  position: relative;
339
348
 
340
349
  &::before {
@@ -344,7 +353,7 @@ $datatable-ghost-cell-strip-radius: 0 !default;
344
353
  inset-inline-start: 0;
345
354
  inline-size: 100%;
346
355
  block-size: 1px;
347
- background-color: var(--element-base-0);
356
+ background-color: system-tokens.$si-sys-background-0;
348
357
  }
349
358
  }
350
359
  }
@@ -360,7 +369,7 @@ $datatable-ghost-cell-strip-radius: 0 !default;
360
369
  .datatable-tree-button {
361
370
  border: 0;
362
371
  background: none;
363
- margin-inline: map.get(spacers.$spacers, 2);
372
+ margin-inline: map.get(spacers.$spacers-inline, 2);
364
373
  padding: 0;
365
374
 
366
375
  &[disabled] {
@@ -1,8 +1,9 @@
1
1
  @use '../variables';
2
+ @use '../selectors';
2
3
 
3
4
  /* stylelint-disable declaration-no-important */
4
5
 
5
- body:has(.cdk-drag-preview, .ui-draggable-dragging) {
6
+ #{selectors.$body}:has(.cdk-drag-preview, .ui-draggable-dragging) {
6
7
  cursor: grabbing !important;
7
8
 
8
9
  .cdk-drop-list:not(.cdk-drop-list-dragging) {
@@ -22,8 +23,8 @@ body:has(.cdk-drag-preview, .ui-draggable-dragging) {
22
23
  }
23
24
 
24
25
  .cdk-drag-preview {
25
- background-color: variables.$element-base-3 !important;
26
- box-shadow: variables.$element-elevation-2 !important;
26
+ background-color: variables.$si-sys-background-3 !important;
27
+ box-shadow: variables.$si-sys-effects-shadow-3 !important;
27
28
  position: relative !important;
28
29
  inset-inline-start: -5px !important;
29
30
  inset-block-start: -10px !important;
@@ -36,7 +37,7 @@ body:has(.cdk-drag-preview, .ui-draggable-dragging) {
36
37
  }
37
38
 
38
39
  .cdk-drag-handle {
39
- color: variables.$element-ui-2;
40
+ color: variables.$si-sys-text-secondary;
40
41
  }
41
42
 
42
43
  .cdk-drag-disabled {
@@ -70,7 +71,7 @@ body:has(.cdk-drag-preview, .ui-draggable-dragging) {
70
71
 
71
72
  .cdk-drop-list:not([cdkDropListHasAnchor]) .cdk-drag-placeholder {
72
73
  opacity: 0.3;
73
- background-color: variables.$element-base-information !important;
74
+ background-color: variables.$si-sys-background-information-subtle !important;
74
75
  transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
75
76
  min-block-size: 45px;
76
77
  font-size: 0; // hide direct text
@@ -92,7 +93,7 @@ body:has(.cdk-drag-preview, .ui-draggable-dragging) {
92
93
 
93
94
  .droppable-container {
94
95
  &.drop-border {
95
- border: 1px dashed variables.$element-ui-2;
96
+ border: 1px dashed variables.$si-sys-border-2;
96
97
  }
97
98
 
98
99
  .cdk-drag-placeholder {
@@ -1,21 +1,26 @@
1
- @use '../variables/elevation';
1
+ @use '../variables/system-tokens';
2
2
 
3
- .shadow-none {
3
+ // @deprecated Use .shadow-none instead.
4
+ .elevation-none {
4
5
  box-shadow: none;
5
6
  }
6
7
 
8
+ // @deprecated Use .shadow-1 instead.
7
9
  .elevation-1 {
8
- box-shadow: elevation.$element-elevation-1;
10
+ box-shadow: system-tokens.$si-sys-effects-shadow-1;
9
11
  }
10
12
 
13
+ // @deprecated Use .shadow-2 instead.
11
14
  .elevation-2 {
12
- box-shadow: elevation.$element-elevation-2;
15
+ box-shadow: system-tokens.$si-sys-effects-shadow-2;
13
16
  }
14
17
 
18
+ // @deprecated Use .shadow-3 instead.
15
19
  .elevation-3 {
16
- box-shadow: elevation.$element-elevation-3;
20
+ box-shadow: system-tokens.$si-sys-effects-shadow-3;
17
21
  }
18
22
 
23
+ // @deprecated Use .shadow-4 instead.
19
24
  .elevation-4 {
20
- box-shadow: elevation.$element-elevation-4;
25
+ box-shadow: system-tokens.$si-sys-effects-shadow-4;
21
26
  }
@@ -10,11 +10,11 @@
10
10
  }
11
11
 
12
12
  .si-layout-main-padding {
13
- padding-block: map.get(variables.$spacers, 6) 0;
14
- padding-inline: map.get(variables.$spacers, 6);
13
+ padding-block: map.get(variables.$spacers-block, 6) 0;
14
+ padding-inline: map.get(variables.$spacers-inline, 6);
15
15
 
16
16
  @include breakpoints.media-breakpoint-up(md) {
17
- padding-inline: map.get(variables.$spacers, 9);
17
+ padding-inline: map.get(variables.$spacers-inline, 9);
18
18
  }
19
19
  }
20
20
 
@@ -25,16 +25,16 @@
25
25
  }
26
26
 
27
27
  .si-layout-status {
28
- margin-block-end: map.get(variables.$spacers, 4);
29
- margin-block-start: -#{map.get(variables.$spacers, 4)};
28
+ margin-block-end: map.get(variables.$spacers-block, 4);
29
+ margin-block-start: map.get(variables.$negative-spacers-block, 4);
30
30
  }
31
31
 
32
32
  .si-layout-breadcrumb {
33
33
  display: block;
34
- margin-block-end: map.get(variables.$spacers, 4);
34
+ margin-block-end: map.get(variables.$spacers-block, 4);
35
35
 
36
36
  &.si-layout-top-element {
37
- margin-block-end: map.get(variables.$spacers, 6);
37
+ margin-block-end: map.get(variables.$spacers-block, 6);
38
38
  }
39
39
  }
40
40
 
@@ -45,12 +45,17 @@
45
45
  'title title'
46
46
  'subtitle subtitle'
47
47
  'actions actions';
48
- margin-block-end: map.get(variables.$spacers, 8);
48
+ margin-block-end: map.get(variables.$spacers-block, 8);
49
49
  }
50
50
 
51
51
  .si-layout-title {
52
52
  grid-area: title;
53
53
  margin-block-end: 0;
54
+ @include variables.si-font(
55
+ variables.$si-font-size-h3,
56
+ variables.$si-line-height-h3,
57
+ variables.$si-font-weight-h3
58
+ );
54
59
 
55
60
  &.si-layout-top-element + .si-layout-subtitle {
56
61
  margin-inline: var(--si-layout-header-first-element-offset, 0)
@@ -60,9 +65,9 @@
60
65
 
61
66
  .si-layout-subtitle {
62
67
  grid-area: subtitle;
63
- margin-block-start: map.get(variables.$spacers, 4);
68
+ margin-block-start: map.get(variables.$spacers-block, 4);
64
69
  margin-block-end: 0;
65
- color: variables.$element-text-secondary;
70
+ color: variables.$si-sys-text-secondary;
66
71
  @include variables.si-font(
67
72
  variables.$si-font-size-body,
68
73
  variables.$si-line-height-body,
@@ -72,16 +77,24 @@
72
77
 
73
78
  .si-layout-actions {
74
79
  grid-area: actions;
75
- margin-block-start: map.get(variables.$spacers, 6);
80
+ margin-block-start: map.get(variables.$spacers-block, 6);
76
81
  }
77
82
 
78
83
  @include breakpoints.media-breakpoint-up(sm) {
79
84
  .si-layout-breadcrumb {
80
85
  margin-block-end: map.get(
81
- variables.$spacers,
86
+ variables.$spacers-block,
82
87
  4
83
88
  ) !important; // stylelint-disable-line declaration-no-important
84
89
  }
90
+
91
+ .si-layout-title {
92
+ @include variables.si-font(
93
+ variables.$si-font-size-h2,
94
+ variables.$si-line-height-h2,
95
+ variables.$si-font-weight-h2
96
+ );
97
+ }
85
98
  }
86
99
 
87
100
  @include breakpoints.media-breakpoint-up(md) {
@@ -98,7 +111,7 @@
98
111
  .si-layout-status {
99
112
  margin-block-start: 0;
100
113
  margin-block-end: map.get(
101
- variables.$spacers,
114
+ variables.$spacers-block,
102
115
  6
103
116
  ) !important; // stylelint-disable-line declaration-no-important
104
117
  }
@@ -1,4 +1,4 @@
1
- @use '../variables/semantic-tokens';
1
+ @use '../variables/system-tokens';
2
2
  @use '../variables/si-vars';
3
3
 
4
4
  @use 'sass:math';
@@ -10,7 +10,7 @@ $si-link-icon-line-height: math.div(14em, 16);
10
10
  $si-link-icon-spacing: math.div(4em, 16);
11
11
 
12
12
  a:active {
13
- color: semantic-tokens.$element-action-primary-active;
13
+ color: system-tokens.$si-sys-text-accent-active;
14
14
  text-decoration: underline;
15
15
  }
16
16