Skip to content

Commit c98ae30

Browse files
Merge pull request #336 from lzutao/patch-1
Set navigation bar of rustdoc fixed
2 parents a31865e + 3cf601a commit c98ae30

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

templates/style.scss

+5-2
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ div.nav-container {
117117
height: 32px;
118118
border-bottom: 1px solid $color-border;
119119
background-color: #fff;
120+
left: 0;
121+
right: 0;
122+
position: fixed;
120123

121124
li {
122125
border-left: 1px solid $color-border;
@@ -200,7 +203,7 @@ div.nav-container {
200203
div.right-border {
201204
border-right: 1px solid $color-border;
202205
}
203-
206+
204207
a.pure-menu-link {
205208
word-wrap: normal;
206209
white-space: normal;
@@ -223,7 +226,7 @@ div.nav-container {
223226
}
224227

225228
div.nav-container-rustdoc {
226-
position: absolute;
229+
position: fixed;
227230
left: 0;
228231
right: 0;
229232
top: 0;

0 commit comments

Comments
 (0)