Skip to content

Commit

Permalink
Rollup merge of #102330 - notriddle:notriddle/srclink, r=GuillaumeGomez
Browse files Browse the repository at this point in the history
rustdoc: remove no-op CSS `.srclink { font-weight; font-size }`

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
matthiaskrgr authored Sep 27, 2022
2 parents 8b635cb + 3fac709 commit b32ce95
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 @@ -1116,13 +1116,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 b32ce95

Please sign in to comment.