From af6722c053e81a42f655a2aa768995a91893effd Mon Sep 17 00:00:00 2001 From: Spike <19519553+spikecodes@users.noreply.github.com> Date: Wed, 8 Mar 2023 21:14:43 -0800 Subject: [PATCH] Move unimportant links to footer (#728) --- static/style.css | 28 ++++++++++++---------------- templates/base.html | 18 ++++++++---------- 2 files changed, 20 insertions(+), 26 deletions(-) diff --git a/static/style.css b/static/style.css index 52a5b4d..bfe41c4 100644 --- a/static/style.css +++ b/static/style.css @@ -99,6 +99,8 @@ body { background: var(--background); font-size: 15px; padding-top: 60px; + min-height: calc(100vh - 60px); + position: relative; } nav { @@ -142,12 +144,6 @@ nav #links svg { display: none; } -nav #version { - opacity: 50%; - vertical-align: -2px; - margin-right: 10px; -} - nav #libreddit { vertical-align: -2px; } @@ -270,6 +266,7 @@ main { max-width: 1000px; padding: 10px 20px; margin: 0 auto; + padding-bottom: 4em; } .wide main { @@ -292,22 +289,22 @@ main { body > footer { display: flex; justify-content: center; - margin: 20px; + align-items: center; + width: 100vw; + background: var(--post); + position: absolute; + bottom: 0; } -.info-button { +.footer-button { align-items: center; border-radius: .25rem; box-sizing: border-box; color: var(--text); cursor: pointer; display: inline-flex; - font-size: 150%; - padding: 0.5em; -} - -.info-button > a:hover { - text-decoration: none; + padding-left: 1em; + opacity: 0.8; } /* / Body footer. */ @@ -1551,7 +1548,6 @@ td, th { @media screen and (max-width: 480px) { body { padding-top: 100px; } - #version { display: none; } .post { grid-template: "post_header post_header post_thumbnail" auto @@ -1618,4 +1614,4 @@ td, th { .popup-inner { max-width: 80%; } -} +} \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index dbbff89..af539f8 100644 --- a/templates/base.html +++ b/templates/base.html @@ -32,7 +32,6 @@ @@ -71,10 +63,16 @@ {% endblock %} {% endblock %} + + {% block footer %} {% endblock %}