@siemens/element-theme 51.0.0-rc.7 → 51.0.0-rc.8

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 (44) hide show
  1. package/package.json +1 -1
  2. package/src/styles/_density.scss +144 -0
  3. package/src/styles/_utilities.scss +5 -0
  4. package/src/styles/_variables.scss +1 -0
  5. package/src/styles/bootstrap/_badges.scss +3 -3
  6. package/src/styles/bootstrap/_button-group.scss +3 -3
  7. package/src/styles/bootstrap/_buttons.scss +2 -3
  8. package/src/styles/bootstrap/_card.scss +18 -11
  9. package/src/styles/bootstrap/_dropdowns.scss +12 -12
  10. package/src/styles/bootstrap/_images.scss +2 -1
  11. package/src/styles/bootstrap/_modals.scss +8 -8
  12. package/src/styles/bootstrap/_pagination.scss +3 -3
  13. package/src/styles/bootstrap/_popovers.scss +1 -1
  14. package/src/styles/bootstrap/_reboot.scss +1 -1
  15. package/src/styles/bootstrap/_tables.scss +8 -6
  16. package/src/styles/bootstrap/_type.scss +65 -1
  17. package/src/styles/bootstrap/_utilities.scss +2 -7
  18. package/src/styles/bootstrap/_variables.scss +60 -54
  19. package/src/styles/bootstrap/forms/_form-check.scss +12 -12
  20. package/src/styles/bootstrap/forms/_form-control.scss +19 -13
  21. package/src/styles/bootstrap/forms/_form-file.scss +2 -2
  22. package/src/styles/bootstrap/forms/_form-label.scss +1 -1
  23. package/src/styles/bootstrap/forms/_form-layout.scss +2 -2
  24. package/src/styles/bootstrap/forms/_validation.scss +2 -2
  25. package/src/styles/bootstrap/mixins/_badge-text.scss +2 -2
  26. package/src/styles/bootstrap/mixins/_form-layout.scss +4 -4
  27. package/src/styles/bootstrap/mixins/_grid.scss +3 -3
  28. package/src/styles/bootstrap/mixins/_utilities.scss +14 -3
  29. package/src/styles/components/_application-header.scss +8 -8
  30. package/src/styles/components/_datatable.scss +20 -8
  31. package/src/styles/components/_layout.scss +12 -12
  32. package/src/styles/components/_list-item.scss +47 -17
  33. package/src/styles/components/_markdown.scss +8 -8
  34. package/src/styles/components/_pills.scss +3 -3
  35. package/src/styles/components/_search-bar.scss +67 -0
  36. package/src/styles/components/_switch.scss +4 -4
  37. package/src/styles/components/_widgets.scss +9 -7
  38. package/src/styles/mixins/_utilities.scss +259 -0
  39. package/src/styles/variables/_si-vars.scss +13 -7
  40. package/src/styles/variables/_sizing.scss +22 -0
  41. package/src/styles/variables/_spacers.scss +53 -25
  42. package/src/styles/variables/_typography.scss +86 -53
  43. package/src/styles/variables/_utilities.scss +56 -51
  44. package/src/theme.scss +3 -0
@@ -81,7 +81,7 @@
81
81
  .application-name {
82
82
  font-size: typography.$si-font-size-body-lg;
83
83
  font-weight: typography.$si-font-weight-body-lg;
84
- padding: map.get(spacers.$spacers, 5);
84
+ padding: map.get(spacers.$spacers-block, 5) map.get(spacers.$spacers-inline, 5);
85
85
  margin: 0;
86
86
  line-height: normal;
87
87
  white-space: nowrap;
@@ -94,7 +94,7 @@
94
94
  flex-basis: 100%;
95
95
  display: flex;
96
96
  flex-flow: column;
97
- padding-block: map.get(spacers.$spacers, 4);
97
+ padding-block: map.get(spacers.$spacers-block, 4);
98
98
  border-block-start: 1px solid system-tokens.$si-sys-border-4;
99
99
  }
100
100
 
@@ -133,7 +133,7 @@
133
133
  .header-toggle {
134
134
  color: system-tokens.$si-sys-text-primary;
135
135
  border: 0;
136
- padding: map.get(spacers.$spacers, 5);
136
+ padding: map.get(spacers.$spacers-block, 5) map.get(spacers.$spacers-inline, 5);
137
137
  background-color: transparent; // remove default button style
138
138
 
139
139
  &:is(:hover, .show, :active) {
@@ -153,8 +153,8 @@
153
153
  font-size: typography.$si-font-size-h4;
154
154
  line-height: typography.$si-line-height-h4;
155
155
  font-weight: typography.$si-font-weight-h4;
156
- padding-block: map.get(spacers.$spacers, 5);
157
- padding-inline: map.get(spacers.$spacers, 5);
156
+ padding-block: map.get(spacers.$spacers-block, 5);
157
+ padding-inline: map.get(spacers.$spacers-inline, 5);
158
158
  background: none;
159
159
  box-shadow: none;
160
160
  border: 0;
@@ -164,7 +164,7 @@
164
164
  margin-block: -0.125rem;
165
165
 
166
166
  ~ .item-title {
167
- padding-inline-start: map.get(spacers.$spacers, 5);
167
+ padding-inline-start: map.get(spacers.$spacers-inline, 5);
168
168
  }
169
169
  }
170
170
 
@@ -190,7 +190,7 @@
190
190
  background: var(--si-header-item-border);
191
191
 
192
192
  block-size: 100%;
193
- inline-size: map.get(spacers.$spacers, 2);
193
+ inline-size: map.get(spacers.$spacers-inline, 2);
194
194
  }
195
195
 
196
196
  &.header-selection-item {
@@ -249,7 +249,7 @@
249
249
 
250
250
  &::after {
251
251
  inline-size: 100%;
252
- block-size: map.get(spacers.$spacers, 2);
252
+ block-size: map.get(spacers.$spacers-block, 2);
253
253
  }
254
254
  }
255
255
  }
@@ -16,6 +16,7 @@ $datatable-header-color: system-tokens.$si-sys-text-primary !default;
16
16
  $datatable-footer-background-color: transparent !default;
17
17
 
18
18
  $datatable-summary-background-color: system-tokens.$si-sys-background-2 !default;
19
+ $datatable-striped-background-color: variables.$table-striped-bg !default;
19
20
 
20
21
  $datatable-header-height: 40px !default;
21
22
  $datatable-cell-min-width: 40px !default;
@@ -56,6 +57,17 @@ $datatable-ghost-cell-strip-radius: 0 !default;
56
57
  --si-datatable-row-min-height: 24px;
57
58
  }
58
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
+
59
71
  // any kind of selection: apply a row hover state
60
72
  &:is(
61
73
  .single-selection,
@@ -130,7 +142,7 @@ $datatable-ghost-cell-strip-radius: 0 !default;
130
142
  inline-size: 13px;
131
143
  block-size: 13px;
132
144
  margin-block: 0;
133
- margin-inline: 0 map.get(spacers.$spacers, 6);
145
+ margin-inline: 0 map.get(spacers.$spacers-inline, 6);
134
146
  position: relative;
135
147
 
136
148
  > input {
@@ -184,11 +196,11 @@ $datatable-ghost-cell-strip-radius: 0 !default;
184
196
  }
185
197
 
186
198
  &:first-child {
187
- padding-inline-start: map.get(spacers.$spacers, 5);
199
+ padding-inline-start: map.get(spacers.$spacers-inline, 5);
188
200
  }
189
201
 
190
202
  &:last-child {
191
- padding-inline-end: map.get(spacers.$spacers, 5);
203
+ padding-inline-end: map.get(spacers.$spacers-inline, 5);
192
204
  }
193
205
  }
194
206
 
@@ -219,7 +231,7 @@ $datatable-ghost-cell-strip-radius: 0 !default;
219
231
 
220
232
  .sort-btn {
221
233
  color: $datatable-header-color !important; // stylelint-disable-line declaration-no-important
222
- margin-inline-start: map.get(spacers.$spacers, 1);
234
+ margin-inline-start: map.get(spacers.$spacers-inline, 1);
223
235
  }
224
236
 
225
237
  // Resizable handle
@@ -295,7 +307,7 @@ $datatable-ghost-cell-strip-radius: 0 !default;
295
307
  .datatable-group-cell {
296
308
  display: flex;
297
309
  align-items: center;
298
- padding-inline-start: map.get(spacers.$spacers, 6);
310
+ padding-inline-start: map.get(spacers.$spacers-inline, 6);
299
311
  }
300
312
  }
301
313
 
@@ -330,8 +342,8 @@ $datatable-ghost-cell-strip-radius: 0 !default;
330
342
 
331
343
  .datatable-footer-inner {
332
344
  background-color: variables.$table-bg;
333
- padding-inline-start: map.get(spacers.$spacers, 6);
334
- 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);
335
347
  position: relative;
336
348
 
337
349
  &::before {
@@ -357,7 +369,7 @@ $datatable-ghost-cell-strip-radius: 0 !default;
357
369
  .datatable-tree-button {
358
370
  border: 0;
359
371
  background: none;
360
- margin-inline: map.get(spacers.$spacers, 2);
372
+ margin-inline: map.get(spacers.$spacers-inline, 2);
361
373
  padding: 0;
362
374
 
363
375
  &[disabled] {
@@ -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,7 +45,7 @@
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 {
@@ -65,7 +65,7 @@
65
65
 
66
66
  .si-layout-subtitle {
67
67
  grid-area: subtitle;
68
- margin-block-start: map.get(variables.$spacers, 4);
68
+ margin-block-start: map.get(variables.$spacers-block, 4);
69
69
  margin-block-end: 0;
70
70
  color: variables.$si-sys-text-secondary;
71
71
  @include variables.si-font(
@@ -77,13 +77,13 @@
77
77
 
78
78
  .si-layout-actions {
79
79
  grid-area: actions;
80
- margin-block-start: map.get(variables.$spacers, 6);
80
+ margin-block-start: map.get(variables.$spacers-block, 6);
81
81
  }
82
82
 
83
83
  @include breakpoints.media-breakpoint-up(sm) {
84
84
  .si-layout-breadcrumb {
85
85
  margin-block-end: map.get(
86
- variables.$spacers,
86
+ variables.$spacers-block,
87
87
  4
88
88
  ) !important; // stylelint-disable-line declaration-no-important
89
89
  }
@@ -111,7 +111,7 @@
111
111
  .si-layout-status {
112
112
  margin-block-start: 0;
113
113
  margin-block-end: map.get(
114
- variables.$spacers,
114
+ variables.$spacers-block,
115
115
  6
116
116
  ) !important; // stylelint-disable-line declaration-no-important
117
117
  }
@@ -4,24 +4,48 @@
4
4
 
5
5
  @use 'sass:map';
6
6
 
7
+ .list,
7
8
  ul:has(.list-item),
8
9
  ol:has(.list-item) {
10
+ display: flex;
11
+ flex-direction: column;
9
12
  margin: 0;
10
13
  padding: 0;
11
14
  list-style: none;
12
15
  }
13
16
 
17
+ .list {
18
+ &.list-divider > li:not(:last-child) {
19
+ border-block-end: 1px solid variables.$si-sys-border-4;
20
+ }
21
+
22
+ &.list-filled,
23
+ &.list-outline {
24
+ gap: map.get(variables.$spacers, 4);
25
+ }
26
+
27
+ &.list-filled .list-item {
28
+ background-color: variables.$si-sys-background-1;
29
+ border-radius: variables.$element-radius-2;
30
+ }
31
+
32
+ &.list-outline .list-item {
33
+ border: 1px solid variables.$si-sys-border-4;
34
+ border-radius: variables.$element-radius-2;
35
+ }
36
+ }
37
+
14
38
  .list-item {
15
39
  display: grid;
16
- grid-template-columns: auto 1fr auto;
40
+ grid-template-columns: auto auto 1fr auto;
17
41
  grid-template-areas:
18
- '. timestamp timestamp'
19
- 'indicator title action'
20
- '. description description'
21
- '. metadata metadata'
22
- '. quick-actions quick-actions';
23
- padding-block: map.get(variables.$spacers, 4);
24
- padding-inline: map.get(variables.$spacers, 6);
42
+ '. . timestamp timestamp'
43
+ 'check indicator title action'
44
+ '. . description description'
45
+ '. . metadata metadata'
46
+ '. . quick-actions quick-actions';
47
+ padding-block: map.get(variables.$spacers-block, 4);
48
+ padding-inline: map.get(variables.$spacers-inline, 6);
25
49
 
26
50
  @include typography.si-font(
27
51
  typography.$si-font-size-body,
@@ -30,7 +54,13 @@ ol:has(.list-item) {
30
54
  );
31
55
 
32
56
  > * {
33
- grid-column: 2 / -1;
57
+ grid-column: 3 / -1;
58
+ }
59
+
60
+ .list-item-check {
61
+ grid-area: check;
62
+ align-self: center;
63
+ margin-inline-end: map.get(variables.$spacers, 4);
34
64
  }
35
65
 
36
66
  .list-item-indicator {
@@ -41,10 +71,10 @@ ol:has(.list-item) {
41
71
  // This restricts the height on purpose.
42
72
  // Content taller than the title remains centered and overflows on both sides.
43
73
  max-block-size: calc(
44
- #{typography.$si-line-height-h5 * typography.$si-font-size-h5} +
45
- #{map.get(variables.$spacers, 4) * 2}
74
+ #{typography.$si-line-height-h5} * #{typography.$si-font-size-h5} +
75
+ #{map.get(variables.$spacers-block, 4)} * 2
46
76
  );
47
- margin-inline-end: map.get(variables.$spacers, 4);
77
+ margin-inline-end: map.get(variables.$spacers-inline, 4);
48
78
  }
49
79
 
50
80
  .list-item-timestamp {
@@ -55,7 +85,7 @@ ol:has(.list-item) {
55
85
 
56
86
  .list-item-title {
57
87
  grid-area: title;
58
- padding-block: map.get(variables.$spacers, 4);
88
+ padding-block: map.get(variables.$spacers-block, 4);
59
89
  margin-block-end: 0;
60
90
 
61
91
  @include typography.si-font(
@@ -94,7 +124,7 @@ ol:has(.list-item) {
94
124
 
95
125
  .list-item-description {
96
126
  grid-area: description;
97
- margin-block-end: map.get(variables.$spacers, 4);
127
+ margin-block-end: map.get(variables.$spacers-block, 4);
98
128
  }
99
129
 
100
130
  .list-item-metadata {
@@ -103,7 +133,7 @@ ol:has(.list-item) {
103
133
  flex-direction: row;
104
134
  align-items: center;
105
135
  color: variables.$si-sys-text-secondary;
106
- margin-block-end: map.get(variables.$spacers, 4);
136
+ margin-block-end: map.get(variables.$spacers-block, 4);
107
137
 
108
138
  a:not(:hover) {
109
139
  color: variables.$si-sys-text-secondary;
@@ -118,14 +148,14 @@ ol:has(.list-item) {
118
148
  block-size: 0.125rem;
119
149
  border-radius: 50%;
120
150
  background-color: variables.$si-sys-text-secondary;
121
- margin-inline: map.get(variables.$spacers, 2);
151
+ margin-inline: map.get(variables.$spacers-inline, 2);
122
152
  }
123
153
  }
124
154
 
125
155
  .list-item-quick-actions {
126
156
  grid-area: quick-actions;
127
157
  display: flex;
128
- gap: map.get(variables.$spacers, 4);
158
+ gap: map.get(variables.$spacers-block, 4) map.get(variables.$spacers-inline, 4);
129
159
  }
130
160
 
131
161
  &.list-item-action {
@@ -7,10 +7,10 @@
7
7
  word-wrap: break-word;
8
8
  overflow-wrap: break-word;
9
9
  word-break: break-word;
10
- line-height: variables.px-to-ratio(variables.$si-font-size-body, 20px);
10
+ line-height: variables.$si-line-height-body-paragraph;
11
11
 
12
12
  strong {
13
- font-weight: variables.$si-font-weight-semibold;
13
+ font-weight: variables.$si-font-weight-sbold;
14
14
  }
15
15
 
16
16
  :is(ul, ol) {
@@ -27,7 +27,7 @@
27
27
  }
28
28
 
29
29
  li {
30
- margin-block: map.get(variables.$spacers, 2);
30
+ margin-block: map.get(variables.$spacers-block, 2);
31
31
  max-inline-size: 100%;
32
32
  overflow-wrap: break-word;
33
33
  }
@@ -36,8 +36,8 @@
36
36
  list-style: none;
37
37
 
38
38
  .form-check-input {
39
- margin-inline-start: calc(-1rem - map.get(variables.$spacers, 2));
40
- margin-inline-end: map.get(variables.$spacers, 2);
39
+ margin-inline-start: calc(-1rem - map.get(variables.$spacers-inline, 2));
40
+ margin-inline-end: map.get(variables.$spacers-inline, 2);
41
41
  vertical-align: text-bottom;
42
42
  pointer-events: none;
43
43
  }
@@ -64,7 +64,7 @@
64
64
 
65
65
  blockquote {
66
66
  border-inline-start: 4px solid variables.$si-sys-border-4;
67
- padding-inline-start: map.get(variables.$spacers, 4);
67
+ padding-inline-start: map.get(variables.$spacers-inline, 4);
68
68
 
69
69
  p {
70
70
  margin-block-end: 0;
@@ -93,7 +93,7 @@
93
93
 
94
94
  :is(ul, ol) {
95
95
  // stylelint-disable-next-line declaration-no-important
96
- padding-inline-start: map.get(variables.$spacers, 6) !important;
96
+ padding-inline-start: map.get(variables.$spacers-inline, 6) !important;
97
97
  }
98
98
 
99
99
  td:last-child,
@@ -126,6 +126,6 @@
126
126
  inline-size: auto;
127
127
  object-fit: contain;
128
128
  display: block;
129
- margin-block: map.get(variables.$spacers, 4);
129
+ margin-block: map.get(variables.$spacers-block, 4);
130
130
  }
131
131
  }
@@ -7,7 +7,7 @@
7
7
  align-items: center;
8
8
  border-radius: 0.75rem;
9
9
  background: var(--filter-pill-background-color, variables.$si-sys-background-0);
10
- padding-inline: map.get(variables.$spacers, 4);
10
+ padding-inline: map.get(variables.$spacers-inline, 4);
11
11
  max-inline-size: 100%;
12
12
 
13
13
  &.active {
@@ -23,13 +23,13 @@
23
23
  }
24
24
 
25
25
  :is(.name, .value) {
26
- padding-block: map.get(variables.$spacers, 2);
26
+ padding-block: map.get(variables.$spacers-block, 2);
27
27
  }
28
28
  }
29
29
 
30
30
  .pill-group {
31
31
  display: flex;
32
- gap: map.get(variables.$spacers, 1);
32
+ gap: map.get(variables.$spacers-block, 1) map.get(variables.$spacers-inline, 1);
33
33
 
34
34
  .pill {
35
35
  border-radius: 0;
@@ -0,0 +1,67 @@
1
+ @use '../variables';
2
+ @use '../variables/semantic-tokens';
3
+ @use '../variables/system-tokens';
4
+ @use '../bootstrap/variables' as bootstrap-variables;
5
+
6
+ @use 'sass:map';
7
+
8
+ .search-bar {
9
+ position: relative;
10
+
11
+ &:has(.search-bar-input:disabled) {
12
+ .search-bar-icon,
13
+ .search-bar-input,
14
+ .search-bar-input::placeholder {
15
+ color: system-tokens.$si-sys-text-disabled;
16
+ }
17
+ }
18
+ }
19
+
20
+ .search-bar-input.form-control {
21
+ transition: none;
22
+ background-color: system-tokens.$si-sys-background-1 !important; // stylelint-disable-line declaration-no-important
23
+ border-radius: semantic-tokens.$element-radius-2;
24
+ border-width: 0;
25
+
26
+ &::placeholder {
27
+ color: system-tokens.$si-sys-text-secondary;
28
+ }
29
+
30
+ &:is(:hover, :focus)::placeholder {
31
+ color: system-tokens.$si-sys-text-primary;
32
+ }
33
+
34
+ .search-bar:has(.search-bar-icon) & {
35
+ padding-inline-start: calc(
36
+ #{variables.$si-icon-font-size} + #{map.get(variables.$spacers-inline, 2)} * 2
37
+ );
38
+ }
39
+
40
+ .search-bar:has(.search-bar-clear) & {
41
+ padding-inline-end: calc(
42
+ #{bootstrap-variables.$btn-font-size} * #{bootstrap-variables.$btn-line-height} +
43
+ #{bootstrap-variables.$btn-padding-y-sm} * 2 + #{map.get(variables.$spacers-inline, 2)} * 2
44
+ );
45
+ }
46
+
47
+ .search-bar.variant-background-0 & {
48
+ background-color: system-tokens.$si-sys-background-4 !important; // stylelint-disable-line declaration-no-important
49
+ }
50
+ }
51
+
52
+ .search-bar-icon {
53
+ position: absolute;
54
+ inset-block: 0;
55
+ inset-inline-start: map.get(variables.$spacers-inline, 2);
56
+ align-items: center;
57
+ font-size: variables.$si-icon-font-size;
58
+ color: system-tokens.$si-sys-text-disabled;
59
+ pointer-events: none;
60
+ }
61
+
62
+ .search-bar-clear {
63
+ position: absolute;
64
+ inset-block: 0;
65
+ inset-inline-end: map.get(variables.$spacers-inline, 2);
66
+ margin-block: auto;
67
+ }
@@ -2,19 +2,19 @@
2
2
 
3
3
  @use 'sass:map';
4
4
 
5
- $si-switch-size: 1.25rem !default;
5
+ $si-switch-size: max(1.25rem, 20px) !default;
6
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));
7
+ $si-switch-inline-spacing: calc($si-switch-inline-size + map.get(variables.$spacers-inline, 4));
8
8
  $si-switch-background-off-color: variables.$si-sys-background-1 !default;
9
9
  $si-switch-background-on-color: variables.$si-sys-background-accent !default;
10
- $si-switch-slider-margin: 0.25rem !default;
10
+ $si-switch-slider-margin: calc($si-switch-size / 5);
11
11
  $si-switch-slider-on-color: variables.$si-sys-text-on-accent !default;
12
12
  $si-switch-transition-length: variables.element-transition-duration(0.4s) !default;
13
13
 
14
14
  $si-switch-knob-size: calc(#{$si-switch-size} - 2 * #{$si-switch-slider-margin});
15
15
 
16
16
  .form-switch {
17
- padding-block: map.get(variables.$spacers, 1);
17
+ padding-block: map.get(variables.$spacers-block, 1);
18
18
  padding-inline-start: $si-switch-inline-spacing;
19
19
 
20
20
  .form-check-input {
@@ -9,7 +9,9 @@
9
9
  .si-value-widget-value {
10
10
  @extend .si-display-bold;
11
11
  display: inline-block;
12
- min-block-size: variables.$si-font-size-display-bold * variables.$si-line-height-display-bold;
12
+ min-block-size: calc(
13
+ #{variables.$si-font-size-display-bold} * #{variables.$si-line-height-display-bold}
14
+ );
13
15
  }
14
16
 
15
17
  /**
@@ -20,7 +22,7 @@
20
22
  @extend .si-display-bold;
21
23
  @extend .si-skeleton;
22
24
  display: inline-block;
23
- block-size: variables.$si-font-size-display-bold;
25
+ block-size: #{variables.$si-font-size-display-bold};
24
26
  vertical-align: middle;
25
27
  inline-size: 100%;
26
28
  }
@@ -28,26 +30,26 @@
28
30
  .si-value-widget-unit {
29
31
  @extend .si-body-lg;
30
32
  display: inline-block;
31
- margin-inline-start: map.get(variables.$spacers, 2);
33
+ margin-inline-start: map.get(variables.$spacers-inline, 2);
32
34
  }
33
35
 
34
36
  .si-value-widget-description {
35
37
  display: flex;
36
38
  align-items: center;
37
- gap: map.get(variables.$spacers, 2);
38
- margin-block-start: map.get(variables.$spacers, 2);
39
+ gap: map.get(variables.$spacers-block, 2) map.get(variables.$spacers-inline, 2);
40
+ margin-block-start: map.get(variables.$spacers-block, 2);
39
41
  min-block-size: variables.$si-icon-font-size;
40
42
  }
41
43
 
42
44
  .si-link-widget {
43
45
  display: flex;
44
46
  flex-direction: column;
45
- gap: map.get(variables.$spacers, 4);
47
+ gap: map.get(variables.$spacers-block, 4) map.get(variables.$spacers-inline, 4);
46
48
  }
47
49
 
48
50
  .si-link-widget-skeleton {
49
51
  @extend .si-skeleton;
50
- block-size: calc(variables.$si-font-size-body * variables.$si-line-height-body);
52
+ block-size: calc(#{variables.$si-font-size-body} * #{variables.$si-line-height-body});
51
53
  inline-size: 100%;
52
54
  }
53
55