Skip to content

Commit

Permalink
Rollup merge of #79973 - camelid:rustdoc-search-tab-color, r=Guillaum…
Browse files Browse the repository at this point in the history
…eGomez

rustdoc light theme: Fix CSS for selected buttons

Fixes #79961.

The background was dark before, which made the text impossible to read.
Now the button doesn't override the background, and the only thing it
does is add a light-blue top border.

Ultimately, the search results tabs now look very similar to how they
used to look.

r? `@GuillaumeGomez`
  • Loading branch information
JohnTitor committed Dec 13, 2020
2 parents d90084c + 2b455aa commit 5115bbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/html/static/themes/light.css
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ pre.ignore:hover, .information:hover + pre.ignore {
}

#titles > button:hover, #titles > button.selected {
background-color: #ffffff;
border-top-color: #0089ff;
background-color: #353535;
}

#titles > button > div.count {
Expand Down

0 comments on commit 5115bbf

Please sign in to comment.