From 9edf732a497d13c8dda7d30912a48f235aad25af Mon Sep 17 00:00:00 2001 From: victor Date: Thu, 20 Jun 2024 23:08:50 +0200 Subject: [PATCH] tweaking nav bar --- web/script.js | 2 +- web/style.css | 23 ++++++++++++++--------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/web/script.js b/web/script.js index f334ac3..f25adec 100644 --- a/web/script.js +++ b/web/script.js @@ -4,6 +4,6 @@ function togglemenu(){ if(menu.style.display !== "none"){ menu.style.display = "none"; } else { - menu.style.display = "flex"; + menu.style.display = "block"; } } \ No newline at end of file diff --git a/web/style.css b/web/style.css index 0260bc1..e814af8 100644 --- a/web/style.css +++ b/web/style.css @@ -50,7 +50,6 @@ body{ color: white; font-weight: lighter; padding-bottom: 2vh; - display: block; } @@ -63,15 +62,9 @@ body{ } .imagedescription{ - background: rgba(5, 5, 5, 0.3); - position: relative; - top: 92%; - left: 2%; - padding: 4px; - width: fit-content; - color: rgba(255,255,255,0.7); - pointer-events: none; + display: none; } + h1{ font-family: VG5000; font-size: clamp(1.5rem, 1rem + 9vw, 6rem); @@ -162,4 +155,16 @@ p{ justify-content: space-evenly; background-color: rgba(0, 0, 0, 0); } + + .imagedescription{ + display: block; + background: rgba(5, 5, 5, 0.3); + position: relative; + top: 92%; + left: 2%; + padding: 4px; + width: fit-content; + color: rgba(255,255,255,0.7); + pointer-events: none; + } } \ No newline at end of file