mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
rustdoc: Tweak list style
This commit is contained in:
parent
34392ad5b4
commit
4d745c288a
@ -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;
|
||||
}
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user