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 in9e82fc7ef9
. At that time, the location header was rendered as a paragraph with the full path:9e82fc7ef9/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:98ad6a5519/src/librustdoc/html/render/mod.rs (L1797)
This commit is contained in:
parent
98ad6a5519
commit
b693d2cadf
1 changed files with 0 additions and 4 deletions
|
@ -533,10 +533,6 @@ img {
|
|||
border: none;
|
||||
}
|
||||
|
||||
.location a:first-of-type {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.block ul, .block li {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue