]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
add setting var for printing hrefs after link text 9304/head
authorAndy Cochran <acochran@council.nyc.gov>
Thu, 27 Oct 2016 15:51:39 +0000 (11:51 -0400)
committerAndy Cochran <acochran@council.nyc.gov>
Thu, 27 Oct 2016 15:51:39 +0000 (11:51 -0400)
scss/typography/_print.scss

index 348aad9cf102648ffb45eda085899292c9a36ac9..43cf6fa7c207516aa163956915e99a1e41e2c1cc 100644 (file)
@@ -6,6 +6,7 @@
 /// @type Boolean
 /// @group global
 $print-transparent-backgrounds: true !default;
+$print-hrefs: true !default;
 
 // scss-lint:disable all
 
@@ -36,7 +37,9 @@ $print-transparent-backgrounds: true !default;
     // Display the URL of a link after the text
     a,
     a:visited { text-decoration: underline;}
-    a[href]:after { content: ' (' attr(href) ')'; }
+    @if $print-hrefs {
+      a[href]:after { content: ' (' attr(href) ')'; }
+    }
 
     // Don't display the URL for images or JavaScript/internal links
     .ir a:after,