Skip to content

Commit

Permalink
Auto merge of rust-lang#80412 - GuillaumeGomez:fix-search-section-pos…
Browse files Browse the repository at this point in the history
…, r=jyn514

Fix search section position on small devices

Fixes rust-lang#79526.

This is exactly the same issue fixed in 9c36491 (in rust-lang#79936) but applied to the search section. When the width becomes too small, the search input goes on its own line to get more space, making it go "under" the section following (so either "main" or "search"). The fix is to simply make the section go more under so that it doesn't go over the search input.

r? `@jyn514`
  • Loading branch information
bors committed Jan 2, 2021
2 parents fd85ca0 + 2ab3651 commit fde6927
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/librustdoc/html/static/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -1582,7 +1582,10 @@ h4 > .notable-traits {
height: 73px;
}

#main {
/* This is to prevent the search bar from being underneath the <section>
* element following it.
*/
#main, #search {
margin-top: 100px;
}

Expand Down

0 comments on commit fde6927

Please sign in to comment.