2022-04-27 08:41:36 -07:00
|
|
|
/* Print stylesheet: hide stuff that we don't need. */
|
|
|
|
@media print {
|
2022-05-10 16:06:28 -07:00
|
|
|
/* 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,
|
2022-05-03 22:09:14 -07:00
|
|
|
/* Currently only used for in-page heading anchors,
|
|
|
|
* useless in printouts. */
|
2022-04-27 08:41:36 -07:00
|
|
|
span[aria-hidden],
|
|
|
|
/* You can't navigate in a printout. */
|
2022-05-01 17:04:20 -07:00
|
|
|
footer nav,
|
2022-05-03 17:05:47 -07:00
|
|
|
nav a:not([rel="home"]) span {
|
2022-04-27 08:41:36 -07:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-03 17:05:47 -07:00
|
|
|
/* Print: don't orphan headings
|
|
|
|
* Commented out bc most browsers don't obey this yet. */
|
|
|
|
/* h2, */
|
|
|
|
/* h3, */
|
|
|
|
/* h4 { */
|
|
|
|
/* break-after: avoid; */
|
|
|
|
/* } */
|
2022-04-27 08:41:36 -07:00
|
|
|
|
2022-05-03 22:09:14 -07:00
|
|
|
/* Print: don't break up self-contained items. */
|
2022-04-27 08:41:36 -07:00
|
|
|
figure,
|
|
|
|
article article,
|
2022-05-01 17:04:20 -07:00
|
|
|
li {
|
2022-04-27 08:41:36 -07:00
|
|
|
break-inside: avoid;
|
|
|
|
}
|