From: Nicolas Coden Date: Fri, 26 Oct 2018 19:53:36 +0000 (+0200) Subject: fix: prevent/enforce color adjustment according to "$print-transparent-backgrounds" X-Git-Tag: v6.6.0~3^2~71^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11565%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git fix: prevent/enforce color adjustment according to "$print-transparent-backgrounds" --- 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; }