From 739fede6bf34d68fbd06da0820e9124aaf3761f9 Mon Sep 17 00:00:00 2001 From: Shaun Simmons Date: Wed, 21 Dec 2016 02:43:10 -0500 Subject: [PATCH] Helper class for page breaks inside elements --- scss/typography/_print.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scss/typography/_print.scss b/scss/typography/_print.scss index 2de0fa9aa..25255b854 100644 --- a/scss/typography/_print.scss +++ b/scss/typography/_print.scss @@ -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; + } } } -- 2.47.2