Skip to content

Commit 379b5f0

Browse files
committed
Give sidebar a z-index
This ensures that sidebar does not overlap with content when horizontal scrollbar is present.
1 parent 13db844 commit 379b5f0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/librustdoc/html/static/css/rustdoc.css

+6
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,12 @@ nav.sub {
290290
overflow: auto;
291291
}
292292

293+
.rustdoc:not(.source) .sidebar {
294+
/* Ensure that sidebar does not overlap with content when horizontal
295+
* scrollbar is present */
296+
z-index: 1;
297+
}
298+
293299
/* Improve the scrollbar display on firefox */
294300
* {
295301
scrollbar-width: initial;

0 commit comments

Comments
 (0)