Banner config update

This commit is contained in:
Scan committed 2026-11-18 15:47:00 -05:00
1 parent 78e3d684e2
commit 9012152beb
9 files changed
+118 -351

No files matched your search

@@ -0,0 +1,95 @@
/* Static ASCII art banner for re-terminal.
Characters scale so the full width of the art fits the page column.
Per-banner size and colours are in css/ascii-banners/NAME.css (generated);
the JS refines the size to the exact pixel. */
.ascii-banner {
--ab-lh: 1.2;
--ab-hi: var(--accent, #ff6266);
container-type: inline-size;
width: 100%;
margin: 0 0 20px;
overflow: hidden;
}
/* the theme styles <pre> as a code block; undo all of that here */
.ascii-banner pre.ascii-banner__art {
margin: 0;
padding: 0;
border: 0;
background: none;
box-shadow: none;
overflow: visible;
white-space: pre;
font-family: "Fira Code", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
font-variant-ligatures: none; /* Fira Code would otherwise join some letter pairs */
font-feature-settings: "liga" 0, "calt" 0;
/* font-size comes from css/ascii-banners/NAME.css (generated) */
line-height: 1.2 !important;
letter-spacing: 0;
color: color-mix(in srgb, var(--ab-hi) 70%, transparent); /* only used if the generated colours are missing */
cursor: crosshair;
user-select: text;
}
.ascii-banner pre.ascii-banner__art::selection,
.ascii-banner pre.ascii-banner__art *::selection {
background: var(--ab-hi);
color: var(--background, #1d1e28);
}
@media print {
.ascii-banner { display: none; }
}
/* generated by tools/build-banner.py; do not edit */
/* hardclear-2: size so all 140 columns fit. Plain values only (no var()), so each line
either works or is skipped by the browser in favour of the line above it.
!important wins over any theme rule for <pre>; the JS sets an exact inline size. */
.ascii-banner pre[data-banner="hardclear-2"] {
font-size: 8px !important;
font-size: min(calc((100vw - 48px) / 84.7), 16px) !important;
font-size: min(calc(100cqi / 84.7), 16px) !important;
}
/* hardclear-2: colours picked from the reference image */
.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-a { color: #121015 !important; }
.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-b { color: #1b171f !important; }
.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-c { color: #2c1a21 !important; }
.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-d { color: #27222d !important; }
.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-e { color: #3f222c !important; }
.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-f { color: #342e3d !important; }
.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-g { color: #4e2a3a !important; }
.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-h { color: #663044 !important; }
.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-i { color: #464148 !important; }
.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-j { color: #793d58 !important; }
.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-k { color: #585559 !important; }
.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-l { color: #9b4d71 !important; }
.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-m { color: #6a686b !important; }
.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-n { color: #7b7a7b !important; }
.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-o { color: #8d8c8d !important; }
.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-p { color: #9e9e9e !important; }
.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-q { color: #b0afb0 !important; }
.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-r { color: #c0bfc0 !important; }
.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-s { color: #cdcdcd !important; }
.ascii-banner[data-palette="image"] [data-banner="hardclear-2"] .ab-t { color: #d8d8d8 !important; }
/* hardclear-2: same brightness per character, in the hue of --ab-hi (built for #ff6266) */
.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-a { color: color-mix(in srgb, var(--ab-hi) 16%, #000) !important; }
.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-b { color: color-mix(in srgb, var(--ab-hi) 20%, #000) !important; }
.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-c { color: color-mix(in srgb, var(--ab-hi) 24%, #000) !important; }
.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-d { color: color-mix(in srgb, var(--ab-hi) 27%, #000) !important; }
.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-e { color: color-mix(in srgb, var(--ab-hi) 31%, #000) !important; }
.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-f { color: color-mix(in srgb, var(--ab-hi) 35%, #000) !important; }
.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-g { color: color-mix(in srgb, var(--ab-hi) 38%, #000) !important; }
.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-h { color: color-mix(in srgb, var(--ab-hi) 45%, #000) !important; }
.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-i { color: color-mix(in srgb, var(--ab-hi) 46%, #000) !important; }
.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-j { color: color-mix(in srgb, var(--ab-hi) 54%, #000) !important; }
.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-k { color: color-mix(in srgb, var(--ab-hi) 58%, #000) !important; }
.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-l { color: color-mix(in srgb, var(--ab-hi) 68%, #000) !important; }
.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-m { color: color-mix(in srgb, var(--ab-hi) 70%, #000) !important; }
.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-n { color: color-mix(in srgb, var(--ab-hi) 81%, #000) !important; }
.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-o { color: color-mix(in srgb, var(--ab-hi) 93%, #000) !important; }
.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-p { color: color-mix(in srgb, var(--ab-hi), #fff 25%) !important; }
.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-q { color: color-mix(in srgb, var(--ab-hi), #fff 45%) !important; }
.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-r { color: color-mix(in srgb, var(--ab-hi), #fff 59%) !important; }
.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-s { color: color-mix(in srgb, var(--ab-hi), #fff 69%) !important; }
.ascii-banner[data-palette="red"] [data-banner="hardclear-2"] .ab-t { color: color-mix(in srgb, var(--ab-hi), #fff 76%) !important; }