File tree 3 files changed +7
-11
lines changed
librustdoc/html/static/css
3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -1598,14 +1598,10 @@ in storage.js
1598
1598
1599
1599
.sidebar .shown ,
1600
1600
.source-sidebar-expanded .source .sidebar ,
1601
- .sidebar : focus-within {
1601
+ .rustdoc : not (. source ) . sidebar : focus-within {
1602
1602
left : 0 ;
1603
1603
}
1604
1604
1605
- .rustdoc .source > .sidebar {
1606
- width : 0 ;
1607
- }
1608
-
1609
1605
.mobile-topbar h2 {
1610
1606
padding-bottom : 0 ;
1611
1607
margin : auto 0.5em auto auto;
Original file line number Diff line number Diff line change @@ -171,15 +171,15 @@ assert-css: (
171
171
172
172
// We now check that the scroll position is kept when opening the sidebar.
173
173
click: "#src-sidebar-toggle"
174
- wait-for-css: (".sidebar", {"width ": "0px "})
174
+ wait-for-css: (".sidebar", {"left ": "-1000px "})
175
175
// We scroll to line 117 to change the scroll position.
176
176
scroll-to: '//*[@id="117"]'
177
177
assert-window-property: {"pageYOffset": "2542"}
178
178
// Expanding the sidebar...
179
179
click: "#src-sidebar-toggle"
180
- wait-for-css: (".sidebar", {"width ": "500px "})
180
+ wait-for-css: (".sidebar", {"left ": "0px "})
181
181
click: "#src-sidebar-toggle"
182
- wait-for-css: (".sidebar", {"width ": "0px "})
182
+ wait-for-css: (".sidebar", {"left ": "-1000px "})
183
183
// The "scrollTop" property should be the same.
184
184
assert-window-property: {"pageYOffset": "2542"}
185
185
Original file line number Diff line number Diff line change @@ -77,11 +77,11 @@ assert-count: ("//*[@id='source-sidebar']/details[not(text()='lib2') and not(@op
77
77
78
78
// We now switch to mobile mode.
79
79
size: (600, 600)
80
- wait-for-css: (".source-sidebar-expanded nav.sidebar", {"width ": "600px "})
80
+ wait-for-css: (".source-sidebar-expanded nav.sidebar", {"left ": "0px "})
81
81
// We collapse the sidebar.
82
82
click: (10, 10)
83
- // We check that the sidebar has the expected width (0) .
84
- assert-css: ("nav.sidebar", {"width ": "0px "})
83
+ // We check that the sidebar has been moved off-screen .
84
+ assert-css: ("nav.sidebar", {"left ": "-1000px "})
85
85
// We ensure that the class has been removed.
86
86
assert-false: ".source-sidebar-expanded"
87
87
assert: "nav.sidebar"
You can’t perform that action at this time.
0 commit comments