rustdoc: Tweak list style

This commit is contained in:
Brian Anderson 2013-03-25 16:41:27 -07:00
parent 34392ad5b4
commit 4d745c288a
2 changed files with 10 additions and 0 deletions

View File

@ -102,3 +102,8 @@ td {
list-style: none;
padding-left: 0px;
}
/* Adjust list alignment so rustdoc indexes don't align with blockquotes */
div.index ul {
padding-left: 1em;
}

View File

@ -436,6 +436,9 @@ fn write_index(ctxt: &Ctxt, index: doc::Index) {
return;
}
ctxt.w.put_line(~"<div class='index'>");
ctxt.w.put_line(~"");
for index.entries.each |entry| {
let header = header_text_(entry.kind, entry.name);
let id = copy entry.link;
@ -447,6 +450,8 @@ fn write_index(ctxt: &Ctxt, index: doc::Index) {
}
}
ctxt.w.put_line(~"");
ctxt.w.put_line(~"</div>");
ctxt.w.put_line(~"");
}
#[test]