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

View file

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