vault backup: 2026-03-09 19:43:13
This commit is contained in:
70
.obsidian/snippets/export.css
vendored
Normal file
70
.obsidian/snippets/export.css
vendored
Normal file
@@ -0,0 +1,70 @@
|
||||
/* 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user