about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-09-06 10:33:58 -0700
committerMichael Howell <michael@notriddle.com>2022-09-06 10:36:51 -0700
commite1f5d4f23f8136a7842c6bc38a1cde78566149b7 (patch)
tree1edafa1decb3ec5965bd467ad6ea1ec765989dea
parent3c7278846102bb829c9a789e91bc43f0ed612943 (diff)
downloadrust-e1f5d4f23f8136a7842c6bc38a1cde78566149b7.tar.gz
rust-e1f5d4f23f8136a7842c6bc38a1cde78566149b7.zip
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 2fd378b82b14f2746462018e8510e15a079818a0 (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 593d6d1cb15c55c88319470dabb40126c7b7f1e2.
-rw-r--r--src/librustdoc/html/static/css/rustdoc.css4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index 3502d97d470..1f293c96757 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -770,10 +770,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;
 }