💄 Clean up icon styles
This commit is contained in:
parent
a35b59a192
commit
fd59564b81
@ -28,10 +28,12 @@
|
|||||||
href="{{ $href }}"
|
href="{{ $href }}"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="me noopener noreferrer"
|
rel="me noopener noreferrer"
|
||||||
><div class="">
|
|
||||||
<span class="mr-1">{{ partial "icon.html" $icon }}</span>{{ $text | emojify }}
|
|
||||||
</div></a
|
|
||||||
>
|
>
|
||||||
|
{{- with $icon -}}
|
||||||
|
<span class="mr-1">{{ partial "icon.html" . }}</span>
|
||||||
|
{{- end -}}
|
||||||
|
{{ $text | emojify }}
|
||||||
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<span class="relative inline-block align-text-bottom icon">
|
|
||||||
{{ $icon := resources.Get (print "icons/" . ".svg") }}
|
{{ $icon := resources.Get (print "icons/" . ".svg") }}
|
||||||
{{ if $icon }}
|
{{ if $icon }}
|
||||||
|
<span class="relative inline-block align-text-bottom icon">
|
||||||
{{ $icon.Content | safeHTML }}
|
{{ $icon.Content | safeHTML }}
|
||||||
{{ end }}
|
|
||||||
</span>
|
</span>
|
||||||
|
{{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user