Files
uni_notes/.obsidian/snippets/export.css
2026-03-09 19:43:13 +01:00

71 lines
1.3 KiB
CSS

/* ULTRA-COMPACT EXAM CHEAT SHEET MODE */
@media print {
/* 1. Obliterate Page Margins */
@page {
margin: 0.5cm;
size: A4 portrait;
}
/* 2. Tiny but readable base font */
body {
font-size: 8pt !important;
line-height: 1.1 !important;
}
/* 3. Force 3-Column Layout */
.markdown-rendered {
column-count: 3;
column-gap: 0.4cm;
column-rule: 1px dashed #ccc;
}
/* 4. Crush Headings and Whitespace */
h1,
h2,
h3,
h4,
h5 {
font-size: 9pt !important;
margin: 4px 0 2px 0 !important;
padding: 0 !important;
line-height: 1.1 !important;
}
p,
ul,
ol,
blockquote {
margin: 0 0 3px 0 !important;
padding-left: 12px !important;
}
/* 5. Shrink Tables & Callouts */
table {
font-size: 7pt !important;
margin: 2px 0 !important;
}
th,
td {
padding: 2px 4px !important;
}
.callout {
padding: 4px !important;
margin: 2px 0 !important;
}
.callout-title {
font-size: 8pt !important;
}
/* 6. Prevent awkward page breaks in the middle of math/tables */
table,
img,
.math-block,
.callout {
break-inside: avoid;
}
}