From b7b6a682cd8abe63f763eb671a068b53be9600d8 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 17 Nov 2026 18:43:09 -0300 Subject: docs: figures in the manual: docs/typ/figures.typ, the one file of the corpus that imports a package (cetz 0.4.2, which compiles with typst 0.15.1 here), draws in style.typ's palette; on paper a figure is its canvas, in HTML the same canvas as an inline SVG (html.frame) on the paper colour, in a
that site.css frames; the grammar of "how pardes runs" (a process a box, its kind by colour, the core with the truth a starred chip, a replica's an outlined one, a screen, a line labelled with what travels) and its seven figures, and the design note's before and after Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T --- docs/site/site.css | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs/site/site.css') diff --git a/docs/site/site.css b/docs/site/site.css index a0959d5e..449738bf 100644 --- a/docs/site/site.css +++ b/docs/site/site.css @@ -222,3 +222,7 @@ main[data-page="builtins"] .content h4 + p { margin-top:0; } .glossary dt { font-weight:600; color:var(--leaf); } .glossary dt:nth-of-type(odd), .glossary dt:nth-of-type(odd) + dd { background:color-mix(in srgb, var(--tag) 70%, transparent); } @media (max-width:600px) { .glossary dl { grid-template-columns:1fr; } .glossary dd { padding-top:0; } } + +/* --- a figure drawn by docs/typ/figures.typ: an inline SVG on paper --------- */ +.diagram { margin:1.2em 0 1.6em; overflow-x:auto; border:2px solid var(--leaf); box-shadow:5px 5px 0 var(--shadow); background:#fffdeb; } +.diagram svg { display:block; max-width:100%; height:auto !important; margin:0 auto; } -- cgit v1.3