From c6c4e0f4384cc2416877b0731452119ae355d22b Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Tue, 20 Sep 2022 16:15:54 -0700 Subject: [PATCH 1/2] rustdoc: remove no-op `.method { font-size: 1rem }` This rule was added in 22dad4b0440b184568956c10f2cbedabf763065a, back when the `method` class was attached to headers instead of DIVs that wrap headers. Old method rendering: https://github.com/rust-lang/rust/blob/a96247bcac385671757034bd928c13097fd2ce76/src/librustdoc/html/render.rs#L2062 Current method rendering: https://github.com/rust-lang/rust/blob/432abd86f231c908f6df3cdd779e83f35084be90/src/librustdoc/html/render/print_item.rs#L721 --- src/librustdoc/html/static/css/rustdoc.css | 1 - 1 file changed, 1 deletion(-) diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index e985e6c43ad..d9e5f77ef0a 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -729,7 +729,6 @@ pre, .rustdoc.source .example-wrap { } .content > .methods > .method { - font-size: 1rem; position: relative; } /* Shift "where ..." part of method or fn definition down a line */ From 04e98b9025f8b637fb5e67b0a697e324e6aebc66 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Tue, 20 Sep 2022 16:16:17 -0700 Subject: [PATCH 2/2] rustdoc: remove no-op `.method { position: relative }` This rule was added in 88fe6dfa31a1bee49090dc72c537c5cd7bd632f4 to assist in position the hide/show togges on methods. This is no longer needed, because these toggles are no longer implemented as absolutely positioned links nested inside headers. --- src/librustdoc/html/static/css/rustdoc.css | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index d9e5f77ef0a..ec00dabbf43 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -728,9 +728,6 @@ pre, .rustdoc.source .example-wrap { padding: 0; } -.content > .methods > .method { - position: relative; -} /* Shift "where ..." part of method or fn definition down a line */ .content .method .where, .content .fn .where,