Tweak all the icons

Make them a little bigger. Clean up the view boxes.
Use <img> instead of backgrounds of <a> tags so the Mastodon logo does not get clipped.
This commit is contained in:
Eryn Wells 2023-08-11 08:05:04 -07:00
parent d407d9d15a
commit 751f1c7d81
5 changed files with 34 additions and 13 deletions

View file

@ -9,8 +9,13 @@
<nav class="social">
{{ with site.Menus.social }}
{{- range . -}}
{{- $id := .Identifier -}}
{{- $targetBlank := .Params.targetBlank | default true -}}
<li><a style="--url: var(--{{ .Identifier }}-icon)" href="{{ .URL }}" {{ if $targetBlank }}target="_blank"{{ end }} aria-label="{{ .Name }}"><span>{{ .Params.shortName | default .Name }}</span></a></li>
<li id="social-menu-{{ $id }}">
<a href="{{ .URL }}" {{ if $targetBlank }}target="_blank"{{ end }} aria-label="{{ .Name }}">
<img alt="{{ .Name }}">
</a>
</li>
{{- end -}}
{{ end }}
</nav>