From 7669f04fb0ddc3d71a1fb44dc1c5c00a6564ae99 Mon Sep 17 00:00:00 2001 From: Alexis Beingessner Date: Mon, 28 Jul 2014 22:33:43 -0400 Subject: [PATCH] making raw source display better * Make the code fill up the full width of the page (no massive whitespace on the left) * Move the code down to make it not intersect the logo * Set a min-width and remove the max-width so that the code doesn't scroll internally, but instead scrolls the page, meaning horizontal scroll bars are always available * Set overflow to actually overflow, just to be sure Fixes #15891 --- src/librustdoc/html/static/main.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/librustdoc/html/static/main.css b/src/librustdoc/html/static/main.css index c22dd64d2b4c8..45e6694853cb4 100644 --- a/src/librustdoc/html/static/main.css +++ b/src/librustdoc/html/static/main.css @@ -129,6 +129,14 @@ pre { padding: 20px; } +.content.source { + margin-top: 50px; + max-width: none; + overflow: visible; + margin-left: 0px; + min-width: 70em; +} + nav.sub { font-size: 16px; text-transform: uppercase;