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:
parent
e7f11f20e5
commit
0188bebbb7
3 changed files with 9 additions and 6 deletions
|
@ -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 {""},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue