Skip to content

Commit

Permalink
theme: fix usage of <h3> in menu matcornic#88
Browse files Browse the repository at this point in the history
  • Loading branch information
McShelby committed Sep 13, 2021
1 parent 65cb38a commit 94fceae
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion layouts/partials/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
{{- $disableShortcutsTitle := .Site.Params.DisableShortcutsTitle }}
{{- with .Site.Menus.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>
{{- range sort . "Weight" }}
<li>{{ .Pre }}<a class="padding" href="{{ .URL | absLangURL }}">{{ safeHTML .Name }}</a>{{ .Post }}</li>
Expand Down
2 changes: 1 addition & 1 deletion static/css/theme-relearn.css
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,6 @@ a:hover {
color: var(--MENU-HOME-LINK-HOVER-color);
}

#shortcuts h3 {
#sidebar .nav-title {
color: var(--MENU-SECTIONS-LINK-HOVER-color) !important;
}
11 changes: 8 additions & 3 deletions static/css/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1127,11 +1127,16 @@ pre .copy-to-clipboard:hover {
display: inline;
}

#sidebar #shortcuts h3 {
font-family: "Novacento Sans Wide", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
#sidebar .nav-title {
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;
text-rendering: optimizeLegibility;
}

#homelinks {
Expand Down

0 comments on commit 94fceae

Please sign in to comment.