Skip to content

Commit ea95166

Browse files
Improve css
1 parent b050e32 commit ea95166

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

templates/style.scss

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ html, button, input, select, textarea,
5151
div.rustdoc {
5252
font-family: $font-family-serif;
5353
padding: 10px 15px 20px 15px;
54-
margin-top: 32px;
5554

5655
.sidebar {
5756
padding-top: 32px;
@@ -103,6 +102,13 @@ div.container {
103102
text-align: left;
104103
}
105104

105+
body > div.container-rustdoc {
106+
position: absolute;
107+
left: 0;
108+
right: 0;
109+
top: 32px;
110+
}
111+
106112
div.container-rustdoc {
107113
max-width: 1200px;
108114
text-align: left;
@@ -218,11 +224,11 @@ div.nav-container {
218224
}
219225

220226
div.nav-container-rustdoc {
221-
position: fixed;
227+
position: absolute;
222228
left: 0;
229+
right: 0;
223230
top: 0;
224231
z-index: 999;
225-
width: 100%;
226232
}
227233

228234
div.landing {

0 commit comments

Comments
 (0)