From 3a0d8fd980325162caeed6b4c81fa2cd1a5b990b Mon Sep 17 00:00:00 2001 From: Ivan Petkov Date: Sun, 27 Apr 2014 12:37:48 -0700 Subject: [PATCH] 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. --- src/librustdoc/html/static/main.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/librustdoc/html/static/main.css b/src/librustdoc/html/static/main.css index b5ce3919bdd..9406ef45d8f 100644 --- a/src/librustdoc/html/static/main.css +++ b/src/librustdoc/html/static/main.css @@ -202,6 +202,10 @@ nav.sub { white-space: nowrap; text-overflow: ellipsis; } + +.docblock a { color: #4e8bca; } +.docblock a:hover { text-decoration: underline; } + .docblock.short p { overflow: hidden; text-overflow: ellipsis;