mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-19 16:54:24 +01:00
Remove half-assed inclusion of link URLs (hrefs) when printing
* 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.
This commit is contained in:
parent
6a2d456719
commit
b9164b3690
@ -20,21 +20,10 @@
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user