Files
roro9stack/site/static/css/devlog.css
T
twislaandClaude Sonnet 5.5 6e54658ba4
Site / build (pull_request) Successful in 9s
Site: the devlog, the blog's roro9stack posts in the site's style; Devlog replaces Blog in the navigation
Seven posts imported into site/content/devlog/ with their text unchanged,
links between them pointing to /devlog/, and shortcodes (sign, cast, steps,
asides, folded sections, diagrams, captions) restyled in the site's palette.
The 17 inline SVG diagrams carried <style> blocks and style attributes the
site's Content-Security-Policy refuses: their rules moved to
devlog-diagrams.css, and a diagram's minimum width is a class. An Atom feed
at /devlog/atom.xml.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EhqxQ49eCju4CzKYNjZzwT
2026-10-06 20:51:33 +02:00

107 lines
6.8 KiB
CSS

/* The devlog (docs/milestones/W1.md): the posts' own parts (sign, cast, steps, diagrams, folded sections) in the
site's palette. The posts' text and structure are the blog's; only the look is the site's. */
/* The diagrams use these four colours; each is on the RGB332 grid of the site, one per theme. */
.devlog { --accent: var(--cyantext); --green: #24db55; --yellow: #ffdb00; --red: #ff4955; --mono-font: var(--mono); }
@media (prefers-color-scheme: light) {
:root:not([data-theme="dark"]) .devlog { --green: #009255; --yellow: #926d00; --red: #b62455; }
}
:root[data-theme="light"] .devlog { --green: #009255; --yellow: #926d00; --red: #b62455; }
/* The list */
.entries { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; max-width: 880px; }
.entries .card { flex: none; }
.entries .card .num { max-width: 55%; text-align: right; }
.entries .card h2 code { font-size: .9em; }
/* A post's header */
.devlog .masthead { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.devlog .masthead > * { margin: 0; }
.devlog .masthead h1 code { background: none; padding: 0; color: var(--orangetext); font-size: .95em; }
.devlog .dek { font-size: 18px; line-height: 28px; color: var(--muted); }
.devlog .byline { display: flex; flex-wrap: wrap; gap: 4px 20px; font: 500 12px/16px var(--mono); letter-spacing: .04em; color: var(--muted); }
.devlog .byline span:first-child { color: var(--ink); }
.devlog .uid { font: 400 14px/20px var(--mono); color: var(--muted); }
.devlog .uid b { color: var(--green); font-weight: 500; letter-spacing: .02em; }
.devlog .status { display: flex; align-items: center; gap: 8px; font: 500 12px/16px var(--mono); letter-spacing: .04em; color: var(--muted); }
.devlog .status::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--yellow); }
/* The sign: "days since…" */
.sign { background: var(--s2); padding: 24px 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.sign .label { font-weight: 700; font-size: 20px; line-height: 24px; }
.sign .label small { display: block; margin-top: 8px; font-weight: 400; font-size: 14px; line-height: 20px; color: var(--muted); }
.sign .count { font: 500 56px/56px var(--mono); color: var(--green); flex: none; }
.sign.red .count { color: var(--red); }
@media (max-width: 560px) { .sign { padding: 20px; } .sign .count { font-size: 40px; line-height: 40px; } }
/* The body: wider than the guide's prose, so a diagram has room */
.devlog .post { max-width: 760px; }
.devlog .post > * { min-width: 0; }
.devlog .post h2 { margin-top: 24px; }
.devlog .post h3 { font-size: 22px; line-height: 28px; margin-top: 8px; }
.devlog .post h2 code, .devlog .post h3 code { background: none; padding: 0; color: var(--orangetext); }
.devlog .post blockquote { margin: 0; padding-left: 16px; border-left: 4px solid var(--line); color: var(--muted); }
.devlog .post hr { border: 0; border-top: 1px solid var(--line); width: 100%; }
.devlog .post img { max-width: 100%; height: auto; }
/* Code */
.devlog figure.code { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.devlog figure.code figcaption, .devlog .arch figcaption, .devlog figure.media figcaption { font-size: 14px; line-height: 20px; color: var(--muted); }
.devlog .prose pre { font-size: 13px; line-height: 20px; }
.devlog .prose pre code { font-size: inherit; background: none; padding: 0; }
.z-comment { color: var(--muted); font-style: italic; }
.z-string { color: var(--green); }
code[data-lang="shellscript"] .z-string:not(.z-quoted) { color: inherit; }
.z-constant.z-numeric, .z-constant.z-language { color: var(--magtext); }
.z-entity.z-name.z-tag, .z-keyword { color: var(--cyantext); }
/* An aside, a closing line */
.devlog .aside { border-left: 4px solid var(--yellow); padding: 4px 0 4px 16px; color: var(--muted); }
.devlog .signoff { color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; }
/* The cast */
.cast { border-top: 1px solid var(--line); margin: 0; }
.cast div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.cast dt { font-weight: 700; }
.cast dt span { display: block; margin-top: 2px; font: 400 12px/18px var(--mono); color: var(--muted); }
.cast dd { margin: 0; }
@media (max-width: 560px) { .cast div { grid-template-columns: 1fr; gap: 4px; } }
/* Steps: a numbered list with the numbers in the accent colour */
.devsteps ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: step; }
.devsteps li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: 8px; }
.devsteps li::before { content: counter(step) "."; font: 500 16px/24px var(--mono); color: var(--cyantext); }
.devsteps p { margin: 0; }
/* Tables scroll sideways instead of squeezing */
.tablewrap { overflow-x: auto; }
.tablewrap table { min-width: 480px; font-size: 15px; }
/* Folded sections */
.more { background: var(--s2); }
.more summary { cursor: pointer; padding: 16px 24px; font-weight: 700; }
.more summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.more-body { padding: 0 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.more-body > * { margin: 0; min-width: 0; }
.more-body h3 { font-size: 20px; line-height: 28px; margin-top: 8px; }
.more-body h4 { font: 500 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.more-body pre { background: var(--s1); }
.more-body table { font-size: 14px; }
/* Screenshots */
.devlog figure.media { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 4px 0; }
.devlog figure.media img { display: block; max-width: 100%; height: auto; max-height: 544px; width: auto; background: var(--s2); }
.devlog figure.media.landscape img { max-height: none; width: 100%; }
.devlog figure.media a.full { display: block; width: 100%; cursor: zoom-in; }
.devlog figure.media a.full:hover img { outline: 2px solid var(--cyan); outline-offset: 2px; }
.devlog figure.media figcaption { align-self: stretch; }
.devlog figure.media a, .devlog figure.code a, .devlog .arch a { color: var(--cyantext); text-decoration: underline; text-underline-offset: 4px; }
/* Diagrams: inline SVG. Below the width a post asks for (a mw- class) a diagram scrolls sideways instead of shrinking. */
.devlog figure.arch { display: flex; flex-direction: column; gap: 12px; margin: 8px 0; }
.arch .canvas { overflow-x: auto; background: var(--s2); padding: 20px; color: var(--ink); }
.arch svg { display: block; width: 100%; height: auto; }
.arch svg text { font-family: var(--mono); }
.arch .mw-580 svg { min-width: 580px; } .arch .mw-600 svg { min-width: 600px; } .arch .mw-620 svg { min-width: 620px; } .arch .mw-680 svg { min-width: 680px; }
@media (max-width: 560px) { .arch .canvas { padding: 12px 8px; } .arch svg { min-width: 520px; } }