about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2017-08-02 23:00:35 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2017-08-02 23:00:35 +0200
commit1072891b7650f4c4d687ef8032d29638ef5b8f85 (patch)
treec8149bf858d3ba63d178fb7692d7b096410c815a
parent302e51fdc9e921eda6b52eff00dc102ea2e27514 (diff)
downloadrust-1072891b7650f4c4d687ef8032d29638ef5b8f85.tar.gz
rust-1072891b7650f4c4d687ef8032d29638ef5b8f85.zip
Improve color theme for color blind issues
-rw-r--r--src/librustdoc/html/static/rustdoc.css6
-rw-r--r--src/librustdoc/html/static/styles/main.css8
2 files changed, 7 insertions, 7 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css
index 9d237bba1bc..e100b0e1b43 100644
--- a/src/librustdoc/html/static/rustdoc.css
+++ b/src/librustdoc/html/static/rustdoc.css
@@ -434,12 +434,6 @@ a {
 	text-decoration: underline;
 }
 
-.content span.enum, .content a.enum, .block a.current.enum { color: #5e9766; }
-.content span.struct, .content a.struct, .block a.current.struct { color: #df3600; }
-.content span.type, .content a.type, .block a.current.type { color: #e57300; }
-.content span.macro, .content a.macro, .block a.current.macro { color: #068000; }
-.content span.union, .content a.union, .block a.current.union { color: #c0c74f; }
-.content span.constant, .content a.constant, .block a.current.constant { color: #c7944f; }
 .block a.current.crate { font-weight: 500; }
 
 .search-input {
diff --git a/src/librustdoc/html/static/styles/main.css b/src/librustdoc/html/static/styles/main.css
index c0310199088..53141142867 100644
--- a/src/librustdoc/html/static/styles/main.css
+++ b/src/librustdoc/html/static/styles/main.css
@@ -97,7 +97,13 @@ pre {
 	border-bottom-color: #ddd;
 }
 
-.content span.primitive, .content a.primitive, .block a.current.primitive { color: #39a7bf; }
+.content span.enum, .content a.enum, .block a.current.enum { color: #508157; }
+.content span.struct, .content a.struct, .block a.current.struct { color: #df3600; }
+.content span.type, .content a.type, .block a.current.type { color: #ba5d00; }
+.content span.macro, .content a.macro, .block a.current.macro { color: #068000; }
+.content span.union, .content a.union, .block a.current.union { color: #767b27; }
+.content span.constant, .content a.constant, .block a.current.constant { color: #9a6e31; }
+.content span.primitive, .content a.primitive, .block a.current.primitive { color: #2c8093; }
 .content span.externcrate,
 .content span.mod, .content a.mod, .block a.current.mod { color: #4d76ae; }
 .content span.fn, .content a.fn, .block a.current.fn,