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 }}>
|
<span class="btn cstyle {{ $style }}"{{ if $color }} style="--VARIABLE-BOX-color: {{ $color }};"{{ end }}>
|
||||||
{{- if $isButton }}
|
{{- if $isButton }}
|
||||||
<button{{ if $href }} onclick="{{ $href | safeJS }}"{{ end }}{{ if gt (len $type) 0 }} type="{{ $type }}"{{ end }}>
|
<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 }}>
|
<a{{ if $href }} href="{{ $href }}"{{ if gt (len $target) 0 }} target="{{ $target }}"{{ end }}{{ end }}>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if and $icon (eq $iconposition "left") }}
|
{{- if and $icon (eq $iconposition "left") }}<i class="{{ $icon }}"></i>{{ end }}
|
||||||
<i class="{{ $icon }}"></i>
|
{{- if and $icon (eq $iconposition "left") $title }} {{ end }}
|
||||||
{{- end }}
|
{{- $title | safeHTML }}
|
||||||
{{ $title | safeHTML }}
|
{{- if and $icon (eq $iconposition "right") $title }} {{ end }}
|
||||||
{{- if and $icon (eq $iconposition "right") }}
|
{{- if and $icon (eq $iconposition "right") }}<i class="{{ $icon }}"></i>{{ end }}
|
||||||
<i class="{{ $icon }}"></i>
|
{{- if $isButton -}}
|
||||||
{{- end }}
|
|
||||||
{{- if $isButton }}
|
|
||||||
</button>
|
</button>
|
||||||
{{- else }}
|
{{- else -}}
|
||||||
</a>
|
</a>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</span>
|
</span>
|
||||||
|
|
Loading…
Reference in a new issue