Skip to content

Commit ccbda28

Browse files
committed
Hide interactive elements when printing rustdoc
Hide the search form and expand/collapse buttons, since they aren't useful when printed.
1 parent 1bf0649 commit ccbda28

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/librustdoc/html/static/main.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,3 +584,9 @@ pre.rust { position: relative; }
584584
height: 1.5em;
585585
}
586586
}
587+
588+
@media print {
589+
nav.sub, .content .out-of-band, .collapse-toggle {
590+
display: none;
591+
}
592+
}

0 commit comments

Comments
 (0)