[site] fix: anchor offset

when navigating through an anchor
This commit is contained in:
Eugene Orlov
2023-06-06 15:22:02 -05:00
committed by Umputun
parent 8cbcff98ec
commit d1c1664a38
2 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ function getMarkdownLib() {
.use(markdownItAnchor, {
permalink: markdownItAnchor.permalink.linkInsideHeader({
placement: 'before',
class: '',
class: 'header-anchor',
symbol: '',
}),
})
+14
View File
@@ -193,3 +193,17 @@
.token.space:before {
color: #3c526d;
}
.header-anchor {
pointer-events: none;
}
.header-anchor::before {
content: '';
display: block;
height: 75px;
margin-top: -75px;
visibility: hidden;
}
.header-anchor:focus-visible {
outline: none;
}