Improved navigation with anchors
Anchors are now offset above headings which results in the visible heading being just below the navbar. For now navigation by anchor only works with activated toc. A more comprehensive solution might come in the future. Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
@ -239,3 +239,10 @@ ul.list-unstyled li {
|
||||
color: #333;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.anchor {
|
||||
position: relative;
|
||||
display: block;
|
||||
top: -$navbarHeight;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user