Commit ed551e4
Eric Bower
·
2025-08-10 23:12:45 -0400 EDT
parent 32c5e95
design: mostly re-adjusting whitespace and adding delineation
8 files changed,
+36,
-72
M
Makefile
+1,
-1
| ... | ... | @@ -41,5 +41,5 @@ static: build clean | |
| 41 | 41 | .PHONY: | |
| 42 | 42 | ||
| 43 | 43 | dev: static | |
| 44 | - | rsync -rv ./public/* pgs.sh:/git-pgit-local | |
| 44 | + | rsync -rv --delete ./public/ pgs.sh:/git-pgit-local/ | |
| 45 | 45 | .PHONY: dev |
+1,
-1
| ... | ... | @@ -15,7 +15,7 @@ | |
| 15 | 15 | <link rel="stylesheet" href="{{.Repo.RootRelative}}main.css" /> | |
| 16 | 16 | </head> | |
| 17 | 17 | <body> | |
| 18 | - | <header>{{template "header" .}}</header> | |
| 18 | + | <header class="box">{{template "header" .}}</header> | |
| 19 | 19 | <hr class="my" /> | |
| 20 | 20 | <main>{{template "content" .}}</main> | |
| 21 | 21 | <hr class="my" /> |
+1,
-1
| ... | ... | @@ -19,7 +19,7 @@ | |
| 19 | 19 | <dd>{{.Commit.Author.When}}</dd> | |
| 20 | 20 | </dl> | |
| 21 | 21 | ||
| 22 | - | <pre>{{.Commit.Message}}</pre> | |
| 22 | + | <pre class="white-space-bs">{{.Commit.Message}}</pre> | |
| 23 | 23 | ||
| 24 | 24 | <div class="box mono"> | |
| 25 | 25 | <div> |
+1,
-1
| ... | ... | @@ -18,7 +18,7 @@ | |
| 18 | 18 | ||
| 19 | 19 | <div> | |
| 20 | 20 | <div>{{.Repo.Desc}}</div> | |
| 21 | - | {{if .SiteURLs.CloneURL}}<pre class="m-0">git clone {{.SiteURLs.CloneURL}}</pre>{{end}} | |
| 21 | + | {{if .SiteURLs.CloneURL}}<pre class="mb-0">git clone {{.SiteURLs.CloneURL}}</pre>{{end}} | |
| 22 | 22 | </div> | |
| 23 | 23 | </div> | |
| 24 | 24 | {{end}} |
+2,
-2
| ... | ... | @@ -4,7 +4,7 @@ | |
| 4 | 4 | {{define "meta"}}{{end}} | |
| 5 | 5 | ||
| 6 | 6 | {{define "content"}} | |
| 7 | - | <div class="group"> | |
| 7 | + | <div class="group-2"> | |
| 8 | 8 | <div><span class="font-bold">({{.NumCommits}})</span> commits</div> | |
| 9 | 9 | {{range .Logs}} | |
| 10 | 10 | <div> |
| ... | ... | @@ -29,7 +29,7 @@ | |
| 29 | 29 | </div> | |
| 30 | 30 | ||
| 31 | 31 | <div> | |
| 32 | - | <pre class="m-0">{{.Message}}</pre> | |
| 32 | + | <pre class="m-0 white-space-bs">{{.Message}}</pre> | |
| 33 | 33 | </div> | |
| 34 | 34 | </div> | |
| 35 | 35 | {{end}} |
+1,
-1
| ... | ... | @@ -5,7 +5,7 @@ | |
| 5 | 5 | ||
| 6 | 6 | {{define "content"}} | |
| 7 | 7 | <div> | |
| 8 | - | <div class="text-md mb"> | |
| 8 | + | <div class="text-md text-transform-none mb"> | |
| 9 | 9 | {{range .Tree.Crumbs}} | |
| 10 | 10 | {{if .IsLast}} | |
| 11 | 11 | <span class="font-bold">{{.Text}}</span> |
+10,
-0
| ... | ... | @@ -31,12 +31,22 @@ body { | |
| 31 | 31 | } | |
| 32 | 32 | ||
| 33 | 33 | .diff-file { | |
| 34 | + | align-items: center; | |
| 35 | + | height: 62px; | |
| 34 | 36 | position: sticky; | |
| 35 | 37 | top: 0; | |
| 36 | 38 | left: 0; | |
| 37 | 39 | background-color: var(--bg-color); | |
| 38 | 40 | } | |
| 39 | 41 | ||
| 42 | + | .white-space-bs { | |
| 43 | + | white-space: break-spaces; | |
| 44 | + | } | |
| 45 | + | ||
| 46 | + | .mb-0 { | |
| 47 | + | margin-bottom: 0; | |
| 48 | + | } | |
| 49 | + | ||
| 40 | 50 | @media only screen and (max-width: 900px) { | |
| 41 | 51 | .tree-commit { | |
| 42 | 52 | display: none; |
+19,
-65
| ... | ... | @@ -25,9 +25,22 @@ html { | |
| 25 | 25 | color: var(--text-color); | |
| 26 | 26 | font-size: 16px; | |
| 27 | 27 | line-height: var(--line-height); | |
| 28 | - | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, | |
| 29 | - | Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, | |
| 30 | - | sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; | |
| 28 | + | font-family: | |
| 29 | + | -apple-system, | |
| 30 | + | BlinkMacSystemFont, | |
| 31 | + | "Segoe UI", | |
| 32 | + | Roboto, | |
| 33 | + | Oxygen, | |
| 34 | + | Ubuntu, | |
| 35 | + | Cantarell, | |
| 36 | + | "Fira Sans", | |
| 37 | + | "Droid Sans", | |
| 38 | + | "Helvetica Neue", | |
| 39 | + | Arial, | |
| 40 | + | sans-serif, | |
| 41 | + | "Apple Color Emoji", | |
| 42 | + | "Segoe UI Emoji", | |
| 43 | + | "Segoe UI Symbol"; | |
| 31 | 44 | -webkit-text-size-adjust: 100%; | |
| 32 | 45 | -moz-tab-size: 4; | |
| 33 | 46 | -o-tab-size: 4; |
| ... | ... | @@ -250,13 +263,6 @@ sup { | |
| 250 | 263 | width: 100%; | |
| 251 | 264 | } | |
| 252 | 265 | ||
| 253 | - | .container-center { | |
| 254 | - | width: 100%; | |
| 255 | - | height: 100%; | |
| 256 | - | display: flex; | |
| 257 | - | justify-content: center; | |
| 258 | - | } | |
| 259 | - | ||
| 260 | 266 | .mono { | |
| 261 | 267 | font-family: monospace; | |
| 262 | 268 | } |
| ... | ... | @@ -311,18 +317,10 @@ sup { | |
| 311 | 317 | font-size: 0.8rem; | |
| 312 | 318 | } | |
| 313 | 319 | ||
| 314 | - | .cursor-pointer { | |
| 315 | - | cursor: pointer; | |
| 316 | - | } | |
| 317 | - | ||
| 318 | 320 | .w-full { | |
| 319 | 321 | width: 100%; | |
| 320 | 322 | } | |
| 321 | 323 | ||
| 322 | - | .h-full { | |
| 323 | - | height: 100%; | |
| 324 | - | } | |
| 325 | - | ||
| 326 | 324 | .border { | |
| 327 | 325 | border: 2px solid var(--grey-light); | |
| 328 | 326 | } |
| ... | ... | @@ -364,14 +362,6 @@ sup { | |
| 364 | 362 | max-width: 50%; | |
| 365 | 363 | } | |
| 366 | 364 | ||
| 367 | - | .h-screen { | |
| 368 | - | height: 100vh; | |
| 369 | - | } | |
| 370 | - | ||
| 371 | - | .w-screen { | |
| 372 | - | width: 100vw; | |
| 373 | - | } | |
| 374 | - | ||
| 375 | 365 | .flex { | |
| 376 | 366 | display: flex; | |
| 377 | 367 | } |
| ... | ... | @@ -424,18 +414,10 @@ sup { | |
| 424 | 414 | margin-right: 0.5rem; | |
| 425 | 415 | } | |
| 426 | 416 | ||
| 427 | - | .ml-sm { | |
| 428 | - | margin-left: 0.25rem; | |
| 429 | - | } | |
| 430 | - | ||
| 431 | 417 | .ml { | |
| 432 | 418 | margin-left: 0.5rem; | |
| 433 | 419 | } | |
| 434 | 420 | ||
| 435 | - | .pt-0 { | |
| 436 | - | padding-top: 0; | |
| 437 | - | } | |
| 438 | - | ||
| 439 | 421 | .my { | |
| 440 | 422 | margin-top: var(--grid-height); | |
| 441 | 423 | margin-bottom: var(--grid-height); |
| ... | ... | @@ -451,24 +433,6 @@ sup { | |
| 451 | 433 | margin-bottom: calc(var(--line-height) * 2); | |
| 452 | 434 | } | |
| 453 | 435 | ||
| 454 | - | .mx { | |
| 455 | - | margin-left: 0.5rem; | |
| 456 | - | margin-right: 0.5rem; | |
| 457 | - | } | |
| 458 | - | ||
| 459 | - | .mx-2 { | |
| 460 | - | margin-left: 1rem; | |
| 461 | - | margin-right: 1rem; | |
| 462 | - | } | |
| 463 | - | ||
| 464 | - | .m-1 { | |
| 465 | - | margin: var(--grid-height); | |
| 466 | - | } | |
| 467 | - | ||
| 468 | - | .p-1 { | |
| 469 | - | padding: var(--grid-height); | |
| 470 | - | } | |
| 471 | - | ||
| 472 | 436 | .p-0 { | |
| 473 | 437 | padding: 0; | |
| 474 | 438 | } |
| ... | ... | @@ -478,11 +442,6 @@ sup { | |
| 478 | 442 | padding-right: 0.5rem; | |
| 479 | 443 | } | |
| 480 | 444 | ||
| 481 | - | .px-2 { | |
| 482 | - | padding-left: 1rem; | |
| 483 | - | padding-right: 1rem; | |
| 484 | - | } | |
| 485 | - | ||
| 486 | 445 | .px-4 { | |
| 487 | 446 | padding-left: 2rem; | |
| 488 | 447 | padding-right: 2rem; |
| ... | ... | @@ -493,11 +452,6 @@ sup { | |
| 493 | 452 | padding-bottom: var(--grid-height); | |
| 494 | 453 | } | |
| 495 | 454 | ||
| 496 | - | .py-2 { | |
| 497 | - | padding-top: var(--line-height); | |
| 498 | - | padding-bottom: var(--line-height); | |
| 499 | - | } | |
| 500 | - | ||
| 501 | 455 | .py-4 { | |
| 502 | 456 | padding-top: calc(var(--line-height) * 2); | |
| 503 | 457 | padding-bottom: calc(var(--line-height) * 2); |
| ... | ... | @@ -615,11 +569,11 @@ h1 code, h2 code, h3 code, h4 code { | |
| 615 | 569 | .logo-header { | |
| 616 | 570 | line-height: 1; | |
| 617 | 571 | display: inline-block; | |
| 618 | - | background-color: #FF79C6; | |
| 619 | - | background-image: linear-gradient(to right, #FF5555, #FF79C6, #F8F859); | |
| 572 | + | background-color: #ff79c6; | |
| 573 | + | background-image: linear-gradient(to right, #ff5555, #ff79c6, #f8f859); | |
| 620 | 574 | color: transparent; | |
| 621 | 575 | background-clip: text; | |
| 622 | - | border: 3px solid #FF79C6; | |
| 576 | + | border: 3px solid #ff79c6; | |
| 623 | 577 | padding: 8px 10px 10px 10px; | |
| 624 | 578 | border-radius: 10px; | |
| 625 | 579 | background-size: 100%; |