Rollup merge of #101491 - notriddle:notriddle/sub-variant-div-item-info, r=GuillaumeGomez

rustdoc: remove outdated CSS `.sub-variant > div > .item-info`

This CSS still matches sometimes, as you can see in <https://doc.rust-lang.org/1.63.0/std/collections/enum.TryReserveErrorKind.html#variant.AllocError.fields>, but since nothing else is setting `margin-top`, putting it back to `initial` does nothing.

This selector was added here, but it was called `.stability` instead of `.item-info` at the time, probably as an override for the selector immediately above it that sets a negative margin:

2fd378b82b/src/librustdoc/html/static/rustdoc.css (L514-L522)

That negative margin was removed in 593d6d1cb15c55c88319470dabb40126c7b7f1e2.
This commit is contained in:
Yuki Okushi 2022-09-07 07:43:57 +09:00 committed by GitHub
commit 1bc6110fdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -765,10 +765,6 @@ pre, .rustdoc.source .example-wrap {
margin-left: 24px;
}
.sub-variant > div > .item-info {
margin-top: initial;
}
.content .impl-items .docblock, .content .impl-items .item-info {
margin-bottom: .6em;
}