Skip to content

Commit

Permalink
Merge pull request h5bp#586 from meleyal/print-styles
Browse files Browse the repository at this point in the history
Use black for links when printing, refs h5bp#147
  • Loading branch information
necolas committed Jul 1, 2011
2 parents f7da334 + 02e749a commit 7054932
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ table { border-collapse: collapse; border-spacing: 0; }

@media print {
* { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: sanbeiji.com/archives/953 */
a, a:visited { color: #444 !important; text-decoration: underline; }
a, a:visited { text-decoration: underline; }
a[href]:after { content: " (" attr(href) ")"; }
abbr[title]:after { content: " (" attr(title) ")"; }
.ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } /* Don't show links for images, or javascript/internal links */
Expand All @@ -279,5 +279,5 @@ table { border-collapse: collapse; border-spacing: 0; }
img { max-width: 100% !important; }
@page { margin: 0.5cm; }
p, h2, h3 { orphans: 3; widows: 3; }
h2, h3{ page-break-after: avoid; }
h2, h3 { page-break-after: avoid; }
}

0 comments on commit 7054932

Please sign in to comment.