Commit 1c8913a
committed
Fix dark highlighting themes missing base text color
Dark syntax highlighting themes like zenburn and espresso define
text-color at the top level but omit "Normal" from text-styles,
so generateThemeCssClasses() never emits a span-level color rule.
When layered with a light theme that does (e.g. kate emits
code.sourceCode > span { color: #1f1c1b; }), the light theme's
near-black text persists in dark mode.
Add a span-level $code-block-color rule in _bootstrap-rules.scss
alongside the existing container-level rules, following the same
pattern used for background-color. Since light and dark are
separate compiled stylesheets toggled by JS, the active theme's
rule applies without specificity conflicts.
Fixes #140991 parent d1c3de0 commit 1c8913a
1 file changed
Lines changed: 8 additions & 0 deletions
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
863 | 863 | | |
864 | 864 | | |
865 | 865 | | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
866 | 874 | | |
867 | 875 | | |
868 | 876 | | |
| |||
0 commit comments