diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs index 541af97ba431b..c6a6eb29addda 100644 --- a/src/librustdoc/html/render.rs +++ b/src/librustdoc/html/render.rs @@ -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, "\ - {name}
", + {name}", ty = short, class = class, href = if curty == "mod" {"../"} else {""}, diff --git a/src/librustdoc/html/static/main.css b/src/librustdoc/html/static/main.css index 07dd1a6c173cc..a7bd082ec17d3 100644 --- a/src/librustdoc/html/static/main.css +++ b/src/librustdoc/html/static/main.css @@ -154,25 +154,29 @@ nav.sub { .block { padding: 0 10px; - margin-bottom: 10px; + margin-bottom: 14px; } .block h2 { margin-top: 0; + margin-bottom: 8px; text-align: center; } .block a { - display: inline-block; + display: block; text-overflow: ellipsis; overflow: hidden; line-height: 15px; - padding-left: 5px; - padding-bottom: 6px; + padding: 7px 5px; font-size: 14px; font-weight: 300; transition: border 500ms ease-out; } +.block a:hover { + background: #F5F5F5; +} + .content { padding: 15px 0; } diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js index 195028c85bfa9..697199e9abf5a 100644 --- a/src/librustdoc/html/static/main.js +++ b/src/librustdoc/html/static/main.js @@ -647,7 +647,6 @@ } div.append($('', {'href': '../' + crates[i] + '/index.html', 'class': klass}).text(crates[i])); - div.append($('
')); } sidebar.append(div); }