Skip to content

Commit 972ad00

Browse files
authored
Rollup merge of #104466 - notriddle:notriddle/crate-search-div-display, 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
2 parents 938948e + 7854883 commit 972ad00

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/librustdoc/html/static/css/rustdoc.css

-1
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,6 @@ table,
802802
align-items: baseline;
803803
}
804804
#crate-search-div {
805-
display: inline-block;
806805
/* ensures that 100% in properties of #crate-search-div:after
807806
are relative to the size of this div */
808807
position: relative;

0 commit comments

Comments
 (0)