Skip to content

Commit

Permalink
Rollup merge of rust-lang#43760 - ollie27:rustdoc_search_css, r=Guill…
Browse files Browse the repository at this point in the history
…aumeGomez

rustdoc: Fix broken CSS in search results

The layout is currently broken for struct/union fields and enum variants
in the search results when searching from a struct, union or enum page.

Some examples:
https://doc.rust-lang.org/nightly/std/ops/struct.RangeInclusive.html?search=start
https://doc.rust-lang.org/nightly/std/option/enum.Option.html?search=some

 rust-lang#34477 was an incomplete fix
  • Loading branch information
GuillaumeGomez authored Aug 11, 2017
2 parents 35947cf + e5261c0 commit 6fac8dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/html/static/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ span.since {
margin-bottom: 25px;
}

.enum .variant, .struct .structfield, .union .structfield {
#main > .variant, #main > .structfield {
display: block;
}

Expand Down

0 comments on commit 6fac8dc

Please sign in to comment.