Skip to content

Commit b693d2c

Browse files
committed
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 9e82fc7. 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
1 parent 98ad6a5 commit b693d2c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/librustdoc/html/static/css/rustdoc.css

-4
Original file line numberDiff line numberDiff line change
@@ -533,10 +533,6 @@ img {
533533
border: none;
534534
}
535535

536-
.location a:first-of-type {
537-
font-weight: 500;
538-
}
539-
540536
.block ul, .block li {
541537
padding: 0;
542538
margin: 0;

0 commit comments

Comments
 (0)