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 34bd2b845b, 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.
This commit is contained in:
Matthias Krüger 2022-10-03 08:00:47 +02:00 committed by GitHub
commit c3053309c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,