Justified reading measure with fitted article card

Cap wiki prose at 54rem (rem, not ch, so headings share the cap), justify
paragraphs/lists/blockquotes with hyphenation, fit the article card to the
measure, and let the docked ToC column absorb the leftover width.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-17 19:35:10 +02:00
co-authored by Claude Fable 5
parent 004be9b038
commit fb76cd4067
+30
View File
@@ -158,6 +158,10 @@
--wiki-article-drawer-layer: 1010;
--wiki-article-drawer-backdrop-layer: 1005;
/* Reading measure in rem, not ch: ch scales with font size, so a ch-based
cap never applies to large headings. 54rem ≈ 90ch of body text. */
--wiki-prose-measure: 54rem;
}
/* Wiki surfaces: match forum category/topic panel depth. */
@@ -202,6 +206,32 @@
z-index: var(--wiki-article-drawer-backdrop-layer, 1005);
}
/* Article reading layout: the card hugs the justified text block instead of
leaving a dead strip, and the docked ToC column absorbs the leftover width
(overrides the plugin's minmax(16rem, 24rem) ToC column in wiki.css). */
@media (min-width: 1200px) {
.westgate-wiki .wiki-with-fab:has(.wiki-article-drawer--toc:not([hidden])) {
grid-template-columns: minmax(0, 58rem) minmax(0, 1fr);
}
.westgate-wiki .wiki-with-fab:has(.wiki-article-drawer--toc:not([hidden])) .wiki-content-layout {
max-width: 58rem;
}
}
.westgate-wiki .wiki-article-prose {
padding-block: 1.5rem;
}
.westgate-wiki .wiki-article-prose :where(p, ul, ol, blockquote, .wiki-footnotes, h1, h2, h3, h4, h5, h6) {
margin-inline: auto;
}
.westgate-wiki .wiki-article-prose :where(p, li, blockquote) {
hyphens: auto;
text-align: justify;
}
.westgate-wiki .card.wiki-card:hover,
.westgate-wiki .card.wiki-topic-card:hover {
background: var(--wg-velvet-panel-hover) !important;