]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Update print styles borrowed from h5bp 20821/head
authorPatrick H. Lauke <redux@splintered.co.uk>
Sun, 2 Oct 2016 15:17:59 +0000 (16:17 +0100)
committerPatrick H. Lauke <redux@splintered.co.uk>
Sun, 2 Oct 2016 15:33:11 +0000 (16:33 +0100)
most notable change:
- fixes print/print preview crash in IE11 (caused by `*:first-line`
selector)

scss/_print.scss

index 84556602f1422168c9b7c4f1681fcaf730737273..fd99d6978364030d0c78092ccd54cf5bb7b52f55 100644 (file)
     *::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;
     }
 
     //
 
     //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