Skip to content

Commit 3a0d8fd

Browse files
committed
rustdoc: #13771: Make html links inside paragraphs more readable
All links inside docblocks will have their color set to `#4e8bca` (a light blue color to contrast against the black text). This color also offers a visible contrast from the surrounding text if viewed as grayscale, making it suitable for accessability. Docblock links will also be underlined when hovered over.
1 parent a72a6ec commit 3a0d8fd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/librustdoc/html/static/main.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@ nav.sub {
202202
white-space: nowrap;
203203
text-overflow: ellipsis;
204204
}
205+
206+
.docblock a { color: #4e8bca; }
207+
.docblock a:hover { text-decoration: underline; }
208+
205209
.docblock.short p {
206210
overflow: hidden;
207211
text-overflow: ellipsis;

0 commit comments

Comments
 (0)