about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-10-03 08:00:47 +0200
committerGitHub <noreply@github.com>2022-10-03 08:00:47 +0200
commitc3053309c51b01bc51944f044a61f43de86d9fd8 (patch)
tree24cf1adecc6b7e1bdf9a9fe14143b1d1aed1f062
parent607b8296e07cc1bf5b95eeb60a21b5af684f7631 (diff)
parentd46e558a93a281a9e41a35cb181a375df388f60c (diff)
downloadrust-c3053309c51b01bc51944f044a61f43de86d9fd8.tar.gz
rust-c3053309c51b01bc51944f044a61f43de86d9fd8.zip
Rollup merge of #102550 - notriddle:notriddle/impl, r=GuillaumeGomez
rustdoc: remove no-op CSS on `.impl, .method` etc

Preview: http://notriddle.com/notriddle-rustdoc-demos/impl/index.html

# `flex-basis: 100%`

When `.impl-items { flex-basis: 100% }` and `h3.impl, h3.method, h4.method, h3.type, h4.type, h4.associatedconstant` were added in https://github.com/rust-lang/rust/commit/34bd2b845b3acd84c5a9bddae3ff8081c19ec5e9, it seems like it was a mistake even then. According to MDN, [flex-basis] does nothing unless the box it's applied to is a flex *item*, a child of a flex container. However, when this was added, these elements were flex containers themselves.

[flex-basis]: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-basis

# `position: relative`

This property was added to help with positioning the `[+]/[-]` toggle. It is no longer necessary, because `details.rustdoc-toggle` already has `position:relative` set on it.
-rw-r--r--src/librustdoc/html/static/css/rustdoc.css12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index a9dbb2d4a1b..45433fd9b65 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -184,18 +184,6 @@ h4.code-header {
 	margin: 0;
 	padding: 0;
 }
-.impl,
-.impl-items .method,
-.methods .method,
-.impl-items .type,
-.methods .type,
-.impl-items .associatedconstant,
-.methods .associatedconstant,
-.impl-items .associatedtype,
-.methods .associatedtype {
-	flex-basis: 100%;
-	position: relative;
-}
 
 #crate-search,
 h1, h2, h3, h4, h5, h6,