Commit 2204eb9
[Repo Assist] css: introduce --surface-background and --surface-border for theming (#1161)
* css: introduce --surface-background and --surface-border variables
Decouple component surface colours from --header-background/--header-border.
The new variables default to the header values for full backwards compatibility.
Themes that need a distinct surface colour (e.g. dark header + light content
surfaces) can now override --surface-background and --surface-border without
touching the header variables.
Affected components:
- .copy-code-button (background + border)
- --mobile-menu-background
- --aside-background (sidebar)
- --blockquote-bacground-color
- --page-menu-background-color + border
- --nav-item-border-color
- --dialog-background-color
- div.fsdocs-tip (border)
- API docs table row borders
- dialog list item borders
- #fsdocs-main-menu sidebar border
Closes #1156
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* ci: trigger checks
* css: rename --surface-* to --panel-* for clarity
The 'surface' naming was found to be non-intuitive by maintainers.
Rename to --panel-background and --panel-border which more clearly
communicates that these variables control backgrounds and borders
of panel/component UI elements (menus, dialogs, blockquotes, etc.)
as distinct from the page header colours.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* css: improve --panel-background/--panel-border comment for clarity
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* css: fix typo --blockquote-bacground-color → --blockquote-background-color
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Florian Verdonck <florian.verdonck@outlook.com>
Co-authored-by: Don Syme <dsyme@users.noreply.github.com>1 parent 2bc1cca commit 2204eb9
2 files changed
Lines changed: 20 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| |||
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
80 | | - | |
81 | | - | |
| 84 | + | |
| 85 | + | |
82 | 86 | | |
83 | 87 | | |
84 | | - | |
85 | | - | |
| 88 | + | |
| 89 | + | |
86 | 90 | | |
87 | | - | |
| 91 | + | |
88 | 92 | | |
89 | | - | |
| 93 | + | |
90 | 94 | | |
91 | 95 | | |
92 | 96 | | |
| |||
347 | 351 | | |
348 | 352 | | |
349 | 353 | | |
350 | | - | |
| 354 | + | |
351 | 355 | | |
352 | 356 | | |
353 | 357 | | |
| |||
468 | 472 | | |
469 | 473 | | |
470 | 474 | | |
471 | | - | |
| 475 | + | |
472 | 476 | | |
473 | 477 | | |
474 | 478 | | |
| |||
666 | 670 | | |
667 | 671 | | |
668 | 672 | | |
669 | | - | |
| 673 | + | |
670 | 674 | | |
671 | 675 | | |
672 | 676 | | |
| |||
731 | 735 | | |
732 | 736 | | |
733 | 737 | | |
734 | | - | |
735 | | - | |
| 738 | + | |
| 739 | + | |
736 | 740 | | |
737 | 741 | | |
738 | 742 | | |
| |||
989 | 993 | | |
990 | 994 | | |
991 | 995 | | |
992 | | - | |
| 996 | + | |
993 | 997 | | |
994 | 998 | | |
995 | 999 | | |
| |||
1070 | 1074 | | |
1071 | 1075 | | |
1072 | 1076 | | |
1073 | | - | |
| 1077 | + | |
1074 | 1078 | | |
1075 | 1079 | | |
1076 | 1080 | | |
| |||
1280 | 1284 | | |
1281 | 1285 | | |
1282 | 1286 | | |
1283 | | - | |
| 1287 | + | |
1284 | 1288 | | |
1285 | 1289 | | |
1286 | 1290 | | |
| |||
0 commit comments