Skip to content

Commit 1bc6110

Browse files
authored
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: https://github.com/rust-lang/rust/blob/2fd378b82b14f2746462018e8510e15a079818a0/src/librustdoc/html/static/rustdoc.css#L514-L522 That negative margin was removed in 593d6d1.
2 parents cf41b38 + e1f5d4f commit 1bc6110

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/librustdoc/html/static/css/rustdoc.css

-4
Original file line numberDiff line numberDiff line change
@@ -765,10 +765,6 @@ pre, .rustdoc.source .example-wrap {
765765
margin-left: 24px;
766766
}
767767

768-
.sub-variant > div > .item-info {
769-
margin-top: initial;
770-
}
771-
772768
.content .impl-items .docblock, .content .impl-items .item-info {
773769
margin-bottom: .6em;
774770
}

0 commit comments

Comments
 (0)