From: Lanius Trolling Date: Sat, 2 Mar 2024 21:28:25 +0000 (-0500) Subject: Fix navbar and sidebar on short pages X-Git-Url: https://gitweb.starshipfights.net/?a=commitdiff_plain;h=ee9eb5ddf59b0b00bb0fd33c8b67808262f2e841;p=factbooks Fix navbar and sidebar on short pages --- diff --git a/src/jvmMain/resources/static/style.css b/src/jvmMain/resources/static/style.css index 412ab35..af0ac50 100644 --- a/src/jvmMain/resources/static/style.css +++ b/src/jvmMain/resources/static/style.css @@ -553,21 +553,21 @@ aside.mobile img { nav.desktop { width: 12vw; - float: left; - margin: 0 2vw; + margin: 2vh 2vw; - position: sticky; - top: 2vh; + position: fixed; + top: 0; + left: 0; max-height: 96vh; } aside.desktop { width: 12vw; - float: right; - margin: 0 2vw; + margin: 2vh 2vw; - position: sticky; - top: 2vh; + position: fixed; + top: 0; + right: 0; max-height: 96vh; }