Skip to content

Commit

Permalink
Rollup merge of rust-lang#95129 - GuillaumeGomez:rm-source-sidebar-an…
Browse files Browse the repository at this point in the history
…imation, r=jsha

Remove animation on source sidebar

Fixes rust-lang#95043.

Didn't upload a demo considering how simple it is to test in a browser. :)

r? `@jsha`
  • Loading branch information
matthiaskrgr authored Mar 21, 2022
2 parents f9e929a + 237d625 commit 7e3442a
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 7e3442a

Please sign in to comment.