topbar: fix HTML validator errors #639

This commit is contained in:
Sören Weber 2023-09-12 23:18:49 +02:00
parent 626841a16c
commit 5d89ffcfd0
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
2 changed files with 8 additions and 4 deletions

View file

@ -71,7 +71,7 @@
<div id="toc-overlay"></div>
<nav id="topbar">
<div>
<span class="topbar-right">
<div class="topbar-right">
{{- $showPrevNext := (and (not .Params.disableNextPrev) (not .Site.Params.disableNextPrev)) }}
{{- if and (or (eq $outputFormat "html") (eq $outputFormat "searchpage")) $showPrevNext }}
{{- $startarrow := "🡐" }}
@ -129,8 +129,8 @@
"title" (printf "%s (CTRL+ALT+w)" (T "Edit-this-page"))
)}}
{{- end }}
</span>
<span class="topbar-left">
</div>
<div class="topbar-left">
{{- partial "topbar-button.html" (dict
"page" $page
"class" "topbar-sidebar"
@ -162,7 +162,7 @@
{{ .Title }}
</span>
{{- end }}
</span>
</div>
{{- if $toc }}
{{ $toc_content }}
{{- end }}

View file

@ -1020,9 +1020,13 @@ html[dir="rtl"] .topbar-left .topbar-button {
background-color: transparent;
}
#body .topbar-right {
display: inline;
}
#body .topbar-left {
border-inline-start-style: solid;
border-inline-start-width: 1px;
display: inline;
float: left;
height: auto;
margin-bottom: 0;