2006-01-12
RobM
When printing (or print previewing) a page which contains a media link that has a custom icon, such as ''{{document.doc}}'' for a MS Word document, the custom icon is repeated behind the entire link and its CSS-appended href tag, redering it illegibal. Further more it is missing the left margin usually present to display the custom icon.
This does not effect standard external links (i.e. ''[[http://...]]''), only media links with custom icons due to inline styles - both of which share "a.urlextern" in CSS. Modifying print.css to the below fixed this issue for me. This "fix" assumes that all inline styles applied to a.urlextern are for custom icons. Also note I have a left-margin of 18px (DokuWiki's default is 16px), as this leaves 2px spaceing between the icon and the text, making it less crowded.
print.css, lines 41-45 replaced as follows:
_____________________________
/* external link / media links (these have a style attribute) */
a.urlextern[style] {
background: transparent url(images/link_icon.gif) 0px 1px no-repeat;
padding: 1px 0px 1px 18px;
}
a.urlextern[style]:after {
content: " [" attr(href) "]";
}
a.urlextern:after {
content: " [" attr(href) "]";
font-size: 90%;
}
_____________________________