Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
doc: apply scroll-margin-top to h2, h3 elements
  • Loading branch information
metonym committed Aug 29, 2022
commit 1dc82151c3c6d78d38a736d5701bd9b669c5ed28
8 changes: 2 additions & 6 deletions doc/api_assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,13 @@
--color-text-secondary: var(--green2);
}

h2 :target,
h3 :target,
h4 :target,
h5 :target {
scroll-margin-top: 55px;
}

@supports not (content-visibility: auto) {
h3 :target {
scroll-margin-top: 55px;
}
}

.dark-mode {
--background-color-highlight: var(--black2);
--color-critical: var(--red4);
Expand Down