Skip to content

Commit

Permalink
Rollup merge of #101491 - notriddle:notriddle/sub-variant-div-item-in…
Browse files Browse the repository at this point in the history
…fo, 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:

https://github.com/rust-lang/rust/blob/2fd378b82b14f2746462018e8510e15a079818a0/src/librustdoc/html/static/rustdoc.css#L514-L522

That negative margin was removed in 593d6d1.
  • Loading branch information
JohnTitor authored Sep 6, 2022
2 parents cf41b38 + e1f5d4f commit 1bc6110
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1bc6110

Please sign in to comment.