diff options
Diffstat (limited to 'assets/css/main.css')
| -rw-r--r-- | assets/css/main.css | 528 |
1 files changed, 528 insertions, 0 deletions
diff --git a/assets/css/main.css b/assets/css/main.css new file mode 100644 index 0000000..7004a13 --- /dev/null +++ b/assets/css/main.css | |||
| @@ -0,0 +1,528 @@ | |||
| 1 | html { | ||
| 2 | scroll-behavior: smooth; | ||
| 3 | color: white; | ||
| 4 | } | ||
| 5 | |||
| 6 | body { | ||
| 7 | font-family: "Literata"; | ||
| 8 | margin: auto; | ||
| 9 | max-width: var(--main-width); | ||
| 10 | padding-left: var(--main-padding); | ||
| 11 | padding-right: var(--main-padding); | ||
| 12 | color: var(--content-primary); | ||
| 13 | background: var(--background); | ||
| 14 | } | ||
| 15 | |||
| 16 | .content { | ||
| 17 | min-height: var(--content-height) !important; | ||
| 18 | } | ||
| 19 | |||
| 20 | h1 { | ||
| 21 | margin-top: var(--h1-margin-top); | ||
| 22 | margin-bottom: var(--h1-margin-bottom); | ||
| 23 | font-size: var(--h1-font-size); | ||
| 24 | } | ||
| 25 | |||
| 26 | h2 { | ||
| 27 | margin-top: var(--h2-margin-top); | ||
| 28 | margin-bottom: var(--h2-margin-bottom); | ||
| 29 | font-size: var(--h2-font-size); | ||
| 30 | } | ||
| 31 | |||
| 32 | h3, | ||
| 33 | h4, | ||
| 34 | h5, | ||
| 35 | h6 { | ||
| 36 | font-size: var(--hx-font-size); | ||
| 37 | margin-top: var(--hx-margin-top); | ||
| 38 | margin-bottom: var(--hx-margin-bottom); | ||
| 39 | } | ||
| 40 | |||
| 41 | p { | ||
| 42 | margin-top: var(--p-margin-top); | ||
| 43 | margin-bottom: var(--p-margin-bottom); | ||
| 44 | font-size: var(--p-font-size); | ||
| 45 | line-height: var(--p-line-height); | ||
| 46 | } | ||
| 47 | |||
| 48 | ul { | ||
| 49 | margin-top: var(--ul-margin-top); | ||
| 50 | margin-bottom: var(--ul-margin-bottom); | ||
| 51 | } | ||
| 52 | |||
| 53 | li { | ||
| 54 | margin-left: var(--li-indent); | ||
| 55 | } | ||
| 56 | |||
| 57 | a { | ||
| 58 | text-decoration: underline; | ||
| 59 | } | ||
| 60 | |||
| 61 | /* Code blocks */ | ||
| 62 | |||
| 63 | pre { | ||
| 64 | padding: var(--code-padding); | ||
| 65 | border: 1px solid var(--code-border); | ||
| 66 | overflow: scroll; | ||
| 67 | border-radius: var(--code-border-radius); | ||
| 68 | margin-top: var(--code-margin-top); | ||
| 69 | margin-bottom: var(--code-margin-bottom); | ||
| 70 | background-color: var(--code-background) !important; | ||
| 71 | overflow-x: auto; | ||
| 72 | -ms-overflow-style: none; | ||
| 73 | scrollbar-width: none; | ||
| 74 | line-height: 1.3em; | ||
| 75 | } | ||
| 76 | |||
| 77 | pre::-webkit-scrollbar { | ||
| 78 | display: none; | ||
| 79 | } | ||
| 80 | |||
| 81 | code span { | ||
| 82 | display: inline !important; | ||
| 83 | } | ||
| 84 | |||
| 85 | code { | ||
| 86 | -webkit-font-smoothing: antialiased; | ||
| 87 | -moz-font-feature-settings: "liga=1, dlig=1"; | ||
| 88 | -ms-font-feature-settings: "liga", "dlig"; | ||
| 89 | -webkit-font-feature-settings: "liga", "dlig"; | ||
| 90 | -o-font-feature-settings: "liga", "dlig"; | ||
| 91 | font-feature-settings: "liga", "dlig"; | ||
| 92 | font-variant-ligatures: contextual; | ||
| 93 | font-family: "Monaspace"; | ||
| 94 | font-size: 0.9em; | ||
| 95 | line-height: 0; | ||
| 96 | } | ||
| 97 | |||
| 98 | .katex-display { | ||
| 99 | overflow-x: auto; | ||
| 100 | overflow-y: hidden; | ||
| 101 | -ms-overflow-style: none; | ||
| 102 | scrollbar-width: none; | ||
| 103 | } | ||
| 104 | |||
| 105 | .katex-display::-webkit-scrollbar { | ||
| 106 | display: none; | ||
| 107 | } | ||
| 108 | |||
| 109 | /* Footnotes */ | ||
| 110 | |||
| 111 | .footnotes { | ||
| 112 | margin-top: 3rem; | ||
| 113 | border-style: none; | ||
| 114 | } | ||
| 115 | |||
| 116 | hr { | ||
| 117 | border: none; | ||
| 118 | height: 1px; | ||
| 119 | background: var(--content-secondary); | ||
| 120 | margin-top: 2rem; | ||
| 121 | margin-bottom: 2rem; | ||
| 122 | } | ||
| 123 | |||
| 124 | /* Header */ | ||
| 125 | |||
| 126 | .header { | ||
| 127 | padding-top: var(--header-top-gap); | ||
| 128 | margin-bottom: var(--header-bottom-gap); | ||
| 129 | } | ||
| 130 | |||
| 131 | .header p { | ||
| 132 | font-family: monospace; | ||
| 133 | margin-top: var(--header-menu-top-gap); | ||
| 134 | margin-right: var(--header-menu-side-gap); | ||
| 135 | } | ||
| 136 | |||
| 137 | .header-title { | ||
| 138 | font-size: 2.6em; | ||
| 139 | font-weight: bold; | ||
| 140 | margin-bottom: 0; | ||
| 141 | margin-top: 0; | ||
| 142 | } | ||
| 143 | |||
| 144 | /* Footer */ | ||
| 145 | |||
| 146 | footer { | ||
| 147 | font-size: small; | ||
| 148 | display: flex; | ||
| 149 | justify-content: center; | ||
| 150 | align-items: center; | ||
| 151 | max-height: var(--footer-height); | ||
| 152 | } | ||
| 153 | |||
| 154 | footer a { | ||
| 155 | font-family: "Monaspace"; | ||
| 156 | margin-left: 0.2rem; | ||
| 157 | margin-right: 0.2rem; | ||
| 158 | } | ||
| 159 | |||
| 160 | /* Posts list */ | ||
| 161 | |||
| 162 | .post-line { | ||
| 163 | margin-bottom: 0.5rem; | ||
| 164 | display: flex; | ||
| 165 | align-items: baseline; | ||
| 166 | } | ||
| 167 | |||
| 168 | .tag-line { | ||
| 169 | margin-bottom: 0.5rem; | ||
| 170 | display: flex; | ||
| 171 | align-items: baseline; | ||
| 172 | } | ||
| 173 | |||
| 174 | .post-line p { | ||
| 175 | margin-top: 0rem; | ||
| 176 | margin-bottom: 0rem; | ||
| 177 | } | ||
| 178 | |||
| 179 | .line-date { | ||
| 180 | font-size: small; | ||
| 181 | font-family: "Monaspace"; | ||
| 182 | min-width: 120px; | ||
| 183 | max-width: 120px; | ||
| 184 | text-align: right; | ||
| 185 | padding-right: 1rem; | ||
| 186 | margin-top: 0rem; | ||
| 187 | margin-bottom: 0rem; | ||
| 188 | } | ||
| 189 | |||
| 190 | .line-title { | ||
| 191 | margin: 0; | ||
| 192 | } | ||
| 193 | |||
| 194 | .tag-title { | ||
| 195 | margin: 0; | ||
| 196 | } | ||
| 197 | |||
| 198 | .line-summary { | ||
| 199 | font-size: small; | ||
| 200 | margin-top: 0.2rem !important; | ||
| 201 | /* font-style: italic; */ | ||
| 202 | color: var(--content-secondary); | ||
| 203 | } | ||
| 204 | |||
| 205 | .list-container { | ||
| 206 | padding-bottom: 3rem; | ||
| 207 | } | ||
| 208 | |||
| 209 | .pagination { | ||
| 210 | display: flex; | ||
| 211 | align-items: center; | ||
| 212 | margin-top: 1rem; | ||
| 213 | margin-bottom: 0rem; | ||
| 214 | justify-content: center; | ||
| 215 | } | ||
| 216 | |||
| 217 | .pagination-control { | ||
| 218 | min-width: 3rem; | ||
| 219 | margin-left: 0.5rem; | ||
| 220 | margin-right: 0.5rem; | ||
| 221 | text-align: center; | ||
| 222 | align-items: center; | ||
| 223 | } | ||
| 224 | |||
| 225 | .page-number { | ||
| 226 | min-width: 3rem; | ||
| 227 | margin-left: 0.5rem; | ||
| 228 | margin-right: 0.5rem; | ||
| 229 | display: flex; | ||
| 230 | align-items: center; | ||
| 231 | justify-content: center; | ||
| 232 | align-items: center; | ||
| 233 | font-weight: bold; | ||
| 234 | } | ||
| 235 | |||
| 236 | /* Social Icons */ | ||
| 237 | |||
| 238 | .social-icons { | ||
| 239 | padding: 12px 0; | ||
| 240 | margin-bottom: var(--social-icons-bottom-margin); | ||
| 241 | } | ||
| 242 | |||
| 243 | .social-icons a { | ||
| 244 | text-decoration: none; | ||
| 245 | } | ||
| 246 | |||
| 247 | .social-icons a:not(:last-of-type) { | ||
| 248 | margin-inline-end: 12px; | ||
| 249 | } | ||
| 250 | |||
| 251 | .social-icons a svg { | ||
| 252 | height: 20px; | ||
| 253 | width: 20px; | ||
| 254 | } | ||
| 255 | |||
| 256 | /* Single post page */ | ||
| 257 | |||
| 258 | .single-intro-container { | ||
| 259 | margin-top: 1rem; | ||
| 260 | margin-bottom: 2rem; | ||
| 261 | } | ||
| 262 | |||
| 263 | .single-title { | ||
| 264 | margin-bottom: 0.5rem; | ||
| 265 | } | ||
| 266 | |||
| 267 | .single-readtime { | ||
| 268 | margin-top: 0.5rem; | ||
| 269 | color: var(--content-secondary); | ||
| 270 | } | ||
| 271 | |||
| 272 | .single-summary { | ||
| 273 | margin-bottom: 0; | ||
| 274 | color: var(--content-secondary); | ||
| 275 | } | ||
| 276 | |||
| 277 | .single-content { | ||
| 278 | margin-bottom: 5rem; | ||
| 279 | } | ||
| 280 | |||
| 281 | .single-tags { | ||
| 282 | margin-top: -1rem; | ||
| 283 | } | ||
| 284 | |||
| 285 | .single-tags span { | ||
| 286 | margin-right: 0.3rem; | ||
| 287 | } | ||
| 288 | |||
| 289 | /* Single pagination */ | ||
| 290 | |||
| 291 | .single-pagination { | ||
| 292 | margin-top: 3rem; | ||
| 293 | margin-bottom: 3rem; | ||
| 294 | } | ||
| 295 | |||
| 296 | .single-pagination a { | ||
| 297 | margin-left: 0.4rem; | ||
| 298 | margin-right: 0.4rem; | ||
| 299 | } | ||
| 300 | |||
| 301 | .single-pagination hr { | ||
| 302 | margin: 0; | ||
| 303 | } | ||
| 304 | |||
| 305 | .single-pagination-text { | ||
| 306 | display: flex; | ||
| 307 | justify-content: center; | ||
| 308 | align-items: center; | ||
| 309 | min-height: 100%; | ||
| 310 | } | ||
| 311 | |||
| 312 | .single-pagination-prev { | ||
| 313 | min-width: 50%; | ||
| 314 | margin-top: 1rem; | ||
| 315 | margin-bottom: 1rem; | ||
| 316 | text-align: right; | ||
| 317 | } | ||
| 318 | |||
| 319 | .single-pagination-next { | ||
| 320 | min-width: 50%; | ||
| 321 | margin-top: 1rem; | ||
| 322 | margin-bottom: 1rem; | ||
| 323 | text-align: left; | ||
| 324 | } | ||
| 325 | |||
| 326 | .single-pagination-container-next { | ||
| 327 | display: flex; | ||
| 328 | min-height: 100%; | ||
| 329 | padding: 0.5rem; | ||
| 330 | } | ||
| 331 | |||
| 332 | .single-pagination-container-prev { | ||
| 333 | display: flex; | ||
| 334 | min-height: 100%; | ||
| 335 | padding: 0.5rem; | ||
| 336 | float: right; | ||
| 337 | } | ||
| 338 | |||
| 339 | /* Table of contents */ | ||
| 340 | |||
| 341 | .toc { | ||
| 342 | font-size: var(--p-font-size); | ||
| 343 | line-height: calc(0.9 * var(--p-line-height)); | ||
| 344 | margin-top: var(--toc-margin-top); | ||
| 345 | margin-bottom: var(--toc-margin-bottom); | ||
| 346 | } | ||
| 347 | |||
| 348 | .toc ul { | ||
| 349 | margin-top: 0.1rem; | ||
| 350 | margin-bottom: 0.1rem; | ||
| 351 | } | ||
| 352 | |||
| 353 | .toc li { | ||
| 354 | margin-top: 0.1rem; | ||
| 355 | margin-bottom: 0.1rem; | ||
| 356 | } | ||
| 357 | |||
| 358 | /* Autonumbering */ | ||
| 359 | |||
| 360 | .autonumber { | ||
| 361 | counter-reset: h2-counter 0; | ||
| 362 | } | ||
| 363 | |||
| 364 | .autonumber h2 { | ||
| 365 | counter-increment: h2-counter 1; | ||
| 366 | counter-reset: h3-counter 0; | ||
| 367 | } | ||
| 368 | |||
| 369 | .autonumber h3 { | ||
| 370 | counter-increment: h3-counter 1; | ||
| 371 | counter-reset: h4-counter 0; | ||
| 372 | } | ||
| 373 | |||
| 374 | .autonumber h4 { | ||
| 375 | counter-increment: h4-counter 1; | ||
| 376 | } | ||
| 377 | |||
| 378 | .autonumber h2:before { | ||
| 379 | content: counter(h2-counter) "\00a0\00a0"; | ||
| 380 | } | ||
| 381 | |||
| 382 | .autonumber h3:before { | ||
| 383 | content: counter(h2-counter) "." counter(h3-counter) "\00a0\00a0"; | ||
| 384 | } | ||
| 385 | |||
| 386 | .autonumber h4:before { | ||
| 387 | content: counter(h2-counter) "." counter(h3-counter) "." counter(h4-counter) | ||
| 388 | "\00a0\00a0"; | ||
| 389 | } | ||
| 390 | |||
| 391 | /* images */ | ||
| 392 | |||
| 393 | .dark .img-light { | ||
| 394 | display: none !important; | ||
| 395 | } | ||
| 396 | |||
| 397 | .light .img-dark { | ||
| 398 | display: none !important; | ||
| 399 | } | ||
| 400 | |||
| 401 | .img-small div { | ||
| 402 | display: flex; | ||
| 403 | align-items: center; | ||
| 404 | justify-content: center; | ||
| 405 | } | ||
| 406 | |||
| 407 | .img-small img { | ||
| 408 | scale: 80%; | ||
| 409 | } | ||
| 410 | |||
| 411 | .img-full div { | ||
| 412 | display: flex; | ||
| 413 | align-items: center; | ||
| 414 | justify-content: center; | ||
| 415 | } | ||
| 416 | |||
| 417 | .img-full img { | ||
| 418 | width: 100vw !important; | ||
| 419 | max-width: 100vw !important; | ||
| 420 | } | ||
| 421 | |||
| 422 | .caption-container { | ||
| 423 | display: flex; | ||
| 424 | justify-content: center; | ||
| 425 | } | ||
| 426 | |||
| 427 | figcaption { | ||
| 428 | color: var(--content-secondary); | ||
| 429 | padding-left: var(--caption-padding); | ||
| 430 | padding-right: var(--caption-padding); | ||
| 431 | font-size: var(--caption-font-size); | ||
| 432 | margin-top: 1rem; | ||
| 433 | margin-bottom: 1rem; | ||
| 434 | } | ||
| 435 | |||
| 436 | /* 404 */ | ||
| 437 | |||
| 438 | .not-found { | ||
| 439 | display: flex; | ||
| 440 | align-items: center; | ||
| 441 | justify-content: center; | ||
| 442 | } | ||
| 443 | |||
| 444 | .not-found div { | ||
| 445 | text-align: center; | ||
| 446 | } | ||
| 447 | |||
| 448 | .not-found div h1 { | ||
| 449 | font-size: 6rem; | ||
| 450 | margin-bottom: 3rem; | ||
| 451 | } | ||
| 452 | |||
| 453 | /* breadcrumbs */ | ||
| 454 | |||
| 455 | .breadcrumbs { | ||
| 456 | /* font-family: "Monaspace"; */ | ||
| 457 | font-size: 0.8em; | ||
| 458 | margin-bottom: calc(-0.5 * var(--h1-margin-top)); | ||
| 459 | } | ||
| 460 | |||
| 461 | /* Comments */ | ||
| 462 | |||
| 463 | .giscus { | ||
| 464 | margin-top: 3rem; | ||
| 465 | } | ||
| 466 | |||
| 467 | /* Back to top */ | ||
| 468 | |||
| 469 | .back-to-top { | ||
| 470 | text-align: center; | ||
| 471 | font-family: "Monaspace"; | ||
| 472 | font-size: small; | ||
| 473 | margin-bottom: 2rem; | ||
| 474 | /* margin-top: -3rem; */ | ||
| 475 | } | ||
| 476 | |||
| 477 | /* Code in paragraphs */ | ||
| 478 | |||
| 479 | p code { | ||
| 480 | background-color: var(--code-background); | ||
| 481 | border-radius: 3px; | ||
| 482 | padding: 2px; | ||
| 483 | } | ||
| 484 | |||
| 485 | /* Tables */ | ||
| 486 | |||
| 487 | table { | ||
| 488 | border-collapse: collapse; | ||
| 489 | margin-top: var(--table-margin-top); | ||
| 490 | margin-bottom: var(--table-margin-bottom); | ||
| 491 | font-size: var(--p-font-size); | ||
| 492 | line-height: var(--p-line-height); | ||
| 493 | color: var(--content-primary); | ||
| 494 | } | ||
| 495 | |||
| 496 | th, | ||
| 497 | td { | ||
| 498 | padding: var(--table-cell-padding); | ||
| 499 | border: 1px solid var(--code-border); | ||
| 500 | text-align: left; | ||
| 501 | } | ||
| 502 | |||
| 503 | th { | ||
| 504 | background-color: var(--code-background); | ||
| 505 | font-weight: bold; | ||
| 506 | } | ||
| 507 | |||
| 508 | table code { | ||
| 509 | background-color: var(--code-background); | ||
| 510 | border-radius: 3px; | ||
| 511 | padding: 2px; | ||
| 512 | } | ||
| 513 | |||
| 514 | /* Quotes */ | ||
| 515 | |||
| 516 | blockquote { | ||
| 517 | margin: 1.5rem; | ||
| 518 | margin-left: 0; | ||
| 519 | margin-right: 0; | ||
| 520 | border-left: solid 2px; | ||
| 521 | color: var(--content-secondary); | ||
| 522 | } | ||
| 523 | |||
| 524 | blockquote p { | ||
| 525 | margin-left: 1rem; | ||
| 526 | margin-right: 1rem; | ||
| 527 | } | ||
| 528 | |||
