aboutsummaryrefslogtreecommitdiff
path: root/forged/static
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-08-12 08:41:09 +0800
committerRunxi Yu <me@runxiyu.org>2025-08-12 08:41:09 +0800
commit6cceade2da5425a2a1c46ac032263c961e81affb (patch)
treee183ad90d4fd2109d66d57498b3a43649f098fae /forged/static
parentRemove hr and forge name footer from error page templates (diff)
downloadforge-6cceade2da5425a2a1c46ac032263c961e81affb.tar.gz
forge-6cceade2da5425a2a1c46ac032263c961e81affb.tar.zst
forge-6cceade2da5425a2a1c46ac032263c961e81affb.zip
Sticky footer
Diffstat (limited to 'forged/static')
-rw-r--r--forged/static/style.css17
1 files changed, 15 insertions, 2 deletions
diff --git a/forged/static/style.css b/forged/static/style.css
index 51846a2..13a2c8e 100644
--- a/forged/static/style.css
+++ b/forged/static/style.css
@@ -86,10 +86,8 @@ html, code, pre {
/* Footer styles */
footer {
- margin-top: 1rem;
margin-left: auto;
margin-right: auto;
- margin-bottom: 1rem;
display: block;
padding: 0 5px;
width: fit-content;
@@ -104,6 +102,21 @@ footer a:link, footer a:visited {
padding: 0 1rem;
}
+/* Sticky footer */
+body {
+ position: relative;
+ min-height: 100vh;
+}
+main {
+ padding-bottom: 2.5rem;
+}
+footer {
+ position: absolute;
+ bottom: 0;
+ width: 100%;
+ height: 2rem;
+}
+
/* Link styles */
a:link, a:visited {
text-decoration-color: var(--text-decoration-color);