Rollup merge of #95129 - GuillaumeGomez:rm-source-sidebar-animation, r=jsha
Remove animation on source sidebar Fixes https://github.com/rust-lang/rust/issues/95043. Didn't upload a demo considering how simple it is to test in a browser. :) r? ``@jsha``
This commit is contained in:
commit
7154fa5193
2 changed files with 0 additions and 8 deletions
|
@ -400,7 +400,6 @@ nav.sub {
|
||||||
.source .sidebar > *:not(#sidebar-toggle) {
|
.source .sidebar > *:not(#sidebar-toggle) {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
transition: opacity 0.5s;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.source .sidebar.expanded {
|
.source .sidebar.expanded {
|
||||||
|
@ -1677,12 +1676,6 @@ details.rustdoc-toggle[open] > summary.hideme::after {
|
||||||
display: none;
|
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 {
|
.source .sidebar.expanded {
|
||||||
width: 300px;
|
width: 300px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,5 @@ goto: file://|DOC_PATH|/test_docs/index.html
|
||||||
click: ".srclink"
|
click: ".srclink"
|
||||||
wait-for: "#sidebar-toggle"
|
wait-for: "#sidebar-toggle"
|
||||||
click: "#sidebar-toggle"
|
click: "#sidebar-toggle"
|
||||||
wait-for: 500
|
|
||||||
fail: true
|
fail: true
|
||||||
assert-css: ("#source-sidebar", { "left": "-300px" })
|
assert-css: ("#source-sidebar", { "left": "-300px" })
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue