From 248eda3919671f6220a26ed0dbdf77f1d0c25f77 Mon Sep 17 00:00:00 2001 From: Hugo Giraudel Date: Sat, 6 Apr 2013 17:38:36 +0200 Subject: [PATCH 1/2] Made changes in print.scss --- sass/print.scss | 38 +++++++++++++++++++++++++++----------- 1 file changed, 27 insertions(+), 11 deletions(-) diff --git a/sass/print.scss b/sass/print.scss index abc2008..cf698a1 100644 --- a/sass/print.scss +++ b/sass/print.scss @@ -3,20 +3,26 @@ /* ----------------------------- */ @media print { - body { - width: auto !important; - margin: auto !important; - font-family: serif; - font-size: 12pt; - background-color: #fff !important; - color: #333 !important; + * { + background: transparent !important; + box-shadow: none !important; + text-shadow: none !important; } - h1, h2, h3, h4, h5, h6, - blockquote, p + body { + width: auto !important; + margin: auto !important; + font-family: serif; + font-size: 12pt; + background-color: #fff !important; + color: #333 !important; + } + + h1, h2, h3, h4, h5, h6, + p, blockquote, ul, ol { - color: #000 !important; - margin: auto !important; + color: #000 !important; + margin: auto !important; } /** @@ -26,6 +32,10 @@ display: block; } + img { + @include filter(grayscale(100%)); + } + /** * 1. No orphans * 2. No widows @@ -61,6 +71,7 @@ /** * 1. Displays url after link + * 2. ... unless it's a JS or empty link */ a { color: #000 !important; @@ -69,5 +80,10 @@ &[href]:after { content: " (" attr(href) ")"; /* 1 */ } + + &[href^="javascript:"]:after, + &[href^="#"]:after { + content: ''; /* 2 */ + } } } \ No newline at end of file From d936dec5614a57ab8adc15fd5108b9c8efcb9797 Mon Sep 17 00:00:00 2001 From: Hugo Giraudel Date: Sun, 7 Apr 2013 11:33:23 +0200 Subject: [PATCH 2/2] Added ul.unstyled --- css/knacss.css | 5 ++++- less/knacss.less | 3 +++ sass/knacss.scss | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/css/knacss.css b/css/knacss.css index 5cc7af0..11026ee 100644 --- a/css/knacss.css +++ b/css/knacss.css @@ -1,5 +1,5 @@ /* -* www.KNACSS.com V2.6d @author: Raphael Goetter, Alsacreations +* www.KNACSS.com V2.6e @author: Raphael Goetter, Alsacreations * Licence CC-BY http://creativecommons.org/licenses/by/3.0/fr/ */ @@ -106,6 +106,9 @@ ul, ol { padding-left: 2em; } +ul.unstyled { + list-style: none; +} code, pre, samp, diff --git a/less/knacss.less b/less/knacss.less index c186982..d4e1c97 100644 --- a/less/knacss.less +++ b/less/knacss.less @@ -119,6 +119,9 @@ ul, ol { padding-left: 2em; } +ul.unstyled { + list-style: none; +} code, pre, samp, diff --git a/sass/knacss.scss b/sass/knacss.scss index aaa2622..5b415d2 100644 --- a/sass/knacss.scss +++ b/sass/knacss.scss @@ -168,6 +168,10 @@ figure, label { ul, ol { padding-left: 2em; + + &.unstyled { + list-style: none; + } } code, pre,