Files
museion/Museion/Resources/reading.css
T
AlexKucera c7a6a82283 fix(reading): repair image, table, and link styling per critique
Address critique #2 findings in reading.css: replace the hover-expand
image sliver with a resting framed thumbnail and visible captions (P0),
honor align attributes on table cells instead of forcing left (P1), and
surface href + edit cue on link hover so plain-click-into-edit has a
visual contract (P1).

Also records both critique rulings under .impeccable/critique/ and
notes the single-size 1024px App icon convention in Museion/AGENTS.md.
2026-10-08 10:19:26 +02:00

81 lines
4.3 KiB
CSS

/* Museion reading mode — the whole reading surface's look lives here.
Edit while the app runs: save, toggle reading mode (⌘R), see it. No rebuild.
Shipped via fs-sync at Museion/Resources/reading.css; read per page build. */
:root {
--body-face: "Valkyrie OT", Georgia, serif;
--body-size: 17px;
--headings-face: "Concourse OT", Georgia, serif;
--headings-size: 26px;
--code-face: "UbuntuMono Nerd Font Mono", UbuntuMonoNFM, monospace;
--code-size: 14px;
--lh: 1.8;
--para-space: 17px;
--head-space-before: 90px; /* above a heading — closes the previous section */
--head-space-after: 30px; /* below a heading — before its content */
--measure: 66ch;
--ink: #1d1d1f; --muted: #6e6e73; --secondary: #48484d;
--hairline: #d2d2d7; --rule: #a1a1a6; --substrate: #f5f5f7;
}
html { background: #fbfbfd; }
body {
margin: 24px auto; padding: 0 24px; width: var(--measure); max-width: calc(100vw - 48px);
color: var(--ink); font-family: var(--body-face); font-size: var(--body-size);
line-height: var(--lh); -webkit-font-smoothing: antialiased;
}
body > :first-child { margin-top: 0; }
p { margin: var(--para-space) 0 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--headings-face); font-weight: 600; line-height: 1.15; margin: var(--head-space-before) 0 var(--head-space-after); }
h1 { font-size: calc(var(--headings-size) * 1.15); }
h2 { font-size: calc(var(--headings-size) * 0.85); }
h3 { font-size: calc(var(--body-size) * 1.12); font-family: var(--body-face); font-weight: 600; }
h4, h5, h6 { font-family: var(--body-face); font-size: var(--body-size); font-weight: 700; }
h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p,
h1 + ul, h2 + ul, h3 + ul, h4 + ul, h5 + ul, h6 + ul,
h1 + ol, h2 + ol, h3 + ol, h4 + ol, h5 + ol, h6 + ol,
h1 + blockquote, h2 + blockquote, h3 + blockquote, h4 + blockquote, h5 + blockquote, h6 + blockquote,
h1 + pre, h2 + pre, h3 + pre, h4 + pre, h5 + pre, h6 + pre,
h1 + table, h2 + table, h3 + table, h4 + table, h5 + table, h6 + table { margin-top: 0; }
h1 + h2, h1 + h3, h1 + h4, h1 + h5, h1 + h6,
h2 + h3, h2 + h4, h2 + h5, h2 + h6,
h3 + h4, h3 + h5, h3 + h6,
h4 + h5, h4 + h6,
h5 + h6 { margin-top: 0.35em; }
ul, ol { margin: var(--para-space) 0 0; padding-left: 1.6em; }
li { margin: 0; }
li > ul, li > ol { margin: 0; }
pre {
font-family: var(--code-face); font-size: var(--code-size); line-height: 1.5;
margin: var(--para-space) 0 0; padding: 14px 16px;
background: var(--substrate); border: none; border-radius: 8px; white-space: pre-wrap;
}
code { font-family: var(--code-face); font-size: 0.88em; }
pre code { font-size: var(--code-size); }
blockquote {
margin: calc(var(--para-space) * 1.25) 0 0; padding: 0 0 0 20px;
border-left: 3px solid var(--rule); color: var(--secondary);
}
blockquote p { margin: 0; }
blockquote blockquote { border-left-width: 1.5px; border-left-color: var(--hairline); padding-left: 16px; }
hr { border: none; border-top: 1px solid var(--hairline); margin: calc(var(--head-space-before) * 0.75) 0 0; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
a:hover::after { content: " ✎ " attr(href); font-family: var(--code-face); font-size: 0.72em; color: var(--muted); text-decoration: none; }
table {
border-collapse: collapse; margin: calc(var(--para-space) * 1.25) 0 0; width: 100%;
border-top: 1.5px solid var(--rule); border-bottom: 1.5px solid var(--rule);
}
th, td { border: none; border-bottom: 1px solid var(--hairline); padding: 7px 12px; text-align: left; }
th { font-weight: 600; border-bottom: 1.5px solid var(--rule); }
th[align="center"], td[align="center"] { text-align: center; }
th[align="right"], td[align="right"] { text-align: right; }
tr:last-child td { border-bottom: none; }
figure { margin: calc(var(--para-space) * 1.5) 0 0; }
figure img { display: block; margin: 0 auto; max-height: 340px; max-width: 100%; border: 1px solid var(--hairline); border-radius: 8px; }
figcaption { color: var(--muted); font-size: 0.85em; text-align: center; margin-top: 8px; }
section.footnotes { color: var(--muted); }
section.footnotes li p { margin: 0; }
[data-source-line]:hover { background: rgba(0,122,255,.05); }
::selection { background: rgba(0,122,255,.12); }
:focus-visible { outline: 2px solid rgba(0,122,255,.6); outline-offset: 2px; }