mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-24 14:00:42 +00:00
fix: unify height of header menu items (#198)
This commit is contained in:
parent
d5e0ed0857
commit
dcce1af5b9
@ -40,10 +40,14 @@
|
|||||||
{{- end }}"
|
{{- end }}"
|
||||||
class="gblog-nav__entry{{ if $isCurrent }}{{ printf " %s" "is-active" }}{{ end }}"
|
class="gblog-nav__entry{{ if $isCurrent }}{{ printf " %s" "is-active" }}{{ end }}"
|
||||||
>
|
>
|
||||||
{{ if $icon }}
|
<span class="flex align-center">
|
||||||
<svg class="icon {{ .icon }}"><use xlink:href="#{{ .icon }}"></use></svg>
|
{{ if $icon }}
|
||||||
{{ end }}
|
<svg class="icon {{ .icon }}"><use xlink:href="#{{ .icon }}"></use></svg>
|
||||||
{{ .name }}
|
{{ end }}
|
||||||
|
<span>
|
||||||
|
{{ .name }}
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -50,7 +50,9 @@
|
|||||||
{{ with $.Site.GetPage (printf "/tags/%s" $name) }}
|
{{ with $.Site.GetPage (printf "/tags/%s" $name) }}
|
||||||
<li>
|
<li>
|
||||||
<a
|
<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 }}"
|
href="{{ .RelPermalink }}"
|
||||||
>
|
>
|
||||||
{{ partial "utils/title" . }}
|
{{ partial "utils/title" . }}
|
||||||
|
@ -240,6 +240,7 @@ img {
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__entry {
|
&__entry {
|
||||||
|
line-height: 1.3em;
|
||||||
color: $gray-100;
|
color: $gray-100;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
padding: $padding-4 $padding-8;
|
padding: $padding-4 $padding-8;
|
||||||
|
Loading…
Reference in New Issue
Block a user