]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Remove half-assed inclusion of link URLs (hrefs) when printing
authorChris Rebert <code@rebertia.com>
Sat, 11 Apr 2015 07:24:27 +0000 (00:24 -0700)
committerChris Rebert <code@rebertia.com>
Sat, 11 Apr 2015 07:24:27 +0000 (00:24 -0700)
* Relative URLs were output as-is, which is suboptimal or even confusing for end-users
* Ditto for fragment identifiers
* Outputting long URLs inline with prose isn't good UX

JavaScript could potentially help with this (e.g. http://alistapart.com/article/improvingprint).
However, we're not currently interested in trying to tackle the hard problem of fancy print stylesheets/views
(particularly given the level of cross-browser inconsistency when it comes to printing).
So let's just keep things simple, vanilla, and unsurprising,
which should also make it easy for others to add their own print fanciness on top of Bootstrap.

scss/_print.scss

index 54f9bffab8e5172ebcf9f64c4f9231c25b2a0d2e..44aeead49641fc31d43e45f2757b09ad694fa9d5 100644 (file)
     text-decoration: underline;
   }
 
-  a[href]:after {
-    content: " (" attr(href) ")";
-  }
-
   abbr[title]:after {
     content: " (" attr(title) ")";
   }
 
-  // Don't show links that are fragment identifiers,
-  // or use the `javascript:` pseudo protocol
-  a[href^="#"]:after,
-  a[href^="javascript:"]:after {
-    content: "";
-  }
-
   pre,
   blockquote {
     border: 1px solid #999;