From 1cf6ded48b52d4b694a778d3f8d65ebc54e2ac88 Mon Sep 17 00:00:00 2001 From: Insugeny_athq Date: Thu, 13 Jun 2019 22:54:53 +0200 Subject: [PATCH] implement top bar more elegantly Fixes a bug causing it to overlap with the leaderboard on some mobilephones --- static/site.css | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/static/site.css b/static/site.css index b867fcb..486c5b6 100644 --- a/static/site.css +++ b/static/site.css @@ -9,7 +9,6 @@ body{ } .top-bar{ - position: fixed; background-color: orange; padding-bottom: 10px; padding-top: 10px; @@ -18,16 +17,14 @@ body{ left: 0; top: 0; right: 0; + + overflow:auto; } .top-button{ - height: 80%; float: left; - margin-right: 10px; - background-color: red; - font-weight: bold; color: #583535; } @@ -58,7 +55,6 @@ body{ @media(max-width: 800px){ .top-bar{ /* bar will be scrolled aways */ - position: absolute; min-width: 250px; padding-bottom: 4vw; padding-top: 2vw; @@ -118,7 +114,7 @@ body{ /* #################### LEADERBOARDS ##################### */ .leaderboard-container{ - margin-top: 60px; + margin-top: 10px; margin-bottom: 50px; margin-left: auto; margin-right: auto; @@ -166,10 +162,6 @@ body{ .leaderboard-container{ font-size: 4.5vw; width: 100%; - - /* deal with absolute nav-header */ - margin-top: 30vw; - } .colum-names{