about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorCorey Ford <corey@coreyford.name>2014-11-14 11:44:40 -0800
committerCorey Ford <corey@coreyford.name>2014-11-14 15:48:05 -0800
commitccbda288d266cc3bd4f6b47b3be6020544fb1b68 (patch)
tree19b5eb4c6fd88a1ed34ebad382d8cf18efd688e4 /src
parent1bf06495443584539b958873e04cc2f864ab10e4 (diff)
downloadrust-ccbda288d266cc3bd4f6b47b3be6020544fb1b68.tar.gz
rust-ccbda288d266cc3bd4f6b47b3be6020544fb1b68.zip
Hide interactive elements when printing rustdoc
Hide the search form and expand/collapse buttons, since they aren't useful when printed.
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/html/static/main.css6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/main.css b/src/librustdoc/html/static/main.css
index 7cc34798f99..b28da098a57 100644
--- a/src/librustdoc/html/static/main.css
+++ b/src/librustdoc/html/static/main.css
@@ -584,3 +584,9 @@ pre.rust { position: relative; }
         height: 1.5em;
     }
 }
+
+@media print {
+    nav.sub, .content .out-of-band, .collapse-toggle {
+        display: none;
+    }
+}