From dba26f62a185b99bc557caea34d5912358cfadaa Mon Sep 17 00:00:00 2001 From: Geoff Kimball Date: Fri, 15 Jan 2016 13:38:41 -0800 Subject: [PATCH] Add $print-transparent-backgrounds Sass variable to control the use of background: transparent in @print stylesheets, closes #7830 --- scss/typography/_print.scss | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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; -- 2.47.2