Skip to content

Commit

Permalink
Rollup merge of rust-lang#40888 - wesleywiser:rustdoc_src_sidebar, r=…
Browse files Browse the repository at this point in the history
…GuillaumeGomez

Make the rustdoc sidebar white on `src` pages

Fixes rust-lang#40724
  • Loading branch information
frewsxcv authored Mar 31, 2017
2 parents 7ccd0b9 + 2040dae commit 488a7b3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/librustdoc/html/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ r##"<!DOCTYPE html>
{favicon}
{in_header}
</head>
<body class="rustdoc">
<body class="rustdoc {css_class}">
<!--[if lte IE 8]>
<div class="warning">
This old browser is unsupported and will most likely display funky
Expand All @@ -80,7 +80,7 @@ r##"<!DOCTYPE html>
</form>
</nav>
<section id='main' class="content {css_class}">{content}</section>
<section id='main' class="content">{content}</section>
<section id='search' class="content hidden"></section>
<section class="footer"></section>
Expand Down
6 changes: 3 additions & 3 deletions src/librustdoc/html/static/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,15 @@ pre {
padding: 14px;
}

.source pre {
.source .content pre {
padding: 20px;
}

img {
max-width: 100%;
}

.content.source {
.source .content {
margin-top: 50px;
max-width: none;
overflow: visible;
Expand Down Expand Up @@ -231,7 +231,7 @@ nav.sub {
padding: 15px 0;
}

.content.source pre.rust {
.source .content pre.rust {
white-space: pre;
overflow: auto;
padding-left: 0;
Expand Down
4 changes: 4 additions & 0 deletions src/librustdoc/html/static/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ pre {
background-color: #fff;
}

.source .sidebar {
background-color: #fff;
}

.sidebar .location {
border-color: #000;
background-color: #fff;
Expand Down

0 comments on commit 488a7b3

Please sign in to comment.