diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-20 22:15:46 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-20 22:15:46 +0200 |
| commit | a0e3cd5736cb04b516a09924fc7af388d046e835 (patch) | |
| tree | f12ff7eb0d9a08ca02c3be899a616ef9a98e5bd3 /themes/danix-xyz-hacker | |
| parent | 2a8a7af673ddb83b3255770cdb886c791436ec89 (diff) | |
| download | danixxyz-a0e3cd5736cb04b516a09924fc7af388d046e835.tar.gz danixxyz-a0e3cd5736cb04b516a09924fc7af388d046e835.zip | |
fix: use theme variables for .back-to-top colors instead of hardcoded values
Diffstat (limited to 'themes/danix-xyz-hacker')
| -rw-r--r-- | themes/danix-xyz-hacker/assets/css/main.css | 5 |
1 files changed, 3 insertions, 2 deletions
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 { |
