Adding possibility to secondary buttons in links.

master
Ad5001 2 years ago
parent ebd1e63256
commit 756e4a39a8
Signed by: Ad5001
GPG Key ID: EF45F9C6AFE20160

@ -56,6 +56,6 @@
}
}
.text-white [role=button]:not(.primary) a, [role=button]:not(.primary).text-white a, nav.text-white [role=button]:not(.primary) {
.text-white [role=button]:not(.primary):not(.secondary) a, [role=button]:not(.primary):not(.secondary).text-white a, nav.text-white [role=button]:not(.primary):not(.secondary) {
color: white;
}

@ -1,5 +1,5 @@
{{ range . }}
<div role="button" class="primary">
<div role="button" class="{{ if .Secondary }}secondary{{ else }}primary{{ end }}">
<a href="{{ .URL | safeURL }}" role="button" title="{{ .Title }}" rel="{{ if .NewTab }}nofollow {{ end }}noreferrer" {{ if .NewTab }}target="_blank"{{ end }}>
<i class="icon-{{ lower .Icon }} icon-as-text" alt="{{ .Icon }}"></i>{{ .Title }}
</a>

Loading…
Cancel
Save