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 22dad4b044, back when the `method` class was attached to headers instead of DIVs that wrap headers.

Old method rendering:

a96247bcac/src/librustdoc/html/render.rs (L2062)

Current method rendering:

432abd86f2/src/librustdoc/html/render/print_item.rs (L721)

# `position: relative`

This rule was added in 88fe6dfa31 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.
This commit is contained in:
Yuki Okushi 2022-09-22 09:03:55 +09:00 committed by GitHub
commit dc236181b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -728,10 +728,6 @@ pre, .rustdoc.source .example-wrap {
padding: 0;
}
.content > .methods > .method {
font-size: 1rem;
position: relative;
}
/* Shift "where ..." part of method or fn definition down a line */
.content .method .where,
.content .fn .where,