klausurfragen pdf fix: pre blocks waren schwarz auf schwarz

bug: 'pre code { color: inherit }' fiel auf section --color-foreground (#1a1a2e)
zurueck weil 'pre' selbst keine 'color' hatte. multi-line code-bloecke
unsichtbar (nur hljs-syntax-spans hatten farbe, rest = dark on dark).

fix: 'pre { color: #f8f8f8 }' setzen + inline 'code' und hljs/non-hljs
selectoren analog zu chapter-styles ergaenzt.

verified: c klausurfragen page 60 (G2 mobile-first CSS pre-block) jetzt
voll lesbar.
This commit is contained in:
2026-04-27 00:53:48 +02:00
parent 19ca5ad3e0
commit ac39f2b746
2 changed files with 18 additions and 0 deletions

View File

@@ -30,12 +30,21 @@ h2 {
}
pre {
background: #0f0f23;
color: #f8f8f8;
border-radius: 8px;
}
pre code {
background: transparent;
color: inherit;
}
code {
background: #0f0f23;
color: #5fb3e4;
padding: 0.15em 0.4em;
border-radius: 4px;
}
section code:not(.hljs) { color: #5fb3e4 !important; }
section code.hljs { color: #f8f8f8 !important; }
a {
color: var(--color-highlight);
}