commit 311e024ba75e83908034edd5c9f070bfcbec478e parent 299f9dc258ed042245490a74545d6cd970b8e439 Author: Luke Willis <lukejw@monastech.xyz> Date: Mon, 9 Mar 2026 03:17:56 -0400 andrew: Setup a stylesheet for stagit Diffstat:
| M | mt/system/andrew.scm | | | 117 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--- |
1 file changed, 114 insertions(+), 3 deletions(-)
diff --git a/mt/system/andrew.scm b/mt/system/andrew.scm @@ -117,12 +117,123 @@ Welcome to \"andrew\" the, first MonasTech server. (body (list "return 301 https://$host$request_uri;"))))))))))) (stagit-services (stagit-configuration - (www-home "/var/www/git.monastech.xyz") - (logo (file-append %mt-artwork "/logo-dynamic.svg")) (admin-pubkey (plain-file "lukejw.pub" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEZ2qcwpwPdMmrXNrrqjqtuBw8lG9gxlAE+vwcZAHM3L lukejw@moses")) - (clone-domain "monastech.xyz"))) + (www-home "/var/www/git.monastech.xyz") + (clone-domain "monastech.xyz") + (logo (file-append %mt-artwork "/logo-dynamic.svg")) + (stylesheet (plain-file "stylesheet.css" "\ +:root { + --bg: #FFFCF0; + --bg-2: #F2F0E5; + --ui: #E6E4D9; + --ui-2: #DAD8CE; + --ui-3: #CECDC3; + --tx: #100F0F; + --tx-2: #6F6E69; + --ye: #AD8301; + --ye-2: #D0A215; + --cy: #24837B; + --cy-2: #3AA99F; +} + +@media (prefers-color-scheme: dark) { + :root { + --bg: #100F0F; + --bg-2: #1C1B1A; + --ui: #282726; + --ui-2: #343331; + --ui-3: #403E3C; + --tx: #CECDC3; + --tx-2: #878580; + --ye: #D0A215; + --ye-2: #AD8301; + --cy: #3AA99F; + --cy-2: #24837B; + } +} + +html { + background-color: var(--bg); + color: var(--tx); + font-family: serif; +} + +body { + width: 100%; + max-width: 72rem; + margin-inline: auto; +} + +hr { + border: 0.1rem solid var(--ui); +} + +a { + color: var(--cy); + text-decoration: none; +} + +a:hover { + color: var(--cy-2); + text-decoration: underline; +} + +#header img { + width: 6.75rem; + height: 4.5rem; +} + +#header h1 { + margin: 0 0 0.5rem 0; + font-size: 2rem; + font-weight: normal; + border-bottom: 2px solid var(--ui); +} + +#header .desc { + color: var(--tx-2); +} + +#header tbody tr:last-child td { + padding-top: 0.4rem; +} + +#header .url > td:nth-child(2) { + font-family: monospace; + padding: 0.2rem 0.6rem; + border-radius: 0.5rem; + background-color: var(--bg-2); +} + +#files tbody { + font-family: monospace; +} + +#files tbody > tr td:first-child { + width: 0; + white-space: nowrap; + padding-right: 1rem; +} + +#content table { + width: 100%; + border-collapse: collapse; +} + +#content td { + padding: 1rem; +} + +#content tbody tr:hover { + background: var(--bg-2); +} + +#content td { + padding: 0.3rem; +} +")))) %mt-bishop-services)))) andrew-os