Skip to content

Commit

Permalink
fix(advanced html): set scroll-margin-top property to fix navbar over…
Browse files Browse the repository at this point in the history
…lapping headings when accessing anchors
  • Loading branch information
very-doge-wow committed Jun 1, 2024
1 parent 40547ff commit fc9fcc5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,4 @@ output.html
.DS_Store
.coverage
coverage.xml
index.html
4 changes: 4 additions & 0 deletions writer/doc_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,10 @@ def write(output: str, doc: dict, template: str, format_html: bool, advanced_htm
overflow: auto;
font-size: medium;
}
h1, h2, h3, h4 {
padding-top: 3em;
}
</style>
</head>
<body>
Expand Down

0 comments on commit fc9fcc5

Please sign in to comment.