Skip to content

Commit

Permalink
Rollup merge of rust-lang#102075 - notriddle:notriddle/content-method…
Browse files Browse the repository at this point in the history
…s-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.
  • Loading branch information
JohnTitor committed Sep 22, 2022
2 parents 6d7ee68 + 04e98b9 commit dc23618
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit dc23618

Please sign in to comment.