Remove (url) after links in print display

Aren Cambre - November 9, 2009 - 21:22
Project:Zen
Version:6.x-2.x-dev
Component:CSS/HTML Markup
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Not sure I see a universal use of this in print.css:

/* CSS2 selector to add visible href after links */
#content a:link:after,
#content a:visited:after {
  content: " (" attr(href) ") ";
  font-size: 0.8em;
  font-weight: normal;
}

Filing as a bug because base themes ought to conform to industry best practices, but this is more of a personal preference. In my case, it hurt legibility of my prints.

#1

JohnAlbin - November 10, 2009 - 07:45

"industry best practices"? The printed URLs are meant to help usability of prints. Surely we can improve both usability and legibility at the same time.

#2

Aren Cambre - November 10, 2009 - 21:11

This clutters up prints. Decluttering is an important part of usability.

Consider this: if someone prints a page, they generally divorce that content from further electronic use. Some sites even make URLs undetectable in print--try printing a Wikipedia page.

I vote for decluttered by default.

EDIT: By the way, this is so unusual that it took me a long time in with Firebug and Google to figure out what was going on. I say this as an industry veteran specializing in web technology.

#3

Garrett Albright - November 10, 2009 - 23:30

I personally think it's a wonderful feature. If you don't, however, you should be able to easily remove them by just adding a new print stylesheet which overrides print.css.

#content a:link:after, #content a:visited:after {
  content: "";
}

Add it to your theme's .info file the same way print.css is added (but after it), and away you go. (Haven't actually tested that, but it ought to work.)

 
 

Drupal is a registered trademark of Dries Buytaert.