diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-09-27 21:42:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-27 21:42:23 +0200 |
| commit | b32ce95911bfa2c0d972b292d7d5f76bf9c51bc9 (patch) | |
| tree | 4f3db12aea8279bf15c4f8720811aa1d3ccca57d | |
| parent | 8b635cba1dd9c85198631a5e574f9040fb375128 (diff) | |
| parent | 3fac709eab78c77874f0455fc432f5d7a744623d (diff) | |
| download | rust-b32ce95911bfa2c0d972b292d7d5f76bf9c51bc9.tar.gz rust-b32ce95911bfa2c0d972b292d7d5f76bf9c51bc9.zip | |
Rollup merge of #102330 - notriddle:notriddle/srclink, r=GuillaumeGomez
rustdoc: remove no-op CSS `.srclink { font-weight; font-size }`
When this CSS was added in 34bd2b845b3acd84c5a9bddae3ff8081c19ec5e9, source links were nested below headers.
https://github.com/rust-lang/rust/blob/34bd2b845b3acd84c5a9bddae3ff8081c19ec5e9/src/librustdoc/html/render.rs#L4015-L4019
Now, thanks to 458e7219bc2a62f72368279945cfda632a016da1, they are now siblings of headers, and thanks to 270d09dca9aae263671c4d32bbc7cb60dc378af8, they have the same font size that they would've had anyway.
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index a3712a73b51..08e66d77c7a 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -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; } |
