Skip to content

Commit 210c851

Browse files
committed
rustdoc: remove unused mobile CSS .rustdoc { flex-direction }
According to MDN, [flex-direction] only applies to [flex containers], which are boxes with `display: flex` or `inline-flex`. However, the `.rustdoc` body container is not a flex-container on mobile. A few lines above, it's set to `display: block`, so this selector does not have any effect. [flex-direction]: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction [flex containers]: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Basic_Concepts_of_Flexbox#the_flex_container
1 parent 4fd4de7 commit 210c851

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
@@ -1762,7 +1762,6 @@ in storage.js plus the media query with (min-width: 701px)
17621762
padding-top: 0px;
17631763
}
17641764

1765-
.rustdoc,
17661765
.main-heading {
17671766
flex-direction: column;
17681767
}

0 commit comments

Comments
 (0)