File tree Expand file tree Collapse file tree 5 files changed +321
-28
lines changed
_freeze/walkthrough/execute-results Expand file tree Collapse file tree 5 files changed +321
-28
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1- /* ── Inline code (prose `backtick` spans) ────────────────────── */
1+ /* ── Code / monospace contrast normalization ──────────────────── */
2+ : root {
3+ --code-bg-inline : # 2d2d2d ;
4+ --code-fg-inline : # e8e8e8 ;
5+ --code-bg-block : # 1e1e1e ;
6+ --code-fg-block : # d4d4d4 ;
7+ --code-bg-output : # 0d1117 ;
8+ --code-fg-output : # c9d1d9 ;
9+ }
10+
11+ /* Inline code in prose */
212: not (pre ) > code {
3- background : # 2d2d2d ;
4- color : # e8e8e8 ;
13+ background : var ( --code-bg-inline ) ;
14+ color : var ( --code-fg-inline ) ;
515 padding : 0.1em 0.35em ;
616 border-radius : 3px ;
717 font-size : 0.88em ;
818}
919
10- /* ── Terminal / command output blocks ─────────────────────────── */
11- pre .sourceCode .bash , pre .sourceCode .sh {
12- background : # 1e1e1e ;
13- color : # d4d4d4 ;
20+ /* All fixed-width code blocks (not just bash/sh) */
21+ pre ,
22+ div .sourceCode pre ,
23+ pre .sourceCode {
24+ background : var (--code-bg-block );
25+ color : var (--code-fg-block );
1426 border-left : 3px solid # 569cd6 ;
1527}
1628
17- /* Highlight the output blocks differently from code */
29+ /* Ensure nested <code> inherits readable colors */
30+ pre code {
31+ color : inherit;
32+ background : transparent;
33+ }
34+
35+ /* Distinct style for command output blocks */
1836.cell-output pre {
19- background : # 0d1117 ;
20- color : # c9d1d9 ;
37+ background : var ( --code-bg-output ) ;
38+ color : var ( --code-fg-output ) ;
2139 border-left : 3px solid # 3fb950 ;
2240 font-size : 0.85em ;
2341}
You can’t perform that action at this time.
0 commit comments