raz / doc / report.css

18 lines · 1.1 KiB · raw · history · last change c6872e07

1/* How `make pdf` prints the report: pandoc makes HTML of doc/raz.md
2 with this sheet, and Chromium prints it to build/raz.pdf. */
3@page { size: A4; margin: 22mm 20mm; @bottom-center { content: counter(page); } }
4body { font: 10.5pt/1.45 Charter, "Bitstream Charter", Georgia, serif; color: #111; max-width: none; }
5/* pandoc makes the report's # its title and moves the rest up one */
6h1.title { font-size: 24pt; margin: 30mm 0 12mm; }
7h1 { font-size: 14pt; margin-top: 1.6em; break-after: avoid; }
8h2 { font-size: 11.5pt; break-after: avoid; }
9pre, code { font-family: "DejaVu Sans Mono", monospace; font-size: 8.8pt; }
10/* a block of code or grammar is never split across pages */
11pre { background: #f6f6f3; padding: 6px 9px; border-left: 2px solid #bbb; break-inside: avoid; white-space: pre-wrap; }
12/* and stays on the page of the paragraph that leads to it */
13p:has(+ div.sourceCode, + pre) { break-after: avoid; }
14table { border-collapse: collapse; font-size: 9.5pt; }
15td, th { border-bottom: 1px solid #ddd; padding: 2px 8px; text-align: left; }
16nav#TOC { break-after: page; }
17nav#TOC ul { list-style: none; padding-left: 1em; }
18a { color: inherit; text-decoration: none; }