From 79664e11e1b2e52a51964b9e3d4f3e6a21f782e0 Mon Sep 17 00:00:00 2001 From: raphaelgoetter Date: Fri, 5 Apr 2013 10:03:45 +0200 Subject: [PATCH] Add-ons on print.css --- knacss.css | 2 +- print.css | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/knacss.css b/knacss.css index 13c985d..5cc7af0 100644 --- a/knacss.css +++ b/knacss.css @@ -1,6 +1,6 @@ /* * www.KNACSS.com V2.6d @author: Raphael Goetter, Alsacreations -* Licence CC-BY http://creativecommons.org/licenses/by/3.0/fr/ +* Licence CC-BY http://creativecommons.org/licenses/by/3.0/fr/ */ /* ----------------------------- */ diff --git a/print.css b/print.css index f9c6775..bc14a74 100644 --- a/print.css +++ b/print.css @@ -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: ""; + } } \ No newline at end of file