From 1ec13e7f503f4de7fe8fc41b6852af93cc83a66a Mon Sep 17 00:00:00 2001 From: Kevin Yap Date: Fri, 23 Jan 2015 22:51:25 -0800 Subject: [PATCH] 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. --- src/librustdoc/html/static/main.css | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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; }