about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKevin Yap <me@kevinyap.ca>2015-01-23 22:51:25 -0800
committerKevin Yap <me@kevinyap.ca>2015-01-24 12:09:24 -0800
commit1ec13e7f503f4de7fe8fc41b6852af93cc83a66a (patch)
tree1b6451dbe80071b7089ee2a3cb11a9374439fb58
parentd8d5e4d2178097fbe92b26e57d0e18dc1eedbe5e (diff)
downloadrust-1ec13e7f503f4de7fe8fc41b6852af93cc83a66a.tar.gz
rust-1ec13e7f503f4de7fe8fc41b6852af93cc83a66a.zip
Improve mobile-friendliness of API docs
Removes min-width rule from body so that the page does not scroll
horizontally on mobile displays; hides out-of-band information.
-rw-r--r--src/librustdoc/html/static/main.css9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/main.css b/src/librustdoc/html/static/main.css
index 0914f93efd8..46faa3efc34 100644
--- a/src/librustdoc/html/static/main.css
+++ b/src/librustdoc/html/static/main.css
@@ -64,7 +64,6 @@
 
 body {
     color: #333;
-    min-width: 500px;
     font: 16px/1.4 "Source Serif Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
     margin: 0;
     position: relative;
@@ -592,6 +591,14 @@ pre.rust { position: relative; }
         margin-left: 0px;
     }
 
+    .content .in-band {
+        width: 100%;
+    }
+
+    .content .out-of-band {
+        display: none;
+    }
+
     .toggle-wrapper > .collapse-toggle {
         left: 0px;
     }