Skip to content

Commit

Permalink
Fix source code pages in rustdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Oct 29, 2018
1 parent d586d5d commit 58c88e6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/librustdoc/html/static/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,11 @@ nav.sub {
padding-left: 0;
}

.example-wrap {
body:not(.source) .example-wrap {
display: inline-flex;
}

.example-wrap {
width: 100%;
}

Expand All @@ -296,7 +299,7 @@ nav.sub {
text-align: right;
}

.example-wrap > pre.rust {
body:not(.source) .example-wrap > pre.rust {
width: 100%;
}

Expand Down

0 comments on commit 58c88e6

Please sign in to comment.