Skip to content

Commit 3fac709

Browse files
committed
rustdoc: remove no-op CSS .srclink { font-weight; font-size }
When this CSS was added in 34bd2b8, source links were nested below headers. https://github.com/rust-lang/rust/blob/34bd2b845b3acd84c5a9bddae3ff8081c19ec5e9/src/librustdoc/html/render.rs#L4015-L4019 Now, thanks to 458e721, they are now siblings of headers, and thanks to 270d09d, they have the same font size that they would've had anyway.
1 parent 1d1f142 commit 3fac709

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

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

-7
Original file line numberDiff line numberDiff line change
@@ -1118,13 +1118,6 @@ so that we can apply CSS-filters to change the arrow color in themes */
11181118
color: var(--right-side-color);
11191119
}
11201120

1121-
1122-
.impl-items .srclink, .impl .srclink, .methods .srclink {
1123-
/* Override header settings otherwise it's too bold */
1124-
font-weight: normal;
1125-
font-size: 1rem;
1126-
}
1127-
11281121
pre.rust .question-mark {
11291122
font-weight: bold;
11301123
}

0 commit comments

Comments
 (0)