From: Geoff Kimball Date: Fri, 15 Jan 2016 21:38:41 +0000 (-0800) Subject: Add $print-transparent-backgrounds Sass variable to control the use of background... X-Git-Tag: v6.2.0-rc.1~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dba26f62a185b99bc557caea34d5912358cfadaa;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Add $print-transparent-backgrounds Sass variable to control the use of background: transparent in @print stylesheets, closes #7830 --- diff --git a/scss/typography/_print.scss b/scss/typography/_print.scss index 244bbcfa9..1cfda09ee 100644 --- a/scss/typography/_print.scss +++ b/scss/typography/_print.scss @@ -2,9 +2,10 @@ // foundation.zurb.com // Licensed under MIT Open Source -//// -/// @group typography -//// +/// If `true`, all elements will have transparent backgrounds when printed, to save on ink. +/// @type Boolean +/// @group global +$print-transparent-backgrounds: true !default; // scss-lint:disable all @@ -13,7 +14,10 @@ @media print { * { - background: transparent !important; + @if $print-transparent-backgrounds { + background: transparent !important; + } + color: black !important; // Black prints faster: h5bp.com/s box-shadow: none !important; text-shadow: none !important;