From 72b9c1fa7343cdf9474ec804c08f6517d5258cb1 Mon Sep 17 00:00:00 2001 From: Lorenz Leutgeb Date: Sat, 25 Apr 2026 00:27:57 +0200 Subject: [PATCH] footer: Split into fixed elements Instead of having the link to the homepage (via the logo) and the theme switcher in the footer, split this up. The logo is now in the top left and the theme toggle in the bottom right. The footer itself is removed on the homepage, but kept for blog posts, guides, etc. --- _includes/fixed.html | 4 ++++ _includes/footer.html | 7 ------- _layouts/blog.html | 2 +- _layouts/guide.html | 2 +- _layouts/index.html | 2 +- _layouts/page.html | 2 +- _layouts/post.html | 2 +- assets/css/page.css | 12 ++++++++++-- 8 files changed, 19 insertions(+), 14 deletions(-) create mode 100644 _includes/fixed.html delete mode 100644 _includes/footer.html diff --git a/_includes/fixed.html b/_includes/fixed.html new file mode 100644 index 0000000..f62ebb4 --- /dev/null +++ b/_includes/fixed.html @@ -0,0 +1,4 @@ + + + + diff --git a/_includes/footer.html b/_includes/footer.html deleted file mode 100644 index cc78dc9..0000000 --- a/_includes/footer.html +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/_layouts/blog.html b/_layouts/blog.html index 3bbc92d..807b7d8 100644 --- a/_layouts/blog.html +++ b/_layouts/blog.html @@ -31,7 +31,7 @@ {{ content }} diff --git a/_layouts/guide.html b/_layouts/guide.html index 6bb9bf7..c740968 100644 --- a/_layouts/guide.html +++ b/_layouts/guide.html @@ -25,7 +25,7 @@ {{ content }} diff --git a/_layouts/index.html b/_layouts/index.html index 20233f6..4c58bab 100644 --- a/_layouts/index.html +++ b/_layouts/index.html @@ -32,7 +32,7 @@ {{ content }} - {% include footer.html %} + {% include fixed.html %} diff --git a/_layouts/post.html b/_layouts/post.html index b2cad39..6a51eb1 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -22,7 +22,7 @@

Contribute to Radicle as a 🌱 seeder, 🧙 developer or by 🪞 mirroring your repositories on the Radicle network.

Join our community on 💬 Zulip and discuss your ideas to improve Radicle.

- {% include footer.html %} + {% include fixed.html %} diff --git a/assets/css/page.css b/assets/css/page.css index 13a36fa..4fea895 100644 --- a/assets/css/page.css +++ b/assets/css/page.css @@ -274,7 +274,6 @@ body > header { body > footer { display: flex; color: var(--color-fg-dim); - border-top: 1px solid var(--color-border-hint); padding: 0 0.5rem; white-space: nowrap; width: 100%; @@ -322,11 +321,19 @@ nav .cta { } #logo { - position: absolute; + position: fixed; + top: 0.5rem; left: 0.5rem; z-index: 99; } +.toggle { + position: fixed; + bottom: 0.5rem; + right: 0.5rem; + z-index: 99; +} + #ribbon { position: absolute; float: right; @@ -393,6 +400,7 @@ img.banner { @media (max-width: 800px) { body > main { padding: 1rem; + padding-top: 2.5rem; /* Make space for #logo */ } nav { display: block;