Skip to content

Commit 0048878

Browse files
committed
Address anchor link scroll top position
1 parent 91cd34c commit 0048878

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • lib/rdoc/generator/template/aliki/css

lib/rdoc/generator/template/aliki/css/rdoc.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,11 +345,11 @@ h5:target,
345345
h6:target {
346346
margin-left: -10px;
347347
border-left: 10px solid var(--border-color);
348-
scroll-margin-top: 1rem;
348+
scroll-margin-top: calc(var(--layout-header-height) + 2rem);
349349
}
350350

351351
main .anchor-link:target {
352-
scroll-margin-top: 1rem;
352+
scroll-margin-top: calc(var(--layout-header-height) + 2rem);
353353
}
354354

355355
/* 4. Links */

0 commit comments

Comments
 (0)