From 8bb0b9bbaaa82293582b00a20c4a8ac1e24306b3 Mon Sep 17 00:00:00 2001 From: Benjamin Kyd Date: Fri, 25 Mar 2022 23:14:02 +0000 Subject: [PATCH] fixing the focken thing ennit Former-commit-id: 20a9b6db7534c9f386d244b4972c60710e196ddb --- client/public/components/css/navbar.css | 44 +++++++++---------- .../public/components/templates/navbar.html | 28 ++++++------ client/public/global.css | 2 +- 3 files changed, 37 insertions(+), 37 deletions(-) diff --git a/client/public/components/css/navbar.css b/client/public/components/css/navbar.css index cbe85db..e790bd9 100644 --- a/client/public/components/css/navbar.css +++ b/client/public/components/css/navbar.css @@ -124,18 +124,16 @@ z-index: 2; } -@media (pointer:none), (pointer:coarse), screen and (max-width: 900px) { - .hamburger { - display: inline-block; - } -} - /* Make sure the thing doesnt move */ /* .nav-menu { transform: translatey(-100%); } */ @media (pointer:none), (pointer:coarse), screen and (max-width: 900px) { + .hamburger { + display: inline-block; + } + .nav-menu { position: fixed; background: #e4d6ffde; @@ -150,27 +148,29 @@ text-align: center; z-index: 100; } + + .secondary-menu { + top: 0; + height: auto; + } + + .nav-menu .menu-item a { + font-size: 1.5em; + margin: 8px; + } + .menu-active .nav-menu { transform: translatey(0%); opacity: 1; } -} -@media (pointer:none), (pointer:coarse), screen and (max-width: 900px) { - .nav-menu .menu-item a { - font-size: 1.5em; - margin: 8px; - } -} - -@media (pointer:none), (pointer:coarse), screen and (max-width: 900px) { - .sub-nav { - position: relative; - width: 100%; - display: none; - background-color: rgba(0, 0, 0, 0.20); - box-sizing: border-box; - } + .sub-nav { + position: relative; + width: 100%; + display: none; + background-color: rgba(0, 0, 0, 0.20); + box-sizing: border-box; + } } .nav-link:hover + .sub-nav { diff --git a/client/public/components/templates/navbar.html b/client/public/components/templates/navbar.html index b90b2a9..8ee512e 100644 --- a/client/public/components/templates/navbar.html +++ b/client/public/components/templates/navbar.html @@ -27,20 +27,20 @@