]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fix mixup between show-for-print and print-only visibility classes 6997/head 7795/head
authorCésar Izurieta <cesar@caih.org>
Wed, 11 Nov 2015 23:54:27 +0000 (21:54 -0200)
committerCésar Izurieta <cesar@caih.org>
Thu, 7 Jan 2016 00:13:59 +0000 (19:13 -0500)
doc/pages/components/visibility.html
scss/foundation/components/_visibility.scss

index 332ed8a24fe84e177d1445b6578b07c6c835aab9..46b078a80c2833b1e910bdc44deda4106db74bc8 100644 (file)
@@ -76,7 +76,7 @@ To reverse the rules defined by **hidden**, use the **visible** visibility class
 
 ## Print Visibility
 
-Foundation includes a couple of simple classes you can use to control elements printing, or not printing. Simply attach `.show-for-print` to an element to only show when printing, and `.hide-for-print` to hide something when printing.
+Foundation includes a couple of simple classes you can use to control elements printing, or not printing. Simply attach `.show-for-print` to an element to show when printing, `.print-only` for showing the element only when printing, and `.hide-for-print` to hide something when printing.
 
 Available classes:
 - `.show-for-print` , `.print-only` (Visible for printing)
index f28399741e5ef43d8350a159b9031ef01750e330..403a158daa009e8371032d7ce8ac5a74cb087720 100644 (file)
@@ -405,8 +405,7 @@ $visibility-breakpoint-queries:
 
   /* Print visibility */
   @if $include-print-styles {
-    .print-only,
-    .show-for-print { display: none !important; }
+    .print-only { display: none !important; }
     @media print {
       .print-only,
       .show-for-print { display: block !important; }