Add-ons on print.css

This commit is contained in:
raphaelgoetter 2013-04-05 10:03:45 +02:00
parent e575add79d
commit 79664e11e1
2 changed files with 17 additions and 1 deletions

View file

@ -1,5 +1,10 @@
/* quick print reset */
@media print {
* {
background: transparent !important;
box-shadow: none !important;
text-shadow: none !important;
}
body {
width: auto !important;
margin: auto !important;
@ -24,6 +29,13 @@
.print {
display: block; /* displaying .print elements */
}
img {
-webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%);
-ms-filter: grayscale(100%);
-o-filter: grayscale(100%);
filter: grayscale(100%);
}
p,
blockquote {
orphans: 3; /* no orphans */
@ -50,4 +62,8 @@
a[href]:after {
content: " (" attr(href) ")"; /* displaying URLs */
}
a[href^="javascript:"]:after,
a[href^="#"]:after {
content: "";
}
}