Skip to content

Commit cc92be6

Browse files
committed
Rollup merge of rust-lang#31054 - steveklabnik:a11y, r=alexcrichton
I've been interested in the accessibility of Rustdoc's output, but never did anything about it. Today, I ran a tool, and it suggested adjusting some colors. Here's some screen shots. Before: ![2016-01-20-114944_443x199_scrot](https://cloud.githubusercontent.com/assets/27786/12455979/d84d7ae8-bf6b-11e5-9aea-0602fb1a8cfa.png) After: ![2016-01-20-114516_453x204_scrot](https://cloud.githubusercontent.com/assets/27786/12455841/36a55d14-bf6b-11e5-8014-239594c12e46.png) As you can see, the link text is just a _shade_ darker. Browsable: http://www.steveklabnik.com/rust-a11y-doc-testing/doc/std/
2 parents 2ff14a4 + c449f04 commit cc92be6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/librustdoc/html/static/rustdoc.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ a {
383383
}
384384

385385
.content span.enum, .content a.enum, .block a.current.enum { color: #5e9766; }
386-
.content span.struct, .content a.struct, .block a.current.struct { color: #e53700; }
386+
.content span.struct, .content a.struct, .block a.current.struct { color: #df3600; }
387387
.content a.type { color: #e57300; }
388388
.content a.macro { color: #068000; }
389389
.block a.current.crate { font-weight: 500; }

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,14 @@ a {
106106
}
107107

108108
.docblock a, .stability a {
109-
color: #4e8bca;
109+
color: #3873AD;
110110
}
111111

112112
a.test-arrow {
113113
color: #f5f5f5;
114114
}
115115

116-
.content span.trait, .content a.trait, .block a.current.trait { color: #8866ff; }
116+
.content span.trait, .content a.trait, .block a.current.trait { color: #7c5af3; }
117117

118118
.search-input {
119119
color: #555;

0 commit comments

Comments
 (0)