KNACSS/print.css

69 lines
1.2 KiB
CSS
Raw Normal View History

2013-03-31 10:19:51 +02:00
/* quick print reset */
@media print {
2013-04-05 10:03:45 +02:00
* {
background: transparent !important;
box-shadow: none !important;
text-shadow: none !important;
}
2013-03-31 10:19:51 +02:00
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 */
}
2013-04-05 10:03:45 +02:00
img {
-webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%);
-ms-filter: grayscale(100%);
-o-filter: grayscale(100%);
filter: grayscale(100%);
}
2013-03-31 10:19:51 +02:00
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 */
}
2013-04-05 10:03:45 +02:00
a[href^="javascript:"]:after,
a[href^="#"]:after {
content: "";
}
2013-03-31 10:19:51 +02:00
}