|
| 1 | +--- |
| 2 | +--- |
| 3 | + |
| 4 | +@import "{{ site.theme }}"; |
| 5 | + |
| 6 | +/* Reduce sidebar width */ |
| 7 | +header, |
| 8 | +footer { |
| 9 | + width: 180px; |
| 10 | + padding-right: 10px; |
| 11 | +} |
| 12 | + |
| 13 | +section { |
| 14 | + width: calc(100% - 200px); |
| 15 | + margin-left: 200px; |
| 16 | + max-width: 900px !important; |
| 17 | +} |
| 18 | + |
| 19 | +.wrapper { |
| 20 | + width: 900px !important; |
| 21 | +} |
| 22 | + |
| 23 | +/* Smaller header text */ |
| 24 | +header h1 { |
| 25 | + font-size: 1.5em; |
| 26 | +} |
| 27 | + |
| 28 | +/* Fix footer text wrapping */ |
| 29 | +header p, |
| 30 | +header small { |
| 31 | + word-wrap: break-word; |
| 32 | + overflow-wrap: break-word; |
| 33 | + white-space: normal; |
| 34 | + max-width: 100%; |
| 35 | + font-size: 0.75em; |
| 36 | + display: block; |
| 37 | +} |
| 38 | + |
| 39 | +/* Prevent link hover from adding bold (causes layout shift) */ |
| 40 | +a:hover { |
| 41 | + font-weight: inherit; |
| 42 | +} |
| 43 | + |
| 44 | +/* Mobile: hide sidebar, full width content */ |
| 45 | +@media print, screen and (max-width: 720px) { |
| 46 | + header { |
| 47 | + width: auto; |
| 48 | + padding-right: 0; |
| 49 | + } |
| 50 | + section { |
| 51 | + width: 100%; |
| 52 | + margin-left: 0; |
| 53 | + max-width: 100% !important; |
| 54 | + } |
| 55 | + .wrapper { |
| 56 | + width: auto !important; |
| 57 | + max-width: 100% !important; |
| 58 | + } |
| 59 | +} |
| 60 | + |
| 61 | +/* Dark mode support */ |
| 62 | +@media (prefers-color-scheme: dark) { |
| 63 | + body, |
| 64 | + .wrapper { |
| 65 | + background-color: #1a1a1a !important; |
| 66 | + color: #d0d0d0 !important; |
| 67 | + } |
| 68 | + |
| 69 | + header, |
| 70 | + section { |
| 71 | + background-color: #1a1a1a !important; |
| 72 | + } |
| 73 | + |
| 74 | + a { |
| 75 | + color: #6db3f2 !important; |
| 76 | + } |
| 77 | + |
| 78 | + a:hover { |
| 79 | + color: #9dcbf5 !important; |
| 80 | + } |
| 81 | + |
| 82 | + h1, h2, h3, h4, h5, h6 { |
| 83 | + color: #f0f0f0 !important; |
| 84 | + border-bottom-color: #444 !important; |
| 85 | + } |
| 86 | + |
| 87 | + /* Inline code */ |
| 88 | + code { |
| 89 | + background-color: #2a2a2a !important; |
| 90 | + color: #f0a050 !important; |
| 91 | + border: none !important; |
| 92 | + border-radius: 3px !important; |
| 93 | + } |
| 94 | + |
| 95 | + /* Code blocks */ |
| 96 | + pre { |
| 97 | + background-color: #252525 !important; |
| 98 | + border: 1px solid #3a3a3a !important; |
| 99 | + color: #d0d0d0 !important; |
| 100 | + } |
| 101 | + |
| 102 | + pre code { |
| 103 | + background-color: transparent !important; |
| 104 | + color: #d0d0d0 !important; |
| 105 | + } |
| 106 | + |
| 107 | + blockquote { |
| 108 | + border-left-color: #555 !important; |
| 109 | + color: #a0a0a0 !important; |
| 110 | + } |
| 111 | + |
| 112 | + hr { |
| 113 | + border-color: #444 !important; |
| 114 | + background-color: #444 !important; |
| 115 | + } |
| 116 | + |
| 117 | + table th, |
| 118 | + table td { |
| 119 | + border-color: #444 !important; |
| 120 | + } |
| 121 | + |
| 122 | + table th { |
| 123 | + background-color: #333 !important; |
| 124 | + color: #f0f0f0 !important; |
| 125 | + font-weight: bold !important; |
| 126 | + } |
| 127 | + |
| 128 | + table tr:nth-child(even) { |
| 129 | + background-color: #222 !important; |
| 130 | + } |
| 131 | + |
| 132 | + /* Lists */ |
| 133 | + ul, ol, li { |
| 134 | + color: #d0d0d0 !important; |
| 135 | + } |
| 136 | + |
| 137 | + /* Strong/bold */ |
| 138 | + strong, b { |
| 139 | + color: #e8e8e8 !important; |
| 140 | + } |
| 141 | + |
| 142 | + /* Syntax highlighting for code blocks (Rouge/Pygments) */ |
| 143 | + .highlight { |
| 144 | + background-color: #252525 !important; |
| 145 | + } |
| 146 | + |
| 147 | + /* Error tokens - remove error highlighting */ |
| 148 | + .highlight .err { |
| 149 | + background-color: transparent !important; |
| 150 | + color: #d4d4d4 !important; |
| 151 | + } |
| 152 | + |
| 153 | + /* Comments */ |
| 154 | + .highlight .c, .highlight .c1, .highlight .cm, .highlight .cs { |
| 155 | + color: #6a9955 !important; |
| 156 | + font-style: italic; |
| 157 | + } |
| 158 | + |
| 159 | + /* Keywords */ |
| 160 | + .highlight .k, .highlight .kd, .highlight .kn, .highlight .kp, |
| 161 | + .highlight .kr, .highlight .kt, .highlight .kc { |
| 162 | + color: #569cd6 !important; |
| 163 | + } |
| 164 | + |
| 165 | + /* Strings */ |
| 166 | + .highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, |
| 167 | + .highlight .sc, .highlight .sd, .highlight .se, .highlight .sh, |
| 168 | + .highlight .si, .highlight .sx, .highlight .sr, .highlight .ss, |
| 169 | + .highlight .dl { |
| 170 | + color: #ce9178 !important; |
| 171 | + background-color: transparent !important; |
| 172 | + } |
| 173 | + |
| 174 | + /* Numbers */ |
| 175 | + .highlight .m, .highlight .mi, .highlight .mf, .highlight .mh, |
| 176 | + .highlight .mo, .highlight .il { |
| 177 | + color: #b5cea8 !important; |
| 178 | + } |
| 179 | + |
| 180 | + /* Operators */ |
| 181 | + .highlight .o, .highlight .ow { |
| 182 | + color: #d4d4d4 !important; |
| 183 | + } |
| 184 | + |
| 185 | + /* Punctuation */ |
| 186 | + .highlight .p { |
| 187 | + color: #d4d4d4 !important; |
| 188 | + } |
| 189 | + |
| 190 | + /* Names/identifiers */ |
| 191 | + .highlight .n, .highlight .na, .highlight .nb, .highlight .nc, |
| 192 | + .highlight .no, .highlight .nd, .highlight .ni, .highlight .ne, |
| 193 | + .highlight .nf, .highlight .nl, .highlight .nn, .highlight .nt, |
| 194 | + .highlight .nv, .highlight .nx { |
| 195 | + color: #dcdcaa !important; |
| 196 | + } |
| 197 | + |
| 198 | + /* Class names */ |
| 199 | + .highlight .nc { |
| 200 | + color: #4ec9b0 !important; |
| 201 | + } |
| 202 | + |
| 203 | + /* Function names */ |
| 204 | + .highlight .nf { |
| 205 | + color: #dcdcaa !important; |
| 206 | + } |
| 207 | + |
| 208 | + /* Preprocessor */ |
| 209 | + .highlight .cp, .highlight .cpf { |
| 210 | + color: #c586c0 !important; |
| 211 | + } |
| 212 | + |
| 213 | + /* Generic */ |
| 214 | + .highlight .ge { |
| 215 | + font-style: italic; |
| 216 | + } |
| 217 | + |
| 218 | + .highlight .gs { |
| 219 | + font-weight: bold; |
| 220 | + } |
| 221 | +} |
0 commit comments