| 1 | /* -------- Reset / Base -------- */ |
| 2 | |
| 3 | *, |
| 4 | *::before, |
| 5 | *::after { |
| 6 | box-sizing: border-box; |
| 7 | } |
| 8 | |
| 9 | robots { |
| 10 | display: none; |
| 11 | } |
| 12 | |
| 13 | html { |
| 14 | font-size: 16px; |
| 15 | } |
| 16 | |
| 17 | body { |
| 18 | margin: 0; |
| 19 | padding: 0; |
| 20 | font-family: system-ui, -apple-system, BlinkMacSystemFont, |
| 21 | "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, |
| 22 | "Helvetica Neue", Arial, sans-serif; |
| 23 | line-height: 1.55; |
| 24 | color: #1f1f1f; |
| 25 | background-color: #f7f7f8; |
| 26 | } |
| 27 | |
| 28 | /* -------- Text -------- */ |
| 29 | |
| 30 | h1, |
| 31 | h2, |
| 32 | h3, |
| 33 | h4, |
| 34 | h5, |
| 35 | h6 { |
| 36 | font-weight: 600; |
| 37 | line-height: 1.25; |
| 38 | margin: 0; |
| 39 | } |
| 40 | |
| 41 | h1 { |
| 42 | font-size: 2rem; |
| 43 | } |
| 44 | |
| 45 | h2 { |
| 46 | font-size: 1.4rem; |
| 47 | } |
| 48 | |
| 49 | h3 { |
| 50 | font-size: 1.15rem; |
| 51 | } |
| 52 | |
| 53 | p { |
| 54 | margin: 0.5rem 0; |
| 55 | } |
| 56 | |
| 57 | small { |
| 58 | font-size: 0.85rem; |
| 59 | opacity: 0.85; |
| 60 | } |
| 61 | |
| 62 | /* -------- Links -------- */ |
| 63 | |
| 64 | a { |
| 65 | color: #2c5ec2; |
| 66 | text-decoration: none; |
| 67 | } |
| 68 | |
| 69 | a:hover { |
| 70 | text-decoration: underline; |
| 71 | } |
| 72 | |
| 73 | /* -------- Lists -------- */ |
| 74 | |
| 75 | ul, |
| 76 | ol { |
| 77 | margin: 0.5rem 0; |
| 78 | padding-left: 1.25rem; |
| 79 | } |
| 80 | |
| 81 | /* -------- Utility -------- */ |
| 82 | |
| 83 | code, |
| 84 | pre { |
| 85 | font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, |
| 86 | Consolas, "Liberation Mono", "Courier New", monospace; |
| 87 | font-size: 0.95em; |
| 88 | } |
| 89 | |
| 90 | pre { |
| 91 | background: #eee; |
| 92 | padding: 0.75rem; |
| 93 | border-radius: 8px; |
| 94 | overflow-x: auto; |
| 95 | } |
| 96 | |
| 97 | /* -------- Page Containers -------- */ |
| 98 | |
| 99 | .page { |
| 100 | max-width: 1200px; |
| 101 | margin: 0 auto; |
| 102 | padding: 1rem; |
| 103 | } |
| 104 | |
| 105 | /* -------- Cards (shared feel) -------- */ |
| 106 | |
| 107 | article { |
| 108 | background: #ffffff; |
| 109 | } |
| 110 | |
| 111 | /* -------- Accessibility -------- */ |
| 112 | |
| 113 | :focus-visible { |
| 114 | outline: 2px solid #5a8dee; |
| 115 | outline-offset: 2px; |
| 116 | } |
| 117 | |
| 118 | /* -------- Dark-mode friendly base -------- */ |
| 119 | /* (Optional – remove if unwanted) */ |
| 120 | @media (prefers-color-scheme: dark) { |
| 121 | body { |
| 122 | background-color: #141416; |
| 123 | color: #e8e8ea; |
| 124 | } |
| 125 | |
| 126 | article { |
| 127 | background: #1c1c1f; |
| 128 | } |
| 129 | |
| 130 | a { |
| 131 | color: #7aa2ff; |
| 132 | } |
| 133 | |
| 134 | pre { |
| 135 | background: #26262a; |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | .topBar { |
| 140 | position: sticky; |
| 141 | top: 0; |
| 142 | z-index: 999; |
| 143 | background: #ffffff; |
| 144 | border-bottom: 1px solid #ddd; |
| 145 | } |
| 146 | |
| 147 | .topBarInner { |
| 148 | max-width: 1200px; |
| 149 | margin: 0 auto; |
| 150 | padding: 0.6rem 1rem; |
| 151 | display: flex; |
| 152 | align-items: center; |
| 153 | gap: 0.75rem; |
| 154 | } |
| 155 | |
| 156 | .menuButton { |
| 157 | border: 1px solid #bbb; |
| 158 | background: #fff; |
| 159 | border-radius: 10px; |
| 160 | padding: 0.45rem 0.7rem; |
| 161 | cursor: pointer; |
| 162 | } |
| 163 | |
| 164 | .nextChapterButton { |
| 165 | margin-bottom: 50px; |
| 166 | max-width: 900px; |
| 167 | min-width: 400px; |
| 168 | height: 50px; |
| 169 | } |
| 170 | |
| 171 | .menuButton:hover { |
| 172 | background: #f2f2f2; |
| 173 | } |
| 174 | |
| 175 | .chapterPicker { |
| 176 | position: relative; |
| 177 | } |
| 178 | |
| 179 | .chapterDropdown { |
| 180 | display: none; |
| 181 | position: absolute; |
| 182 | top: calc(100% + 0.4rem); |
| 183 | left: 0; |
| 184 | width: min(360px, 85vw); |
| 185 | max-height: 55vh; |
| 186 | overflow: auto; |
| 187 | border: 1px solid #ddd; |
| 188 | border-radius: 12px; |
| 189 | background: #fff; |
| 190 | box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); |
| 191 | padding: 0.35rem; |
| 192 | } |
| 193 | |
| 194 | .inlineNavigatorSelect, |
| 195 | .chapterDropdown.open { |
| 196 | display: block; |
| 197 | } |
| 198 | |
| 199 | .inlineNavigatorBtn button, |
| 200 | .chapterDropdown button { |
| 201 | width: 100%; |
| 202 | text-align: left; |
| 203 | border: 0; |
| 204 | background: transparent; |
| 205 | padding: 0.55rem 0.6rem; |
| 206 | border-radius: 10px; |
| 207 | cursor: pointer; |
| 208 | } |
| 209 | |
| 210 | |
| 211 | .inlineNavigatorBtn button:hover, |
| 212 | .chapterDropdown button:hover { |
| 213 | background: #f3f3f3; |
| 214 | } |
| 215 | |
| 216 | .searchForm { |
| 217 | margin-left: auto; |
| 218 | display: flex; |
| 219 | gap: 0.5rem; |
| 220 | align-items: center; |
| 221 | } |
| 222 | |
| 223 | .headerImage { |
| 224 | max-height: 32px; |
| 225 | } |
| 226 | |
| 227 | .inlineImage { |
| 228 | align-content: center; |
| 229 | text-align: center; |
| 230 | } |
| 231 | |
| 232 | .inlineImage>img { |
| 233 | max-width: 800px; |
| 234 | } |
| 235 | |
| 236 | .scrollLink { |
| 237 | cursor: pointer; |
| 238 | } |
| 239 | |
| 240 | .searchResultArticle { |
| 241 | border: 1px solid #ddd; |
| 242 | border-radius: 12px; |
| 243 | padding: 1rem; |
| 244 | margin: 0.75rem 0; |
| 245 | } |
| 246 | |
| 247 | .searchResult { |
| 248 | display: flex; |
| 249 | gap: 0.75rem; |
| 250 | flex-wrap: wrap; |
| 251 | align-items: baseline; |
| 252 | } |
| 253 | |
| 254 | hit { |
| 255 | border-bottom: 2px groove red; |
| 256 | } |
| 257 | |
| 258 | table { |
| 259 | width: 100%; |
| 260 | border-collapse: collapse; |
| 261 | table-layout: fixed; |
| 262 | } |
| 263 | |
| 264 | td { |
| 265 | align-items: start; |
| 266 | align-content: start; |
| 267 | vertical-align: top; |
| 268 | width: 50%; |
| 269 | padding-right: 2%; |
| 270 | } |
| 271 | |
| 272 | .searchInput { |
| 273 | width: min(420px, 45vw); |
| 274 | border: 1px solid #bbb; |
| 275 | border-radius: 999px; |
| 276 | padding: 0.45rem 0.75rem; |
| 277 | } |
| 278 | |
| 279 | .searchSubmit { |
| 280 | border: 1px solid #bbb; |
| 281 | border-radius: 999px; |
| 282 | padding: 0.45rem 0.75rem; |
| 283 | cursor: pointer; |
| 284 | } |
| 285 | |
| 286 | .searchSubmit:hover { |
| 287 | background: #f2f2f2; |
| 288 | } |
| 289 | |
| 290 | /* Make sure content doesn't hide behind sticky bar when using anchor links */ |
| 291 | :target { |
| 292 | scroll-margin-top: 60px; |
| 293 | } |