Infra: Improve print style (#3486)

This commit is contained in:
Sebastian Rittau 2023-11-14 19:41:48 +01:00 committed by GitHub
parent bf0b381704
commit 6643c37d31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 61 additions and 1 deletions

View File

@ -88,8 +88,12 @@
img {
max-width: 100% !important;
}
/* Page margins according to DIN 5008, leaves space for punched holes. */
@page {
margin: 0.5cm;
margin-top: 2cm;
margin-bottom: 2cm;
margin-left: 2.5cm;
margin-right: 2.5cm;
}
p,
h2,
@ -102,4 +106,60 @@
h3 {
page-break-after: avoid;
}
h1 {
font-size: 18pt;
font-weight: bold;
text-align: center;
}
h2, details > summary {
font-size: 15pt;
font-weight: normal;
}
h3 {
font-size: 13pt;
font-weight: normal;
}
h4 {
font-size: 10pt;
font-weight: 600;
}
a, abbr {
text-decoration: none;
}
details {
display: none;
}
details[open] {
display: block;
}
h1.page-title:first-child {
margin-top: 0;
}
section#pep-page-section {
display: flex;
justify-content: center;
padding: 0;
margin: 0 auto;
}
section#pep-page-section > header,
nav#pep-sidebar {
display: none;
}
section#pep-page-section > article {
float: none;
max-width: 17.5cm;
width: auto;
margin: 0;
padding: 0;
}
/* This blocks a small portion on each page. */
readthedocs-flyout {
display: none;
}
}