From 59a34a0e855d5990780e34354d2c43a2bebbe180 Mon Sep 17 00:00:00 2001 From: spikecodes <19519553+spikecodes@users.noreply.github.com> Date: Thu, 7 Jan 2021 10:46:00 -0800 Subject: [PATCH] Fixed navbar --- static/style.css | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/static/style.css b/static/style.css index 8acb1bf..d061601 100644 --- a/static/style.css +++ b/static/style.css @@ -36,6 +36,10 @@ nav { padding: 5px 15px; font-size: 20px; min-height: 40px; + position: fixed; + width: calc(100% - 30px); + top: 0; + z-index: 1; } nav * { color: var(--text); } @@ -53,7 +57,7 @@ main { justify-content: center; max-width: 1000px; padding: 10px 20px; - margin: 20px auto; + margin: 60px auto 20px auto } #column_one { @@ -751,12 +755,13 @@ td, th { main { flex-direction: column-reverse; padding: 10px; - margin: 10px 0; + margin: 100px 0 10px 0; } nav { flex-direction: column; padding: 10px; + width: calc(100% - 20px); } aside, #subreddit, #user {