1
Fork 0

rustdoc: Larger click areas for sidebar items

* Change links to display:block for click larger targets
* Remove linebreaks due to extra space
* Adjust margins so that element spacing stays the same
* Sidebar item hover background colour chosen from <pre> styling
This commit is contained in:
Valentin Tsatskin 2014-06-13 15:15:37 -07:00
parent e7f11f20e5
commit 0188bebbb7
3 changed files with 9 additions and 6 deletions

View file

@ -2001,7 +2001,7 @@ impl<'a> fmt::Show for Sidebar<'a> {
let class = if cur.name.get_ref() == item &&
short == curty { "current" } else { "" };
try!(write!(w, "<a class='{ty} {class}' href='{href}{path}'>\
{name}</a><br/>",
{name}</a>",
ty = short,
class = class,
href = if curty == "mod" {"../"} else {""},