about summary refs log tree commit diff
diff options
context:
space:
mode:
authorIvan Petkov <ivanppetkov@gmail.com>2014-04-27 12:37:48 -0700
committerIvan Petkov <ivanppetkov@gmail.com>2014-04-28 20:55:10 -0700
commit3a0d8fd980325162caeed6b4c81fa2cd1a5b990b (patch)
tree929b02bc9b643cd7a426f4d7fe11cecc58081973
parenta72a6ec897e1b8d7e125be9bb4b60d89c79aa4c0 (diff)
downloadrust-3a0d8fd980325162caeed6b4c81fa2cd1a5b990b.tar.gz
rust-3a0d8fd980325162caeed6b4c81fa2cd1a5b990b.zip
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.
-rw-r--r--src/librustdoc/html/static/main.css4
1 files changed, 4 insertions, 0 deletions
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;