Skip to content

Commit

Permalink
Remove animation on source sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Mar 19, 2022
1 parent 691d1c1 commit 237d625
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
7 changes: 0 additions & 7 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,6 @@ nav.sub {
.source .sidebar > *:not(#sidebar-toggle) {
opacity: 0;
visibility: hidden;
transition: opacity 0.5s;
}

.source .sidebar.expanded {
Expand Down Expand Up @@ -1677,12 +1676,6 @@ details.rustdoc-toggle[open] > summary.hideme::after {
display: none;
}

/* It doesn't render well on mobile because of the layout, so better only have the transition
on desktop. */
.rustdoc.source .sidebar {
transition: width .5s;
}

.source .sidebar.expanded {
width: 300px;
}
Expand Down
1 change: 0 additions & 1 deletion src/test/rustdoc-gui/code-sidebar-toggle.goml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ goto: file://|DOC_PATH|/test_docs/index.html
click: ".srclink"
wait-for: "#sidebar-toggle"
click: "#sidebar-toggle"
wait-for: 500
fail: true
assert-css: ("#source-sidebar", { "left": "-300px" })

0 comments on commit 237d625

Please sign in to comment.