From e1f5d4f23f8136a7842c6bc38a1cde78566149b7 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Tue, 6 Sep 2022 10:33:58 -0700 Subject: [PATCH] rustdoc: remove outdated CSS `.sub-variant > div > .item-info` This CSS still matches sometimes, as you can see in , 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. --- src/librustdoc/html/static/css/rustdoc.css | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index 3502d97d470fe..1f293c96757d9 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; }