Adding possibility to secondary buttons in links.

This commit is contained in:
Ad5001 2021-08-18 22:09:35 +02:00
parent ebd1e63256
commit 756e4a39a8
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -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>