Skip to content

Commit 6c278b9

Browse files
Fix top navbar
1 parent c98ae30 commit 6c278b9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

templates/style.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ div.rustdoc {
6969
body {
7070
padding: 0;
7171
margin: 0;
72+
// Since top navbar is fixed, we need to add padding to the body content.
73+
padding-top: 32px;
7274
}
7375

7476

@@ -114,11 +116,14 @@ div.container-rustdoc {
114116
}
115117

116118
div.nav-container {
119+
// Nothing is supposed to be over or hovering the top navbar. Maybe add a few others '('? :)
120+
z-index: 999;
117121
height: 32px;
118122
border-bottom: 1px solid $color-border;
119123
background-color: #fff;
120124
left: 0;
121125
right: 0;
126+
top: 0;
122127
position: fixed;
123128

124129
li {

0 commit comments

Comments
 (0)