1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-09-20 04:12:09 +00:00
seirdy.one/assets/css/print.css
Rohan Kumar 96666b671e
CSS fixes
- Fix nested list spacing
- Remove redundant padding rule
- Fix syntax error
- A couple simplifiations
2022-05-10 16:06:28 -07:00

36 lines
846 B
CSS

/* Print stylesheet: hide stuff that we don't need. */
@media print {
/* The triangle bullet on summary elements gives no actionable
* information on print. */
summary {
list-style: none;
}
/* An un-opened summary inside an article has no use in print.
* Outside an article it's used in my webring list where it has some
* use, see below. */
article summary,
/* Currently only used for in-page heading anchors,
* useless in printouts. */
span[aria-hidden],
/* You can't navigate in a printout. */
footer nav,
nav a:not([rel="home"]) span {
display: none;
}
}
/* Print: don't orphan headings
* Commented out bc most browsers don't obey this yet. */
/* h2, */
/* h3, */
/* h4 { */
/* break-after: avoid; */
/* } */
/* Print: don't break up self-contained items. */
figure,
article article,
li {
break-inside: avoid;
}