Skip to content

Commit e1f5d4f

Browse files
committed
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 in 2fd378b (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. That negative margin was removed in 593d6d1.
1 parent 3c72788 commit e1f5d4f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -770,10 +770,6 @@ pre, .rustdoc.source .example-wrap {
770770
margin-left: 24px;
771771
}
772772

773-
.sub-variant > div > .item-info {
774-
margin-top: initial;
775-
}
776-
777773
.content .impl-items .docblock, .content .impl-items .item-info {
778774
margin-bottom: .6em;
779775
}

0 commit comments

Comments
 (0)