@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.
- package/README.md +13 -0
- package/package.json +3 -2
- package/src/styles/_accessibility.scss +8 -2
- package/src/styles/_density.scss +144 -0
- package/src/styles/_reboot-shadow-dom.scss +5 -0
- package/src/styles/_root-font-size.scss +4 -2
- package/src/styles/_selectors.scss +3 -0
- package/src/styles/_themes.scss +15 -3
- package/src/styles/_utilities.scss +5 -0
- package/src/styles/_variables.scss +2 -0
- package/src/styles/bootstrap/_alert.scss +19 -19
- package/src/styles/bootstrap/_badges.scss +41 -41
- package/src/styles/bootstrap/_button-group.scss +12 -11
- package/src/styles/bootstrap/_buttons.scss +85 -85
- package/src/styles/bootstrap/_card.scss +23 -17
- package/src/styles/bootstrap/_dropdowns.scss +18 -18
- package/src/styles/bootstrap/_forms.scss +1 -0
- package/src/styles/bootstrap/_images.scss +4 -2
- package/src/styles/bootstrap/_list-group.scss +52 -14
- package/src/styles/bootstrap/_mixins.scss +1 -0
- package/src/styles/bootstrap/_modals.scss +11 -10
- package/src/styles/bootstrap/_nav.scss +17 -8
- package/src/styles/bootstrap/_pagination.scss +6 -5
- package/src/styles/bootstrap/_popovers.scss +3 -2
- package/src/styles/bootstrap/_reboot.scss +9 -3
- package/src/styles/bootstrap/_root.scss +2 -1
- package/src/styles/bootstrap/_tables.scss +8 -6
- package/src/styles/bootstrap/_type.scss +144 -36
- package/src/styles/bootstrap/_utilities.scss +41 -45
- package/src/styles/bootstrap/_variables.scss +154 -140
- package/src/styles/bootstrap/forms/_form-check.scss +43 -73
- package/src/styles/bootstrap/forms/_form-control.scss +35 -29
- package/src/styles/bootstrap/forms/_form-file.scss +9 -9
- package/src/styles/bootstrap/forms/_form-label.scss +1 -1
- package/src/styles/bootstrap/forms/_form-layout.scss +46 -0
- package/src/styles/bootstrap/forms/_form-range.scss +13 -14
- package/src/styles/bootstrap/forms/_validation.scss +3 -6
- package/src/styles/bootstrap/mixins/_badge-text.scss +3 -3
- package/src/styles/bootstrap/mixins/_form-layout.scss +62 -0
- 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 +30 -30
- package/src/styles/components/_datatable.scss +57 -48
- package/src/styles/components/_drag_drop.scss +7 -6
- package/src/styles/components/_elevation.scss +11 -6
- package/src/styles/components/_layout.scss +26 -13
- package/src/styles/components/_links.scss +2 -2
- package/src/styles/components/_list-item.scss +69 -30
- package/src/styles/components/_markdown.scss +33 -19
- package/src/styles/components/_pills.scss +6 -6
- package/src/styles/components/_scrollbar.scss +6 -5
- package/src/styles/components/_search-bar.scss +67 -0
- package/src/styles/components/_skeleton.scss +4 -3
- package/src/styles/components/_switch.scss +16 -18
- package/src/styles/components/_widgets.scss +12 -10
- package/src/styles/mixins/_utilities.scss +271 -0
- package/src/styles/variables/_elevation.scss +14 -12
- package/src/styles/variables/_focus.scss +4 -3
- 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 +190 -0
- package/src/styles/variables/_typography.scss +112 -99
- package/src/styles/variables/_utilities.scss +64 -51
- package/src/theme/_theme-element.scss +386 -2
- package/src/theme-shadow-dom.scss +17 -0
- package/src/theme.scss +14 -3
- /package/{LICENSE.md → LICENSE} +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
@use '../variables/animations';
|
|
2
|
-
@use '../variables/
|
|
2
|
+
@use '../variables/system-tokens';
|
|
3
3
|
@use '../variables/semantic-tokens';
|
|
4
4
|
@use '../variables/spacers';
|
|
5
|
+
@use '../variables/sizing';
|
|
5
6
|
@use '../variables/typography';
|
|
6
7
|
@use './functions';
|
|
7
8
|
|
|
@@ -42,18 +43,18 @@ $position-values: (
|
|
|
42
43
|
//
|
|
43
44
|
// Settings for the `<body>` element.
|
|
44
45
|
|
|
45
|
-
$body-bg:
|
|
46
|
-
$body-color:
|
|
46
|
+
$body-bg: system-tokens.$si-sys-background-0 !default;
|
|
47
|
+
$body-color: system-tokens.$si-sys-text-primary !default;
|
|
47
48
|
$body-text-align: null !default;
|
|
48
49
|
|
|
49
50
|
// Links
|
|
50
51
|
//
|
|
51
52
|
// Style anchor elements.
|
|
52
53
|
|
|
53
|
-
$link-color:
|
|
54
|
+
$link-color: system-tokens.$si-sys-text-accent;
|
|
54
55
|
$link-decoration: none !default;
|
|
55
56
|
$link-shade-percentage: 20% !default;
|
|
56
|
-
$link-hover-color:
|
|
57
|
+
$link-hover-color: system-tokens.$si-sys-text-accent-hover;
|
|
57
58
|
$link-hover-decoration: underline !default;
|
|
58
59
|
$link-border-radius: semantic-tokens.$element-button-radius;
|
|
59
60
|
|
|
@@ -103,13 +104,15 @@ $container-max-widths: (
|
|
|
103
104
|
// Set the number of columns and specify the width of the gutters.
|
|
104
105
|
|
|
105
106
|
$grid-columns: 12 !default;
|
|
106
|
-
$grid-gutter-width: spacers.$
|
|
107
|
+
$grid-gutter-width: map.get(spacers.$spacers-inline, 6) !default;
|
|
107
108
|
$grid-row-columns: 6 !default;
|
|
108
|
-
$gutters: spacers.$spacers !default;
|
|
109
|
+
$gutters-inline: spacers.$spacers-inline !default;
|
|
110
|
+
$gutters-block: spacers.$spacers-block !default;
|
|
111
|
+
$gutters: $gutters-block !default;
|
|
109
112
|
|
|
110
113
|
// Container padding
|
|
111
114
|
|
|
112
|
-
$container-padding-x: $grid-gutter-width * 0.5 !default;
|
|
115
|
+
$container-padding-x: calc(#{$grid-gutter-width} * 0.5) !default;
|
|
113
116
|
|
|
114
117
|
// Components
|
|
115
118
|
//
|
|
@@ -124,16 +127,20 @@ $border-widths: (
|
|
|
124
127
|
5: 5px
|
|
125
128
|
) !default;
|
|
126
129
|
|
|
127
|
-
$border-color:
|
|
130
|
+
$border-color: system-tokens.$si-sys-border-4 !default;
|
|
128
131
|
|
|
129
132
|
$border-radius: semantic-tokens.$element-radius-2 !default;
|
|
130
133
|
$border-radius-sm: semantic-tokens.$element-radius-1 !default;
|
|
131
134
|
$border-radius-lg: semantic-tokens.$element-radius-2 !default;
|
|
132
135
|
$border-radius-pill: 50rem !default;
|
|
133
136
|
|
|
134
|
-
$
|
|
135
|
-
$box-shadow
|
|
136
|
-
$
|
|
137
|
+
// DEPRECATED: Use $si-sys-effects-shadow-2 instead.
|
|
138
|
+
$box-shadow: system-tokens.$si-sys-effects-shadow-2 !default;
|
|
139
|
+
// DEPRECATED: Use $si-sys-effects-shadow-1 instead.
|
|
140
|
+
$box-shadow-sm: system-tokens.$si-sys-effects-shadow-1 !default;
|
|
141
|
+
// DEPRECATED: Use $si-sys-effects-shadow-3 instead.
|
|
142
|
+
$box-shadow-lg: system-tokens.$si-sys-effects-shadow-3 !default;
|
|
143
|
+
// DEPRECATED: There is no replacement.
|
|
137
144
|
$box-shadow-inset: inset 0 1px 1px var(--element-box-shadow-color-2);
|
|
138
145
|
|
|
139
146
|
$component-active-color: semantic-tokens.$element-ui-5 !default;
|
|
@@ -154,8 +161,7 @@ $aspect-ratios: (
|
|
|
154
161
|
//
|
|
155
162
|
// Font, line-height, and color for body text, headings, and more.
|
|
156
163
|
$font-family-sans-serif: var(--element-body-font-family);
|
|
157
|
-
$font-family-monospace:
|
|
158
|
-
SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace !default;
|
|
164
|
+
$font-family-monospace: typography.$si-font-family-mono !default;
|
|
159
165
|
|
|
160
166
|
$font-family-base: $font-family-sans-serif !default;
|
|
161
167
|
$font-family-code: $font-family-monospace !default;
|
|
@@ -163,13 +169,13 @@ $font-family-code: $font-family-monospace !default;
|
|
|
163
169
|
// $font-size-base effects the font size of the body text
|
|
164
170
|
$font-size-base: typography.$si-font-size-body !default;
|
|
165
171
|
$font-size-lg: typography.$si-font-size-body-lg !default;
|
|
166
|
-
$font-size-sm: typography.$si-font-size-
|
|
172
|
+
$font-size-sm: typography.$si-font-size-body-sm !default;
|
|
167
173
|
|
|
168
174
|
$font-weight-lighter: typography.$si-font-weight-lighter;
|
|
169
175
|
$font-weight-light: typography.$si-font-weight-light;
|
|
170
176
|
$font-weight-normal: typography.$si-font-weight-normal;
|
|
171
177
|
$font-weight-medium: typography.$si-font-weight-medium;
|
|
172
|
-
$font-weight-semibold: typography.$si-font-weight-
|
|
178
|
+
$font-weight-semibold: typography.$si-font-weight-sbold;
|
|
173
179
|
$font-weight-bold: typography.$si-font-weight-bold;
|
|
174
180
|
$font-weight-bolder: typography.$si-font-weight-bolder;
|
|
175
181
|
|
|
@@ -184,7 +190,7 @@ $h2-font-size: typography.$si-font-size-h2 !default;
|
|
|
184
190
|
$h3-font-size: typography.$si-font-size-h3 !default;
|
|
185
191
|
$h4-font-size: typography.$si-font-size-h4 !default;
|
|
186
192
|
$h5-font-size: typography.$si-font-size-h5 !default;
|
|
187
|
-
$h6-font-size:
|
|
193
|
+
$h6-font-size: typography.$si-font-size-h6 !default;
|
|
188
194
|
|
|
189
195
|
$font-sizes: (
|
|
190
196
|
1: $h1-font-size,
|
|
@@ -195,32 +201,32 @@ $font-sizes: (
|
|
|
195
201
|
6: $h6-font-size
|
|
196
202
|
) !default;
|
|
197
203
|
|
|
198
|
-
$headings-margin-bottom: spacers.$
|
|
204
|
+
$headings-margin-bottom: map.get(spacers.$spacers-block, 4) !default;
|
|
199
205
|
$headings-font-family: null !default;
|
|
200
206
|
$headings-font-style: null !default;
|
|
201
|
-
$headings-font-weight: typography.$si-font-weight-
|
|
207
|
+
$headings-font-weight: typography.$si-font-weight-sbold !default;
|
|
202
208
|
$headings-line-height: 1.2 !default;
|
|
203
|
-
$headings-color:
|
|
209
|
+
$headings-color: system-tokens.$si-sys-text-primary !default;
|
|
204
210
|
|
|
205
211
|
$lead-font-size: typography.$si-font-size-body-lg !default;
|
|
206
212
|
$lead-line-height: typography.$si-line-height-body-lg !default;
|
|
207
213
|
$lead-font-weight: typography.$si-font-weight-body-lg !default;
|
|
208
214
|
|
|
209
|
-
$small-font-size: typography.$si-font-size-
|
|
215
|
+
$small-font-size: typography.$si-font-size-body-sm !default;
|
|
210
216
|
|
|
211
217
|
$sub-sup-font-size: 0.75em !default;
|
|
212
218
|
|
|
213
219
|
$initialism-font-size: $small-font-size !default;
|
|
214
220
|
|
|
215
|
-
$text-
|
|
221
|
+
$text-disabled: system-tokens.$si-sys-text-disabled !default;
|
|
216
222
|
|
|
217
|
-
$blockquote-margin-y: spacers.$
|
|
223
|
+
$blockquote-margin-y: map.get(spacers.$spacers-block, 6) !default;
|
|
218
224
|
$blockquote-font-size: typography.$si-font-size-body-lg !default;
|
|
219
|
-
$blockquote-footer-color:
|
|
225
|
+
$blockquote-footer-color: system-tokens.$si-sys-text-secondary !default;
|
|
220
226
|
$blockquote-footer-font-size: $small-font-size !default;
|
|
221
227
|
|
|
222
|
-
$hr-margin-y: spacers.$
|
|
223
|
-
$hr-color:
|
|
228
|
+
$hr-margin-y: map.get(spacers.$spacers-block, 6) !default;
|
|
229
|
+
$hr-color: system-tokens.$si-sys-border-4 !default;
|
|
224
230
|
$hr-height: $border-width !default;
|
|
225
231
|
$hr-opacity: 1 !default;
|
|
226
232
|
|
|
@@ -236,34 +242,34 @@ $nested-kbd-font-weight: $font-weight-bold !default;
|
|
|
236
242
|
|
|
237
243
|
$list-inline-padding: 0.5rem !default;
|
|
238
244
|
|
|
239
|
-
$mark-bg:
|
|
240
|
-
$mark-color:
|
|
245
|
+
$mark-bg: system-tokens.$si-sys-background-caution;
|
|
246
|
+
$mark-color: system-tokens.$si-sys-text-on-caution;
|
|
241
247
|
|
|
242
248
|
// Tables
|
|
243
249
|
//
|
|
244
250
|
// Customizes the `.table` component with basic values, each used across all table variations.
|
|
245
251
|
|
|
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;
|
|
252
|
+
$table-cell-padding-y: map.get(spacers.$spacers-block, 4) !default;
|
|
253
|
+
$table-cell-padding-x: map.get(spacers.$spacers-inline, 4) !default;
|
|
254
|
+
$table-cell-padding-y-sm: map.get(spacers.$spacers-block, 2) !default;
|
|
255
|
+
$table-cell-padding-x-sm: map.get(spacers.$spacers-inline, 4) !default;
|
|
250
256
|
|
|
251
257
|
$table-cell-vertical-align: top !default;
|
|
252
258
|
|
|
253
259
|
$table-color: $body-color !default;
|
|
254
|
-
$table-bg:
|
|
260
|
+
$table-bg: system-tokens.$si-sys-background-1 !default;
|
|
255
261
|
$table-accent-bg: transparent !default;
|
|
256
262
|
|
|
257
263
|
$table-th-font-weight: null !default;
|
|
258
264
|
|
|
259
265
|
$table-striped-color: $table-color !default;
|
|
260
|
-
$table-striped-bg:
|
|
266
|
+
$table-striped-bg: system-tokens.$si-sys-background-0 !default;
|
|
261
267
|
|
|
262
268
|
$table-active-color: $table-color !default;
|
|
263
|
-
$table-active-bg:
|
|
269
|
+
$table-active-bg: system-tokens.$si-sys-background-active !default;
|
|
264
270
|
|
|
265
271
|
$table-hover-color: $table-color !default;
|
|
266
|
-
$table-hover-bg:
|
|
272
|
+
$table-hover-bg: system-tokens.$si-sys-background-hover !default;
|
|
267
273
|
|
|
268
274
|
$table-border-width: $border-width !default;
|
|
269
275
|
$table-border-color: $border-color !default;
|
|
@@ -272,31 +278,31 @@ $table-striped-order: odd !default;
|
|
|
272
278
|
|
|
273
279
|
$table-group-separator-color: currentColor !default;
|
|
274
280
|
|
|
275
|
-
$table-caption-color:
|
|
281
|
+
$table-caption-color: semantic-tokens.$element-text-secondary !default;
|
|
276
282
|
|
|
277
283
|
$table-variants: (
|
|
278
|
-
'success':
|
|
279
|
-
'info':
|
|
280
|
-
'warning':
|
|
281
|
-
'danger':
|
|
284
|
+
'success': system-tokens.$si-sys-background-success-subtle,
|
|
285
|
+
'info': system-tokens.$si-sys-background-information-subtle,
|
|
286
|
+
'warning': system-tokens.$si-sys-background-warning-subtle,
|
|
287
|
+
'danger': system-tokens.$si-sys-background-danger-subtle
|
|
282
288
|
) !default;
|
|
283
289
|
|
|
284
290
|
// Buttons
|
|
285
291
|
//
|
|
286
292
|
// For each of Bootstrap's buttons, define text, background, and border color.
|
|
287
293
|
|
|
288
|
-
$btn-padding-y: map.get(spacers.$spacers, 4);
|
|
289
|
-
$btn-padding-x: map.get(spacers.$spacers, 4);
|
|
294
|
+
$btn-padding-y: map.get(spacers.$spacers-block, 4);
|
|
295
|
+
$btn-padding-x: map.get(spacers.$spacers-inline, 4);
|
|
290
296
|
$btn-font-size: $font-size-base;
|
|
291
297
|
$btn-line-height: $line-height-base;
|
|
292
298
|
$btn-white-space: null !default; // Set to `nowrap` to prevent text wrapping
|
|
293
299
|
|
|
294
|
-
$btn-padding-y-sm: map.get(spacers.$spacers, 2);
|
|
295
|
-
$btn-padding-y-lg: map.get(spacers.$spacers, 5);
|
|
300
|
+
$btn-padding-y-sm: map.get(spacers.$spacers-block, 2);
|
|
301
|
+
$btn-padding-y-lg: map.get(spacers.$spacers-block, 5);
|
|
296
302
|
|
|
297
303
|
$btn-link-color: $link-color !default;
|
|
298
304
|
$btn-link-hover-color: $link-hover-color !default;
|
|
299
|
-
$btn-link-disabled-color:
|
|
305
|
+
$btn-link-disabled-color: system-tokens.$si-sys-text-disabled !default;
|
|
300
306
|
|
|
301
307
|
// Allows for customizing button radius independently from global border radius
|
|
302
308
|
$btn-border-radius: semantic-tokens.$element-button-radius !default;
|
|
@@ -312,34 +318,39 @@ $btn-transition:
|
|
|
312
318
|
// Forms
|
|
313
319
|
// According to figma it should be 2px + line-height: 16px
|
|
314
320
|
// 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);
|
|
321
|
+
$form-text-margin-top: map.get(spacers.$spacers-block, 2);
|
|
316
322
|
$form-text-font-size: $small-font-size !default;
|
|
317
323
|
$form-text-font-style: null !default;
|
|
318
324
|
$form-text-font-weight: null !default;
|
|
319
|
-
$form-text-color:
|
|
325
|
+
$form-text-color: system-tokens.$si-sys-text-secondary !default;
|
|
320
326
|
|
|
321
327
|
$form-label-margin-bottom: 4px !default;
|
|
322
328
|
$form-label-font-size: typography.$si-font-size-body !default;
|
|
323
329
|
$form-label-font-style: null !default;
|
|
324
330
|
$form-label-font-weight: null !default;
|
|
325
|
-
$form-label-color:
|
|
331
|
+
$form-label-color: system-tokens.$si-sys-text-secondary !default;
|
|
326
332
|
|
|
327
|
-
$input-padding-y:
|
|
328
|
-
$input-padding-
|
|
333
|
+
$input-padding-y-full: map.get(spacers.$spacers-block, 4);
|
|
334
|
+
$input-padding-y: calc(map.get(spacers.$spacers-block, 4) - 1px); // 8px including 1px border
|
|
335
|
+
$input-padding-x-full: map.get(spacers.$spacers-inline, 4);
|
|
336
|
+
$input-padding-x: calc(map.get(spacers.$spacers-inline, 4) - 1px); // 8px including 1px border
|
|
329
337
|
$input-font-family: null !default;
|
|
330
338
|
$input-font-size: $font-size-base;
|
|
331
339
|
$input-font-weight: $font-weight-base;
|
|
332
340
|
// Use an explicit rem value instead of a unitless ratio to prevent cross-browser
|
|
333
341
|
// rounding differences (Safari rounds 14 × 1.1428... to 15px, Chrome to 16px). See #2031
|
|
334
|
-
$input-line-height: typography.$si-line-height-body
|
|
342
|
+
$input-line-height: calc(typography.$si-font-size-body * typography.$si-line-height-body);
|
|
335
343
|
|
|
336
|
-
$input-bg:
|
|
337
|
-
$input-disabled-bg:
|
|
338
|
-
$input-disabled-
|
|
344
|
+
$input-bg: system-tokens.$si-sys-background-1 !default;
|
|
345
|
+
$input-disabled-bg: system-tokens.$si-sys-background-1 !default;
|
|
346
|
+
$input-disabled-color: system-tokens.$si-sys-text-disabled !default;
|
|
347
|
+
$input-disabled-border-color: system-tokens.$si-sys-border-4 !default;
|
|
339
348
|
|
|
340
|
-
$input-color:
|
|
341
|
-
$input-border-color:
|
|
349
|
+
$input-color: system-tokens.$si-sys-text-primary !default;
|
|
350
|
+
$input-border-color: system-tokens.$si-sys-border-2 !default;
|
|
351
|
+
$input-focus-border-color: system-tokens.$si-sys-border-1 !default;
|
|
342
352
|
$input-border-width: $border-width !default;
|
|
353
|
+
// DEPRECATED: There is no replacement.
|
|
343
354
|
$input-box-shadow: $box-shadow-inset !default;
|
|
344
355
|
|
|
345
356
|
$input-border-radius: semantic-tokens.$element-input-radius !default;
|
|
@@ -347,21 +358,16 @@ $input-border-radius: semantic-tokens.$element-input-radius !default;
|
|
|
347
358
|
$input-focus-bg: $input-bg !default;
|
|
348
359
|
$input-focus-color: $input-color !default;
|
|
349
360
|
|
|
350
|
-
$input-placeholder-color:
|
|
361
|
+
$input-placeholder-color: system-tokens.$si-sys-text-secondary !default;
|
|
351
362
|
$input-placeholder-disabled-color: transparent !default;
|
|
352
363
|
$input-plaintext-color: $body-color !default;
|
|
353
364
|
|
|
354
365
|
$input-height-border: $input-border-width * 2 !default;
|
|
355
366
|
|
|
356
|
-
$input-height:
|
|
367
|
+
$input-height: map.get(sizing.$sizing, 80);
|
|
357
368
|
|
|
358
369
|
// don't derive from $input-height as it generates a nested calc() expression
|
|
359
|
-
$input-height-inner:
|
|
360
|
-
// Wrap in parenthesis: `*` binds tighter than `-`, so without them only the border term gets multiplied.
|
|
361
|
-
// DEPRECATED: Calculate it yourself using $input-height-inner
|
|
362
|
-
$input-height-inner-half: calc((#{$input-height-inner}) * 0.5) !default;
|
|
363
|
-
// DEPRECATED: Calculate it yourself using $input-height-inner
|
|
364
|
-
$input-height-inner-quarter: calc((#{$input-height-inner}) * 0.25) !default;
|
|
370
|
+
$input-height-inner: calc(map.get(sizing.$sizing, 80) - (2 * 1px)) !default;
|
|
365
371
|
|
|
366
372
|
$input-transition:
|
|
367
373
|
border-color 0.15s ease-in-out,
|
|
@@ -374,15 +380,15 @@ $input-group-addon-padding-y: $input-padding-y !default;
|
|
|
374
380
|
$input-group-addon-padding-x: $input-padding-x !default;
|
|
375
381
|
$input-group-addon-font-weight: $input-font-weight !default;
|
|
376
382
|
$input-group-addon-color: $input-color !default;
|
|
377
|
-
$input-group-addon-bg:
|
|
383
|
+
$input-group-addon-bg: system-tokens.$si-sys-background-1 !default;
|
|
378
384
|
$input-group-addon-border-color: $input-border-color !default;
|
|
379
385
|
|
|
380
386
|
// Form validation
|
|
381
387
|
|
|
382
388
|
$form-feedback-font-size: $form-text-font-size !default;
|
|
383
389
|
$form-feedback-valid-color: null !default;
|
|
384
|
-
$form-feedback-warning-color:
|
|
385
|
-
$form-feedback-invalid-color:
|
|
390
|
+
$form-feedback-warning-color: system-tokens.$si-sys-text-warning !default;
|
|
391
|
+
$form-feedback-invalid-color: system-tokens.$si-sys-text-danger !default;
|
|
386
392
|
|
|
387
393
|
$form-feedback-icon-valid: semantic-tokens.$element-feedback-icon-valid;
|
|
388
394
|
$form-feedback-icon-invalid: semantic-tokens.$element-feedback-icon-invalid;
|
|
@@ -395,12 +401,12 @@ $form-validation-states: (
|
|
|
395
401
|
'icon': $form-feedback-icon-valid
|
|
396
402
|
),
|
|
397
403
|
'invalid': (
|
|
398
|
-
'color':
|
|
404
|
+
'color': system-tokens.$si-sys-border-danger,
|
|
399
405
|
'text-color': $form-feedback-invalid-color,
|
|
400
406
|
'icon': $form-feedback-icon-invalid
|
|
401
407
|
),
|
|
402
408
|
'warning': (
|
|
403
|
-
'color':
|
|
409
|
+
'color': system-tokens.$si-sys-border-warning,
|
|
404
410
|
'text-color': $form-feedback-warning-color,
|
|
405
411
|
'icon': $form-feedback-icon-warning
|
|
406
412
|
)
|
|
@@ -416,28 +422,28 @@ $form-validation-states: (
|
|
|
416
422
|
// Navs
|
|
417
423
|
|
|
418
424
|
$nav-link-padding-y: 10px;
|
|
419
|
-
$nav-link-padding-x: map.get(spacers.$spacers, 8);
|
|
425
|
+
$nav-link-padding-x: map.get(spacers.$spacers-inline, 8);
|
|
420
426
|
$nav-link-font-size: typography.$si-font-size-h4;
|
|
421
427
|
$nav-link-font-weight: typography.$si-font-weight-h4;
|
|
422
428
|
$nav-link-line-height: typography.$si-line-height-h4;
|
|
423
|
-
$nav-link-color:
|
|
429
|
+
$nav-link-color: system-tokens.$si-sys-text-primary !default;
|
|
424
430
|
$nav-link-hover-color: $link-hover-color !default;
|
|
425
431
|
$nav-link-transition: ();
|
|
426
|
-
$nav-link-disabled-color:
|
|
432
|
+
$nav-link-disabled-color: system-tokens.$si-sys-text-disabled !default;
|
|
427
433
|
|
|
428
434
|
$nav-tabs-border-color: transparent;
|
|
429
435
|
$nav-tabs-border-width: 2px;
|
|
430
436
|
$nav-tabs-border-radius: 0;
|
|
431
437
|
$nav-tabs-link-hover-border-color: transparent transparent $nav-tabs-border-color !default;
|
|
432
|
-
$nav-tabs-link-active-color:
|
|
438
|
+
$nav-tabs-link-active-color: system-tokens.$si-sys-text-accent-active !default;
|
|
433
439
|
$nav-tabs-link-active-bg: transparent !default;
|
|
434
440
|
|
|
435
441
|
// Badges
|
|
436
442
|
$badge-font-size: typography.$si-font-size-body;
|
|
437
443
|
$badge-font-weight: typography.$si-font-weight-body;
|
|
438
|
-
$badge-color:
|
|
439
|
-
$badge-padding-y: map.get(spacers.$spacers, 1);
|
|
440
|
-
$badge-padding-x: map.get(spacers.$spacers, 4);
|
|
444
|
+
$badge-color: system-tokens.$si-sys-text-inverse !default;
|
|
445
|
+
$badge-padding-y: map.get(spacers.$spacers-block, 1);
|
|
446
|
+
$badge-padding-x: map.get(spacers.$spacers-inline, 4);
|
|
441
447
|
$badge-border-radius: 0.75rem;
|
|
442
448
|
$badge-dot-size: 0.625rem;
|
|
443
449
|
$badge-line-height: 1.25rem;
|
|
@@ -448,50 +454,50 @@ $badge-height: calc($badge-line-height + 2 * $badge-padding-y);
|
|
|
448
454
|
// Dropdown menu container and contents.
|
|
449
455
|
$dropdown-min-width: 10rem !default;
|
|
450
456
|
$dropdown-padding-x: 0 !default;
|
|
451
|
-
$dropdown-padding-y: map.get(spacers.$spacers, 4) !default;
|
|
457
|
+
$dropdown-padding-y: map.get(spacers.$spacers-block, 4) !default;
|
|
452
458
|
$dropdown-spacer: 0.125rem !default;
|
|
453
459
|
$dropdown-font-size: $font-size-base !default;
|
|
454
460
|
// this is to have room for icon and badges
|
|
455
461
|
$dropdown-line-height: $badge-height;
|
|
456
462
|
$dropdown-color: $body-color !default;
|
|
457
|
-
$dropdown-bg:
|
|
463
|
+
$dropdown-bg: system-tokens.$si-sys-background-3 !default;
|
|
458
464
|
$dropdown-border-radius: semantic-tokens.$element-radius-2 !default;
|
|
459
|
-
$dropdown-divider-bg:
|
|
465
|
+
$dropdown-divider-bg: system-tokens.$si-sys-border-4 !default;
|
|
460
466
|
$dropdown-divider-margin-y: 4px !default;
|
|
461
|
-
$dropdown-box-shadow:
|
|
462
|
-
$dropdown-link-color:
|
|
463
|
-
$dropdown-link-disabled-color:
|
|
464
|
-
$dropdown-item-padding-y: map.get(spacers.$spacers, 2);
|
|
465
|
-
$dropdown-item-padding-x: map.get(spacers.$spacers, 5);
|
|
466
|
-
$dropdown-header-color:
|
|
467
|
+
$dropdown-box-shadow: system-tokens.$si-sys-effects-shadow-2 !default;
|
|
468
|
+
$dropdown-link-color: system-tokens.$si-sys-text-primary !default;
|
|
469
|
+
$dropdown-link-disabled-color: system-tokens.$si-sys-text-disabled !default;
|
|
470
|
+
$dropdown-item-padding-y: map.get(spacers.$spacers-block, 2);
|
|
471
|
+
$dropdown-item-padding-x: map.get(spacers.$spacers-inline, 5);
|
|
472
|
+
$dropdown-header-color: system-tokens.$si-sys-text-primary !default;
|
|
467
473
|
|
|
468
474
|
// Cards
|
|
469
475
|
|
|
470
|
-
$card-spacer-y: map.get(spacers.$spacers, 6) !default;
|
|
471
|
-
$card-spacer-x: map.get(spacers.$spacers, 6) !default;
|
|
472
|
-
$card-title-spacer-y: map.get(spacers.$spacers, 5) !default;
|
|
476
|
+
$card-spacer-y: map.get(spacers.$spacers-block, 6) !default;
|
|
477
|
+
$card-spacer-x: map.get(spacers.$spacers-inline, 6) !default;
|
|
478
|
+
$card-title-spacer-y: map.get(spacers.$spacers-block, 5) !default;
|
|
473
479
|
$card-border-radius: $border-radius !default;
|
|
474
480
|
$card-inner-border-radius: $card-border-radius;
|
|
475
|
-
$card-cap-padding-y: map.get(spacers.$spacers, 5) !default;
|
|
481
|
+
$card-cap-padding-y: map.get(spacers.$spacers-block, 5) !default;
|
|
476
482
|
$card-cap-padding-x: $card-spacer-x !default;
|
|
477
|
-
$card-cap-bg:
|
|
483
|
+
$card-cap-bg: system-tokens.$si-sys-background-1 !default;
|
|
478
484
|
$card-cap-color: null !default;
|
|
479
485
|
$card-height: null !default;
|
|
480
486
|
$card-color: null !default;
|
|
481
|
-
$card-bg:
|
|
482
|
-
$card-img-overlay-padding: spacers.$
|
|
487
|
+
$card-bg: system-tokens.$si-sys-background-1 !default;
|
|
488
|
+
$card-img-overlay-padding: map.get(spacers.$spacers-block, 6) map.get(spacers.$spacers-inline, 6) !default;
|
|
483
489
|
$card-group-margin: $grid-gutter-width !default;
|
|
484
490
|
|
|
485
491
|
// Tooltips
|
|
486
492
|
|
|
487
493
|
$tooltip-font-size: $font-size-base !default;
|
|
488
494
|
$tooltip-max-width: 200px !default;
|
|
489
|
-
$tooltip-color:
|
|
490
|
-
$tooltip-bg:
|
|
495
|
+
$tooltip-color: system-tokens.$si-sys-text-inverse !default;
|
|
496
|
+
$tooltip-bg: system-tokens.$si-sys-background-inverse !default;
|
|
491
497
|
$tooltip-border-radius: semantic-tokens.$element-radius-2 !default;
|
|
492
498
|
$tooltip-opacity: 0.9 !default;
|
|
493
|
-
$tooltip-padding-y: map.get(spacers.$spacers, 4) !default;
|
|
494
|
-
$tooltip-padding-x: map.get(spacers.$spacers, 6) !default;
|
|
499
|
+
$tooltip-padding-y: map.get(spacers.$spacers-block, 4) !default;
|
|
500
|
+
$tooltip-padding-x: map.get(spacers.$spacers-inline, 6) !default;
|
|
495
501
|
$tooltip-margin: 0 !default;
|
|
496
502
|
|
|
497
503
|
$tooltip-arrow-width: 12px !default;
|
|
@@ -501,23 +507,24 @@ $tooltip-arrow-color: $tooltip-bg !default;
|
|
|
501
507
|
// Popovers
|
|
502
508
|
|
|
503
509
|
$popover-font-size: $font-size-base;
|
|
504
|
-
$popover-bg:
|
|
510
|
+
$popover-bg: system-tokens.$si-sys-background-3 !default;
|
|
505
511
|
$popover-max-width: 276px !default;
|
|
506
512
|
$popover-border-width: $border-width !default;
|
|
507
|
-
$popover-border-color:
|
|
513
|
+
$popover-border-color: system-tokens.$si-sys-border-4 !default;
|
|
508
514
|
$popover-border-radius: $border-radius-lg !default;
|
|
509
515
|
$popover-inner-border-radius: functions.subtract(
|
|
510
516
|
$popover-border-radius,
|
|
511
517
|
$popover-border-width
|
|
512
518
|
) !default;
|
|
519
|
+
// DEPRECATED: Use $si-sys-effects-shadow-3 instead.
|
|
513
520
|
$popover-box-shadow: $box-shadow !default;
|
|
514
521
|
|
|
515
|
-
$popover-header-bg:
|
|
516
|
-
$popover-header-color:
|
|
517
|
-
$popover-header-padding-y: map.get(spacers.$spacers, 5) !default;
|
|
518
|
-
$popover-header-padding-x: map.get(spacers.$spacers, 5) !default;
|
|
522
|
+
$popover-header-bg: system-tokens.$si-sys-background-3 !default;
|
|
523
|
+
$popover-header-color: system-tokens.$si-sys-text-accent;
|
|
524
|
+
$popover-header-padding-y: map.get(spacers.$spacers-block, 5) !default;
|
|
525
|
+
$popover-header-padding-x: map.get(spacers.$spacers-inline, 5) !default;
|
|
519
526
|
|
|
520
|
-
$popover-body-color:
|
|
527
|
+
$popover-body-color: system-tokens.$si-sys-text-primary !default;
|
|
521
528
|
$popover-body-padding-y: $popover-header-padding-y !default;
|
|
522
529
|
$popover-body-padding-x: $popover-header-padding-x !default;
|
|
523
530
|
|
|
@@ -530,35 +537,37 @@ $popover-arrow-outer-color: $popover-border-color !default;
|
|
|
530
537
|
// Modals
|
|
531
538
|
|
|
532
539
|
// Padding applied to the modal body
|
|
533
|
-
$modal-inner-padding: map.get(spacers.$spacers, 8);
|
|
540
|
+
$modal-inner-padding: map.get(spacers.$spacers-block, 8);
|
|
534
541
|
|
|
535
542
|
// Margin between elements in footer, must be lower than or equal to 2 * $modal-inner-padding
|
|
536
|
-
$modal-footer-margin-between: map.get(spacers.$spacers, 6);
|
|
543
|
+
$modal-footer-margin-between: map.get(spacers.$spacers-block, 6);
|
|
537
544
|
|
|
538
|
-
$modal-dialog-margin: map.get(spacers.$spacers, 4);
|
|
539
|
-
$modal-dialog-margin-y-sm-up: map.get(spacers.$spacers, 9);
|
|
545
|
+
$modal-dialog-margin: map.get(spacers.$spacers-block, 4);
|
|
546
|
+
$modal-dialog-margin-y-sm-up: map.get(spacers.$spacers-block, 9);
|
|
540
547
|
|
|
541
548
|
$modal-title-line-height: typography.$si-line-height-h4 !default;
|
|
542
549
|
|
|
543
550
|
$modal-content-color: null !default;
|
|
544
|
-
$modal-content-bg:
|
|
551
|
+
$modal-content-bg: system-tokens.$si-sys-background-1 !default;
|
|
545
552
|
$modal-content-border-width: $border-width !default;
|
|
546
553
|
$modal-content-border-radius: $border-radius-lg !default;
|
|
547
554
|
$modal-content-inner-border-radius: functions.subtract(
|
|
548
555
|
$modal-content-border-radius,
|
|
549
556
|
$modal-content-border-width
|
|
550
557
|
) !default;
|
|
558
|
+
// DEPRECATED: Use $si-sys-effects-shadow-3 instead.
|
|
551
559
|
$modal-content-box-shadow-xs: $box-shadow-sm !default;
|
|
560
|
+
// DEPRECATED: Use $si-sys-effects-shadow-2 instead.
|
|
552
561
|
$modal-content-box-shadow-sm-up: $box-shadow !default;
|
|
553
562
|
|
|
554
|
-
$modal-backdrop-bg:
|
|
563
|
+
$modal-backdrop-bg: system-tokens.$si-sys-effects-backdrop !default;
|
|
555
564
|
$modal-backdrop-opacity: 1 !default;
|
|
556
565
|
$modal-header-border-color: $border-color !default;
|
|
557
566
|
$modal-footer-border-color: $modal-header-border-color !default;
|
|
558
567
|
$modal-header-border-width: 0 !default;
|
|
559
568
|
$modal-footer-border-width: 0 !default;
|
|
560
|
-
$modal-header-padding-y: map.get(spacers.$spacers, 5);
|
|
561
|
-
$modal-header-padding-x: map.get(spacers.$spacers, 8);
|
|
569
|
+
$modal-header-padding-y: map.get(spacers.$spacers-block, 5);
|
|
570
|
+
$modal-header-padding-x: map.get(spacers.$spacers-inline, 8);
|
|
562
571
|
|
|
563
572
|
$modal-sm: 300px !default;
|
|
564
573
|
$modal-md: 500px !default;
|
|
@@ -575,49 +584,53 @@ $modal-scale-transform: scale(1.02) !default;
|
|
|
575
584
|
// Define alert colors, border radius, and padding.
|
|
576
585
|
|
|
577
586
|
$alert-padding-y: 10px !default;
|
|
578
|
-
$alert-padding-x: map.get(spacers.$spacers, 5) !default;
|
|
587
|
+
$alert-padding-x: map.get(spacers.$spacers-inline, 5) !default;
|
|
579
588
|
$alert-margin-bottom: 0 !default;
|
|
580
589
|
$alert-border-radius: 0 !default;
|
|
581
590
|
$alert-link-font-weight: $font-weight-bold !default;
|
|
582
591
|
$alert-border-width: 0 !default;
|
|
583
|
-
$alert-dismissible-padding-r:
|
|
592
|
+
$alert-dismissible-padding-r: calc(
|
|
593
|
+
$alert-padding-x * 3
|
|
594
|
+
) !default; // 3x covers width of x plus default padding on either side
|
|
584
595
|
|
|
585
596
|
// Progress bars
|
|
586
597
|
|
|
587
598
|
$progress-height: 0.5rem !default;
|
|
588
|
-
$progress-font-size: $font-size-base * 0.75 !default;
|
|
589
|
-
$progress-bg:
|
|
599
|
+
$progress-font-size: calc(#{$font-size-base} * 0.75) !default;
|
|
600
|
+
$progress-bg: system-tokens.$si-sys-border-4 !default;
|
|
590
601
|
$progress-border-radius: $progress-height * 0.5 !default;
|
|
591
602
|
$progress-box-shadow: none !default;
|
|
592
|
-
$progress-bar-color:
|
|
593
|
-
$progress-bar-bg:
|
|
603
|
+
$progress-bar-color: system-tokens.$si-sys-background-accent !default;
|
|
604
|
+
$progress-bar-bg: system-tokens.$si-sys-background-accent !default;
|
|
594
605
|
$progress-bar-animation-timing: 1s linear infinite !default;
|
|
595
606
|
$progress-bar-transition: width animations.element-transition-duration(0.6s) ease;
|
|
596
607
|
|
|
597
608
|
// List group
|
|
609
|
+
// @deprecated All `$list-group-*` variables below belong to the deprecated
|
|
610
|
+
// Bootstrap list group. Use the Element list (`.list` / `.list-item`) instead.
|
|
598
611
|
|
|
599
|
-
$list-group-color:
|
|
600
|
-
$list-group-bg:
|
|
612
|
+
$list-group-color: system-tokens.$si-sys-text-primary !default;
|
|
613
|
+
$list-group-bg: system-tokens.$si-sys-background-1 !default;
|
|
601
614
|
$list-group-border-color: $border-color !default;
|
|
602
615
|
$list-group-border-width: $border-width !default;
|
|
603
616
|
$list-group-border-radius: $border-radius !default;
|
|
604
617
|
|
|
605
|
-
$list-group-item-padding-y: map.get(spacers.$spacers, 4) !default;
|
|
606
|
-
$list-group-item-padding-x: map.get(spacers.$spacers, 6) !default; // 1.25rem !default;
|
|
618
|
+
$list-group-item-padding-y: map.get(spacers.$spacers-block, 4) !default;
|
|
619
|
+
$list-group-item-padding-x: map.get(spacers.$spacers-inline, 6) !default; // 1.25rem !default;
|
|
607
620
|
|
|
608
|
-
$list-group-hover-bg:
|
|
621
|
+
$list-group-hover-bg: system-tokens.$si-sys-background-hover !default;
|
|
609
622
|
$list-group-active-color: $body-color !default;
|
|
610
|
-
$list-group-active-bg:
|
|
623
|
+
$list-group-active-bg: system-tokens.$si-sys-background-active !default;
|
|
611
624
|
$list-group-active-border-color: $border-color !default;
|
|
612
625
|
|
|
613
|
-
$list-group-disabled-color:
|
|
626
|
+
$list-group-disabled-color: system-tokens.$si-sys-text-disabled !default;
|
|
614
627
|
$list-group-disabled-bg: $list-group-bg !default;
|
|
615
628
|
|
|
616
|
-
$list-group-action-color:
|
|
629
|
+
$list-group-action-color: system-tokens.$si-sys-text-primary !default;
|
|
617
630
|
$list-group-action-hover-color: $list-group-action-color !important !default;
|
|
618
631
|
|
|
619
632
|
$list-group-action-active-color: $body-color !default;
|
|
620
|
-
$list-group-action-active-bg:
|
|
633
|
+
$list-group-action-active-bg: system-tokens.$si-sys-background-0 !default;
|
|
621
634
|
|
|
622
635
|
// Image thumbnails
|
|
623
636
|
|
|
@@ -626,22 +639,23 @@ $thumbnail-bg: $body-bg !default;
|
|
|
626
639
|
$thumbnail-border-width: $border-width !default;
|
|
627
640
|
$thumbnail-border-color: $border-color !default;
|
|
628
641
|
$thumbnail-border-radius: $border-radius !default;
|
|
642
|
+
// DEPRECATED: Use $si-sys-effects-shadow-1 instead.
|
|
629
643
|
$thumbnail-box-shadow: $box-shadow-sm !default;
|
|
630
644
|
|
|
631
645
|
// Figures
|
|
632
646
|
|
|
633
647
|
$figure-caption-font-size: $small-font-size !default;
|
|
634
|
-
$figure-caption-color:
|
|
648
|
+
$figure-caption-color: system-tokens.$si-sys-text-secondary !default;
|
|
635
649
|
|
|
636
650
|
// Breadcrumbs
|
|
637
651
|
|
|
638
652
|
$breadcrumb-font-size: null !default;
|
|
639
653
|
$breadcrumb-padding-y: 0;
|
|
640
654
|
$breadcrumb-padding-x: 0;
|
|
641
|
-
$breadcrumb-item-padding-x: map.get(spacers.$spacers, 5);
|
|
655
|
+
$breadcrumb-item-padding-x: map.get(spacers.$spacers-inline, 5);
|
|
642
656
|
$breadcrumb-margin-bottom: 0;
|
|
643
657
|
$breadcrumb-bg: inherit !default;
|
|
644
|
-
$breadcrumb-divider-color:
|
|
658
|
+
$breadcrumb-divider-color: system-tokens.$si-sys-text-secondary !default;
|
|
645
659
|
$breadcrumb-active-color: $link-color !default;
|
|
646
660
|
$breadcrumb-divider: string.quote('>') !default;
|
|
647
661
|
$breadcrumb-divider-flipped: $breadcrumb-divider !default;
|
|
@@ -651,22 +665,22 @@ $breadcrumb-border-radius: 0 !default;
|
|
|
651
665
|
|
|
652
666
|
$code-font-size: typography.$si-font-size-body !default;
|
|
653
667
|
$code-line-height: typography.$si-line-height-body !default;
|
|
654
|
-
$code-color:
|
|
655
|
-
$code-background:
|
|
656
|
-
$code-padding-y: map.get(spacers.$spacers, 1) !default;
|
|
657
|
-
$code-padding-x: map.get(spacers.$spacers, 2) !default;
|
|
668
|
+
$code-color: system-tokens.$si-sys-text-primary !default;
|
|
669
|
+
$code-background: system-tokens.$si-sys-background-active !default;
|
|
670
|
+
$code-padding-y: map.get(spacers.$spacers-block, 1) !default;
|
|
671
|
+
$code-padding-x: map.get(spacers.$spacers-inline, 2) !default;
|
|
658
672
|
$code-border-radius: semantic-tokens.$element-radius-1 !default;
|
|
659
673
|
|
|
660
674
|
$kbd-padding-y: 0.2rem !default;
|
|
661
675
|
$kbd-padding-x: 0.4rem !default;
|
|
662
|
-
$kbd-color:
|
|
663
|
-
$kbd-bg:
|
|
676
|
+
$kbd-color: system-tokens.$si-sys-text-primary !default;
|
|
677
|
+
$kbd-bg: system-tokens.$si-sys-background-3 !default;
|
|
664
678
|
// variable is unused. TODO: remove it.
|
|
665
679
|
$kbd-font-size: $code-font-size !default;
|
|
666
680
|
|
|
667
|
-
$pre-color:
|
|
668
|
-
$pre-padding-y: map.get(spacers.$spacers, 4) !default;
|
|
669
|
-
$pre-padding-x: map.get(spacers.$spacers, 4) !default;
|
|
670
|
-
$pre-border-color:
|
|
681
|
+
$pre-color: system-tokens.$si-sys-text-primary !default;
|
|
682
|
+
$pre-padding-y: map.get(spacers.$spacers-block, 4) !default;
|
|
683
|
+
$pre-padding-x: map.get(spacers.$spacers-inline, 4) !default;
|
|
684
|
+
$pre-border-color: system-tokens.$si-sys-border-4 !default;
|
|
671
685
|
$pre-border-width: $border-width !default;
|
|
672
686
|
$pre-border-radius: semantic-tokens.$element-radius-1 !default;
|