Skip to content

Commit 30e3733

Browse files
committed
auto merge of #13807 : ipetkov/rust/issue-13771, r=alexcrichton
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. Before: ![screen shot 2014-04-27 at 12 47 06 pm](https://cloud.githubusercontent.com/assets/1638690/2812157/00e53a32-ce45-11e3-81e8-7b1dc692f6b7.png) After (links underlined only on hover, cursor not shown in image): ![screen shot 2014-04-27 at 12 47 48 pm](https://cloud.githubusercontent.com/assets/1638690/2812158/04fa94b4-ce45-11e3-9ead-2344753c251d.png) Fix #13771
2 parents cbe6bd0 + 3a0d8fd commit 30e3733

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/librustdoc/html/static/main.css

+4
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@ nav.sub {
202202
white-space: nowrap;
203203
text-overflow: ellipsis;
204204
}
205+
206+
.docblock a { color: #4e8bca; }
207+
.docblock a:hover { text-decoration: underline; }
208+
205209
.docblock.short p {
206210
overflow: hidden;
207211
text-overflow: ellipsis;

0 commit comments

Comments
 (0)