printing css
All checks were successful
ci/woodpecker/push/publish Pipeline was successful

This commit is contained in:
Mylloon 2024-05-29 22:46:37 +02:00
parent beacc5e02d
commit 73a235e3e1
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 47 additions and 1 deletions

View file

@ -246,3 +246,31 @@ nav#toc {
visibility: hidden;
}
}
@media print {
/* Better colors for paper */
blockquote {
border-color: black;
background: var(--background);
}
.hljs {
background: var(--background);
}
/* Force line numbering to be on top */
td.hljs-ln-line {
vertical-align: top;
}
/* Break code */
code.hljs {
white-space: break-spaces;
hyphens: none;
}
/* Hide arrows of backref */
a.footnote-backref {
visibility: hidden;
}
}

View file

@ -67,7 +67,25 @@ header nav a:hover {
}
@media print {
/* Hide navigation header */
header nav {
visibility: hidden;
display: none;
}
/* Better colors for paper */
html {
color: black;
background-color: white;
}
/* Add links */
a:not(:where([href^="#"], [href^="/"])):not(:has(img))::after {
content: " (" attr(href) ")";
display: inline-block;
color: mediumblue;
}
a {
text-underline-position: under;
}
}