Files
mw-pfeddersheim-workstation/docs/pdf-comparison/cheatsheet.css
T
ja 7d8760592e chore: align IaC with today's package installs + PDF comparison docs
DevOps sync (2026-05-21):
- Remove onlyoffice-desktopeditors from absent list (actively used)
- Add gnome-keyring, rbw to common role (secrets migration)
- Add perl-image-exiftool, icoutils, innoextract-git to dev-tools
  (Windows installer inspection)
- Create fonts role: Inter, Cascadia Code, Fira, Source Sans, TeX Gyre
- Create pdf role: zathura, zathura-pdf-mupdf, python-weasyprint
- Register new roles in workstation.yml

PDF comparison:
- Add pdf-comparison docs with Quarto/Typst/Pandoc outputs
- Add batch-pdf.sh script
- Update yazi-cheatsheet.md
- Ignore .quarto/ cache
2026-05-21 13:38:50 +02:00

129 lines
2.1 KiB
CSS

/* Cheatsheet CSS for Markdown → HTML → PDF via WeasyPrint */
/* Clean, professional tables with Inter + JetBrains Mono */
@page {
size: a4 portrait;
margin: 10mm 14mm 10mm 14mm;
@bottom-center {
content: "Seite " counter(page);
font-size: 7pt;
color: #999;
}
}
* { margin-top: 0; }
body {
font-family: "Inter", "DejaVu Sans", sans-serif;
font-size: 9pt;
line-height: 1.3;
color: #111;
}
h1 {
font-size: 14pt;
font-weight: 700;
margin-bottom: 4pt;
padding-bottom: 4pt;
border-bottom: 1.5pt solid #111;
}
h2 {
font-size: 10.5pt;
font-weight: 700;
margin: 10pt 0 4pt 0;
color: #003366;
border-bottom: 0.5pt solid #ccc;
}
h3 {
font-size: 9pt;
font-weight: 600;
margin: 6pt 0 2pt 0;
color: #003366;
}
p { margin: 2pt 0; }
/* ---- Tables: clean reference style ---- */
table {
width: 100%;
border-collapse: collapse;
margin: 2pt 0 6pt 0;
font-size: 8pt;
page-break-inside: avoid;
}
th {
background: #f0f4f8;
font-weight: 700;
font-size: 7.5pt;
text-transform: uppercase;
letter-spacing: 0.04em;
color: #003366;
padding: 3pt 5pt;
border: none;
border-bottom: 1pt solid #0066cc;
text-align: left;
}
td {
padding: 2pt 5pt;
border: none;
border-bottom: 0.5pt solid #e4e4e4;
vertical-align: top;
}
tbody tr:nth-child(even) td {
background: #f7f9fb;
}
tbody tr:last-child td {
border-bottom: none;
}
/* ---- Code / key rendering ---- */
code, kbd {
font-family: "JetBrains Mono", monospace;
font-size: 8pt;
background: #f5f5f5;
padding: 1pt 3pt;
border-radius: 2pt;
border: 0.5pt solid #ddd;
}
pre {
font-family: "JetBrains Mono", monospace;
font-size: 7.5pt;
background: #f5f5f5;
padding: 4pt 6pt;
border-radius: 3pt;
border: 0.5pt solid #ddd;
page-break-inside: avoid;
white-space: pre-wrap;
}
/* ---- Two-column cheatsheet layout ---- */
.twocol {
column-count: 2;
column-gap: 14pt;
}
.twocol h2 {
break-before: column;
column-break-before: always;
}
.twocol h2:first-child {
break-before: avoid;
column-break-before: avoid;
}
hr {
border: none;
border-top: 0.5pt solid #ddd;
margin: 6pt 0;
}
a { color: #0066cc; text-decoration: none; }