Skip to content

Commit 5b11920

Browse files
jshasyphar
authored andcommitted
Add explicit padding-top: 0 to topbar body style
1 parent 3c8cef4 commit 5b11920

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

templates/style/_navbar.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@
66
color: var(--color-standard);
77
}
88

9+
/* Body must have no padding so the topbar sticks to the top of the viewport
10+
and extends to both sides of the screen.
11+
Some versions of rustdoc had this style, which we need to override:
12+
body { padding: 10px 15px 20px 15px; }
13+
*/
14+
body {
15+
padding: 0;
16+
}
17+
918
div.nav-container {
1019
// Nothing is supposed to be over or hovering the top navbar. Maybe add a few others '('? :)
1120
z-index: 999;

0 commit comments

Comments
 (0)