@siemens/element-theme 47.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/package.json +28 -0
  2. package/src/styles/_accessibility.scss +9 -0
  3. package/src/styles/_all-variables.scss +7 -0
  4. package/src/styles/_bootstrap.scss +26 -0
  5. package/src/styles/_themes.scss +35 -0
  6. package/src/styles/_variables.scss +10 -0
  7. package/src/styles/bootstrap/_alert.scss +60 -0
  8. package/src/styles/bootstrap/_badges.scss +115 -0
  9. package/src/styles/bootstrap/_breadcrumb.scss +32 -0
  10. package/src/styles/bootstrap/_button-group.scss +101 -0
  11. package/src/styles/bootstrap/_buttons.scss +244 -0
  12. package/src/styles/bootstrap/_card.scss +208 -0
  13. package/src/styles/bootstrap/_containers.scss +44 -0
  14. package/src/styles/bootstrap/_dropdowns.scss +216 -0
  15. package/src/styles/bootstrap/_forms.scss +10 -0
  16. package/src/styles/bootstrap/_functions.scss +188 -0
  17. package/src/styles/bootstrap/_grid.scss +33 -0
  18. package/src/styles/bootstrap/_helpers.scss +6 -0
  19. package/src/styles/bootstrap/_images.scss +45 -0
  20. package/src/styles/bootstrap/_list-group.scss +197 -0
  21. package/src/styles/bootstrap/_mixins.scss +30 -0
  22. package/src/styles/bootstrap/_modals.scss +234 -0
  23. package/src/styles/bootstrap/_nav.scss +155 -0
  24. package/src/styles/bootstrap/_pagination.scss +58 -0
  25. package/src/styles/bootstrap/_popovers.scss +188 -0
  26. package/src/styles/bootstrap/_progress.scss +42 -0
  27. package/src/styles/bootstrap/_reboot.scss +618 -0
  28. package/src/styles/bootstrap/_root.scss +22 -0
  29. package/src/styles/bootstrap/_tables.scss +186 -0
  30. package/src/styles/bootstrap/_tooltip.scss +145 -0
  31. package/src/styles/bootstrap/_transitions.scss +28 -0
  32. package/src/styles/bootstrap/_type.scss +235 -0
  33. package/src/styles/bootstrap/_utilities.scss +105 -0
  34. package/src/styles/bootstrap/_variables.scss +654 -0
  35. package/src/styles/bootstrap/forms/_form-check.scss +249 -0
  36. package/src/styles/bootstrap/forms/_form-control.scss +151 -0
  37. package/src/styles/bootstrap/forms/_form-file.scss +29 -0
  38. package/src/styles/bootstrap/forms/_form-label.scss +39 -0
  39. package/src/styles/bootstrap/forms/_form-range.scss +68 -0
  40. package/src/styles/bootstrap/forms/_input-group.scss +103 -0
  41. package/src/styles/bootstrap/forms/_validation.scss +95 -0
  42. package/src/styles/bootstrap/helpers/_clearfix.scss +5 -0
  43. package/src/styles/bootstrap/helpers/_position.scss +34 -0
  44. package/src/styles/bootstrap/helpers/_stacks.scss +13 -0
  45. package/src/styles/bootstrap/helpers/_stretched-link.scss +14 -0
  46. package/src/styles/bootstrap/helpers/_text-truncation.scss +9 -0
  47. package/src/styles/bootstrap/helpers/_visually-hidden.scss +10 -0
  48. package/src/styles/bootstrap/mixins/_backdrop.scss +19 -0
  49. package/src/styles/bootstrap/mixins/_breakpoints.scss +136 -0
  50. package/src/styles/bootstrap/mixins/_clearfix.scss +7 -0
  51. package/src/styles/bootstrap/mixins/_container.scss +7 -0
  52. package/src/styles/bootstrap/mixins/_deprecate.scss +12 -0
  53. package/src/styles/bootstrap/mixins/_gradients.scss +14 -0
  54. package/src/styles/bootstrap/mixins/_grid.scss +171 -0
  55. package/src/styles/bootstrap/mixins/_image.scss +15 -0
  56. package/src/styles/bootstrap/mixins/_lists.scss +5 -0
  57. package/src/styles/bootstrap/mixins/_reset-text.scss +18 -0
  58. package/src/styles/bootstrap/mixins/_table-row.scss +31 -0
  59. package/src/styles/bootstrap/mixins/_text-truncate.scss +7 -0
  60. package/src/styles/bootstrap/mixins/_transition.scss +28 -0
  61. package/src/styles/bootstrap/mixins/_utilities.scss +86 -0
  62. package/src/styles/bootstrap/mixins/_visually-hidden.scss +29 -0
  63. package/src/styles/components/_application-header.scss +244 -0
  64. package/src/styles/components/_container-grid.scss +99 -0
  65. package/src/styles/components/_datatable.scss +328 -0
  66. package/src/styles/components/_drag_drop.scss +105 -0
  67. package/src/styles/components/_electron-titlebar.scss +5 -0
  68. package/src/styles/components/_elevation.scss +21 -0
  69. package/src/styles/components/_focus.scss +21 -0
  70. package/src/styles/components/_icons.scss +25 -0
  71. package/src/styles/components/_layout.scss +105 -0
  72. package/src/styles/components/_links.scss +34 -0
  73. package/src/styles/components/_pills.scss +45 -0
  74. package/src/styles/components/_scrollbar.scss +10 -0
  75. package/src/styles/components/_skeleton.scss +42 -0
  76. package/src/styles/components/_switch.scss +77 -0
  77. package/src/styles/components/_system-banner.scss +5 -0
  78. package/src/styles/components/_widgets.scss +58 -0
  79. package/src/styles/variables/_animations.scss +7 -0
  80. package/src/styles/variables/_elevation.scss +25 -0
  81. package/src/styles/variables/_focus.scss +55 -0
  82. package/src/styles/variables/_layout.scss +6 -0
  83. package/src/styles/variables/_semantic-tokens.scss +178 -0
  84. package/src/styles/variables/_si-vars.scss +19 -0
  85. package/src/styles/variables/_spacers.scss +28 -0
  86. package/src/styles/variables/_typography.scss +66 -0
  87. package/src/styles/variables/_utilities.scss +599 -0
  88. package/src/styles/variables/_zindex.scss +20 -0
  89. package/src/theme/_base-colors.scss +79 -0
  90. package/src/theme/_data-colors.scss +105 -0
  91. package/src/theme/_theme-element.scss +339 -0
  92. package/src/theme.scss +49 -0
@@ -0,0 +1,618 @@
1
+ @use '../variables/typography';
2
+ @use './variables';
3
+
4
+ // stylelint-disable declaration-no-important, selector-no-qualifying-type, property-no-vendor-prefix
5
+
6
+ // Reboot
7
+ //
8
+ // Normalization of HTML elements, manually forked from Normalize.css to remove
9
+ // styles targeting irrelevant browsers while applying new styles.
10
+ //
11
+ // Normalize is licensed MIT. https://github.com/necolas/normalize.css
12
+
13
+ // Document
14
+ //
15
+ // Change from `box-sizing: content-box` so that `width` is not affected by `padding` or `border`.
16
+
17
+ *,
18
+ *::before,
19
+ *::after {
20
+ box-sizing: border-box;
21
+ }
22
+
23
+ // Root
24
+ //
25
+ // Ability to the value of the root font sizes, affecting the value of `rem`.
26
+ // null by default, thus nothing is generated.
27
+
28
+ :root {
29
+ @if variables.$font-size-root != null {
30
+ font-size: var(--#{variables.$variable-prefix}root-font-size);
31
+ }
32
+
33
+ @if variables.$enable-smooth-scroll {
34
+ @media (prefers-reduced-motion: no-preference) {
35
+ scroll-behavior: smooth;
36
+ }
37
+ }
38
+ }
39
+
40
+ // Body
41
+ //
42
+ // 1. Remove the margin in all browsers.
43
+ // 2. As a best practice, apply a default `background-color`.
44
+ // 3. Prevent adjustments of font size after orientation changes in iOS.
45
+ // 4. Change the default tap highlight to be completely transparent in iOS.
46
+
47
+ // scss-docs-start reboot-body-rules
48
+ body {
49
+ margin: 0; // 1
50
+ font-family: var(--#{variables.$variable-prefix}body-font-family);
51
+ font-size: var(--#{variables.$variable-prefix}body-font-size);
52
+ font-weight: var(--#{variables.$variable-prefix}body-font-weight);
53
+ line-height: var(--#{variables.$variable-prefix}body-line-height);
54
+ color: var(--#{variables.$variable-prefix}body-color);
55
+ text-align: var(--#{variables.$variable-prefix}body-text-align);
56
+ background-color: var(--#{variables.$variable-prefix}body-bg); // 2
57
+ -webkit-text-size-adjust: 100%; // 3
58
+ // stylelint-disable-next-line color-no-hex
59
+ -webkit-tap-highlight-color: rgba(#000, 0); // 4
60
+ }
61
+ // scss-docs-end reboot-body-rules
62
+
63
+ // Content grouping
64
+ //
65
+ // 1. Reset Firefox's gray color
66
+ // 2. Set correct height and prevent the `size` attribute to make the `hr` look like an input field
67
+
68
+ hr {
69
+ margin-block: variables.$hr-margin-y;
70
+ margin-inline: 0;
71
+ color: variables.$hr-color; // 1
72
+ background-color: currentColor;
73
+ border: 0;
74
+ opacity: variables.$hr-opacity;
75
+ }
76
+
77
+ hr:not([size]) {
78
+ block-size: variables.$hr-height; // 2
79
+ }
80
+
81
+ // Typography
82
+ //
83
+ // 1. Remove top margins from headings
84
+ // By default, `<h1>`-`<h6>` all receive top and bottom margins. We nuke the top
85
+ // margin for easier control within type scales as it avoids margin collapsing.
86
+
87
+ %heading {
88
+ margin-block: 0 variables.$headings-margin-bottom; // 1
89
+ font-family: variables.$headings-font-family;
90
+ font-style: variables.$headings-font-style;
91
+ font-weight: variables.$headings-font-weight;
92
+ line-height: variables.$headings-line-height;
93
+ color: variables.$headings-color;
94
+ }
95
+
96
+ h1 {
97
+ @extend %heading;
98
+ font-size: variables.$h1-font-size;
99
+ }
100
+
101
+ h2 {
102
+ @extend %heading;
103
+ font-size: variables.$h2-font-size;
104
+ }
105
+
106
+ h3 {
107
+ @extend %heading;
108
+ font-size: variables.$h3-font-size;
109
+ }
110
+
111
+ h4 {
112
+ @extend %heading;
113
+ font-size: variables.$h4-font-size;
114
+ }
115
+
116
+ h5 {
117
+ @extend %heading;
118
+ font-size: variables.$h5-font-size;
119
+ }
120
+
121
+ h6 {
122
+ @extend %heading;
123
+ font-size: variables.$h6-font-size;
124
+ }
125
+
126
+ // Reset margins on paragraphs
127
+ //
128
+ // Similarly, the top margin on `<p>`s get reset. However, we also reset the
129
+ // bottom margin to use `rem` units instead of `em`.
130
+
131
+ p {
132
+ margin-block: 0 variables.$paragraph-margin-bottom;
133
+ }
134
+
135
+ // Abbreviations
136
+ //
137
+ // 1. Duplicate behavior to the data-bs-* attribute for our tooltip plugin
138
+ // 2. Add the correct text decoration in Chrome, Edge, Opera, and Safari.
139
+ // 3. Add explicit cursor to indicate changed behavior.
140
+ // 4. Prevent the text-decoration to be skipped.
141
+
142
+ abbr[title],
143
+ abbr[data-bs-original-title] {
144
+ // 1
145
+ text-decoration: underline dotted; // 2
146
+ cursor: help; // 3
147
+ text-decoration-skip-ink: none; // 4
148
+ }
149
+
150
+ // Address
151
+
152
+ address {
153
+ margin-block-end: 1rem;
154
+ font-style: normal;
155
+ line-height: inherit;
156
+ }
157
+
158
+ // Lists
159
+
160
+ ol,
161
+ ul {
162
+ padding-inline-start: 2rem;
163
+ }
164
+
165
+ ol,
166
+ ul,
167
+ dl {
168
+ margin-block: 0 1rem;
169
+ }
170
+
171
+ :is(ol, ul) :is(ol, ul) {
172
+ margin-block-end: 0;
173
+ }
174
+
175
+ dt {
176
+ font-weight: variables.$dt-font-weight;
177
+ }
178
+
179
+ // 1. Undo browser default
180
+
181
+ dd {
182
+ margin-block-end: 0.5rem;
183
+ margin-inline-start: 0; // 1
184
+ }
185
+
186
+ // Blockquote
187
+
188
+ blockquote {
189
+ margin-block: 0 1rem;
190
+ margin-inline: 0;
191
+ }
192
+
193
+ // Strong
194
+ //
195
+ // Add the correct font weight in Chrome, Edge, and Safari
196
+
197
+ b,
198
+ strong {
199
+ font-weight: variables.$font-weight-bolder;
200
+ }
201
+
202
+ // Small
203
+ //
204
+ // Add the correct font size in all browsers
205
+
206
+ small {
207
+ font-size: variables.$small-font-size;
208
+ }
209
+
210
+ // Mark
211
+
212
+ mark {
213
+ padding: variables.$mark-padding;
214
+ background-color: variables.$mark-bg;
215
+ color: variables.$mark-color;
216
+ }
217
+
218
+ // Sub and Sup
219
+ //
220
+ // Prevent `sub` and `sup` elements from affecting the line height in
221
+ // all browsers.
222
+
223
+ sub,
224
+ sup {
225
+ position: relative;
226
+ font-size: variables.$sub-sup-font-size;
227
+ line-height: 0;
228
+ vertical-align: baseline;
229
+ }
230
+
231
+ sub {
232
+ inset-block-end: -0.25em;
233
+ }
234
+
235
+ sup {
236
+ inset-block-start: -0.5em;
237
+ }
238
+
239
+ // Links
240
+
241
+ a {
242
+ color: variables.$link-color;
243
+ text-decoration: variables.$link-decoration;
244
+ border-radius: variables.$link-border-radius;
245
+
246
+ &:hover {
247
+ color: variables.$link-hover-color;
248
+ text-decoration: variables.$link-hover-decoration;
249
+ }
250
+ }
251
+
252
+ // And undo these styles for placeholder links/named anchors (without href).
253
+ // It would be more straightforward to just use a[href] in previous block, but that
254
+ // causes specificity issues in many other styles that are too complex to fix.
255
+ // See https://github.com/twbs/bootstrap/issues/19402
256
+
257
+ a:not([href]):not([class]) {
258
+ &,
259
+ &:hover {
260
+ color: inherit;
261
+ text-decoration: none;
262
+ }
263
+ }
264
+
265
+ // Code
266
+
267
+ pre,
268
+ code,
269
+ kbd,
270
+ samp {
271
+ font-family: variables.$font-family-code;
272
+ font-size: 1em; // Correct the odd `em` font sizing in all browsers.
273
+ direction: ltr;
274
+ unicode-bidi: bidi-override;
275
+ }
276
+
277
+ // 1. Remove browser default top margin
278
+ // 2. Reset browser default of `1em` to use `rem`s
279
+ // 3. Don't allow content to break outside
280
+
281
+ pre {
282
+ display: block;
283
+ margin-block: 0 1rem; // 1 // 2
284
+ overflow: auto; // 3
285
+ font-size: variables.$code-font-size;
286
+ color: variables.$pre-color;
287
+
288
+ // Account for some code outputs that place code tags in pre tags
289
+ code {
290
+ font-size: inherit;
291
+ color: inherit;
292
+ word-break: normal;
293
+ }
294
+ }
295
+
296
+ code {
297
+ font-size: variables.$code-font-size;
298
+ color: variables.$code-color;
299
+ word-wrap: break-word;
300
+
301
+ // Streamline the style when inside anchors to avoid broken underline and more
302
+ a > & {
303
+ color: inherit;
304
+ }
305
+ }
306
+
307
+ kbd {
308
+ padding-block: variables.$kbd-padding-y;
309
+ padding-inline: variables.$kbd-padding-x;
310
+ font-size: variables.$kbd-font-size;
311
+ color: variables.$kbd-color;
312
+ background-color: variables.$kbd-bg;
313
+ border-radius: variables.$border-radius-sm;
314
+
315
+ kbd {
316
+ padding: 0;
317
+ font-size: 1em;
318
+ font-weight: variables.$nested-kbd-font-weight;
319
+ }
320
+ }
321
+
322
+ // Figures
323
+ //
324
+ // Apply a consistent margin strategy (matches our type styles).
325
+
326
+ figure {
327
+ margin-block: 0 1rem;
328
+ margin-inline: 0;
329
+ }
330
+
331
+ // Images and content
332
+
333
+ img,
334
+ svg {
335
+ vertical-align: middle;
336
+ }
337
+
338
+ // Tables
339
+ //
340
+ // Prevent double borders
341
+
342
+ table {
343
+ caption-side: bottom;
344
+ border-collapse: collapse;
345
+ }
346
+
347
+ caption {
348
+ padding-block: variables.$table-cell-padding-y;
349
+ color: variables.$table-caption-color;
350
+ text-align: start;
351
+ }
352
+
353
+ // 1. Removes font-weight bold by inheriting
354
+ // 2. Matches default `<td>` alignment by inheriting `text-align`.
355
+ // 3. Fix alignment for Safari
356
+
357
+ th {
358
+ font-weight: variables.$table-th-font-weight; // 1
359
+ text-align: inherit; // 2
360
+ text-align: -webkit-match-parent; // 3
361
+ }
362
+
363
+ thead,
364
+ tbody,
365
+ tfoot,
366
+ tr,
367
+ td,
368
+ th {
369
+ border-color: inherit;
370
+ border-style: solid;
371
+ border-width: 0;
372
+ }
373
+
374
+ // Forms
375
+ //
376
+ // 1. Allow labels to use `margin` for spacing.
377
+
378
+ label {
379
+ display: inline-block; // 1
380
+ }
381
+
382
+ // Remove the default `border-radius` that macOS Chrome adds.
383
+ // See https://github.com/twbs/bootstrap/issues/24093
384
+
385
+ button {
386
+ // stylelint-disable-next-line property-disallowed-list
387
+ border-radius: 0;
388
+ }
389
+
390
+ // Explicitly remove focus outline in Chromium when it shouldn't be
391
+ // visible (e.g. as result of mouse click or touch tap). It already
392
+ // should be doing this automatically, but seems to currently be
393
+ // confused and applies its very visible two-tone outline anyway.
394
+
395
+ button:focus:not(:focus-visible) {
396
+ outline: 0;
397
+ }
398
+
399
+ // 1. Remove the margin in Firefox and Safari
400
+
401
+ input,
402
+ button,
403
+ select,
404
+ optgroup,
405
+ textarea {
406
+ margin: 0; // 1
407
+ font-family: inherit;
408
+ font-size: inherit;
409
+ line-height: inherit;
410
+ }
411
+
412
+ // Remove the inheritance of text transform in Firefox
413
+ button,
414
+ select {
415
+ text-transform: none;
416
+ }
417
+ // Set the cursor for non-`<button>` buttons
418
+ //
419
+ // Details at https://github.com/twbs/bootstrap/pull/30562
420
+ [role='button'] {
421
+ cursor: pointer;
422
+ }
423
+
424
+ select {
425
+ // Remove the inheritance of word-wrap in Safari.
426
+ // See https://github.com/twbs/bootstrap/issues/24990
427
+ word-wrap: normal;
428
+
429
+ // Undo the opacity change from Chrome
430
+ &:disabled {
431
+ opacity: 1;
432
+ }
433
+ }
434
+
435
+ // Remove the dropdown arrow in Chrome from inputs built with datalists.
436
+ // See https://stackoverflow.com/a/54997118
437
+
438
+ [list]::-webkit-calendar-picker-indicator {
439
+ display: none;
440
+ }
441
+
442
+ // 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
443
+ // controls in Android 4.
444
+ // 2. Correct the inability to style clickable types in iOS and Safari.
445
+ // 3. Opinionated: add "hand" cursor to non-disabled button elements.
446
+
447
+ :is(button,
448
+ [type="button"], // 1
449
+ [type="reset"],
450
+ [type="submit"]) {
451
+ -webkit-appearance: button; // 2
452
+
453
+ @if variables.$enable-button-pointers {
454
+ &:not(:disabled) {
455
+ cursor: pointer; // 3
456
+ }
457
+ }
458
+ }
459
+
460
+ // Remove inner border and padding from Firefox, but don't restore the outline like Normalize.
461
+
462
+ ::-moz-focus-inner {
463
+ padding: 0;
464
+ border-style: none;
465
+ }
466
+
467
+ // 1. Textareas should really only resize vertically so they don't break their (horizontal) containers.
468
+
469
+ textarea {
470
+ resize: vertical; // 1
471
+ }
472
+
473
+ // 1. Browsers set a default `min-width: min-content;` on fieldsets,
474
+ // unlike e.g. `<div>`s, which have `min-width: 0;` by default.
475
+ // So we reset that to ensure fieldsets behave more like a standard block element.
476
+ // See https://github.com/twbs/bootstrap/issues/12359
477
+ // and https://html.spec.whatwg.org/multipage/#the-fieldset-and-legend-elements
478
+ // 2. Reset the default outline behavior of fieldsets so they don't affect page layout.
479
+
480
+ fieldset {
481
+ min-inline-size: 0; // 1
482
+ padding: 0; // 2
483
+ margin: 0; // 2
484
+ border: 0; // 2
485
+ }
486
+
487
+ // 1. By using `float: left`, the legend will behave like a block element.
488
+ // This way the border of a fieldset wraps around the legend if present.
489
+ // 2. Fix wrapping bug.
490
+ // See https://github.com/twbs/bootstrap/issues/29712
491
+
492
+ legend {
493
+ float: inline-start; // 1
494
+ inline-size: 100%;
495
+ padding: 0;
496
+ margin-block-end: variables.$legend-margin-bottom;
497
+ font-size: variables.$legend-font-size;
498
+ font-weight: variables.$legend-font-weight;
499
+ line-height: inherit;
500
+
501
+ + * {
502
+ clear: inline-start; // 2
503
+ }
504
+ }
505
+
506
+ // Fix height of inputs with a type of datetime-local, date, month, week, or time
507
+ // See https://github.com/twbs/bootstrap/issues/18842
508
+
509
+ ::-webkit-datetime-edit-fields-wrapper,
510
+ ::-webkit-datetime-edit-text,
511
+ ::-webkit-datetime-edit-minute,
512
+ ::-webkit-datetime-edit-hour-field,
513
+ ::-webkit-datetime-edit-day-field,
514
+ ::-webkit-datetime-edit-month-field,
515
+ ::-webkit-datetime-edit-year-field {
516
+ padding: 0;
517
+ }
518
+
519
+ ::-webkit-inner-spin-button {
520
+ block-size: auto;
521
+ }
522
+
523
+ // 1. Correct the outline style in Safari.
524
+ // 2. This overrides the extra rounded corners on search inputs in iOS so that our
525
+ // `.form-control` class can properly style them. Note that this cannot simply
526
+ // be added to `.form-control` as it's not specific enough. For details, see
527
+ // https://github.com/twbs/bootstrap/issues/11586.
528
+
529
+ [type='search'] {
530
+ outline-offset: -2px; // 1
531
+ -webkit-appearance: textfield; // 2
532
+ }
533
+
534
+ // 1. A few input types should stay LTR
535
+ // See https://rtlstyling.com/posts/rtl-styling#form-inputs
536
+ // 2. RTL only output
537
+ // See https://rtlcss.com/learn/usage-guide/control-directives/#raw
538
+
539
+ /* rtl:raw:
540
+ [type="tel"],
541
+ [type="url"],
542
+ [type="email"],
543
+ [type="number"] {
544
+ direction: ltr;
545
+ }
546
+ */
547
+
548
+ // Remove the inner padding in Chrome and Safari on macOS.
549
+
550
+ ::-webkit-search-decoration {
551
+ -webkit-appearance: none;
552
+ }
553
+
554
+ // Remove padding around color pickers in webkit browsers
555
+
556
+ ::-webkit-color-swatch-wrapper {
557
+ padding: 0;
558
+ }
559
+
560
+ // Inherit font family and line height for file input buttons
561
+
562
+ ::file-selector-button {
563
+ font: inherit;
564
+ }
565
+
566
+ // 1. Change font properties to `inherit`
567
+ // 2. Correct the inability to style clickable types in iOS and Safari.
568
+
569
+ ::-webkit-file-upload-button {
570
+ font: inherit; // 1
571
+ -webkit-appearance: button; // 2
572
+ }
573
+
574
+ // Correct element displays
575
+
576
+ output {
577
+ display: inline-block;
578
+ }
579
+
580
+ // Remove border from iframe
581
+
582
+ iframe {
583
+ border: 0;
584
+ }
585
+
586
+ // Summary
587
+ //
588
+ // 1. Add the correct display in all browsers
589
+
590
+ summary {
591
+ display: list-item; // 1
592
+ cursor: pointer;
593
+ }
594
+
595
+ // Progress
596
+ //
597
+ // Add the correct vertical alignment in Chrome, Firefox, and Opera.
598
+
599
+ progress {
600
+ vertical-align: baseline;
601
+ }
602
+
603
+ // Hidden attribute
604
+ //
605
+ // Always hide an element with the `hidden` HTML attribute.
606
+
607
+ [hidden] {
608
+ display: none !important;
609
+ }
610
+
611
+ small {
612
+ font-weight: typography.$si-font-weight-normal;
613
+ }
614
+
615
+ ul,
616
+ ol {
617
+ padding-inline-start: 40px;
618
+ }
@@ -0,0 +1,22 @@
1
+ @use './variables';
2
+
3
+ @use 'sass:meta';
4
+
5
+ // this is _root.scss without the automatic `to-rgb` brain damage
6
+ :root {
7
+ // Note: Use `inspect` for lists so that quoted items keep the quotes.
8
+ // See https://github.com/sass/sass/issues/2383#issuecomment-336349172
9
+ --#{variables.$variable-prefix}font-sans-serif: #{meta.inspect(variables.$font-family-sans-serif)};
10
+ --#{variables.$variable-prefix}font-monospace: #{meta.inspect(variables.$font-family-monospace)};
11
+
12
+ // Root and body
13
+ @if variables.$font-size-root != null {
14
+ --#{variables.$variable-prefix}root-font-size: #{variables.$font-size-root};
15
+ }
16
+ --#{variables.$variable-prefix}body-font-family: #{meta.inspect(variables.$font-family-base)};
17
+ --#{variables.$variable-prefix}body-font-size: #{variables.$font-size-base};
18
+ --#{variables.$variable-prefix}body-font-weight: #{variables.$font-weight-base};
19
+ --#{variables.$variable-prefix}body-line-height: #{variables.$line-height-base};
20
+ --#{variables.$variable-prefix}body-color: #{variables.$body-color};
21
+ --#{variables.$variable-prefix}body-bg: #{variables.$body-bg};
22
+ }