diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-01 13:34:41 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 13:35:10 -0300 |
| commit | db86a91da1a77b2e177d7ef45d85ce0756aab732 (patch) | |
| tree | f7cdf0e778b250f037b2098d4d7fcb3959fd6253 /docs/site/site.css | |
| parent | 52820eb70af788db49735292e2a9ad89cbf1e457 (diff) | |
| download | pardes-db86a91da1a77b2e177d7ef45d85ce0756aab732.tar.gz pardes-db86a91da1a77b2e177d7ef45d85ce0756aab732.zip | |
The cast player keeps its colours in dark mode: the site's code-block rules no longer reach the player's own <pre>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'docs/site/site.css')
| -rw-r--r-- | docs/site/site.css | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/site/site.css b/docs/site/site.css index ae59e79a..7d6d0660 100644 --- a/docs/site/site.css +++ b/docs/site/site.css @@ -63,12 +63,13 @@ body { margin:0; min-height:100vh; background:var(--field) radial-gradient(color /* code: a window on the machine, titled in stripes */ .content code, .content pre, .content kbd, .tag { font-family:var(--mono); } .content code { font-size:.82em; overflow-wrap:break-word; hyphens:none; } -.content pre { +.content pre:not(.ap-term-text) { font-size:15px; line-height:1.45; padding:12px 14px; margin:1em 0; overflow-x:auto; background:var(--deep); border:2px solid var(--leaf); border-top-width:8px; box-shadow:5px 5px 0 var(--shadow); } .content pre code { font-size:inherit; overflow-wrap:normal; } -@media (prefers-color-scheme: dark) { .content pre span { color:inherit !important; } } +/* Typst's code highlighting only: the cast player's terminal is a <pre> of coloured spans too */ +@media (prefers-color-scheme: dark) { .content pre:not(.ap-term-text) span { color:inherit !important; } } .content pre.tutor { font-size:14px; } /* tables: rows on alternating tints, a pardes #pairs */ |
