From: Patrick H. Lauke Date: Sun, 2 Oct 2016 15:17:59 +0000 (+0100) Subject: Update print styles borrowed from h5bp X-Git-Tag: v4.0.0-alpha.5~54^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F20821%2Fhead;p=thirdparty%2Fbootstrap.git Update print styles borrowed from h5bp most notable change: - fixes print/print preview crash in IE11 (caused by `*:first-line` selector) --- diff --git a/scss/_print.scss b/scss/_print.scss index 84556602f1..fd99d69783 100644 --- a/scss/_print.scss +++ b/scss/_print.scss @@ -14,7 +14,10 @@ *::before, *::after, *::first-letter, - *::first-line { + p::first-line, + div::first-line, + blockquote::first-line, + li::first-line { // Bootstrap specific; comment out `color` and `background` //color: #000 !important; // Black prints faster: // http://www.sanbeiji.com/archives/953 @@ -24,7 +27,7 @@ } a, - a:visited { + a::visited { text-decoration: underline; } @@ -44,10 +47,13 @@ // //a[href^="#"]::after, - //a[href^="javascript:"]::after { - // content: ""; + //a[href^="javascript:"]:after { + // content: ""; //} + pre { + white-space: pre-wrap !important; + } pre, blockquote { border: $border-width solid #999; // Bootstrap custom code; using `$border-width` instead of 1px