From 0839dbe08f262b6c53be24c21df15cb588484595 Mon Sep 17 00:00:00 2001 From: Nicolas Coden Date: Fri, 26 Oct 2018 21:53:36 +0200 Subject: [PATCH] fix: prevent/enforce color adjustment according to "$print-transparent-backgrounds" --- scss/typography/_print.scss | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scss/typography/_print.scss b/scss/typography/_print.scss index 66b681faf..22ea8b76d 100644 --- a/scss/typography/_print.scss +++ b/scss/typography/_print.scss @@ -15,13 +15,19 @@ $print-hrefs: true !default; @media print { * { + // Ensure a "black-on-white" print by removing backgrounds, + // using black text everywhere and forcing the browser to economize ink. @if $print-transparent-backgrounds { background: transparent !important; color: black !important; // Black prints faster: h5bp.com/s + color-adjust: economy; + } + // Otherwise, prevent any economy by the browser. + @else { + color-adjust: exact; } box-shadow: none !important; - text-shadow: none !important; } -- 2.47.2