Skip to content

Commit 5a768dc

Browse files
Fix new sidebar changes
1 parent 6e354ec commit 5a768dc

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

templates/style/rustdoc.scss

+19-7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@
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+
12+
.sidebar-menu {
13+
top: $top-navbar-height;
14+
}
15+
}
16+
&.source .sidebar {
17+
top: $top-navbar-height;
18+
}
19+
20+
main {
21+
padding-bottom: 50px;
22+
}
723
}
824

925
#clipboard {
@@ -19,8 +35,8 @@ div.container-rustdoc {
1935
text-align: left;
2036

2137
> .docs-rs-footer {
22-
bottom: -32px;
23-
right: -15px;
38+
bottom: 0;
39+
right: 0;
2440
width: unset;
2541
}
2642
}
@@ -31,7 +47,7 @@ div.container-rustdoc {
3147

3248
div.container-rustdoc:not(.source) {
3349
> .docs-rs-footer {
34-
left: 185px; // This is the left sidebar
50+
left: 200px; // This is the left sidebar
3551
}
3652

3753
// This is when the rustdoc sidebar "disappears" (for mobile mode).
@@ -111,10 +127,6 @@ div.rustdoc {
111127
top: $top-navbar-height;
112128
}
113129

114-
#sidebar-toggle {
115-
top: 62px;
116-
}
117-
118130
&:focus {
119131
outline: unset;
120132
}

0 commit comments

Comments
 (0)