Skip to content

Commit 237d625

Browse files
Remove animation on source sidebar
1 parent 691d1c1 commit 237d625

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

Diff for: src/librustdoc/html/static/css/rustdoc.css

-7
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,6 @@ nav.sub {
400400
.source .sidebar > *:not(#sidebar-toggle) {
401401
opacity: 0;
402402
visibility: hidden;
403-
transition: opacity 0.5s;
404403
}
405404

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

1680-
/* It doesn't render well on mobile because of the layout, so better only have the transition
1681-
on desktop. */
1682-
.rustdoc.source .sidebar {
1683-
transition: width .5s;
1684-
}
1685-
16861679
.source .sidebar.expanded {
16871680
width: 300px;
16881681
}

Diff for: src/test/rustdoc-gui/code-sidebar-toggle.goml

-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ goto: file://|DOC_PATH|/test_docs/index.html
33
click: ".srclink"
44
wait-for: "#sidebar-toggle"
55
click: "#sidebar-toggle"
6-
wait-for: 500
76
fail: true
87
assert-css: ("#source-sidebar", { "left": "-300px" })

0 commit comments

Comments
 (0)