Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
improve print media output
Browse files Browse the repository at this point in the history
  • Loading branch information
trentm committed Mar 21, 2011
1 parent 9aee3d9 commit da6fe18
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions brand/api.no.de/media/css/restdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ h4 {
}



/* ---- custom classes */

pre.shell,
Expand Down Expand Up @@ -274,3 +275,28 @@ h2 span {
word-spacing: 0.8em; /* separate verb from path */
color:#fff;
}




/*---- print media */

@media print {
body { background:white; color:black; margin:0; }
#sidebar {
display: none;
}
#content {
position: relative;
padding: 5px;
left: 0px;
top: 0px;
}
h1, h2, h4 {
page-break-after: avoid;
}
pre {
page-break-inside: avoid;
}
}

0 comments on commit da6fe18

Please sign in to comment.