about summary refs log tree commit diff
path: root/src/librustdoc/html/static/css
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-09-07 06:42:36 -0700
committerMichael Howell <michael@notriddle.com>2022-09-07 06:42:36 -0700
commit210c851dcdf1a713e0cfef0d468a529b077a2bc2 (patch)
treeabd877dbe4196d3865814152ab3fee5c14d5aeda /src/librustdoc/html/static/css
parent4fd4de7ea358ad6fc28c5780533ea8ccc09e1006 (diff)
downloadrust-210c851dcdf1a713e0cfef0d468a529b077a2bc2.tar.gz
rust-210c851dcdf1a713e0cfef0d468a529b077a2bc2.zip
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
Diffstat (limited to 'src/librustdoc/html/static/css')
-rw-r--r--src/librustdoc/html/static/css/rustdoc.css1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index c117e3ac40d..c216dac4fee 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -1762,7 +1762,6 @@ in storage.js plus the media query with (min-width: 701px)
 		padding-top: 0px;
 	}
 
-	.rustdoc,
 	.main-heading {
 		flex-direction: column;
 	}