Skip to content

Commit 7854883

Browse files
committed
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
1 parent a00f8ba commit 7854883

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
@@ -803,7 +803,6 @@ table,
803803
align-items: baseline;
804804
}
805805
#crate-search-div {
806-
display: inline-block;
807806
/* ensures that 100% in properties of #crate-search-div:after
808807
are relative to the size of this div */
809808
position: relative;

0 commit comments

Comments
 (0)