From 8fe1eb099b3dca598fa4177144b03244e2852b05 Mon Sep 17 00:00:00 2001 From: Lanius Trolling Date: Sat, 2 Mar 2024 15:08:50 -0500 Subject: [PATCH] Replace percent sizes with viewport size --- src/jvmMain/resources/static/style.css | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/jvmMain/resources/static/style.css b/src/jvmMain/resources/static/style.css index d53625d..712da75 100644 --- a/src/jvmMain/resources/static/style.css +++ b/src/jvmMain/resources/static/style.css @@ -527,7 +527,7 @@ aside.mobile img { } main > section { - width: 48%; + width: 48vw; margin: 4vh auto; } @@ -552,24 +552,22 @@ aside.mobile img { } nav.desktop { - width: 16%; + width: 16vw; float: left; margin: 4vh 4vw; position: sticky; top: calc(4vh + 1.25rem); + max-height: calc(92vh - 2.5rem); } aside.desktop { - width: 16%; + width: 16vw; float: right; margin: 4vh 4vw; position: sticky; top: calc(4vh + 1.25rem); - } - - aside.desktop { max-height: calc(92vh - 2.5rem); } -- 2.25.1