Skip to content

Commit

Permalink
making raw source display better
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Gankra authored and alexcrichton committed Jul 29, 2014
1 parent 9cffd7f commit 7669f04
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/librustdoc/html/static/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7669f04

Please sign in to comment.