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 committed Jul 29, 2014
1 parent 66a0b52 commit 70c936b
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

4 comments on commit 70c936b

@bors
Copy link
Contributor

@bors bors commented on 70c936b Jul 30, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from alexcrichton
at Gankra@70c936b

@bors
Copy link
Contributor

@bors bors commented on 70c936b Jul 30, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging Gankro/rust/code-display-fix = 70c936b into auto

@bors
Copy link
Contributor

@bors bors commented on 70c936b Jul 30, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gankro/rust/code-display-fix = 70c936b merged ok, testing candidate = 5211258f

Please sign in to comment.