summaryrefslogtreecommitdiffstats
path: root/themes
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-20 22:13:10 +0200
committerDanilo M. <danix@danix.xyz>2026-04-20 22:13:10 +0200
commit2a8a7af673ddb83b3255770cdb886c791436ec89 (patch)
treeab59d1b8f9e0ddbb60001c11d0a4fa588e885dee /themes
parent96df3bfc30a4e36d3e9831802fa0e7336679836b (diff)
downloaddanixxyz-2a8a7af673ddb83b3255770cdb886c791436ec89.tar.gz
danixxyz-2a8a7af673ddb83b3255770cdb886c791436ec89.zip
style: add .back-to-top component class
Diffstat (limited to 'themes')
-rw-r--r--themes/danix-xyz-hacker/assets/css/main.css17
-rw-r--r--themes/danix-xyz-hacker/assets/css/main.min.css2
2 files changed, 19 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 */
diff --git a/themes/danix-xyz-hacker/assets/css/main.min.css b/themes/danix-xyz-hacker/assets/css/main.min.css
index fe44358..389a8b7 100644
--- a/themes/danix-xyz-hacker/assets/css/main.min.css
+++ b/themes/danix-xyz-hacker/assets/css/main.min.css
@@ -1733,6 +1733,8 @@ article.border.border-border\/30.rounded-lg.card.group.bg-bg {
color: var(--accent2);
}
+/* Back to top button */
+
.sr-only {
position: absolute;
width: 1px;