Skip to content

Commit 1072891

Browse files
Improve color theme for color blind issues
1 parent 302e51f commit 1072891

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/librustdoc/html/static/rustdoc.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -434,12 +434,6 @@ a {
434434
text-decoration: underline;
435435
}
436436

437-
.content span.enum, .content a.enum, .block a.current.enum { color: #5e9766; }
438-
.content span.struct, .content a.struct, .block a.current.struct { color: #df3600; }
439-
.content span.type, .content a.type, .block a.current.type { color: #e57300; }
440-
.content span.macro, .content a.macro, .block a.current.macro { color: #068000; }
441-
.content span.union, .content a.union, .block a.current.union { color: #c0c74f; }
442-
.content span.constant, .content a.constant, .block a.current.constant { color: #c7944f; }
443437
.block a.current.crate { font-weight: 500; }
444438

445439
.search-input {

src/librustdoc/html/static/styles/main.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,13 @@ pre {
9797
border-bottom-color: #ddd;
9898
}
9999

100-
.content span.primitive, .content a.primitive, .block a.current.primitive { color: #39a7bf; }
100+
.content span.enum, .content a.enum, .block a.current.enum { color: #508157; }
101+
.content span.struct, .content a.struct, .block a.current.struct { color: #df3600; }
102+
.content span.type, .content a.type, .block a.current.type { color: #ba5d00; }
103+
.content span.macro, .content a.macro, .block a.current.macro { color: #068000; }
104+
.content span.union, .content a.union, .block a.current.union { color: #767b27; }
105+
.content span.constant, .content a.constant, .block a.current.constant { color: #9a6e31; }
106+
.content span.primitive, .content a.primitive, .block a.current.primitive { color: #2c8093; }
101107
.content span.externcrate,
102108
.content span.mod, .content a.mod, .block a.current.mod { color: #4d76ae; }
103109
.content span.fn, .content a.fn, .block a.current.fn,

0 commit comments

Comments
 (0)