Skip to content

Commit

Permalink
rustdoc: remove unused mobile CSS .rustdoc { flex-direction }
Browse files Browse the repository at this point in the history
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
  • Loading branch information
notriddle committed Sep 7, 2022
1 parent 4fd4de7 commit 210c851
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 @@ -1762,7 +1762,6 @@ in storage.js plus the media query with (min-width: 701px)
padding-top: 0px;
}

.rustdoc,
.main-heading {
flex-direction: column;
}
Expand Down

0 comments on commit 210c851

Please sign in to comment.