home | blog | art | now | git gpg | email | rss

pollux.codes

Files for the pollux.codes site
git clone git://pollux.codes/git/pollux.codes.git
Log | Files | Refs
commit 59de818800f1a6a2bc947d6ef693ac7ace792fd4
parent a5e668dfc385189f0c6519e64472846231ccbde1
Author: Pollux <pollux@pollux.codes>
Date:   Tue, 27 May 2025 11:22:08 -0500

Better css for buttons

Code from here: https://88x31.kate.pet/

Signed-off-by: Pollux <pollux@pollux.codes>

Diffstat:
Mlayouts/partials/footer.html | 4++--
Mstatic/style.css | 6++++++
2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html @@ -7,9 +7,9 @@ {{ range (index .Site.Params "buttons") -}} {{- $image := resources.Get .file -}} {{- if .url -}} - <a href="{{ .url }}"><img src="{{ $image.RelPermalink }}"></a> + <a href="{{ .url }}"><img class="button" src="{{ $image.RelPermalink }}"></a> {{- else -}} - <img src="{{ $image.RelPermalink }}"> + <img class="button" src="{{ $image.RelPermalink }}"> {{- end -}} {{- end }} </div> diff --git a/static/style.css b/static/style.css @@ -6,4 +6,10 @@ body { max-width: 40em; font: 1.2em/1.62 monospace; } +.button { + image-rendering: auto; + image-rendering: crisp-edges; + image-rendering: pixelated; + image-rendering: -webkit-optimize-contrast; +} a{color:skyblue}