|
19 | 19 |
|
20 | 20 | <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet"> |
21 | 21 | <style> |
| 22 | +
|
22 | 23 | :root { |
| 24 | + --bg: #fff; |
| 25 | + --surface: #f8f9fa; |
| 26 | + --surface-hover: #e9ecef; |
| 27 | + --border: #dee2e6; |
| 28 | + --text: #0f1117; |
| 29 | + --muted: #6c757d; |
| 30 | + --accent: #d97706; |
| 31 | + --accent-dim: rgba(217,119,6,0.08); |
| 32 | + --code-bg: #f5f5f5; |
| 33 | + --green: #16a34a; |
| 34 | + --blue: #2563eb; |
| 35 | + --red: #dc2626; |
| 36 | + --purple: #9333ea; |
| 37 | + --bgTransparent: rgba(255, 255, 255, 0.95); |
| 38 | + } |
| 39 | +
|
| 40 | + @media (prefers-color-scheme: dark) { |
| 41 | + :root { |
| 42 | + --bg: #0f1117; |
| 43 | + --surface: #181a24; |
| 44 | + --surface-hover: #1e2130; |
| 45 | + --border: #2a2d3e; |
| 46 | + --text: #d8d8e0; |
| 47 | + --muted: #9898a8; |
| 48 | + --accent: #e8943a; |
| 49 | + --accent-dim: rgba(232,148,58,0.12); |
| 50 | + --code-bg: #141620; |
| 51 | + --green: #4ade80; |
| 52 | + --blue: #60a5fa; |
| 53 | + --red: #f87171; |
| 54 | + --purple: #c084fc; |
| 55 | + --bgTransparent: rgba(15,17,23,0.95); |
| 56 | + } |
| 57 | + } |
| 58 | +
|
| 59 | + body[data-theme="light"] { |
| 60 | + --bg: #fff; |
| 61 | + --surface: #f8f9fa; |
| 62 | + --surface-hover: #e9ecef; |
| 63 | + --border: #dee2e6; |
| 64 | + --text: #0f1117; |
| 65 | + --muted: #6c757d; |
| 66 | + --accent: #d97706; |
| 67 | + --accent-dim: rgba(217,119,6,0.08); |
| 68 | + --code-bg: #f5f5f5; |
| 69 | + --green: #16a34a; |
| 70 | + --blue: #2563eb; |
| 71 | + --red: #dc2626; |
| 72 | + --purple: #9333ea; |
| 73 | + --bgTransparent: rgba(255, 255, 255, 0.95); |
| 74 | + } |
| 75 | + |
| 76 | + body[data-theme="dark"] { |
23 | 77 | --bg: #0f1117; |
24 | 78 | --surface: #181a24; |
25 | 79 | --surface-hover: #1e2130; |
|
35 | 89 | --purple: #c084fc; |
36 | 90 | --bgTransparent: rgba(15,17,23,0.95); |
37 | 91 | } |
| 92 | +
|
38 | 93 | |
39 | | - body[data-theme="light"] { |
40 | | - --bg: #ffffff; |
41 | | - --surface: #f8f9fa; |
42 | | - --surface-hover: #e9ecef; |
43 | | - --border: #dee2e6; |
44 | | - --text: #212529; |
45 | | - --muted: #6c757d; |
46 | | - --accent: #d97706; |
47 | | - --accent-dim: rgba(217,119,6,0.08); |
48 | | - --code-bg: #f5f5f5; |
49 | | - --green: #16a34a; |
50 | | - --blue: #2563eb; |
51 | | - --red: #dc2626; |
52 | | - --purple: #9333ea; |
53 | | - --bgTransparent: rgba(255, 255, 255, 0.95); |
54 | | - } |
55 | 94 |
|
56 | 95 | .toc-drawer { |
57 | 96 | display: none !important; |
|
85 | 124 | -webkit-font-smoothing: antialiased; |
86 | 125 | } |
87 | 126 |
|
| 127 | + |
| 128 | +
|
88 | 129 | .container { |
89 | 130 | max-width: 900px; |
90 | 131 | margin: 0 auto; |
|
316 | 357 | .nav a { font-size: 12px; padding: 5px 10px; } |
317 | 358 | } |
318 | 359 |
|
| 360 | +
|
| 361 | + |
319 | 362 | |
320 | 363 |
|
321 | 364 |
|
|
0 commit comments