]> danix's work - danix.xyz-2.git/commitdiff
fix: use theme variables for .back-to-top colors instead of hardcoded values
authorDanilo M. <redacted>
Mon, 20 Apr 2026 20:15:46 +0000 (22:15 +0200)
committerDanilo M. <redacted>
Mon, 20 Apr 2026 20:15:46 +0000 (22:15 +0200)
themes/danix-xyz-hacker/assets/css/main.css

index 421932725ad512692f77ea0ce1b82c3ed9f842b2..667c57fa18859103fcfb964644238f857a2bb119 100644 (file)
@@ -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 {