mirror of
https://github.com/Scanode/hardclear.git
synced 2026-11-18 15:18:17 -05:00
147 lines
12 KiB
CSS
147 lines
12 KiB
CSS
/* 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-1: 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-1"] {
|
|
font-size: 8px !important;
|
|
font-size: min(calc((100vw - 48px) / 84.7), 16px) !important;
|
|
font-size: min(calc(100cqi / 84.7), 16px) !important;
|
|
}
|
|
/* hardclear-1: colours picked from the reference image */
|
|
.ascii-banner[data-palette="image"] [data-banner="hardclear-1"] .ab-a { color: #3e2f44 !important; }
|
|
.ascii-banner[data-palette="image"] [data-banner="hardclear-1"] .ab-b { color: #622f4c !important; }
|
|
.ascii-banner[data-palette="image"] [data-banner="hardclear-1"] .ab-c { color: #4d4d66 !important; }
|
|
.ascii-banner[data-palette="image"] [data-banner="hardclear-1"] .ab-d { color: #854264 !important; }
|
|
.ascii-banner[data-palette="image"] [data-banner="hardclear-1"] .ab-e { color: #63687e !important; }
|
|
.ascii-banner[data-palette="image"] [data-banner="hardclear-1"] .ab-f { color: #9a607e !important; }
|
|
.ascii-banner[data-palette="image"] [data-banner="hardclear-1"] .ab-g { color: #b56d8e !important; }
|
|
.ascii-banner[data-palette="image"] [data-banner="hardclear-1"] .ab-h { color: #6c879d !important; }
|
|
.ascii-banner[data-palette="image"] [data-banner="hardclear-1"] .ab-i { color: #908aa1 !important; }
|
|
.ascii-banner[data-palette="image"] [data-banner="hardclear-1"] .ab-j { color: #82a5ba !important; }
|
|
.ascii-banner[data-palette="image"] [data-banner="hardclear-1"] .ab-k { color: #c693a7 !important; }
|
|
.ascii-banner[data-palette="image"] [data-banner="hardclear-1"] .ab-l { color: #b1b0be !important; }
|
|
.ascii-banner[data-palette="image"] [data-banner="hardclear-1"] .ab-m { color: #94bfd1 !important; }
|
|
.ascii-banner[data-palette="image"] [data-banner="hardclear-1"] .ab-n { color: #e1bcc8 !important; }
|
|
.ascii-banner[data-palette="image"] [data-banner="hardclear-1"] .ab-o { color: #c7cad3 !important; }
|
|
.ascii-banner[data-palette="image"] [data-banner="hardclear-1"] .ab-p { color: #a7d6e6 !important; }
|
|
.ascii-banner[data-palette="image"] [data-banner="hardclear-1"] .ab-q { color: #f1d7e3 !important; }
|
|
.ascii-banner[data-palette="image"] [data-banner="hardclear-1"] .ab-r { color: #dcdfe1 !important; }
|
|
.ascii-banner[data-palette="image"] [data-banner="hardclear-1"] .ab-s { color: #f2eebf !important; }
|
|
.ascii-banner[data-palette="image"] [data-banner="hardclear-1"] .ab-t { color: #f2f3f3 !important; }
|
|
/* hardclear-1: same brightness per character, in the hue of --ab-hi (built for #ff6266) */
|
|
.ascii-banner[data-palette="red"] [data-banner="hardclear-1"] .ab-a { color: color-mix(in srgb, var(--ab-hi) 37%, #000) !important; }
|
|
.ascii-banner[data-palette="red"] [data-banner="hardclear-1"] .ab-b { color: color-mix(in srgb, var(--ab-hi) 44%, #000) !important; }
|
|
.ascii-banner[data-palette="red"] [data-banner="hardclear-1"] .ab-c { color: color-mix(in srgb, var(--ab-hi) 54%, #000) !important; }
|
|
.ascii-banner[data-palette="red"] [data-banner="hardclear-1"] .ab-d { color: color-mix(in srgb, var(--ab-hi) 59%, #000) !important; }
|
|
.ascii-banner[data-palette="red"] [data-banner="hardclear-1"] .ab-e { color: color-mix(in srgb, var(--ab-hi) 70%, #000) !important; }
|
|
.ascii-banner[data-palette="red"] [data-banner="hardclear-1"] .ab-f { color: color-mix(in srgb, var(--ab-hi) 76%, #000) !important; }
|
|
.ascii-banner[data-palette="red"] [data-banner="hardclear-1"] .ab-g { color: color-mix(in srgb, var(--ab-hi) 87%, #000) !important; }
|
|
.ascii-banner[data-palette="red"] [data-banner="hardclear-1"] .ab-h { color: color-mix(in srgb, var(--ab-hi) 88%, #000) !important; }
|
|
.ascii-banner[data-palette="red"] [data-banner="hardclear-1"] .ab-i { color: color-mix(in srgb, var(--ab-hi) 93%, #000) !important; }
|
|
.ascii-banner[data-palette="red"] [data-banner="hardclear-1"] .ab-j { color: color-mix(in srgb, var(--ab-hi), #fff 28%) !important; }
|
|
.ascii-banner[data-palette="red"] [data-banner="hardclear-1"] .ab-k { color: color-mix(in srgb, var(--ab-hi), #fff 29%) !important; }
|
|
.ascii-banner[data-palette="red"] [data-banner="hardclear-1"] .ab-l { color: color-mix(in srgb, var(--ab-hi), #fff 47%) !important; }
|
|
.ascii-banner[data-palette="red"] [data-banner="hardclear-1"] .ab-m { color: color-mix(in srgb, var(--ab-hi), #fff 53%) !important; }
|
|
.ascii-banner[data-palette="red"] [data-banner="hardclear-1"] .ab-n { color: color-mix(in srgb, var(--ab-hi), #fff 63%) !important; }
|
|
.ascii-banner[data-palette="red"] [data-banner="hardclear-1"] .ab-o { color: color-mix(in srgb, var(--ab-hi), #fff 67%) !important; }
|
|
.ascii-banner[data-palette="red"] [data-banner="hardclear-1"] .ab-p { color: color-mix(in srgb, var(--ab-hi), #fff 70%) !important; }
|
|
.ascii-banner[data-palette="red"] [data-banner="hardclear-1"] .ab-q { color: color-mix(in srgb, var(--ab-hi), #fff 80%) !important; }
|
|
.ascii-banner[data-palette="red"] [data-banner="hardclear-1"] .ab-r { color: color-mix(in srgb, var(--ab-hi), #fff 80%) !important; }
|
|
.ascii-banner[data-palette="red"] [data-banner="hardclear-1"] .ab-s { color: color-mix(in srgb, var(--ab-hi), #fff 89%) !important; }
|
|
.ascii-banner[data-palette="red"] [data-banner="hardclear-1"] .ab-t { color: color-mix(in srgb, var(--ab-hi), #fff 93%) !important; }
|
|
/* 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; }
|