hydrogen/css/print.css

61 lines
1.4 KiB
CSS

* {
color:#000 !important;
background:transparent !important;
}
html { border: 0 }
body {
hyphens: auto;
margin:auto;
font-family: 'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L', P052, serif;
line-height: 1.5;
}
pre {
white-space: pre-wrap;
word-wrap: break-word;
border:1px solid #ccc;
}
a {
text-decoration: none !important;
font-weight: bold;
}
/* show links, but not for images */
a[href^=http]:after,
a[href^=https]:after,
a[href^=gemini]:after,
a[href^=gopher]:after {
font-size: small !important;
content: " \003C" attr(href) "\003E " !important;
}
$a:after > img {
content: "";
}
img { max-width:100% }
table {border: 1px solid #000; padding:1ex}
tr:nth-child(even) {background-color: #ddd; }
tr:nth-child(odd) {background-color: #aaa; }
h1 {
border-bottom: 1px solid #000;
text-align:center;
}
h2 { border-bottom: 1px solid #ccc; }
blockquote { page-break-inside: avoid; }
p { page-break-inside: avoid }
h1, h2, h3, h4, h5, h6 { page-break-after:avoid; page-break-inside:avoid }
img { page-break-inside:avoid; page-break-after:avoid; }
table, pre { page-break-inside:avoid }
ul, ol, dl { page-break-before:avoid }
/* break after <hr> */
hr { page-break-after: always; }
header,
footer,
aside,
#dokuwiki__sidebar,
#dokuwiki__breadcrumbs {
display:none;
}
abbr { text-decoration:none; }