Skip to content

Commit 6b4f9bb

Browse files
authored
Merge pull request #4143 from OpenLiberty/doc-bug
Add margintop to body content when nav bar appears
2 parents d2137c9 + 0416d41 commit 6b4f9bb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/content/antora_ui/src/js/10-navscroll.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ var navScroll = (function() {
9696

9797
// adjust docs toolbar and nav position
9898
$(".toolbar").css("top", nav_height + "px");
99+
$(".doc").css("margin-top", nav_height + "px")
99100
if (window.outerWidth < 1024) {
100101
$(".nav-container").css(
101102
"top",
@@ -136,6 +137,7 @@ var navScroll = (function() {
136137

137138
// adjust docs toolbar and nav position
138139
$(".toolbar").css("top", "0px");
140+
$(".doc").css("margin-top", "0px");
139141
if (window.outerWidth < 1024) {
140142
$(".nav-container").css("top", $(".toolbar").outerHeight() + "px");
141143
$(".nav").css("top", "");

0 commit comments

Comments
 (0)