pico
created pr with
24.1
cmds
checkout latest patchset:
ssh pr.pico.sh print 24 | git am -3checkout any patchset in a patch request:
ssh pr.pico.sh print 24.[rev] | git am -3add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh pr add 24
Patchset
24.1
style(prose): update smol.css
Eric Bower
2024-09-03T02:14:52ZSemantic diff summary
0 added,
0 modified,
0 signature changed,
0 removed
across 0 analyzed files
(6 files skipped: unsupported file type)
+140
-158
pastes/public/smol.css
#
| ... | ... | @@ -53,15 +55,14 @@ | |
| 53 | 55 | --hover: #ff80bf; | |
| 54 | 56 | --grey: #414558; | |
| 55 | 57 | --grey-light: #6a708e; | |
| 56 | - | --shadow: #252525; | |
| 57 | 58 | } | |
| 58 | 59 | } | |
| 59 | 60 | ||
| 60 | 61 | html { | |
| 61 | 62 | background-color: var(--bg-color); | |
| 62 | 63 | color: var(--text-color); | |
| 63 | - | font-size: 18px; | |
| 64 | - | line-height: 1.5; | |
| 64 | + | font-size: 16px; | |
| 65 | + | line-height: var(--line-height); | |
| 65 | 66 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, | |
| 66 | 67 | Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, | |
| 67 | 68 | sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; |
| ... | ... | @@ -103,19 +103,19 @@ pre > code { | |
| 103 | 103 | background-color: inherit; | |
| 104 | 104 | padding: 0; | |
| 105 | 105 | border: none; | |
| 106 | + | border-radius: 0; | |
| 106 | 107 | } | |
| 107 | 108 | ||
| 108 | 109 | code { | |
| 109 | 110 | font-size: 90%; | |
| 110 | 111 | border-radius: 0.3rem; | |
| 111 | - | padding: 0.1rem 0.3rem; | |
| 112 | + | padding: 0.025rem 0.3rem; | |
| 112 | 113 | } | |
| 113 | 114 | ||
| 114 | 115 | pre { | |
| 115 | - | font-size: 14px; | |
| 116 | - | border-radius: 5px; | |
| 117 | - | padding: 1rem; | |
| 118 | - | margin: 1rem 0; | |
| 116 | + | font-size: 0.8rem; | |
| 117 | + | border-radius: 1px; | |
| 118 | + | padding: var(--line-height); | |
| 119 | 119 | overflow-x: auto; | |
| 120 | 120 | background-color: var(--pre) !important; | |
| 121 | 121 | } |
| ... | ... | @@ -124,6 +124,16 @@ small { | |
| 124 | 124 | font-size: 0.8rem; | |
| 125 | 125 | } | |
| 126 | 126 | ||
| 127 | + | details { | |
| 128 | + | border: 2px solid var(--grey-light); | |
| 129 | + | padding: calc(var(--line-height) - 2px) 1ch; | |
| 130 | + | margin-bottom: var(--line-height); | |
| 131 | + | } | |
| 132 | + | ||
| 133 | + | details[open] summary { | |
| 134 | + | margin-bottom: var(--line-height); | |
| 135 | + | } | |
| 136 | + | ||
| 127 | 137 | summary { | |
| 128 | 138 | display: list-item; | |
| 129 | 139 | cursor: pointer; |
| ... | ... | @@ -164,22 +172,12 @@ a { | |
| 164 | 172 | a:hover, | |
| 165 | 173 | a:visited:hover { | |
| 166 | 174 | text-decoration: underline; | |
| 167 | - | color: var(--hover); | |
| 168 | 175 | } | |
| 169 | 176 | ||
| 170 | 177 | a:visited { | |
| 171 | 178 | color: var(--visited); | |
| 172 | 179 | } | |
| 173 | 180 | ||
| 174 | - | a.link-grey { | |
| 175 | - | text-decoration: underline; | |
| 176 | - | color: var(--white); | |
| 177 | - | } | |
| 178 | - | ||
| 179 | - | a.link-grey:visited { | |
| 180 | - | color: var(--white); | |
| 181 | - | } | |
| 182 | - | ||
| 183 | 181 | section { | |
| 184 | 182 | margin-bottom: 1.4rem; | |
| 185 | 183 | } |
| ... | ... | @@ -203,8 +202,8 @@ article { | |
| 203 | 202 | blockquote { | |
| 204 | 203 | border-left: 5px solid var(--blockquote); | |
| 205 | 204 | background-color: var(--blockquote-bg); | |
| 206 | - | padding: 0.5rem 0.75rem; | |
| 207 | - | margin: 0.5rem 0; | |
| 205 | + | padding: var(--grid-height); | |
| 206 | + | margin: var(--line-height) 0; | |
| 208 | 207 | } | |
| 209 | 208 | ||
| 210 | 209 | blockquote > p { |
| ... | ... | @@ -217,16 +216,28 @@ blockquote code { | |
| 217 | 216 | ||
| 218 | 217 | ul, | |
| 219 | 218 | ol { | |
| 220 | - | padding: 0 0 0 1rem; | |
| 221 | - | list-style-position: outside; | |
| 219 | + | padding: 0 0 0 var(--line-height); | |
| 220 | + | list-style-position: inside; | |
| 221 | + | list-style-type: square; | |
| 222 | + | margin: var(--line-height) 0; | |
| 222 | 223 | } | |
| 223 | 224 | ||
| 224 | 225 | ul[style*="list-style-type: none;"] { | |
| 225 | 226 | padding: 0; | |
| 226 | 227 | } | |
| 227 | 228 | ||
| 229 | + | ol ul, ol ol, ul ol, ul ul { | |
| 230 | + | padding: 0 0 0 3ch; | |
| 231 | + | margin: 0; | |
| 232 | + | } | |
| 233 | + | ||
| 228 | 234 | li { | |
| 229 | - | margin: 0.5rem 0; | |
| 235 | + | margin: 0; | |
| 236 | + | padding: 0; | |
| 237 | + | } | |
| 238 | + | ||
| 239 | + | li::marker { | |
| 240 | + | line-height: 0; | |
| 230 | 241 | } | |
| 231 | 242 | ||
| 232 | 243 | li > pre { |
| ... | ... | @@ -272,21 +287,7 @@ figure { | |
| 272 | 287 | } | |
| 273 | 288 | ||
| 274 | 289 | .mono { | |
| 275 | - | font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, | |
| 276 | - | monospace; | |
| 277 | - | } | |
| 278 | - | ||
| 279 | - | .link-alt-adj, | |
| 280 | - | .link-alt-adj:visited, | |
| 281 | - | .link-alt-adj:visited:hover, | |
| 282 | - | .link-alt-adj:hover { | |
| 283 | - | color: var(--link-color); | |
| 284 | - | text-decoration: none; | |
| 285 | - | } | |
| 286 | - | ||
| 287 | - | .link-alt-adj:visited:hover, | |
| 288 | - | .link-alt-adj:hover { | |
| 289 | - | text-decoration: underline; | |
| 290 | + | font-family: monospace; | |
| 290 | 291 | } | |
| 291 | 292 | ||
| 292 | 293 | .link-alt-hover, |
| ... | ... | @@ -315,36 +316,28 @@ figure { | |
| 315 | 316 | text-decoration: underline; | |
| 316 | 317 | } | |
| 317 | 318 | ||
| 318 | - | .text-3xl { | |
| 319 | - | font-size: 2.5rem; | |
| 319 | + | .text-2xl code, .text-xl code, .text-lg code, .text-md code { | |
| 320 | + | text-transform: none; | |
| 320 | 321 | } | |
| 321 | 322 | ||
| 322 | 323 | .text-2xl { | |
| 323 | - | font-size: 1.9rem; | |
| 324 | - | line-height: 1.15; | |
| 325 | - | } | |
| 326 | - | ||
| 327 | - | .text-xl { | |
| 328 | - | font-size: 1.55rem; | |
| 329 | - | line-height: 1.15; | |
| 330 | - | } | |
| 331 | - | ||
| 332 | - | .text-lg { | |
| 333 | - | font-size: 1.35rem; | |
| 334 | - | line-height: 1.15; | |
| 324 | + | font-size: var(--line-height); | |
| 325 | + | font-weight: bold; | |
| 326 | + | line-height: var(--line-height); | |
| 327 | + | margin-bottom: var(--grid-height); | |
| 328 | + | text-transform: uppercase; | |
| 335 | 329 | } | |
| 336 | 330 | ||
| 337 | - | .text-md { | |
| 338 | - | font-size: 1.15rem; | |
| 339 | - | line-height: 1.15; | |
| 331 | + | .text-xl, .text-lg, .text-md { | |
| 332 | + | font-size: 1rem; | |
| 333 | + | font-weight: bold; | |
| 334 | + | line-height: var(--line-height); | |
| 335 | + | margin-bottom: var(--grid-height); | |
| 336 | + | text-transform: uppercase; | |
| 340 | 337 | } | |
| 341 | 338 | ||
| 342 | 339 | .text-sm { | |
| 343 | - | font-size: 0.875rem; | |
| 344 | - | } | |
| 345 | - | ||
| 346 | - | .text-xs { | |
| 347 | - | font-size: 0.775rem; | |
| 340 | + | font-size: 0.8rem; | |
| 348 | 341 | } | |
| 349 | 342 | ||
| 350 | 343 | .cursor-pointer { |
| ... | ... | @@ -372,19 +365,14 @@ figure { | |
| 372 | 365 | } | |
| 373 | 366 | ||
| 374 | 367 | .text-underline { | |
| 375 | - | border-bottom: 3px solid var(--text-color); | |
| 376 | - | padding-bottom: 3px; | |
| 368 | + | text-decoration: underline; | |
| 369 | + | text-decoration-thickness: 2px; | |
| 377 | 370 | } | |
| 378 | 371 | ||
| 379 | 372 | .text-hdr { | |
| 380 | 373 | color: var(--hover); | |
| 381 | 374 | } | |
| 382 | 375 | ||
| 383 | - | .text-underline-hdr { | |
| 384 | - | border-bottom: 3px solid var(--hover); | |
| 385 | - | padding-bottom: 3px; | |
| 386 | - | } | |
| 387 | - | ||
| 388 | 376 | .font-bold { | |
| 389 | 377 | font-weight: bold; | |
| 390 | 378 | } |
| ... | ... | @@ -429,40 +417,32 @@ figure { | |
| 429 | 417 | margin: 0; | |
| 430 | 418 | } | |
| 431 | 419 | ||
| 420 | + | .mt-0 { | |
| 421 | + | margin-top: 0; | |
| 422 | + | } | |
| 423 | + | ||
| 432 | 424 | .mt { | |
| 433 | - | margin-top: 0.5rem; | |
| 425 | + | margin-top: var(--grid-height); | |
| 434 | 426 | } | |
| 435 | 427 | ||
| 436 | 428 | .mt-2 { | |
| 437 | - | margin-top: 1rem; | |
| 429 | + | margin-top: var(--line-height); | |
| 438 | 430 | } | |
| 439 | 431 | ||
| 440 | 432 | .mt-4 { | |
| 441 | - | margin-top: 2rem; | |
| 442 | - | } | |
| 443 | - | ||
| 444 | - | .mt-8 { | |
| 445 | - | margin-top: 4rem; | |
| 433 | + | margin-top: calc(var(--line-height) * 2); | |
| 446 | 434 | } | |
| 447 | 435 | ||
| 448 | 436 | .mb { | |
| 449 | - | margin-bottom: 0.5rem; | |
| 437 | + | margin-bottom: var(--grid-height); | |
| 450 | 438 | } | |
| 451 | 439 | ||
| 452 | 440 | .mb-2 { | |
| 453 | - | margin-bottom: 1rem; | |
| 441 | + | margin-bottom: var(--line-height); | |
| 454 | 442 | } | |
| 455 | 443 | ||
| 456 | 444 | .mb-4 { | |
| 457 | - | margin-bottom: 2rem; | |
| 458 | - | } | |
| 459 | - | ||
| 460 | - | .mb-8 { | |
| 461 | - | margin-bottom: 4rem; | |
| 462 | - | } | |
| 463 | - | ||
| 464 | - | .mb-16 { | |
| 465 | - | margin-bottom: 8rem; | |
| 445 | + | margin-bottom: calc(var(--line-height) * 2); | |
| 466 | 446 | } | |
| 467 | 447 | ||
| 468 | 448 | .mr { |
| ... | ... | @@ -482,23 +462,18 @@ figure { | |
| 482 | 462 | } | |
| 483 | 463 | ||
| 484 | 464 | .my { | |
| 485 | - | margin-top: 0.5rem; | |
| 486 | - | margin-bottom: 0.5rem; | |
| 465 | + | margin-top: var(--grid-height); | |
| 466 | + | margin-bottom: var(--grid-height); | |
| 487 | 467 | } | |
| 488 | 468 | ||
| 489 | 469 | .my-2 { | |
| 490 | - | margin-top: 1rem; | |
| 491 | - | margin-bottom: 1rem; | |
| 470 | + | margin-top: var(--line-height); | |
| 471 | + | margin-bottom: var(--line-height); | |
| 492 | 472 | } | |
| 493 | 473 | ||
| 494 | 474 | .my-4 { | |
| 495 | - | margin-top: 2rem; | |
| 496 | - | margin-bottom: 2rem; | |
| 497 | - | } | |
| 498 | - | ||
| 499 | - | .my-8 { | |
| 500 | - | margin-top: 4rem; | |
| 501 | - | margin-bottom: 4rem; | |
| 475 | + | margin-top: calc(var(--line-height) * 2); | |
| 476 | + | margin-bottom: calc(var(--line-height) * 2); | |
| 502 | 477 | } | |
| 503 | 478 | ||
| 504 | 479 | .mx { |
| ... | ... | @@ -534,23 +509,18 @@ figure { | |
| 534 | 509 | } | |
| 535 | 510 | ||
| 536 | 511 | .py { | |
| 537 | - | padding-top: 0.5rem; | |
| 538 | - | padding-bottom: 0.5rem; | |
| 512 | + | padding-top: var(--grid-height); | |
| 513 | + | padding-bottom: var(--grid-height); | |
| 539 | 514 | } | |
| 540 | 515 | ||
| 541 | 516 | .py-2 { | |
| 542 | - | padding-top: 1rem; | |
| 543 | - | padding-bottom: 1rem; | |
| 517 | + | padding-top: var(--line-height); | |
| 518 | + | padding-bottom: var(--line-height); | |
| 544 | 519 | } | |
| 545 | 520 | ||
| 546 | 521 | .py-4 { | |
| 547 | - | padding-top: 2rem; | |
| 548 | - | padding-bottom: 2rem; | |
| 549 | - | } | |
| 550 | - | ||
| 551 | - | .py-8 { | |
| 552 | - | padding-top: 4rem; | |
| 553 | - | padding-bottom: 4rem; | |
| 522 | + | padding-top: calc(var(--line-height) * 2); | |
| 523 | + | padding-bottom: calc(var(--line-height) * 2); | |
| 554 | 524 | } | |
| 555 | 525 | ||
| 556 | 526 | .justify-between { |
| ... | ... | @@ -562,28 +532,28 @@ figure { | |
| 562 | 532 | } | |
| 563 | 533 | ||
| 564 | 534 | .gap { | |
| 565 | - | gap: 0.5rem; | |
| 535 | + | gap: var(--grid-height); | |
| 566 | 536 | } | |
| 567 | 537 | ||
| 568 | 538 | .gap-2 { | |
| 569 | - | gap: 1rem; | |
| 539 | + | gap: var(--line-height); | |
| 570 | 540 | } | |
| 571 | 541 | ||
| 572 | 542 | .group { | |
| 573 | 543 | display: flex; | |
| 574 | 544 | flex-direction: column; | |
| 575 | - | gap: 0.5rem; | |
| 545 | + | gap: var(--grid-height); | |
| 576 | 546 | } | |
| 577 | 547 | ||
| 578 | 548 | .group-2 { | |
| 579 | 549 | display: flex; | |
| 580 | 550 | flex-direction: column; | |
| 581 | - | gap: 1rem; | |
| 551 | + | gap: var(--line-height); | |
| 582 | 552 | } | |
| 583 | 553 | ||
| 584 | 554 | .group-h { | |
| 585 | 555 | display: flex; | |
| 586 | - | gap: 0.5rem; | |
| 556 | + | gap: var(--grid-height); | |
| 587 | 557 | align-items: center; | |
| 588 | 558 | } | |
| 589 | 559 |
| ... | ... | @@ -634,26 +605,24 @@ figure { | |
| 634 | 605 | text-decoration: none; | |
| 635 | 606 | } | |
| 636 | 607 | ||
| 637 | - | .md h1 { | |
| 638 | - | font-size: 1.6rem; | |
| 639 | - | line-height: 1.15; | |
| 640 | - | border-bottom: 2px solid var(--grey); | |
| 641 | - | padding-bottom: 0.7rem; | |
| 642 | - | } | |
| 643 | - | ||
| 644 | - | .md h2 { | |
| 645 | - | font-size: 1.3rem; | |
| 646 | - | line-height: 1.15; | |
| 647 | - | color: var(--white-dark); | |
| 608 | + | h1 code, h2 code, h3 code, h4 code { | |
| 609 | + | text-transform: none; | |
| 648 | 610 | } | |
| 649 | 611 | ||
| 650 | - | .md h3 { | |
| 651 | - | font-size: 1.2rem; | |
| 652 | - | color: var(--white-dark); | |
| 612 | + | .md h1 { | |
| 613 | + | font-size: 1rem; | |
| 614 | + | line-height: var(--line-height); | |
| 615 | + | margin-top: calc(var(--line-height) * 2); | |
| 616 | + | margin-bottom: var(--grid-height); | |
| 617 | + | text-transform: uppercase; | |
| 653 | 618 | } | |
| 654 | 619 | ||
| 655 | - | .md h4 { | |
| 620 | + | .md h2, .md h3, .md h4 { | |
| 656 | 621 | font-size: 1rem; | |
| 622 | + | line-height: var(--line-height); | |
| 623 | + | margin-top: calc(var(--line-height) * 2); | |
| 624 | + | margin-bottom: var(--line-height); | |
| 625 | + | text-transform: uppercase; | |
| 657 | 626 | color: var(--white-dark); | |
| 658 | 627 | } | |
| 659 | 628 |
| ... | ... | @@ -669,8 +638,8 @@ figure { | |
| 669 | 638 | border: 3px solid #FF79C6; | |
| 670 | 639 | padding: 8px 10px 10px 10px; | |
| 671 | 640 | border-radius: 10px; | |
| 672 | - | box-shadow: 0px 5px 0px 0px var(--shadow); | |
| 673 | 641 | background-size: 100%; | |
| 642 | + | margin: 0: | |
| 674 | 643 | -webkit-background-clip: text; | |
| 675 | 644 | -moz-background-clip: text; | |
| 676 | 645 | -webkit-text-fill-color: transparent; |
| ... | ... | @@ -689,47 +658,40 @@ figure { | |
| 689 | 658 | .btn-link:visited { | |
| 690 | 659 | border: 2px solid var(--link-color); | |
| 691 | 660 | color: var(--link-color); | |
| 692 | - | padding: 0.4rem 1rem; | |
| 661 | + | padding: var(--grid-height) 1rem; | |
| 693 | 662 | text-decoration: none; | |
| 694 | 663 | font-weight: bold; | |
| 695 | 664 | display: inline-block; | |
| 696 | 665 | } | |
| 697 | 666 | ||
| 698 | - | .btn-link:visited:hover, | |
| 699 | - | .btn-link:hover { | |
| 700 | - | border: 2px solid var(--hover); | |
| 701 | - | } | |
| 702 | - | ||
| 703 | - | .btn-link-alt, | |
| 704 | - | .btn-link-alt:visited { | |
| 705 | - | border: 2px solid var(--white); | |
| 706 | - | color: var(--white); | |
| 707 | - | } | |
| 708 | - | ||
| 709 | 667 | .box { | |
| 710 | 668 | border: 2px solid var(--grey-light); | |
| 711 | - | padding: 0.5rem 0.75rem; | |
| 669 | + | padding: var(--line-height); | |
| 712 | 670 | } | |
| 713 | 671 | ||
| 714 | 672 | .box-sm { | |
| 715 | 673 | border: 2px solid var(--grey-light); | |
| 716 | - | padding: 0.15rem 0.35rem; | |
| 674 | + | padding: var(--grid-height); | |
| 717 | 675 | } | |
| 718 | 676 | ||
| 719 | 677 | .box-alert { | |
| 720 | 678 | border: 2px solid var(--hover); | |
| 721 | - | padding: 0.5rem 0.75rem; | |
| 679 | + | padding: var(--line-height); | |
| 722 | 680 | } | |
| 723 | 681 | ||
| 724 | 682 | .box-sm-alert { | |
| 725 | 683 | border: 2px solid var(--hover); | |
| 726 | - | padding: 0.15rem 0.35rem; | |
| 684 | + | padding: var(--grid-height); | |
| 727 | 685 | } | |
| 728 | 686 | ||
| 729 | 687 | .list-none { | |
| 730 | 688 | list-style-type: none; | |
| 731 | 689 | } | |
| 732 | 690 | ||
| 691 | + | .list-square { | |
| 692 | + | list-style-type: square; | |
| 693 | + | } | |
| 694 | + | ||
| 733 | 695 | .list-disc { | |
| 734 | 696 | list-style-type: disc; | |
| 735 | 697 | } |
| ... | ... | @@ -766,3 +728,23 @@ figure { | |
| 766 | 728 | flex-direction: column; | |
| 767 | 729 | } | |
| 768 | 730 | } | |
| 731 | + | ||
| 732 | + | #debug { | |
| 733 | + | position: relative; | |
| 734 | + | } | |
| 735 | + | ||
| 736 | + | #debug .debug-grid { | |
| 737 | + | width: 100%; | |
| 738 | + | height: 100%; | |
| 739 | + | position: absolute; | |
| 740 | + | top: 0; | |
| 741 | + | left: 0; | |
| 742 | + | right: 0; | |
| 743 | + | bottom: 0; | |
| 744 | + | z-index: -1; | |
| 745 | + | background-image: | |
| 746 | + | repeating-linear-gradient(var(--code) 0 1px, transparent 1px 100%), | |
| 747 | + | repeating-linear-gradient(90deg, var(--code) 0 1px, transparent 1px 100%); | |
| 748 | + | background-size: 1ch var(--grid-height); | |
| 749 | + | margin: 0; | |
| 750 | + | } |
+3
-3
prose/html/blog-aside.partial.tmpl
#
| ... | ... | @@ -25,12 +25,12 @@ | |
| 25 | 25 | <a href={{.URL}}>clear filters</a> | |
| 26 | 26 | {{end}} | |
| 27 | 27 | ||
| 28 | - | <div class="posts group mt"> | |
| 28 | + | <div class="posts group mt-2"> | |
| 29 | 29 | {{range .Posts}} | |
| 30 | 30 | <article> | |
| 31 | 31 | <div class="flex items-center"> | |
| 32 | 32 | <time datetime="{{.PublishAtISO}}" class="text-sm post-date">{{.PublishAt}}</time> | |
| 33 | - | <span class="text-md flex-1"><a href="{{.URL}}">{{.Title}}</a></span> | |
| 33 | + | <span class="text-md flex-1 m-0"><a href="{{.URL}}">{{.Title}}</a></span> | |
| 34 | 34 | </div> | |
| 35 | 35 | </article> | |
| 36 | 36 | {{end}} |
+4
-4
prose/html/blog-default.partial.tmpl
#
| ... | ... | @@ -1,7 +1,7 @@ | |
| 1 | 1 | {{define "blog-default"}} | |
| 2 | 2 | <header class="text-center"> | |
| 3 | - | <h1 class="text-2xl font-bold">{{.Header.Title}}</h1> | |
| 4 | - | {{if .Header.Bio}}<p class="text-lg">{{.Header.Bio}}</p>{{end}} | |
| 3 | + | <h1 class="text-2xl font-bold mt-2">{{.Header.Title}}</h1> | |
| 4 | + | {{if .Header.Bio}}<span>{{.Header.Bio}}</span>{{end}} | |
| 5 | 5 | <nav> | |
| 6 | 6 | {{range .Header.Nav}} | |
| 7 | 7 | <a href="{{.URL}}" class="text-lg">{{.Text}}</a> | |
| ... | ... | @@ -28,7 +28,7 @@ | |
| 28 | 28 | <article> | |
| 29 | 29 | <div class="flex items-center"> | |
| 30 | 30 | <time datetime="{{.PublishAtISO}}" class="text-sm post-date">{{.PublishAt}}</time> | |
| 31 | - | <span class="text-md flex-1"><a href="{{.URL}}">{{.Title}}</a></span> | |
| 31 | + | <span class="text-md flex-1 m-0"><a href="{{.URL}}">{{.Title}}</a></span> | |
| 32 | 32 | </div> | |
| 33 | 33 | </article> | |
| 34 | 34 | {{end}} |
+4
-2
prose/html/post.page.tmpl
#
| ... | ... | @@ -53,13 +53,15 @@ | |
| 53 | 53 | {{if .Unlisted}} <code>unlisted</code>{{end}} | |
| 54 | 54 | <time datetime="{{.PublishAtISO}}">{{.PublishAt}}</time> | |
| 55 | 55 | <span>·<span> | |
| 56 | - | <a href="{{.BlogURL}}">{{.BlogName}}</a></p> | |
| 57 | - | {{if .Description}}<blockquote class="font-italic">{{.Description}}</blockquote>{{end}} | |
| 56 | + | <a href="{{.BlogURL}}">{{.BlogName}}</a> | |
| 57 | + | </p> | |
| 58 | + | {{if .Description}}<blockquote>{{.Description}}</blockquote>{{end}} | |
| 58 | 59 | <div class="tags"> | |
| 59 | 60 | {{range .Tags}} | |
| 60 | 61 | <a class="tag" href="{{$.BlogURL}}?tag={{.}}">#{{.}}</a> | |
| 61 | 62 | {{end}} | |
| 62 | 63 | </div> | |
| 64 | + | <hr /> | |
| 63 | 65 | </header> | |
| 64 | 66 | <main> | |
| 65 | 67 | {{if .Diff}} |
+4
-0
prose/public/main.css
#
+140
-158
prose/public/smol.css
#
| ... | ... | @@ -53,15 +55,14 @@ | |
| 53 | 55 | --hover: #ff80bf; | |
| 54 | 56 | --grey: #414558; | |
| 55 | 57 | --grey-light: #6a708e; | |
| 56 | - | --shadow: #252525; | |
| 57 | 58 | } | |
| 58 | 59 | } | |
| 59 | 60 | ||
| 60 | 61 | html { | |
| 61 | 62 | background-color: var(--bg-color); | |
| 62 | 63 | color: var(--text-color); | |
| 63 | - | font-size: 18px; | |
| 64 | - | line-height: 1.5; | |
| 64 | + | font-size: 16px; | |
| 65 | + | line-height: var(--line-height); | |
| 65 | 66 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, | |
| 66 | 67 | Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, | |
| 67 | 68 | sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; |
| ... | ... | @@ -103,19 +103,19 @@ pre > code { | |
| 103 | 103 | background-color: inherit; | |
| 104 | 104 | padding: 0; | |
| 105 | 105 | border: none; | |
| 106 | + | border-radius: 0; | |
| 106 | 107 | } | |
| 107 | 108 | ||
| 108 | 109 | code { | |
| 109 | 110 | font-size: 90%; | |
| 110 | 111 | border-radius: 0.3rem; | |
| 111 | - | padding: 0.1rem 0.3rem; | |
| 112 | + | padding: 0.025rem 0.3rem; | |
| 112 | 113 | } | |
| 113 | 114 | ||
| 114 | 115 | pre { | |
| 115 | - | font-size: 14px; | |
| 116 | - | border-radius: 5px; | |
| 117 | - | padding: 1rem; | |
| 118 | - | margin: 1rem 0; | |
| 116 | + | font-size: 0.8rem; | |
| 117 | + | border-radius: 1px; | |
| 118 | + | padding: var(--line-height); | |
| 119 | 119 | overflow-x: auto; | |
| 120 | 120 | background-color: var(--pre) !important; | |
| 121 | 121 | } |
| ... | ... | @@ -124,6 +124,16 @@ small { | |
| 124 | 124 | font-size: 0.8rem; | |
| 125 | 125 | } | |
| 126 | 126 | ||
| 127 | + | details { | |
| 128 | + | border: 2px solid var(--grey-light); | |
| 129 | + | padding: calc(var(--line-height) - 2px) 1ch; | |
| 130 | + | margin-bottom: var(--line-height); | |
| 131 | + | } | |
| 132 | + | ||
| 133 | + | details[open] summary { | |
| 134 | + | margin-bottom: var(--line-height); | |
| 135 | + | } | |
| 136 | + | ||
| 127 | 137 | summary { | |
| 128 | 138 | display: list-item; | |
| 129 | 139 | cursor: pointer; |
| ... | ... | @@ -164,22 +172,12 @@ a { | |
| 164 | 172 | a:hover, | |
| 165 | 173 | a:visited:hover { | |
| 166 | 174 | text-decoration: underline; | |
| 167 | - | color: var(--hover); | |
| 168 | 175 | } | |
| 169 | 176 | ||
| 170 | 177 | a:visited { | |
| 171 | 178 | color: var(--visited); | |
| 172 | 179 | } | |
| 173 | 180 | ||
| 174 | - | a.link-grey { | |
| 175 | - | text-decoration: underline; | |
| 176 | - | color: var(--white); | |
| 177 | - | } | |
| 178 | - | ||
| 179 | - | a.link-grey:visited { | |
| 180 | - | color: var(--white); | |
| 181 | - | } | |
| 182 | - | ||
| 183 | 181 | section { | |
| 184 | 182 | margin-bottom: 1.4rem; | |
| 185 | 183 | } |
| ... | ... | @@ -203,8 +202,8 @@ article { | |
| 203 | 202 | blockquote { | |
| 204 | 203 | border-left: 5px solid var(--blockquote); | |
| 205 | 204 | background-color: var(--blockquote-bg); | |
| 206 | - | padding: 0.5rem 0.75rem; | |
| 207 | - | margin: 0.5rem 0; | |
| 205 | + | padding: var(--grid-height); | |
| 206 | + | margin: var(--line-height) 0; | |
| 208 | 207 | } | |
| 209 | 208 | ||
| 210 | 209 | blockquote > p { |
| ... | ... | @@ -217,16 +216,28 @@ blockquote code { | |
| 217 | 216 | ||
| 218 | 217 | ul, | |
| 219 | 218 | ol { | |
| 220 | - | padding: 0 0 0 1rem; | |
| 221 | - | list-style-position: outside; | |
| 219 | + | padding: 0 0 0 var(--line-height); | |
| 220 | + | list-style-position: inside; | |
| 221 | + | list-style-type: square; | |
| 222 | + | margin: var(--line-height) 0; | |
| 222 | 223 | } | |
| 223 | 224 | ||
| 224 | 225 | ul[style*="list-style-type: none;"] { | |
| 225 | 226 | padding: 0; | |
| 226 | 227 | } | |
| 227 | 228 | ||
| 229 | + | ol ul, ol ol, ul ol, ul ul { | |
| 230 | + | padding: 0 0 0 3ch; | |
| 231 | + | margin: 0; | |
| 232 | + | } | |
| 233 | + | ||
| 228 | 234 | li { | |
| 229 | - | margin: 0.5rem 0; | |
| 235 | + | margin: 0; | |
| 236 | + | padding: 0; | |
| 237 | + | } | |
| 238 | + | ||
| 239 | + | li::marker { | |
| 240 | + | line-height: 0; | |
| 230 | 241 | } | |
| 231 | 242 | ||
| 232 | 243 | li > pre { |
| ... | ... | @@ -272,21 +287,7 @@ figure { | |
| 272 | 287 | } | |
| 273 | 288 | ||
| 274 | 289 | .mono { | |
| 275 | - | font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, | |
| 276 | - | monospace; | |
| 277 | - | } | |
| 278 | - | ||
| 279 | - | .link-alt-adj, | |
| 280 | - | .link-alt-adj:visited, | |
| 281 | - | .link-alt-adj:visited:hover, | |
| 282 | - | .link-alt-adj:hover { | |
| 283 | - | color: var(--link-color); | |
| 284 | - | text-decoration: none; | |
| 285 | - | } | |
| 286 | - | ||
| 287 | - | .link-alt-adj:visited:hover, | |
| 288 | - | .link-alt-adj:hover { | |
| 289 | - | text-decoration: underline; | |
| 290 | + | font-family: monospace; | |
| 290 | 291 | } | |
| 291 | 292 | ||
| 292 | 293 | .link-alt-hover, |
| ... | ... | @@ -315,36 +316,28 @@ figure { | |
| 315 | 316 | text-decoration: underline; | |
| 316 | 317 | } | |
| 317 | 318 | ||
| 318 | - | .text-3xl { | |
| 319 | - | font-size: 2.5rem; | |
| 319 | + | .text-2xl code, .text-xl code, .text-lg code, .text-md code { | |
| 320 | + | text-transform: none; | |
| 320 | 321 | } | |
| 321 | 322 | ||
| 322 | 323 | .text-2xl { | |
| 323 | - | font-size: 1.9rem; | |
| 324 | - | line-height: 1.15; | |
| 325 | - | } | |
| 326 | - | ||
| 327 | - | .text-xl { | |
| 328 | - | font-size: 1.55rem; | |
| 329 | - | line-height: 1.15; | |
| 330 | - | } | |
| 331 | - | ||
| 332 | - | .text-lg { | |
| 333 | - | font-size: 1.35rem; | |
| 334 | - | line-height: 1.15; | |
| 324 | + | font-size: var(--line-height); | |
| 325 | + | font-weight: bold; | |
| 326 | + | line-height: var(--line-height); | |
| 327 | + | margin-bottom: var(--grid-height); | |
| 328 | + | text-transform: uppercase; | |
| 335 | 329 | } | |
| 336 | 330 | ||
| 337 | - | .text-md { | |
| 338 | - | font-size: 1.15rem; | |
| 339 | - | line-height: 1.15; | |
| 331 | + | .text-xl, .text-lg, .text-md { | |
| 332 | + | font-size: 1rem; | |
| 333 | + | font-weight: bold; | |
| 334 | + | line-height: var(--line-height); | |
| 335 | + | margin-bottom: var(--grid-height); | |
| 336 | + | text-transform: uppercase; | |
| 340 | 337 | } | |
| 341 | 338 | ||
| 342 | 339 | .text-sm { | |
| 343 | - | font-size: 0.875rem; | |
| 344 | - | } | |
| 345 | - | ||
| 346 | - | .text-xs { | |
| 347 | - | font-size: 0.775rem; | |
| 340 | + | font-size: 0.8rem; | |
| 348 | 341 | } | |
| 349 | 342 | ||
| 350 | 343 | .cursor-pointer { |
| ... | ... | @@ -372,19 +365,14 @@ figure { | |
| 372 | 365 | } | |
| 373 | 366 | ||
| 374 | 367 | .text-underline { | |
| 375 | - | border-bottom: 3px solid var(--text-color); | |
| 376 | - | padding-bottom: 3px; | |
| 368 | + | text-decoration: underline; | |
| 369 | + | text-decoration-thickness: 2px; | |
| 377 | 370 | } | |
| 378 | 371 | ||
| 379 | 372 | .text-hdr { | |
| 380 | 373 | color: var(--hover); | |
| 381 | 374 | } | |
| 382 | 375 | ||
| 383 | - | .text-underline-hdr { | |
| 384 | - | border-bottom: 3px solid var(--hover); | |
| 385 | - | padding-bottom: 3px; | |
| 386 | - | } | |
| 387 | - | ||
| 388 | 376 | .font-bold { | |
| 389 | 377 | font-weight: bold; | |
| 390 | 378 | } |
| ... | ... | @@ -429,40 +417,32 @@ figure { | |
| 429 | 417 | margin: 0; | |
| 430 | 418 | } | |
| 431 | 419 | ||
| 420 | + | .mt-0 { | |
| 421 | + | margin-top: 0; | |
| 422 | + | } | |
| 423 | + | ||
| 432 | 424 | .mt { | |
| 433 | - | margin-top: 0.5rem; | |
| 425 | + | margin-top: var(--grid-height); | |
| 434 | 426 | } | |
| 435 | 427 | ||
| 436 | 428 | .mt-2 { | |
| 437 | - | margin-top: 1rem; | |
| 429 | + | margin-top: var(--line-height); | |
| 438 | 430 | } | |
| 439 | 431 | ||
| 440 | 432 | .mt-4 { | |
| 441 | - | margin-top: 2rem; | |
| 442 | - | } | |
| 443 | - | ||
| 444 | - | .mt-8 { | |
| 445 | - | margin-top: 4rem; | |
| 433 | + | margin-top: calc(var(--line-height) * 2); | |
| 446 | 434 | } | |
| 447 | 435 | ||
| 448 | 436 | .mb { | |
| 449 | - | margin-bottom: 0.5rem; | |
| 437 | + | margin-bottom: var(--grid-height); | |
| 450 | 438 | } | |
| 451 | 439 | ||
| 452 | 440 | .mb-2 { | |
| 453 | - | margin-bottom: 1rem; | |
| 441 | + | margin-bottom: var(--line-height); | |
| 454 | 442 | } | |
| 455 | 443 | ||
| 456 | 444 | .mb-4 { | |
| 457 | - | margin-bottom: 2rem; | |
| 458 | - | } | |
| 459 | - | ||
| 460 | - | .mb-8 { | |
| 461 | - | margin-bottom: 4rem; | |
| 462 | - | } | |
| 463 | - | ||
| 464 | - | .mb-16 { | |
| 465 | - | margin-bottom: 8rem; | |
| 445 | + | margin-bottom: calc(var(--line-height) * 2); | |
| 466 | 446 | } | |
| 467 | 447 | ||
| 468 | 448 | .mr { |
| ... | ... | @@ -482,23 +462,18 @@ figure { | |
| 482 | 462 | } | |
| 483 | 463 | ||
| 484 | 464 | .my { | |
| 485 | - | margin-top: 0.5rem; | |
| 486 | - | margin-bottom: 0.5rem; | |
| 465 | + | margin-top: var(--grid-height); | |
| 466 | + | margin-bottom: var(--grid-height); | |
| 487 | 467 | } | |
| 488 | 468 | ||
| 489 | 469 | .my-2 { | |
| 490 | - | margin-top: 1rem; | |
| 491 | - | margin-bottom: 1rem; | |
| 470 | + | margin-top: var(--line-height); | |
| 471 | + | margin-bottom: var(--line-height); | |
| 492 | 472 | } | |
| 493 | 473 | ||
| 494 | 474 | .my-4 { | |
| 495 | - | margin-top: 2rem; | |
| 496 | - | margin-bottom: 2rem; | |
| 497 | - | } | |
| 498 | - | ||
| 499 | - | .my-8 { | |
| 500 | - | margin-top: 4rem; | |
| 501 | - | margin-bottom: 4rem; | |
| 475 | + | margin-top: calc(var(--line-height) * 2); | |
| 476 | + | margin-bottom: calc(var(--line-height) * 2); | |
| 502 | 477 | } | |
| 503 | 478 | ||
| 504 | 479 | .mx { |
| ... | ... | @@ -534,23 +509,18 @@ figure { | |
| 534 | 509 | } | |
| 535 | 510 | ||
| 536 | 511 | .py { | |
| 537 | - | padding-top: 0.5rem; | |
| 538 | - | padding-bottom: 0.5rem; | |
| 512 | + | padding-top: var(--grid-height); | |
| 513 | + | padding-bottom: var(--grid-height); | |
| 539 | 514 | } | |
| 540 | 515 | ||
| 541 | 516 | .py-2 { | |
| 542 | - | padding-top: 1rem; | |
| 543 | - | padding-bottom: 1rem; | |
| 517 | + | padding-top: var(--line-height); | |
| 518 | + | padding-bottom: var(--line-height); | |
| 544 | 519 | } | |
| 545 | 520 | ||
| 546 | 521 | .py-4 { | |
| 547 | - | padding-top: 2rem; | |
| 548 | - | padding-bottom: 2rem; | |
| 549 | - | } | |
| 550 | - | ||
| 551 | - | .py-8 { | |
| 552 | - | padding-top: 4rem; | |
| 553 | - | padding-bottom: 4rem; | |
| 522 | + | padding-top: calc(var(--line-height) * 2); | |
| 523 | + | padding-bottom: calc(var(--line-height) * 2); | |
| 554 | 524 | } | |
| 555 | 525 | ||
| 556 | 526 | .justify-between { |
| ... | ... | @@ -562,28 +532,28 @@ figure { | |
| 562 | 532 | } | |
| 563 | 533 | ||
| 564 | 534 | .gap { | |
| 565 | - | gap: 0.5rem; | |
| 535 | + | gap: var(--grid-height); | |
| 566 | 536 | } | |
| 567 | 537 | ||
| 568 | 538 | .gap-2 { | |
| 569 | - | gap: 1rem; | |
| 539 | + | gap: var(--line-height); | |
| 570 | 540 | } | |
| 571 | 541 | ||
| 572 | 542 | .group { | |
| 573 | 543 | display: flex; | |
| 574 | 544 | flex-direction: column; | |
| 575 | - | gap: 0.5rem; | |
| 545 | + | gap: var(--grid-height); | |
| 576 | 546 | } | |
| 577 | 547 | ||
| 578 | 548 | .group-2 { | |
| 579 | 549 | display: flex; | |
| 580 | 550 | flex-direction: column; | |
| 581 | - | gap: 1rem; | |
| 551 | + | gap: var(--line-height); | |
| 582 | 552 | } | |
| 583 | 553 | ||
| 584 | 554 | .group-h { | |
| 585 | 555 | display: flex; | |
| 586 | - | gap: 0.5rem; | |
| 556 | + | gap: var(--grid-height); | |
| 587 | 557 | align-items: center; | |
| 588 | 558 | } | |
| 589 | 559 |
| ... | ... | @@ -634,26 +605,24 @@ figure { | |
| 634 | 605 | text-decoration: none; | |
| 635 | 606 | } | |
| 636 | 607 | ||
| 637 | - | .md h1 { | |
| 638 | - | font-size: 1.6rem; | |
| 639 | - | line-height: 1.15; | |
| 640 | - | border-bottom: 2px solid var(--grey); | |
| 641 | - | padding-bottom: 0.7rem; | |
| 642 | - | } | |
| 643 | - | ||
| 644 | - | .md h2 { | |
| 645 | - | font-size: 1.3rem; | |
| 646 | - | line-height: 1.15; | |
| 647 | - | color: var(--white-dark); | |
| 608 | + | h1 code, h2 code, h3 code, h4 code { | |
| 609 | + | text-transform: none; | |
| 648 | 610 | } | |
| 649 | 611 | ||
| 650 | - | .md h3 { | |
| 651 | - | font-size: 1.2rem; | |
| 652 | - | color: var(--white-dark); | |
| 612 | + | .md h1 { | |
| 613 | + | font-size: 1rem; | |
| 614 | + | line-height: var(--line-height); | |
| 615 | + | margin-top: calc(var(--line-height) * 2); | |
| 616 | + | margin-bottom: var(--grid-height); | |
| 617 | + | text-transform: uppercase; | |
| 653 | 618 | } | |
| 654 | 619 | ||
| 655 | - | .md h4 { | |
| 620 | + | .md h2, .md h3, .md h4 { | |
| 656 | 621 | font-size: 1rem; | |
| 622 | + | line-height: var(--line-height); | |
| 623 | + | margin-top: calc(var(--line-height) * 2); | |
| 624 | + | margin-bottom: var(--line-height); | |
| 625 | + | text-transform: uppercase; | |
| 657 | 626 | color: var(--white-dark); | |
| 658 | 627 | } | |
| 659 | 628 |
| ... | ... | @@ -669,8 +638,8 @@ figure { | |
| 669 | 638 | border: 3px solid #FF79C6; | |
| 670 | 639 | padding: 8px 10px 10px 10px; | |
| 671 | 640 | border-radius: 10px; | |
| 672 | - | box-shadow: 0px 5px 0px 0px var(--shadow); | |
| 673 | 641 | background-size: 100%; | |
| 642 | + | margin: 0: | |
| 674 | 643 | -webkit-background-clip: text; | |
| 675 | 644 | -moz-background-clip: text; | |
| 676 | 645 | -webkit-text-fill-color: transparent; |
| ... | ... | @@ -689,47 +658,40 @@ figure { | |
| 689 | 658 | .btn-link:visited { | |
| 690 | 659 | border: 2px solid var(--link-color); | |
| 691 | 660 | color: var(--link-color); | |
| 692 | - | padding: 0.4rem 1rem; | |
| 661 | + | padding: var(--grid-height) 1rem; | |
| 693 | 662 | text-decoration: none; | |
| 694 | 663 | font-weight: bold; | |
| 695 | 664 | display: inline-block; | |
| 696 | 665 | } | |
| 697 | 666 | ||
| 698 | - | .btn-link:visited:hover, | |
| 699 | - | .btn-link:hover { | |
| 700 | - | border: 2px solid var(--hover); | |
| 701 | - | } | |
| 702 | - | ||
| 703 | - | .btn-link-alt, | |
| 704 | - | .btn-link-alt:visited { | |
| 705 | - | border: 2px solid var(--white); | |
| 706 | - | color: var(--white); | |
| 707 | - | } | |
| 708 | - | ||
| 709 | 667 | .box { | |
| 710 | 668 | border: 2px solid var(--grey-light); | |
| 711 | - | padding: 0.5rem 0.75rem; | |
| 669 | + | padding: var(--line-height); | |
| 712 | 670 | } | |
| 713 | 671 | ||
| 714 | 672 | .box-sm { | |
| 715 | 673 | border: 2px solid var(--grey-light); | |
| 716 | - | padding: 0.15rem 0.35rem; | |
| 674 | + | padding: var(--grid-height); | |
| 717 | 675 | } | |
| 718 | 676 | ||
| 719 | 677 | .box-alert { | |
| 720 | 678 | border: 2px solid var(--hover); | |
| 721 | - | padding: 0.5rem 0.75rem; | |
| 679 | + | padding: var(--line-height); | |
| 722 | 680 | } | |
| 723 | 681 | ||
| 724 | 682 | .box-sm-alert { | |
| 725 | 683 | border: 2px solid var(--hover); | |
| 726 | - | padding: 0.15rem 0.35rem; | |
| 684 | + | padding: var(--grid-height); | |
| 727 | 685 | } | |
| 728 | 686 | ||
| 729 | 687 | .list-none { | |
| 730 | 688 | list-style-type: none; | |
| 731 | 689 | } | |
| 732 | 690 | ||
| 691 | + | .list-square { | |
| 692 | + | list-style-type: square; | |
| 693 | + | } | |
| 694 | + | ||
| 733 | 695 | .list-disc { | |
| 734 | 696 | list-style-type: disc; | |
| 735 | 697 | } |
| ... | ... | @@ -766,3 +728,23 @@ figure { | |
| 766 | 728 | flex-direction: column; | |
| 767 | 729 | } | |
| 768 | 730 | } | |
| 731 | + | ||
| 732 | + | #debug { | |
| 733 | + | position: relative; | |
| 734 | + | } | |
| 735 | + | ||
| 736 | + | #debug .debug-grid { | |
| 737 | + | width: 100%; | |
| 738 | + | height: 100%; | |
| 739 | + | position: absolute; | |
| 740 | + | top: 0; | |
| 741 | + | left: 0; | |
| 742 | + | right: 0; | |
| 743 | + | bottom: 0; | |
| 744 | + | z-index: -1; | |
| 745 | + | background-image: | |
| 746 | + | repeating-linear-gradient(var(--code) 0 1px, transparent 1px 100%), | |
| 747 | + | repeating-linear-gradient(90deg, var(--code) 0 1px, transparent 1px 100%); | |
| 748 | + | background-size: 1ch var(--grid-height); | |
| 749 | + | margin: 0; | |
| 750 | + | } |