Skip to content

Commit 7669f04

Browse files
Gankraalexcrichton
authored andcommitted
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 rust-lang#15891
1 parent 9cffd7f commit 7669f04

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/librustdoc/html/static/main.css

+8
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,14 @@ pre {
129129
padding: 20px;
130130
}
131131

132+
.content.source {
133+
margin-top: 50px;
134+
max-width: none;
135+
overflow: visible;
136+
margin-left: 0px;
137+
min-width: 70em;
138+
}
139+
132140
nav.sub {
133141
font-size: 16px;
134142
text-transform: uppercase;

0 commit comments

Comments
 (0)