]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Add $print-transparent-backgrounds Sass variable to control the use of background...
authorGeoff Kimball <geoff@zurb.com>
Fri, 15 Jan 2016 21:38:41 +0000 (13:38 -0800)
committerGeoff Kimball <geoff@zurb.com>
Fri, 15 Jan 2016 21:38:43 +0000 (13:38 -0800)
scss/typography/_print.scss

index 244bbcfa9257095a115c88828b0aaed6f7d65ebb..1cfda09eeb853660de1c63e15b0ffb9e5c5de351 100644 (file)
@@ -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
 
 
   @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;