about summary refs log tree commit diff
path: root/src/librustdoc/html/static/main.css
diff options
context:
space:
mode:
authorAlexis Beingessner <a.beingessner@gmail.com>2014-07-28 22:33:43 -0400
committerAlex Crichton <alex@alexcrichton.com>2014-07-29 15:44:14 -0700
commit7669f04fb0ddc3d71a1fb44dc1c5c00a6564ae99 (patch)
tree240b0713decff0156a72165c18aa30307fe06d49 /src/librustdoc/html/static/main.css
parent9cffd7faeaf29c2aaba02c7808c9cb6fbb54873f (diff)
downloadrust-7669f04fb0ddc3d71a1fb44dc1c5c00a6564ae99.tar.gz
rust-7669f04fb0ddc3d71a1fb44dc1c5c00a6564ae99.zip
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
Diffstat (limited to 'src/librustdoc/html/static/main.css')
-rw-r--r--src/librustdoc/html/static/main.css8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/main.css b/src/librustdoc/html/static/main.css
index c22dd64d2b4..45e6694853c 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;