|
24 | 24 | ::-webkit-scrollbar-thumb:hover { background: #b8b3a8; } |
25 | 25 |
|
26 | 26 | /* Code blocks */ |
27 | | -pre { |
28 | | - position: relative; |
29 | | - border: 1px solid #E8E5DE; |
30 | | -} |
31 | 27 | pre code { |
32 | 28 | display: block; |
33 | 29 | line-height: 1.7; |
34 | 30 | } |
35 | 31 |
|
36 | | -/* Racket syntax highlighting */ |
37 | | -.language-racket .keyword { color: #D97757; } |
38 | | -.language-racket .string { color: #5E8C4A; } |
39 | | -.language-racket .number { color: #8B6BAE; } |
40 | | -.language-racket .comment { color: #A39E93; font-style: italic; } |
41 | | -.language-racket .function { color: #3A7CA5; } |
| 32 | +/* Inline code chips (outside <pre>) — block code inside <pre> stays bare */ |
| 33 | +.prose :not(pre) > code { |
| 34 | + background: #F5F3EE; |
| 35 | + color: #C4683F; |
| 36 | + padding: 0.15em 0.375em; |
| 37 | + border-radius: 0.25rem; |
| 38 | + font-size: 0.875em; |
| 39 | + font-family: var(--font-mono); |
| 40 | +} |
| 41 | +.prose pre > code { |
| 42 | + background: transparent; |
| 43 | + padding: 0; |
| 44 | + border-radius: 0; |
| 45 | + font-size: inherit; |
| 46 | + color: inherit; |
| 47 | +} |
| 48 | + |
| 49 | +/* Syntax highlighting (highlight.js classes emitted by rehype-highlight) */ |
| 50 | +.hljs-keyword, .hljs-selector-tag, .hljs-built_in, .hljs-symbol { color: #E08A67; } |
| 51 | +.hljs-string, .hljs-regexp { color: #97B87A; } |
| 52 | +.hljs-number, .hljs-literal { color: #B48ED8; } |
| 53 | +.hljs-comment, .hljs-quote { color: #8A857A; font-style: italic; } |
| 54 | +.hljs-title, .hljs-name { color: #7AADD3; } |
| 55 | +.hljs-type, .hljs-class { color: #63B0B0; } |
| 56 | +.hljs-attr, .hljs-attribute, .hljs-variable, .hljs-template-variable { color: #D9A967; } |
| 57 | +.hljs-section, .hljs-bullet { color: #E08A67; } |
| 58 | +.hljs-meta, .hljs-meta .hljs-keyword { color: #A39E93; } |
| 59 | +.hljs-operator, .hljs-punctuation { color: #C7C2B8; } |
| 60 | +.hljs-emphasis { font-style: italic; } |
| 61 | +.hljs-strong { font-weight: 700; } |
0 commit comments