Adding possibility to secondary buttons in links.
This commit is contained in:
parent
ebd1e63256
commit
756e4a39a8
2 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue