fix: unify height of header menu items (#198)

This commit is contained in:
Robert Kaussow 2022-02-07 09:01:52 +01:00 committed by GitHub
parent d5e0ed0857
commit dcce1af5b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 5 deletions

View File

@ -40,10 +40,14 @@
{{- end }}"
class="gblog-nav__entry{{ if $isCurrent }}{{ printf " %s" "is-active" }}{{ end }}"
>
{{ if $icon }}
<svg class="icon {{ .icon }}"><use xlink:href="#{{ .icon }}"></use></svg>
{{ end }}
{{ .name }}
<span class="flex align-center">
{{ if $icon }}
<svg class="icon {{ .icon }}"><use xlink:href="#{{ .icon }}"></use></svg>
{{ end }}
<span>
{{ .name }}
</span>
</span>
</a>
</li>
{{ end }}

View File

@ -50,7 +50,9 @@
{{ with $.Site.GetPage (printf "/tags/%s" $name) }}
<li>
<a
class="gblog-nav__entry {{ if eq $currentPage .RelPermalink }}is-active{{ end }}"
class="gblog-nav__entry{{ if eq $currentPage .RelPermalink }}
{{ printf " %s" "is-active" }}
{{ end }}"
href="{{ .RelPermalink }}"
>
{{ partial "utils/title" . }}

View File

@ -240,6 +240,7 @@ img {
}
&__entry {
line-height: 1.3em;
color: $gray-100;
text-decoration: none;
padding: $padding-4 $padding-8;