Improve print media styling

This commit is contained in:
Ben Edgington
2022-02-04 20:49:04 +00:00
parent f73aded400
commit 98587bd77e

View File

@@ -276,12 +276,21 @@ div.summary {
@media print {
html, body, main, div.main-content {
overflow: visible !important;
width: initial !important;
width: 100% !important;
max-width: initial !important;
min-width: initial !important;
margin: initial !important;
padding: initial !important;
font-size: initial !important;
}
div.main-content {
display: block !important;
font-size: 12pt !important;
padding: 0 12mm !important;
}
h1, h2, h3, h4, h5, h6 {
position: initial !important;
break-after: avoid; /* Not working with Chrome? */
page-break-after: avoid;
}
td, th {
color: inherit;
@@ -296,4 +305,7 @@ div.summary {
a[rel*="external"]::after {
content: "";
}
a.anchor {
display: none;
}
}