@siemens/element-theme 51.0.0-rc.7 → 51.0.0-rc.9
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/_density.scss +144 -0
- package/src/styles/_utilities.scss +5 -0
- package/src/styles/_variables.scss +1 -0
- package/src/styles/bootstrap/_badges.scss +3 -3
- package/src/styles/bootstrap/_button-group.scss +3 -3
- package/src/styles/bootstrap/_buttons.scss +5 -6
- package/src/styles/bootstrap/_card.scss +19 -12
- package/src/styles/bootstrap/_dropdowns.scss +13 -13
- package/src/styles/bootstrap/_images.scss +4 -2
- package/src/styles/bootstrap/_list-group.scss +1 -1
- package/src/styles/bootstrap/_modals.scss +11 -10
- package/src/styles/bootstrap/_nav.scss +3 -3
- package/src/styles/bootstrap/_pagination.scss +4 -4
- package/src/styles/bootstrap/_popovers.scss +3 -2
- package/src/styles/bootstrap/_reboot.scss +4 -4
- package/src/styles/bootstrap/_tables.scss +8 -6
- package/src/styles/bootstrap/_type.scss +69 -1
- package/src/styles/bootstrap/_utilities.scss +2 -7
- package/src/styles/bootstrap/_variables.scss +78 -64
- package/src/styles/bootstrap/forms/_form-check.scss +12 -14
- package/src/styles/bootstrap/forms/_form-control.scss +19 -13
- package/src/styles/bootstrap/forms/_form-file.scss +2 -2
- package/src/styles/bootstrap/forms/_form-label.scss +1 -1
- package/src/styles/bootstrap/forms/_form-layout.scss +2 -2
- package/src/styles/bootstrap/forms/_form-range.scss +0 -1
- package/src/styles/bootstrap/forms/_validation.scss +3 -3
- package/src/styles/bootstrap/mixins/_badge-text.scss +3 -3
- package/src/styles/bootstrap/mixins/_form-layout.scss +4 -4
- 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 +8 -9
- package/src/styles/components/_datatable.scss +23 -11
- package/src/styles/components/_drag_drop.scss +1 -1
- package/src/styles/components/_elevation.scss +11 -6
- package/src/styles/components/_layout.scss +12 -12
- package/src/styles/components/_list-item.scss +48 -18
- package/src/styles/components/_markdown.scss +8 -8
- package/src/styles/components/_pills.scss +4 -4
- package/src/styles/components/_search-bar.scss +67 -0
- package/src/styles/components/_skeleton.scss +1 -1
- package/src/styles/components/_switch.scss +4 -4
- package/src/styles/components/_widgets.scss +11 -9
- package/src/styles/mixins/_utilities.scss +259 -0
- package/src/styles/variables/_elevation.scss +14 -12
- 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 +18 -18
- package/src/styles/variables/_typography.scss +91 -53
- package/src/styles/variables/_utilities.scss +64 -51
- package/src/theme/_theme-element.scss +36 -36
- package/src/theme.scss +3 -0
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
--#{variables.$variable-prefix}table-hover-bg: #{variables.$table-hover-bg};
|
|
19
19
|
|
|
20
20
|
inline-size: 100%;
|
|
21
|
-
margin-block-end: spacers.$
|
|
21
|
+
margin-block-end: map.get(spacers.$spacers-block, 6);
|
|
22
22
|
color: variables.$table-color;
|
|
23
23
|
vertical-align: variables.$table-cell-vertical-align;
|
|
24
24
|
border-color: variables.$table-border-color;
|
|
@@ -55,17 +55,17 @@
|
|
|
55
55
|
vertical-align: middle;
|
|
56
56
|
|
|
57
57
|
&:first-child {
|
|
58
|
-
padding-inline-start: map.get(spacers.$spacers, 6);
|
|
58
|
+
padding-inline-start: map.get(spacers.$spacers-inline, 6);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
&:last-child {
|
|
62
|
-
padding-inline-end: map.get(spacers.$spacers, 6);
|
|
62
|
+
padding-inline-end: map.get(spacers.$spacers-inline, 6);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
thead {
|
|
67
67
|
border-width: 0;
|
|
68
|
-
border-block-end: map.get(spacers.$spacers, 2) solid variables.$table-border-color;
|
|
68
|
+
border-block-end: map.get(spacers.$spacers-block, 2) solid variables.$table-border-color;
|
|
69
69
|
|
|
70
70
|
th {
|
|
71
71
|
vertical-align: baseline;
|
|
@@ -96,7 +96,9 @@
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
:is(th, td) {
|
|
99
|
-
block-size: calc(
|
|
99
|
+
block-size: calc(
|
|
100
|
+
2lh + 2 * map.get(spacers.$spacers-block, 2) + 2 * map.get(spacers.$spacers-block, 5)
|
|
101
|
+
);
|
|
100
102
|
}
|
|
101
103
|
}
|
|
102
104
|
}
|
|
@@ -118,7 +120,7 @@
|
|
|
118
120
|
|
|
119
121
|
tbody {
|
|
120
122
|
:is(th, td) {
|
|
121
|
-
block-size: calc(2lh + 2 * map.get(spacers.$spacers, 4));
|
|
123
|
+
block-size: calc(2lh + 2 * map.get(spacers.$spacers-block, 4));
|
|
122
124
|
}
|
|
123
125
|
}
|
|
124
126
|
}
|
|
@@ -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,6 +112,7 @@ h1,
|
|
|
112
112
|
);
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
+
// DEPRECATED: Use .si-h1 instead.
|
|
115
116
|
.si-h1-bold {
|
|
116
117
|
@include typography.si-font(
|
|
117
118
|
typography.$si-font-size-h1-bold,
|
|
@@ -140,6 +141,7 @@ h3,
|
|
|
140
141
|
);
|
|
141
142
|
}
|
|
142
143
|
|
|
144
|
+
// DEPRECATED: Use .si-h4 instead.
|
|
143
145
|
.si-h4-bold {
|
|
144
146
|
@include typography.si-font(
|
|
145
147
|
typography.$si-font-size-h4-bold,
|
|
@@ -194,6 +196,14 @@ h6,
|
|
|
194
196
|
);
|
|
195
197
|
}
|
|
196
198
|
|
|
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
|
+
|
|
197
207
|
.si-body {
|
|
198
208
|
@include typography.si-font(
|
|
199
209
|
typography.$si-font-size-body,
|
|
@@ -202,6 +212,14 @@ h6,
|
|
|
202
212
|
);
|
|
203
213
|
}
|
|
204
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
|
+
|
|
205
223
|
.si-body-paragraph {
|
|
206
224
|
@include typography.si-font(
|
|
207
225
|
typography.$si-font-size-body-paragraph,
|
|
@@ -210,6 +228,14 @@ h6,
|
|
|
210
228
|
);
|
|
211
229
|
}
|
|
212
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
|
+
|
|
213
239
|
.si-body-sm {
|
|
214
240
|
@include typography.si-font(
|
|
215
241
|
typography.$si-font-size-body-sm,
|
|
@@ -218,6 +244,15 @@ h6,
|
|
|
218
244
|
);
|
|
219
245
|
}
|
|
220
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.
|
|
221
256
|
.si-caption {
|
|
222
257
|
@include typography.si-font(
|
|
223
258
|
typography.$si-font-size-caption,
|
|
@@ -235,6 +270,14 @@ h6,
|
|
|
235
270
|
);
|
|
236
271
|
}
|
|
237
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
|
+
|
|
238
281
|
.si-display-xxl {
|
|
239
282
|
@include typography.si-font(
|
|
240
283
|
typography.$si-font-size-display-xxl,
|
|
@@ -243,6 +286,14 @@ h6,
|
|
|
243
286
|
);
|
|
244
287
|
}
|
|
245
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
|
+
|
|
246
297
|
.si-display-lg,
|
|
247
298
|
.display-2 {
|
|
248
299
|
@include typography.si-font(
|
|
@@ -252,6 +303,15 @@ h6,
|
|
|
252
303
|
);
|
|
253
304
|
}
|
|
254
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.
|
|
255
315
|
.si-display-bold,
|
|
256
316
|
.display-3 {
|
|
257
317
|
@include typography.si-font(
|
|
@@ -261,6 +321,14 @@ h6,
|
|
|
261
321
|
);
|
|
262
322
|
}
|
|
263
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
|
+
|
|
264
332
|
.si-display,
|
|
265
333
|
.display-4 {
|
|
266
334
|
@include typography.si-font(
|
|
@@ -35,17 +35,11 @@
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
// Deprecated legacy utilities. Use system-token text utilities instead.
|
|
38
39
|
$text-colors: (
|
|
39
|
-
'primary': system-tokens.$si-sys-text-accent,
|
|
40
40
|
'body': system-tokens.$si-sys-text-primary,
|
|
41
|
-
'secondary': system-tokens.$si-sys-text-secondary,
|
|
42
41
|
'tertiary': system-tokens.$si-sys-text-disabled,
|
|
43
|
-
'success': system-tokens.$si-sys-text-success,
|
|
44
42
|
'info': system-tokens.$si-sys-text-information,
|
|
45
|
-
'warning': system-tokens.$si-sys-text-warning,
|
|
46
|
-
'caution': system-tokens.$si-sys-text-caution,
|
|
47
|
-
'danger': system-tokens.$si-sys-text-danger,
|
|
48
|
-
'inverse': system-tokens.$si-sys-text-inverse,
|
|
49
43
|
'muted': system-tokens.$si-sys-text-disabled
|
|
50
44
|
) !default;
|
|
51
45
|
|
|
@@ -55,6 +49,7 @@ $text-colors: (
|
|
|
55
49
|
}
|
|
56
50
|
}
|
|
57
51
|
|
|
52
|
+
// Deprecated legacy utilities. Use system-token background utilities instead.
|
|
58
53
|
$background-colors: (
|
|
59
54
|
'primary': system-tokens.$si-sys-background-accent,
|
|
60
55
|
'secondary': system-tokens.$si-sys-text-secondary,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
@use '../variables/animations';
|
|
2
|
-
@use '../variables/elevation';
|
|
3
2
|
@use '../variables/system-tokens';
|
|
4
3
|
@use '../variables/semantic-tokens';
|
|
5
4
|
@use '../variables/spacers';
|
|
@@ -104,13 +103,15 @@ $container-max-widths: (
|
|
|
104
103
|
// Set the number of columns and specify the width of the gutters.
|
|
105
104
|
|
|
106
105
|
$grid-columns: 12 !default;
|
|
107
|
-
$grid-gutter-width: spacers.$
|
|
106
|
+
$grid-gutter-width: map.get(spacers.$spacers-inline, 6) !default;
|
|
108
107
|
$grid-row-columns: 6 !default;
|
|
109
|
-
$gutters: spacers.$spacers !default;
|
|
108
|
+
$gutters-inline: spacers.$spacers-inline !default;
|
|
109
|
+
$gutters-block: spacers.$spacers-block !default;
|
|
110
|
+
$gutters: $gutters-block !default;
|
|
110
111
|
|
|
111
112
|
// Container padding
|
|
112
113
|
|
|
113
|
-
$container-padding-x: $grid-gutter-width * 0.5 !default;
|
|
114
|
+
$container-padding-x: calc(#{$grid-gutter-width} * 0.5) !default;
|
|
114
115
|
|
|
115
116
|
// Components
|
|
116
117
|
//
|
|
@@ -132,9 +133,13 @@ $border-radius-sm: semantic-tokens.$element-radius-1 !default;
|
|
|
132
133
|
$border-radius-lg: semantic-tokens.$element-radius-2 !default;
|
|
133
134
|
$border-radius-pill: 50rem !default;
|
|
134
135
|
|
|
135
|
-
$
|
|
136
|
-
$box-shadow
|
|
137
|
-
$
|
|
136
|
+
// DEPRECATED: Use $si-sys-effects-shadow-2 instead.
|
|
137
|
+
$box-shadow: system-tokens.$si-sys-effects-shadow-2 !default;
|
|
138
|
+
// DEPRECATED: Use $si-sys-effects-shadow-1 instead.
|
|
139
|
+
$box-shadow-sm: system-tokens.$si-sys-effects-shadow-1 !default;
|
|
140
|
+
// DEPRECATED: Use $si-sys-effects-shadow-3 instead.
|
|
141
|
+
$box-shadow-lg: system-tokens.$si-sys-effects-shadow-3 !default;
|
|
142
|
+
// DEPRECATED: There is no replacement.
|
|
138
143
|
$box-shadow-inset: inset 0 1px 1px var(--element-box-shadow-color-2);
|
|
139
144
|
|
|
140
145
|
$component-active-color: semantic-tokens.$element-ui-5 !default;
|
|
@@ -163,13 +168,13 @@ $font-family-code: $font-family-monospace !default;
|
|
|
163
168
|
// $font-size-base effects the font size of the body text
|
|
164
169
|
$font-size-base: typography.$si-font-size-body !default;
|
|
165
170
|
$font-size-lg: typography.$si-font-size-body-lg !default;
|
|
166
|
-
$font-size-sm: typography.$si-font-size-
|
|
171
|
+
$font-size-sm: typography.$si-font-size-body-sm !default;
|
|
167
172
|
|
|
168
173
|
$font-weight-lighter: typography.$si-font-weight-lighter;
|
|
169
174
|
$font-weight-light: typography.$si-font-weight-light;
|
|
170
175
|
$font-weight-normal: typography.$si-font-weight-normal;
|
|
171
176
|
$font-weight-medium: typography.$si-font-weight-medium;
|
|
172
|
-
$font-weight-semibold: typography.$si-font-weight-
|
|
177
|
+
$font-weight-semibold: typography.$si-font-weight-sbold;
|
|
173
178
|
$font-weight-bold: typography.$si-font-weight-bold;
|
|
174
179
|
$font-weight-bolder: typography.$si-font-weight-bolder;
|
|
175
180
|
|
|
@@ -195,10 +200,10 @@ $font-sizes: (
|
|
|
195
200
|
6: $h6-font-size
|
|
196
201
|
) !default;
|
|
197
202
|
|
|
198
|
-
$headings-margin-bottom: spacers.$
|
|
203
|
+
$headings-margin-bottom: map.get(spacers.$spacers-block, 4) !default;
|
|
199
204
|
$headings-font-family: null !default;
|
|
200
205
|
$headings-font-style: null !default;
|
|
201
|
-
$headings-font-weight: typography.$si-font-weight-
|
|
206
|
+
$headings-font-weight: typography.$si-font-weight-sbold !default;
|
|
202
207
|
$headings-line-height: 1.2 !default;
|
|
203
208
|
$headings-color: system-tokens.$si-sys-text-primary !default;
|
|
204
209
|
|
|
@@ -206,20 +211,20 @@ $lead-font-size: typography.$si-font-size-body-lg !default;
|
|
|
206
211
|
$lead-line-height: typography.$si-line-height-body-lg !default;
|
|
207
212
|
$lead-font-weight: typography.$si-font-weight-body-lg !default;
|
|
208
213
|
|
|
209
|
-
$small-font-size: typography.$si-font-size-
|
|
214
|
+
$small-font-size: typography.$si-font-size-body-sm !default;
|
|
210
215
|
|
|
211
216
|
$sub-sup-font-size: 0.75em !default;
|
|
212
217
|
|
|
213
218
|
$initialism-font-size: $small-font-size !default;
|
|
214
219
|
|
|
215
|
-
$text-
|
|
220
|
+
$text-disabled: system-tokens.$si-sys-text-disabled !default;
|
|
216
221
|
|
|
217
|
-
$blockquote-margin-y: spacers.$
|
|
222
|
+
$blockquote-margin-y: map.get(spacers.$spacers-block, 6) !default;
|
|
218
223
|
$blockquote-font-size: typography.$si-font-size-body-lg !default;
|
|
219
224
|
$blockquote-footer-color: system-tokens.$si-sys-text-secondary !default;
|
|
220
225
|
$blockquote-footer-font-size: $small-font-size !default;
|
|
221
226
|
|
|
222
|
-
$hr-margin-y: spacers.$
|
|
227
|
+
$hr-margin-y: map.get(spacers.$spacers-block, 6) !default;
|
|
223
228
|
$hr-color: system-tokens.$si-sys-border-4 !default;
|
|
224
229
|
$hr-height: $border-width !default;
|
|
225
230
|
$hr-opacity: 1 !default;
|
|
@@ -243,10 +248,10 @@ $mark-color: system-tokens.$si-sys-text-on-caution;
|
|
|
243
248
|
//
|
|
244
249
|
// Customizes the `.table` component with basic values, each used across all table variations.
|
|
245
250
|
|
|
246
|
-
$table-cell-padding-y: map.get(spacers.$spacers, 4) !default;
|
|
247
|
-
$table-cell-padding-x: map.get(spacers.$spacers, 4) !default;
|
|
248
|
-
$table-cell-padding-y-sm: map.get(spacers.$spacers, 2) !default;
|
|
249
|
-
$table-cell-padding-x-sm: map.get(spacers.$spacers, 4) !default;
|
|
251
|
+
$table-cell-padding-y: map.get(spacers.$spacers-block, 4) !default;
|
|
252
|
+
$table-cell-padding-x: map.get(spacers.$spacers-inline, 4) !default;
|
|
253
|
+
$table-cell-padding-y-sm: map.get(spacers.$spacers-block, 2) !default;
|
|
254
|
+
$table-cell-padding-x-sm: map.get(spacers.$spacers-inline, 4) !default;
|
|
250
255
|
|
|
251
256
|
$table-cell-vertical-align: top !default;
|
|
252
257
|
|
|
@@ -260,7 +265,7 @@ $table-striped-color: $table-color !default;
|
|
|
260
265
|
$table-striped-bg: system-tokens.$si-sys-background-0 !default;
|
|
261
266
|
|
|
262
267
|
$table-active-color: $table-color !default;
|
|
263
|
-
$table-active-bg: system-tokens.$si-sys-background-
|
|
268
|
+
$table-active-bg: system-tokens.$si-sys-background-active !default;
|
|
264
269
|
|
|
265
270
|
$table-hover-color: $table-color !default;
|
|
266
271
|
$table-hover-bg: system-tokens.$si-sys-background-hover !default;
|
|
@@ -285,14 +290,14 @@ $table-variants: (
|
|
|
285
290
|
//
|
|
286
291
|
// For each of Bootstrap's buttons, define text, background, and border color.
|
|
287
292
|
|
|
288
|
-
$btn-padding-y: map.get(spacers.$spacers, 4);
|
|
289
|
-
$btn-padding-x: map.get(spacers.$spacers, 4);
|
|
293
|
+
$btn-padding-y: map.get(spacers.$spacers-block, 4);
|
|
294
|
+
$btn-padding-x: map.get(spacers.$spacers-inline, 4);
|
|
290
295
|
$btn-font-size: $font-size-base;
|
|
291
296
|
$btn-line-height: $line-height-base;
|
|
292
297
|
$btn-white-space: null !default; // Set to `nowrap` to prevent text wrapping
|
|
293
298
|
|
|
294
|
-
$btn-padding-y-sm: map.get(spacers.$spacers, 2);
|
|
295
|
-
$btn-padding-y-lg: map.get(spacers.$spacers, 5);
|
|
299
|
+
$btn-padding-y-sm: map.get(spacers.$spacers-block, 2);
|
|
300
|
+
$btn-padding-y-lg: map.get(spacers.$spacers-block, 5);
|
|
296
301
|
|
|
297
302
|
$btn-link-color: $link-color !default;
|
|
298
303
|
$btn-link-hover-color: $link-hover-color !default;
|
|
@@ -312,7 +317,7 @@ $btn-transition:
|
|
|
312
317
|
// Forms
|
|
313
318
|
// According to figma it should be 2px + line-height: 16px
|
|
314
319
|
// As overriding line-height is not planned by bootstrap, we use 4px + line-height of 14px
|
|
315
|
-
$form-text-margin-top: map.get(spacers.$spacers, 2);
|
|
320
|
+
$form-text-margin-top: map.get(spacers.$spacers-block, 2);
|
|
316
321
|
$form-text-font-size: $small-font-size !default;
|
|
317
322
|
$form-text-font-style: null !default;
|
|
318
323
|
$form-text-font-weight: null !default;
|
|
@@ -324,14 +329,16 @@ $form-label-font-style: null !default;
|
|
|
324
329
|
$form-label-font-weight: null !default;
|
|
325
330
|
$form-label-color: system-tokens.$si-sys-text-secondary !default;
|
|
326
331
|
|
|
327
|
-
$input-padding-y:
|
|
328
|
-
$input-padding-
|
|
332
|
+
$input-padding-y-full: map.get(spacers.$spacers-block, 4);
|
|
333
|
+
$input-padding-y: calc(map.get(spacers.$spacers-block, 4) - 1px); // 8px including 1px border
|
|
334
|
+
$input-padding-x-full: map.get(spacers.$spacers-inline, 4);
|
|
335
|
+
$input-padding-x: calc(map.get(spacers.$spacers-inline, 4) - 1px); // 8px including 1px border
|
|
329
336
|
$input-font-family: null !default;
|
|
330
337
|
$input-font-size: $font-size-base;
|
|
331
338
|
$input-font-weight: $font-weight-base;
|
|
332
339
|
// Use an explicit rem value instead of a unitless ratio to prevent cross-browser
|
|
333
340
|
// rounding differences (Safari rounds 14 × 1.1428... to 15px, Chrome to 16px). See #2031
|
|
334
|
-
$input-line-height: typography.$si-line-height-body
|
|
341
|
+
$input-line-height: calc(typography.$si-font-size-body * typography.$si-line-height-body);
|
|
335
342
|
|
|
336
343
|
$input-bg: system-tokens.$si-sys-background-1 !default;
|
|
337
344
|
$input-disabled-bg: system-tokens.$si-sys-background-1 !default;
|
|
@@ -342,6 +349,7 @@ $input-color: system-tokens.$si-sys-text-primary !default;
|
|
|
342
349
|
$input-border-color: system-tokens.$si-sys-border-2 !default;
|
|
343
350
|
$input-focus-border-color: system-tokens.$si-sys-border-1 !default;
|
|
344
351
|
$input-border-width: $border-width !default;
|
|
352
|
+
// DEPRECATED: There is no replacement.
|
|
345
353
|
$input-box-shadow: $box-shadow-inset !default;
|
|
346
354
|
|
|
347
355
|
$input-border-radius: semantic-tokens.$element-input-radius !default;
|
|
@@ -355,10 +363,10 @@ $input-plaintext-color: $body-color !default;
|
|
|
355
363
|
|
|
356
364
|
$input-height-border: $input-border-width * 2 !default;
|
|
357
365
|
|
|
358
|
-
$input-height:
|
|
366
|
+
$input-height: calc(1lh + ($input-padding-y-full * 2));
|
|
359
367
|
|
|
360
368
|
// don't derive from $input-height as it generates a nested calc() expression
|
|
361
|
-
$input-height-inner:
|
|
369
|
+
$input-height-inner: calc($input-line-height + ($input-padding-y-full - 1px) * 2) !default;
|
|
362
370
|
// Wrap in parenthesis: `*` binds tighter than `-`, so without them only the border term gets multiplied.
|
|
363
371
|
// DEPRECATED: Calculate it yourself using $input-height-inner
|
|
364
372
|
$input-height-inner-half: calc((#{$input-height-inner}) * 0.5) !default;
|
|
@@ -418,7 +426,7 @@ $form-validation-states: (
|
|
|
418
426
|
// Navs
|
|
419
427
|
|
|
420
428
|
$nav-link-padding-y: 10px;
|
|
421
|
-
$nav-link-padding-x: map.get(spacers.$spacers, 8);
|
|
429
|
+
$nav-link-padding-x: map.get(spacers.$spacers-inline, 8);
|
|
422
430
|
$nav-link-font-size: typography.$si-font-size-h4;
|
|
423
431
|
$nav-link-font-weight: typography.$si-font-weight-h4;
|
|
424
432
|
$nav-link-line-height: typography.$si-line-height-h4;
|
|
@@ -438,8 +446,8 @@ $nav-tabs-link-active-bg: transparent !default;
|
|
|
438
446
|
$badge-font-size: typography.$si-font-size-body;
|
|
439
447
|
$badge-font-weight: typography.$si-font-weight-body;
|
|
440
448
|
$badge-color: system-tokens.$si-sys-text-inverse !default;
|
|
441
|
-
$badge-padding-y: map.get(spacers.$spacers, 1);
|
|
442
|
-
$badge-padding-x: map.get(spacers.$spacers, 4);
|
|
449
|
+
$badge-padding-y: map.get(spacers.$spacers-block, 1);
|
|
450
|
+
$badge-padding-x: map.get(spacers.$spacers-inline, 4);
|
|
443
451
|
$badge-border-radius: 0.75rem;
|
|
444
452
|
$badge-dot-size: 0.625rem;
|
|
445
453
|
$badge-line-height: 1.25rem;
|
|
@@ -450,7 +458,7 @@ $badge-height: calc($badge-line-height + 2 * $badge-padding-y);
|
|
|
450
458
|
// Dropdown menu container and contents.
|
|
451
459
|
$dropdown-min-width: 10rem !default;
|
|
452
460
|
$dropdown-padding-x: 0 !default;
|
|
453
|
-
$dropdown-padding-y: map.get(spacers.$spacers, 4) !default;
|
|
461
|
+
$dropdown-padding-y: map.get(spacers.$spacers-block, 4) !default;
|
|
454
462
|
$dropdown-spacer: 0.125rem !default;
|
|
455
463
|
$dropdown-font-size: $font-size-base !default;
|
|
456
464
|
// this is to have room for icon and badges
|
|
@@ -460,28 +468,28 @@ $dropdown-bg: system-tokens.$si-sys-background-1 !default;
|
|
|
460
468
|
$dropdown-border-radius: semantic-tokens.$element-radius-2 !default;
|
|
461
469
|
$dropdown-divider-bg: system-tokens.$si-sys-border-4 !default;
|
|
462
470
|
$dropdown-divider-margin-y: 4px !default;
|
|
463
|
-
$dropdown-box-shadow:
|
|
471
|
+
$dropdown-box-shadow: system-tokens.$si-sys-effects-shadow-2 !default;
|
|
464
472
|
$dropdown-link-color: system-tokens.$si-sys-text-primary !default;
|
|
465
473
|
$dropdown-link-disabled-color: system-tokens.$si-sys-text-disabled !default;
|
|
466
|
-
$dropdown-item-padding-y: map.get(spacers.$spacers, 2);
|
|
467
|
-
$dropdown-item-padding-x: map.get(spacers.$spacers, 5);
|
|
474
|
+
$dropdown-item-padding-y: map.get(spacers.$spacers-block, 2);
|
|
475
|
+
$dropdown-item-padding-x: map.get(spacers.$spacers-inline, 5);
|
|
468
476
|
$dropdown-header-color: system-tokens.$si-sys-text-primary !default;
|
|
469
477
|
|
|
470
478
|
// Cards
|
|
471
479
|
|
|
472
|
-
$card-spacer-y: map.get(spacers.$spacers, 6) !default;
|
|
473
|
-
$card-spacer-x: map.get(spacers.$spacers, 6) !default;
|
|
474
|
-
$card-title-spacer-y: map.get(spacers.$spacers, 5) !default;
|
|
480
|
+
$card-spacer-y: map.get(spacers.$spacers-block, 6) !default;
|
|
481
|
+
$card-spacer-x: map.get(spacers.$spacers-inline, 6) !default;
|
|
482
|
+
$card-title-spacer-y: map.get(spacers.$spacers-block, 5) !default;
|
|
475
483
|
$card-border-radius: $border-radius !default;
|
|
476
484
|
$card-inner-border-radius: $card-border-radius;
|
|
477
|
-
$card-cap-padding-y: map.get(spacers.$spacers, 5) !default;
|
|
485
|
+
$card-cap-padding-y: map.get(spacers.$spacers-block, 5) !default;
|
|
478
486
|
$card-cap-padding-x: $card-spacer-x !default;
|
|
479
487
|
$card-cap-bg: system-tokens.$si-sys-background-1 !default;
|
|
480
488
|
$card-cap-color: null !default;
|
|
481
489
|
$card-height: null !default;
|
|
482
490
|
$card-color: null !default;
|
|
483
491
|
$card-bg: system-tokens.$si-sys-background-1 !default;
|
|
484
|
-
$card-img-overlay-padding: spacers.$
|
|
492
|
+
$card-img-overlay-padding: map.get(spacers.$spacers-block, 6) map.get(spacers.$spacers-inline, 6) !default;
|
|
485
493
|
$card-group-margin: $grid-gutter-width !default;
|
|
486
494
|
|
|
487
495
|
// Tooltips
|
|
@@ -492,8 +500,8 @@ $tooltip-color: system-tokens.$si-sys-text-inverse !default;
|
|
|
492
500
|
$tooltip-bg: system-tokens.$si-sys-background-inverse !default;
|
|
493
501
|
$tooltip-border-radius: semantic-tokens.$element-radius-2 !default;
|
|
494
502
|
$tooltip-opacity: 0.9 !default;
|
|
495
|
-
$tooltip-padding-y: map.get(spacers.$spacers, 4) !default;
|
|
496
|
-
$tooltip-padding-x: map.get(spacers.$spacers, 6) !default;
|
|
503
|
+
$tooltip-padding-y: map.get(spacers.$spacers-block, 4) !default;
|
|
504
|
+
$tooltip-padding-x: map.get(spacers.$spacers-inline, 6) !default;
|
|
497
505
|
$tooltip-margin: 0 !default;
|
|
498
506
|
|
|
499
507
|
$tooltip-arrow-width: 12px !default;
|
|
@@ -512,12 +520,13 @@ $popover-inner-border-radius: functions.subtract(
|
|
|
512
520
|
$popover-border-radius,
|
|
513
521
|
$popover-border-width
|
|
514
522
|
) !default;
|
|
523
|
+
// DEPRECATED: Use $si-sys-effects-shadow-3 instead.
|
|
515
524
|
$popover-box-shadow: $box-shadow !default;
|
|
516
525
|
|
|
517
526
|
$popover-header-bg: system-tokens.$si-sys-background-3 !default;
|
|
518
527
|
$popover-header-color: system-tokens.$si-sys-text-accent;
|
|
519
|
-
$popover-header-padding-y: map.get(spacers.$spacers, 5) !default;
|
|
520
|
-
$popover-header-padding-x: map.get(spacers.$spacers, 5) !default;
|
|
528
|
+
$popover-header-padding-y: map.get(spacers.$spacers-block, 5) !default;
|
|
529
|
+
$popover-header-padding-x: map.get(spacers.$spacers-inline, 5) !default;
|
|
521
530
|
|
|
522
531
|
$popover-body-color: system-tokens.$si-sys-text-primary !default;
|
|
523
532
|
$popover-body-padding-y: $popover-header-padding-y !default;
|
|
@@ -532,13 +541,13 @@ $popover-arrow-outer-color: $popover-border-color !default;
|
|
|
532
541
|
// Modals
|
|
533
542
|
|
|
534
543
|
// Padding applied to the modal body
|
|
535
|
-
$modal-inner-padding: map.get(spacers.$spacers, 8);
|
|
544
|
+
$modal-inner-padding: map.get(spacers.$spacers-block, 8);
|
|
536
545
|
|
|
537
546
|
// Margin between elements in footer, must be lower than or equal to 2 * $modal-inner-padding
|
|
538
|
-
$modal-footer-margin-between: map.get(spacers.$spacers, 6);
|
|
547
|
+
$modal-footer-margin-between: map.get(spacers.$spacers-block, 6);
|
|
539
548
|
|
|
540
|
-
$modal-dialog-margin: map.get(spacers.$spacers, 4);
|
|
541
|
-
$modal-dialog-margin-y-sm-up: map.get(spacers.$spacers, 9);
|
|
549
|
+
$modal-dialog-margin: map.get(spacers.$spacers-block, 4);
|
|
550
|
+
$modal-dialog-margin-y-sm-up: map.get(spacers.$spacers-block, 9);
|
|
542
551
|
|
|
543
552
|
$modal-title-line-height: typography.$si-line-height-h4 !default;
|
|
544
553
|
|
|
@@ -550,7 +559,9 @@ $modal-content-inner-border-radius: functions.subtract(
|
|
|
550
559
|
$modal-content-border-radius,
|
|
551
560
|
$modal-content-border-width
|
|
552
561
|
) !default;
|
|
562
|
+
// DEPRECATED: Use $si-sys-effects-shadow-3 instead.
|
|
553
563
|
$modal-content-box-shadow-xs: $box-shadow-sm !default;
|
|
564
|
+
// DEPRECATED: Use $si-sys-effects-shadow-2 instead.
|
|
554
565
|
$modal-content-box-shadow-sm-up: $box-shadow !default;
|
|
555
566
|
|
|
556
567
|
$modal-backdrop-bg: system-tokens.$si-sys-effects-backdrop !default;
|
|
@@ -559,8 +570,8 @@ $modal-header-border-color: $border-color !default;
|
|
|
559
570
|
$modal-footer-border-color: $modal-header-border-color !default;
|
|
560
571
|
$modal-header-border-width: 0 !default;
|
|
561
572
|
$modal-footer-border-width: 0 !default;
|
|
562
|
-
$modal-header-padding-y: map.get(spacers.$spacers, 5);
|
|
563
|
-
$modal-header-padding-x: map.get(spacers.$spacers, 8);
|
|
573
|
+
$modal-header-padding-y: map.get(spacers.$spacers-block, 5);
|
|
574
|
+
$modal-header-padding-x: map.get(spacers.$spacers-inline, 8);
|
|
564
575
|
|
|
565
576
|
$modal-sm: 300px !default;
|
|
566
577
|
$modal-md: 500px !default;
|
|
@@ -577,17 +588,19 @@ $modal-scale-transform: scale(1.02) !default;
|
|
|
577
588
|
// Define alert colors, border radius, and padding.
|
|
578
589
|
|
|
579
590
|
$alert-padding-y: 10px !default;
|
|
580
|
-
$alert-padding-x: map.get(spacers.$spacers, 5) !default;
|
|
591
|
+
$alert-padding-x: map.get(spacers.$spacers-inline, 5) !default;
|
|
581
592
|
$alert-margin-bottom: 0 !default;
|
|
582
593
|
$alert-border-radius: 0 !default;
|
|
583
594
|
$alert-link-font-weight: $font-weight-bold !default;
|
|
584
595
|
$alert-border-width: 0 !default;
|
|
585
|
-
$alert-dismissible-padding-r:
|
|
596
|
+
$alert-dismissible-padding-r: calc(
|
|
597
|
+
$alert-padding-x * 3
|
|
598
|
+
) !default; // 3x covers width of x plus default padding on either side
|
|
586
599
|
|
|
587
600
|
// Progress bars
|
|
588
601
|
|
|
589
602
|
$progress-height: 0.5rem !default;
|
|
590
|
-
$progress-font-size: $font-size-base * 0.75 !default;
|
|
603
|
+
$progress-font-size: calc(#{$font-size-base} * 0.75) !default;
|
|
591
604
|
$progress-bg: system-tokens.$si-sys-border-4 !default;
|
|
592
605
|
$progress-border-radius: $progress-height * 0.5 !default;
|
|
593
606
|
$progress-box-shadow: none !default;
|
|
@@ -604,12 +617,12 @@ $list-group-border-color: $border-color !default;
|
|
|
604
617
|
$list-group-border-width: $border-width !default;
|
|
605
618
|
$list-group-border-radius: $border-radius !default;
|
|
606
619
|
|
|
607
|
-
$list-group-item-padding-y: map.get(spacers.$spacers, 4) !default;
|
|
608
|
-
$list-group-item-padding-x: map.get(spacers.$spacers, 6) !default; // 1.25rem !default;
|
|
620
|
+
$list-group-item-padding-y: map.get(spacers.$spacers-block, 4) !default;
|
|
621
|
+
$list-group-item-padding-x: map.get(spacers.$spacers-inline, 6) !default; // 1.25rem !default;
|
|
609
622
|
|
|
610
623
|
$list-group-hover-bg: system-tokens.$si-sys-background-hover !default;
|
|
611
624
|
$list-group-active-color: $body-color !default;
|
|
612
|
-
$list-group-active-bg: system-tokens.$si-sys-background-
|
|
625
|
+
$list-group-active-bg: system-tokens.$si-sys-background-active !default;
|
|
613
626
|
$list-group-active-border-color: $border-color !default;
|
|
614
627
|
|
|
615
628
|
$list-group-disabled-color: system-tokens.$si-sys-text-disabled !default;
|
|
@@ -628,6 +641,7 @@ $thumbnail-bg: $body-bg !default;
|
|
|
628
641
|
$thumbnail-border-width: $border-width !default;
|
|
629
642
|
$thumbnail-border-color: $border-color !default;
|
|
630
643
|
$thumbnail-border-radius: $border-radius !default;
|
|
644
|
+
// DEPRECATED: Use $si-sys-effects-shadow-1 instead.
|
|
631
645
|
$thumbnail-box-shadow: $box-shadow-sm !default;
|
|
632
646
|
|
|
633
647
|
// Figures
|
|
@@ -640,7 +654,7 @@ $figure-caption-color: system-tokens.$si-sys-text-secondary !default;
|
|
|
640
654
|
$breadcrumb-font-size: null !default;
|
|
641
655
|
$breadcrumb-padding-y: 0;
|
|
642
656
|
$breadcrumb-padding-x: 0;
|
|
643
|
-
$breadcrumb-item-padding-x: map.get(spacers.$spacers, 5);
|
|
657
|
+
$breadcrumb-item-padding-x: map.get(spacers.$spacers-inline, 5);
|
|
644
658
|
$breadcrumb-margin-bottom: 0;
|
|
645
659
|
$breadcrumb-bg: inherit !default;
|
|
646
660
|
$breadcrumb-divider-color: system-tokens.$si-sys-text-secondary !default;
|
|
@@ -654,9 +668,9 @@ $breadcrumb-border-radius: 0 !default;
|
|
|
654
668
|
$code-font-size: typography.$si-font-size-body !default;
|
|
655
669
|
$code-line-height: typography.$si-line-height-body !default;
|
|
656
670
|
$code-color: system-tokens.$si-sys-text-primary !default;
|
|
657
|
-
$code-background: system-tokens.$si-sys-background-
|
|
658
|
-
$code-padding-y: map.get(spacers.$spacers, 1) !default;
|
|
659
|
-
$code-padding-x: map.get(spacers.$spacers, 2) !default;
|
|
671
|
+
$code-background: system-tokens.$si-sys-background-active !default;
|
|
672
|
+
$code-padding-y: map.get(spacers.$spacers-block, 1) !default;
|
|
673
|
+
$code-padding-x: map.get(spacers.$spacers-inline, 2) !default;
|
|
660
674
|
$code-border-radius: semantic-tokens.$element-radius-1 !default;
|
|
661
675
|
|
|
662
676
|
$kbd-padding-y: 0.2rem !default;
|
|
@@ -667,8 +681,8 @@ $kbd-bg: system-tokens.$si-sys-background-3 !default;
|
|
|
667
681
|
$kbd-font-size: $code-font-size !default;
|
|
668
682
|
|
|
669
683
|
$pre-color: system-tokens.$si-sys-text-primary !default;
|
|
670
|
-
$pre-padding-y: map.get(spacers.$spacers, 4) !default;
|
|
671
|
-
$pre-padding-x: map.get(spacers.$spacers, 4) !default;
|
|
684
|
+
$pre-padding-y: map.get(spacers.$spacers-block, 4) !default;
|
|
685
|
+
$pre-padding-x: map.get(spacers.$spacers-inline, 4) !default;
|
|
672
686
|
$pre-border-color: system-tokens.$si-sys-border-4 !default;
|
|
673
687
|
$pre-border-width: $border-width !default;
|
|
674
688
|
$pre-border-radius: semantic-tokens.$element-radius-1 !default;
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
// there's too many differences between what BS5 does and what the design system expects
|
|
10
10
|
@use 'sass:map';
|
|
11
11
|
|
|
12
|
-
$form-check-size: 1rem;
|
|
13
|
-
$form-radio-size: 1rem;
|
|
14
|
-
$form-radio-inner-size: 0.375rem;
|
|
12
|
+
$form-check-size: max(1rem, 16px); // FIXME: ref value
|
|
13
|
+
$form-radio-size: max(1rem, 16px); // FIXME: ref value
|
|
14
|
+
$form-radio-inner-size: max(0.375rem, 6px); // FIXME: ref value
|
|
15
15
|
$form-radio-offset: calc((#{$form-radio-size} - #{$form-radio-inner-size}) * 0.5 - 1px);
|
|
16
|
-
$form-check-padding-x: map.get(spacers.$spacers, 2);
|
|
16
|
+
$form-check-padding-x: map.get(spacers.$spacers-inline, 2);
|
|
17
17
|
|
|
18
|
-
$form-check-label-start: calc($form-check-size + map.get(spacers.$spacers, 4));
|
|
18
|
+
$form-check-label-start: calc($form-check-size + map.get(spacers.$spacers-inline, 4));
|
|
19
19
|
|
|
20
20
|
%form-check-spacing {
|
|
21
21
|
.form-check-input {
|
|
@@ -24,9 +24,8 @@ $form-check-label-start: calc($form-check-size + map.get(spacers.$spacers, 4));
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.form-check {
|
|
27
|
-
padding-block: map.get(spacers.$spacers, 1);
|
|
28
|
-
padding-inline-start: calc($form-check-size + map.get(spacers.$spacers, 4));
|
|
29
|
-
margin-block-end: map.get(spacers.$spacers, 2);
|
|
27
|
+
padding-block: map.get(spacers.$spacers-block, 1);
|
|
28
|
+
padding-inline-start: calc($form-check-size + map.get(spacers.$spacers-inline, 4));
|
|
30
29
|
|
|
31
30
|
@extend %form-check-spacing;
|
|
32
31
|
|
|
@@ -37,7 +36,6 @@ $form-check-label-start: calc($form-check-size + map.get(spacers.$spacers, 4));
|
|
|
37
36
|
|
|
38
37
|
.form-check-inline {
|
|
39
38
|
display: inline-block;
|
|
40
|
-
margin-block-end: 0;
|
|
41
39
|
margin-inline-end: variables.$form-check-inline-margin-end;
|
|
42
40
|
@extend %form-check-spacing;
|
|
43
41
|
}
|
|
@@ -55,7 +53,7 @@ $form-check-label-start: calc($form-check-size + map.get(spacers.$spacers, 4));
|
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
&:is(:active, .active) {
|
|
58
|
-
background: system-tokens.$si-sys-background-
|
|
56
|
+
background: system-tokens.$si-sys-background-active;
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
&:is([disabled], .disabled) {
|
|
@@ -109,11 +107,11 @@ $form-check-label-start: calc($form-check-size + map.get(spacers.$spacers, 4));
|
|
|
109
107
|
&:indeterminate {
|
|
110
108
|
&::after {
|
|
111
109
|
mask-image: none;
|
|
112
|
-
inline-size: 0.
|
|
113
|
-
block-size: 0.
|
|
110
|
+
inline-size: calc($form-check-size * 0.625);
|
|
111
|
+
block-size: calc($form-check-size * 0.125);
|
|
114
112
|
opacity: 1;
|
|
115
|
-
inset-inline-start: 0.
|
|
116
|
-
inset-block-start: 0.
|
|
113
|
+
inset-inline-start: calc($form-check-size * 0.125);
|
|
114
|
+
inset-block-start: calc($form-check-size * 0.375);
|
|
117
115
|
}
|
|
118
116
|
}
|
|
119
117
|
}
|