From: Danilo M. Date: Mon, 20 Apr 2026 20:15:46 +0000 (+0200) Subject: fix: use theme variables for .back-to-top colors instead of hardcoded values X-Git-Tag: release_22042026-1342~56 X-Git-Url: https://git.danix.xyz/?a=commitdiff_plain;h=a0e3cd5736cb04b516a09924fc7af388d046e835;p=danix.xyz-2.git fix: use theme variables for .back-to-top colors instead of hardcoded values --- diff --git a/themes/danix-xyz-hacker/assets/css/main.css b/themes/danix-xyz-hacker/assets/css/main.css index 4219327..667c57f 100644 --- a/themes/danix-xyz-hacker/assets/css/main.css +++ b/themes/danix-xyz-hacker/assets/css/main.css @@ -616,12 +616,13 @@ html.theme-light picture img[src="/images/default_thumbnail_dark.png"] { .back-to-top { @apply fixed bottom-6 right-6 z-40 w-11 h-11 rounded-full flex items-center justify-content-center; background: var(--accent); - box-shadow: 0 0 12px rgba(168, 85, 247, 0.4); + box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.4); transition: background 200ms ease, box-shadow 200ms ease; color: #fff; } .back-to-top:hover { - background: #9333ea; + background: var(--accent); + filter: brightness(0.85); box-shadow: 0 0 20px var(--accent); } .back-to-top:focus-visible {