From 1763b91886365789bb7af7cf584cd9afce87ce5b Mon Sep 17 00:00:00 2001 From: Cassidy James Blaede Date: Fri, 10 Apr 2026 10:11:38 -0600 Subject: [PATCH] styles: make source code link a glowy button --- _layouts/default.html | 2 +- style.css | 32 +++++++++++++++++++++++++++++++- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/_layouts/default.html b/_layouts/default.html index 2c5a050..f3a4bc1 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -32,7 +32,7 @@ layout: default
diff --git a/style.css b/style.css index 92bb9a3..5e48790 100644 --- a/style.css +++ b/style.css @@ -51,7 +51,7 @@ html, body { header { background-color: var(--roost-dark); color: var(--roost-yellow); - padding-block: 1em; + padding-block: 0.5em; } header nav { @@ -66,6 +66,7 @@ header nav a { color: inherit; font-family: var(--font-display); font-weight: bold; + padding-block: 0.5em; text-decoration: none; } @@ -151,3 +152,32 @@ ul#projects { padding: 0.125em 0.5em; margin-top: 1em; } + +.button { + background-image: linear-gradient( + 135deg, + var(--roost-yellow), + var(--roost-muddy), + var(--roost-peach) + ); + background-position: center; + background-size: 175%; + border-radius: 0.25em; + color: var(--roost-dark); + font-weight: 600; + padding: 0.5em 1em; + transition: + background-size 1s ease-in-out, + box-shadow 200ms ease-in-out, + color 200ms ease-in-out; +} + +.button:hover, +.button:focus { + background-size: 100%; + color: color-mix(var(--roost-dark) 80%, transparent); + text-decoration: none; + box-shadow: + -3px -3px 12px -3px var(--roost-yellow), + 3px 3px 12px -3px var(--roost-peach); +} -- 2.51.2