]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Helper class for page breaks inside elements 9544/head
authorShaun Simmons <simshaun@gmail.com>
Wed, 21 Dec 2016 07:43:10 +0000 (02:43 -0500)
committerShaun Simmons <simshaun@gmail.com>
Wed, 21 Dec 2016 07:43:10 +0000 (02:43 -0500)
scss/typography/_print.scss

index 2de0fa9aa26f1d02b7177c377e8cfde931c62142..25255b8543885c8d2fdd90a3fa882c54cebf02b4 100644 (file)
@@ -77,5 +77,10 @@ $print-hrefs: true !default;
     // Avoid page breaks after a heading
     h2,
     h3 { page-break-after: avoid; }
+
+    // Helper to re-allow page breaks in the middle of certain elements (e.g. pre, blockquote, tr)
+    .print-break-inside {
+      page-break-inside: auto;
+    }
   }
 }