diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-09-18 02:55:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-18 02:55:31 +0200 |
| commit | c0e8d46e20c9a8cbd6b098cc3721080649f082c0 (patch) | |
| tree | 973049c7d1703320bbff4aa5cbe5e8f71b65314a /src/librustdoc/html | |
| parent | fb2048559218a05303fb4c7da16269d26aa8cc96 (diff) | |
| parent | b693d2cadf40cb47a26da1b5f70b5ff5baf216bc (diff) | |
Rollup merge of #101954 - notriddle:notriddle/location-a-first-of-type, r=GuillaumeGomez
rustdoc: remove redundant `.location a { font-weight: 500 }`
The `class="location"` element is an h2, either in the sidebar or in the mobile header. Either way, it already has `font-weight: 500`, which the link inside will inherit.
The original version of this rule was added in 9e82fc7ef9b6c8a344dd27583990b02a661af78c. At that time, the location header was rendered as a paragraph with the full path:
https://github.com/rust-lang/rust/blob/9e82fc7ef9b6c8a344dd27583990b02a661af78c/src/librustdoc/html/render.rs#L2080
Nowadays, it's rendered as a true header, with only the name of the item, and the full path is included in a separate `fqn` header:
https://github.com/rust-lang/rust/blob/98ad6a5519651af36e246c0335c964dd52c554ba/src/librustdoc/html/render/mod.rs#L1797
Diffstat (limited to 'src/librustdoc/html')
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index 1e2ff9a95dd..f458a4f59ae 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -533,10 +533,6 @@ img { border: none; } -.location a:first-of-type { - font-weight: 500; -} - .block ul, .block li { padding: 0; margin: 0; |
