Skip to content

Commit

Permalink
rustdoc: remove no-op CSS .srclink { font-weight; font-size }
Browse files Browse the repository at this point in the history
When this CSS was added in 34bd2b8, source
links were nested below headers.

https://github.com/rust-lang/rust/blob/34bd2b845b3acd84c5a9bddae3ff8081c19ec5e9/src/librustdoc/html/render.rs#L4015-L4019

Now, thanks to 458e721, they are now
siblings of headers, and thanks to
270d09d, they have the same font size that
they would've had anyway.
  • Loading branch information
notriddle committed Sep 26, 2022
1 parent 1d1f142 commit 3fac709
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -1118,13 +1118,6 @@ so that we can apply CSS-filters to change the arrow color in themes */
color: var(--right-side-color);
}


.impl-items .srclink, .impl .srclink, .methods .srclink {
/* Override header settings otherwise it's too bold */
font-weight: normal;
font-size: 1rem;
}

pre.rust .question-mark {
font-weight: bold;
}
Expand Down

0 comments on commit 3fac709

Please sign in to comment.