Skip to content

Commit

Permalink
Rollup merge of #104466 - notriddle:notriddle/crate-search-div-displa…
Browse files Browse the repository at this point in the history
…y, r=GuillaumeGomez

rustdoc: remove no-op CSS `#crate-search-div { display: inline-block }`

`#crate-search-div` is nested directly below `.search-results-title`, which has `display: inline-flex`. This makes the crate-search-div a [flex item], which makes its display property irrelevant, because flex items have their display [blockified] in any case.

[flex item]: https://developer.mozilla.org/en-US/docs/Glossary/Flex_Item
[blockified]: https://www.w3.org/TR/css-flexbox-1/#flex-items
  • Loading branch information
matthiaskrgr committed Nov 16, 2022
2 parents 938948e + 7854883 commit 972ad00
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,6 @@ table,
align-items: baseline;
}
#crate-search-div {
display: inline-block;
/* ensures that 100% in properties of #crate-search-div:after
are relative to the size of this div */
position: relative;
Expand Down

0 comments on commit 972ad00

Please sign in to comment.