Merge pull request #18771 from dvdksn/scroll-margin-h1

fix: add scroll margin for h1s
This commit is contained in:
David Karlsson 2023-11-27 11:01:55 +01:00 committed by GitHub
commit 84d4762555
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View File

@ -14,7 +14,7 @@
{{ partial "breadcrumbs.html" . }}
<article class="DocSearch-content prose max-w-none dark:prose-invert">
{{ with .Title }}
<h1 id="{{ anchorize . }}">{{ . }}</h1>
<h1 id="{{ anchorize . }}" class="scroll-mt-36">{{ . }}</h1>
{{ end }}
{{ $data.short | .RenderString (dict "display" "block") }}
{{ if $data.deprecated }}

View File

@ -6,7 +6,7 @@
{{ partial "breadcrumbs.html" . }}
<article class="DocSearch-content prose max-w-none dark:prose-invert">
{{ with .Title }}
<h1 id="{{ anchorize . }}">{{ . }}</h1>
<h1 id="{{ anchorize . }}" class="scroll-mt-36">{{ . }}</h1>
{{ end }}
<table>
<thead>

View File

@ -6,7 +6,7 @@
{{ partial "breadcrumbs.html" . }}
<article class="DocSearch-content prose max-w-none dark:prose-invert">
{{ with .Title }}
<h1 id="{{ anchorize . }}">{{ . }}</h1>
<h1 id="{{ anchorize . }}" class="scroll-mt-36">{{ . }}</h1>
{{ end }}
{{ .Content }}
</article>

View File

@ -6,7 +6,7 @@
{{ partial "breadcrumbs.html" . }}
<article class="DocSearch-content prose max-w-none dark:prose-invert">
{{ with .Title }}
<h1 id="{{ anchorize . }}">{{ . }}</h1>
<h1 id="{{ anchorize . }}" class="scroll-mt-36">{{ . }}</h1>
{{ end }}
{{ .Content }}
</article>

View File

@ -6,7 +6,7 @@
{{ partial "breadcrumbs.html" . }}
<article class="DocSearch-content prose max-w-none dark:prose-invert">
{{ with .Title }}
<h1 id="{{ anchorize . }}">{{ . }}</h1>
<h1 id="{{ anchorize . }}" class="scroll-mt-36">{{ . }}</h1>
{{ end }}
<blockquote>
<p><strong>Note</strong></p>