Skip to content

Commit

Permalink
Rollup merge of rust-lang#58086 - GuillaumeGomez:rustdoc-file-list-im…
Browse files Browse the repository at this point in the history
…provement, r=Manishearth

[rustdoc] Improve file list display

Improve a bit the arrows to show a folder's file and the arrow to show/hide the left panel.

r? @QuietMisdreavus
  • Loading branch information
GuillaumeGomez authored Feb 7, 2019
2 parents f61a4f8 + d80a558 commit f22c445
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/librustdoc/html/static/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -1573,5 +1573,6 @@ div.name::before {
}
div.name.expand::before {
transform: rotate(90deg);
left: -14px;
left: -15px;
top: 2px;
}
2 changes: 1 addition & 1 deletion src/librustdoc/html/static/source-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function createSidebarToggle() {
inner1.style.position = "relative";

var inner2 = document.createElement("div");
inner2.style.marginTop = "-2px";
inner2.style.paddingTop = "3px";
if (getCurrentValue("rustdoc-source-sidebar-show") === "true") {
inner2.innerText = "<";
} else {
Expand Down

0 comments on commit f22c445

Please sign in to comment.