Skip to content

Commit 60ded3b

Browse files
Fix rustdoc doc container position to avoid having text under the banner
1 parent 96f00d9 commit 60ded3b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

css/style.css

+5-3
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ html, button, input, select, textarea,
1414
div.rustdoc {
1515
font-family: "Source Serif Pro", Georgia, Times, "Times New Roman", serif;
1616
padding: 10px 15px 20px 15px;
17-
position: absolute;
17+
position: fixed;
18+
top: 32px;
19+
bottom: 0;
1820
left: 0;
1921
right: 0;
20-
top: 32px;
21-
max-height: calc(100vh - 32px);
22+
display: block;
23+
overflow-y: auto;
2224
}
2325
@media (max-width: 700px) {
2426
div.rustdoc {

0 commit comments

Comments
 (0)