Skip to content

Commit 497a2e3

Browse files
committed
Move container-rustdoc rules to rustdoc overrides
1 parent ea95166 commit 497a2e3

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

templates/style.scss

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ div.rustdoc {
5858
margin-right: -10px;
5959
}
6060
}
61+
62+
// this is actual fix for docs.rs navigation and rustdoc sidebar
63+
position: absolute;
64+
left: 0;
65+
right: 0;
66+
top: 32px;
6167
}
6268

6369
body {
@@ -102,13 +108,6 @@ div.container {
102108
text-align: left;
103109
}
104110

105-
body > div.container-rustdoc {
106-
position: absolute;
107-
left: 0;
108-
right: 0;
109-
top: 32px;
110-
}
111-
112111
div.container-rustdoc {
113112
max-width: 1200px;
114113
text-align: left;

0 commit comments

Comments
 (0)