1
Fork 0

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
9e82fc7ef9. 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:
Michael Howell 2022-09-17 15:30:23 -07:00
commit b693d2cadf

View file

@ -533,10 +533,6 @@ img {
border: none;
}
.location a:first-of-type {
font-weight: 500;
}
.block ul, .block li {
padding: 0;
margin: 0;