Skip to content

Commit ee84c34

Browse files
GuillaumeGomezNemo157
authored andcommitted
Fix footer display following last rustdoc changes on the sidebar
1 parent dad5863 commit ee84c34

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

templates/style/rustdoc-2021-12-05.scss

+5-6
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@
1010
.sidebar {
1111
margin-top: 0;
1212
top: $top-navbar-height;
13+
height: calc(100vh - $top-navbar-height);
14+
/* Since we use `overflow-wrap: anywhere;`, we never have the need for a X scrollbar... */
15+
overflow-x: hidden;
1316

1417
.sidebar-menu {
1518
top: $top-navbar-height;
19+
margin-bottom: $footer-height;
1620
}
1721
}
1822

@@ -25,12 +29,7 @@ div.container-rustdoc {
2529
> .docs-rs-footer {
2630
bottom: 0;
2731
right: 0;
28-
}
29-
}
30-
31-
div.container-rustdoc:not(.source) {
32-
> .docs-rs-footer {
33-
left: 200px;
32+
left: 0;
3433
}
3534
}
3635

0 commit comments

Comments
 (0)