KNACSS/print.css
raphaelgoetter 0468166a34 first commit
2013-03-31 10:19:51 +02:00

53 lines
877 B
CSS

/* quick print reset */
@media print {
body {
width: auto !important;
margin: auto !important;
font-family: serif;
font-size: 12pt;
background-color: #fff !important;
color: #333 !important;
}
p,
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
ul,
ol {
color: #000 !important;
margin: auto !important;
}
.print {
display: block; /* displaying .print elements */
}
p,
blockquote {
orphans: 3; /* no orphans */
widows: 3; /* no widows */
}
blockquote,
ul,
ol {
page-break-inside: avoid; /* no breaks inside these elements */
}
h1 {
page-break-before: always; /* page break before main headers */
}
h1,
h2,
h3,
caption {
page-break-after: avoid; /* no breaks after these elements */
}
a {
color: #000 !important;
text-decoration: underline !important;
}
a[href]:after {
content: " (" attr(href) ")"; /* displaying URLs */
}
}