theme: fix usage of <h3> in menu #88

This commit is contained in:
Sören Weber 2021-09-13 19:24:37 +02:00
parent 65cb38aec3
commit 94fceae42d
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589
3 changed files with 10 additions and 5 deletions

View file

@ -34,7 +34,7 @@
{{- $disableShortcutsTitle := .Site.Params.DisableShortcutsTitle }} {{- $disableShortcutsTitle := .Site.Params.DisableShortcutsTitle }}
{{- with .Site.Menus.shortcuts }} {{- with .Site.Menus.shortcuts }}
<div id="shortcuts"> <div id="shortcuts">
<h3>{{ if not $disableShortcutsTitle }}{{ T "Shortcuts-Title" }}{{ end }}</h3> <div class="nav-title">{{ if not $disableShortcutsTitle }}{{ T "Shortcuts-Title" }}{{ end }}</div>
<ul> <ul>
{{- range sort . "Weight" }} {{- range sort . "Weight" }}
<li>{{ .Pre }}<a class="padding" href="{{ .URL | absLangURL }}">{{ safeHTML .Name }}</a>{{ .Post }}</li> <li>{{ .Pre }}<a class="padding" href="{{ .URL | absLangURL }}">{{ safeHTML .Name }}</a>{{ .Post }}</li>

View file

@ -129,6 +129,6 @@ a:hover {
color: var(--MENU-HOME-LINK-HOVER-color); color: var(--MENU-HOME-LINK-HOVER-color);
} }
#shortcuts h3 { #sidebar .nav-title {
color: var(--MENU-SECTIONS-LINK-HOVER-color) !important; color: var(--MENU-SECTIONS-LINK-HOVER-color) !important;
} }

View file

@ -1127,11 +1127,16 @@ pre .copy-to-clipboard:hover {
display: inline; display: inline;
} }
#sidebar #shortcuts h3 { #sidebar .nav-title {
font-family: "Novacento Sans Wide", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
color: white ; color: white ;
margin-top:1rem; font-family: "Novacento Sans Wide", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
font-size: 2rem;
font-weight: 400;
letter-spacing: -1px;
line-height: 110% !important;
margin: 1rem 0 1rem 0;
padding-left: 1rem; padding-left: 1rem;
text-rendering: optimizeLegibility;
} }
#homelinks { #homelinks {