summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorArne Rief <riearn@proton.me>2025-09-15 17:11:49 +0200
committerArne Rief <riearn@proton.me>2025-09-15 17:11:49 +0200
commitbea135e9b4945cf58a066e88de7bcc24605761de (patch)
tree84da5c1b2d5e73aa17ad338322c9a71eb51979bc /assets
parentafc1f095745a548ff400f187d53bc1570f02bcf2 (diff)
Scroll to top, conditional date on posts
Diffstat (limited to 'assets')
-rw-r--r--assets/css/main.css30
1 files changed, 30 insertions, 0 deletions
diff --git a/assets/css/main.css b/assets/css/main.css
index 5a4f7c5..01fa94a 100644
--- a/assets/css/main.css
+++ b/assets/css/main.css
@@ -360,6 +360,10 @@ time {
}
/* Article */
+.post {
+ position: relative; /* Needed for post__scroll-top */
+}
+
.post__header {
margin-bottom: var(--gap-large);
}
@@ -375,6 +379,32 @@ time {
}
}
+.post___scroll-top {
+ background-color: var(--bg-special);
+ border-radius: var(--border-radius-max);
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
+ cursor: pointer;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ height: 2.5rem;
+ width: 2.5rem;
+ position: absolute;
+ bottom: 5rem;
+ right: 0;
+ z-index: 1000;
+
+ & svg {
+ height: 2rem;
+ width: 2rem;
+ padding-bottom: 0.2rem;
+ }
+
+ &:hover {
+ background-color: var(--link-hover);
+ }
+}
+
.post__tags {
margin: var(--margin-padding-Y-big);
}