Skip to content

Commit

Permalink
Hide interactive elements when printing rustdoc
Browse files Browse the repository at this point in the history
Hide the search form and expand/collapse buttons, since they aren't useful when printed.
  • Loading branch information
coyotebush committed Nov 14, 2014
1 parent 1bf0649 commit ccbda28
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/librustdoc/html/static/main.css
Expand Up @@ -584,3 +584,9 @@ pre.rust { position: relative; }
height: 1.5em;
}
}

@media print {
nav.sub, .content .out-of-band, .collapse-toggle {
display: none;
}
}

0 comments on commit ccbda28

Please sign in to comment.