Skip to content

Commit

Permalink
fix: Apply gradient background to buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Aug 11, 2024
1 parent 325ace4 commit 83756c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hugo-site/layouts/shortcodes/bulma-button.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{{ $gradientStart = "#6633cc" }}
{{ $gradientEnd = "#9966ff" }}
{{ end }}
{{ $style := printf "background: linear-gradient(135deg, %s, %s); color: #ffffff; font-weight: bold; text-shadow: 1px 1px 2px rgba(0,0,0,0.2); border: none; padding: 12px 24px; border-radius: 6px; transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.1);" $gradientStart $gradientEnd }}
{{ $style := printf "background: linear-gradient(135deg, %s, %s); background-color: %s; color: #ffffff; font-weight: bold; text-shadow: 1px 1px 2px rgba(0,0,0,0.2); border: none; padding: 12px 24px; border-radius: 6px; transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.1);" $gradientStart $gradientEnd $gradientStart }}
<a href="{{ .Get "href" }}" class="button" style="{{ $style }}">
{{ .Inner }}
</a>

0 comments on commit 83756c6

Please sign in to comment.