summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/assets/css/main.css
diff options
context:
space:
mode:
Diffstat (limited to 'themes/danix-xyz-hacker/assets/css/main.css')
-rw-r--r--themes/danix-xyz-hacker/assets/css/main.css17
1 files changed, 17 insertions, 0 deletions
diff --git a/themes/danix-xyz-hacker/assets/css/main.css b/themes/danix-xyz-hacker/assets/css/main.css
index 8229271..4219327 100644
--- a/themes/danix-xyz-hacker/assets/css/main.css
+++ b/themes/danix-xyz-hacker/assets/css/main.css
@@ -611,6 +611,23 @@ html.theme-light picture img[src="/images/default_thumbnail_dark.png"] {
background: rgba(0, 255, 136, 0.1);
color: var(--accent2);
}
+
+ /* Back to top button */
+ .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);
+ transition: background 200ms ease, box-shadow 200ms ease;
+ color: #fff;
+ }
+ .back-to-top:hover {
+ background: #9333ea;
+ box-shadow: 0 0 20px var(--accent);
+ }
+ .back-to-top:focus-visible {
+ outline: 2px solid var(--accent);
+ outline-offset: 2px;
+ }
}
/* Prose overrides for light theme */