Skip to content

Commit dd6e72b

Browse files
Fix new sidebar changes
1 parent 6e354ec commit dd6e72b

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

templates/style/rustdoc.scss

+17-7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@
44
// This rule is needed to be sure that the footer will always be at the bottom of the page.
55
#rustdoc_body_wrapper {
66
min-height: calc(100vh - #{$top-navbar-height + $footer-height + 2});
7+
padding: 0;
8+
9+
.sidebar {
10+
margin-top: 0;
11+
top: $top-navbar-height;
12+
13+
.sidebar-menu {
14+
top: $top-navbar-height;
15+
}
16+
}
17+
18+
main {
19+
padding-bottom: 50px;
20+
}
721
}
822

923
#clipboard {
@@ -19,8 +33,8 @@ div.container-rustdoc {
1933
text-align: left;
2034

2135
> .docs-rs-footer {
22-
bottom: -32px;
23-
right: -15px;
36+
bottom: 0;
37+
right: 0;
2438
width: unset;
2539
}
2640
}
@@ -31,7 +45,7 @@ div.container-rustdoc {
3145

3246
div.container-rustdoc:not(.source) {
3347
> .docs-rs-footer {
34-
left: 185px; // This is the left sidebar
48+
left: 200px; // This is the left sidebar
3549
}
3650

3751
// This is when the rustdoc sidebar "disappears" (for mobile mode).
@@ -111,10 +125,6 @@ div.rustdoc {
111125
top: $top-navbar-height;
112126
}
113127

114-
#sidebar-toggle {
115-
top: 62px;
116-
}
117-
118128
&:focus {
119129
outline: unset;
120130
}

0 commit comments

Comments
 (0)