mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
button: fix whitespacing in FF #737
This commit is contained in:
parent
9145cda1ed
commit
13822f44a2
1 changed files with 8 additions and 10 deletions
|
@ -49,19 +49,17 @@
|
|||
<span class="btn cstyle {{ $style }}"{{ if $color }} style="--VARIABLE-BOX-color: {{ $color }};"{{ end }}>
|
||||
{{- if $isButton }}
|
||||
<button{{ if $href }} onclick="{{ $href | safeJS }}"{{ end }}{{ if gt (len $type) 0 }} type="{{ $type }}"{{ end }}>
|
||||
{{- else }}
|
||||
{{- else -}}
|
||||
<a{{ if $href }} href="{{ $href }}"{{ if gt (len $target) 0 }} target="{{ $target }}"{{ end }}{{ end }}>
|
||||
{{- end }}
|
||||
{{- if and $icon (eq $iconposition "left") }}
|
||||
<i class="{{ $icon }}"></i>
|
||||
{{- end }}
|
||||
{{ $title | safeHTML }}
|
||||
{{- if and $icon (eq $iconposition "right") }}
|
||||
<i class="{{ $icon }}"></i>
|
||||
{{- end }}
|
||||
{{- if $isButton }}
|
||||
{{- if and $icon (eq $iconposition "left") }}<i class="{{ $icon }}"></i>{{ end }}
|
||||
{{- if and $icon (eq $iconposition "left") $title }} {{ end }}
|
||||
{{- $title | safeHTML }}
|
||||
{{- if and $icon (eq $iconposition "right") $title }} {{ end }}
|
||||
{{- if and $icon (eq $iconposition "right") }}<i class="{{ $icon }}"></i>{{ end }}
|
||||
{{- if $isButton -}}
|
||||
</button>
|
||||
{{- else }}
|
||||
{{- else -}}
|
||||
</a>
|
||||
{{- end }}
|
||||
</span>
|
||||
|
|
Loading…
Reference in a new issue