Skip to content

Commit dc23618

Browse files
authored
Rollup merge of #102075 - notriddle:notriddle/content-methods-method, r=GuillaumeGomez
rustdoc: remove no-op CSS `.content > .methods > .method` # `font-size: 1rem` This rule was added in 22dad4b, 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 # `position: relative` This rule was added in 88fe6df 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.
2 parents 6d7ee68 + 04e98b9 commit dc23618

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
@@ -728,10 +728,6 @@ pre, .rustdoc.source .example-wrap {
728728
padding: 0;
729729
}
730730

731-
.content > .methods > .method {
732-
font-size: 1rem;
733-
position: relative;
734-
}
735731
/* Shift "where ..." part of method or fn definition down a line */
736732
.content .method .where,
737733
.content .fn .where,

0 commit comments

Comments
 (0)