rustdoc: Highlight function names

Closes #9460
This commit is contained in:
Alex Crichton 2013-09-24 14:07:13 -07:00
parent 5636ca625e
commit c4219a4783
2 changed files with 3 additions and 2 deletions

View File

@ -889,8 +889,8 @@ fn render_method(w: &mut io::Writer, meth: &clean::Item, withlink: bool) {
g: &clean::Generics, selfty: &clean::SelfTy, d: &clean::FnDecl,
withlink: bool) {
write!(w, "{}fn {withlink, select,
true{<a href='\\#fn.{name}'>{name}</a>}
other{{name}}
true{<a href='\\#fn.{name}' class='fnname'>{name}</a>}
other{<span class='fnname'>{name}</span>}
}{generics}{decl}",
match purity {
ast::unsafe_fn => "unsafe ",

View File

@ -221,6 +221,7 @@ a {
.content a.enum, .block a.current.enum { color: #5e9766; }
.content a.struct, .block a.current.struct { color: #e53700; }
.content a.fn, .block a.current.fn { color: #8c6067; }
.content .fnname { color: #8c6067; }
.search-input {
border: 2px solid #f2f2f2;