From 71a98e7c1bda377f869359950129705cd3277237 Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Sat, 28 Nov 2026 16:18:11 -0600 Subject: [PATCH] heheheha --- .../website/src/components/BaseStyles.astro | 9 ++++ .../{NavbarFine.astro => NavbarBig.astro} | 36 +++++++++------- .../{NavbarCourse.astro => NavbarSmall.astro} | 42 ++++++++----------- ...toHide.astro => NavbarSmallAutoHide.astro} | 2 +- .../TankopediaLoadout/index.module.css | 4 +- packages/website/src/layouts/BaseLayout.astro | 8 ++-- 6 files changed, 55 insertions(+), 46 deletions(-) rename packages/website/src/components/{NavbarFine.astro => NavbarBig.astro} (92%) rename packages/website/src/components/{NavbarCourse.astro => NavbarSmall.astro} (87%) rename packages/website/src/components/{NavbarMobileAutoHide.astro => NavbarSmallAutoHide.astro} (92%) diff --git a/packages/website/src/components/BaseStyles.astro b/packages/website/src/components/BaseStyles.astro index 3e15efa17..ab9040a53 100644 --- a/packages/website/src/components/BaseStyles.astro +++ b/packages/website/src/components/BaseStyles.astro @@ -81,6 +81,15 @@ styles += "}"; --tank-card-min-width: 8rem; --drop-down-min-width: 16rem; --alert-max-width: 28rem; + + /* Which navbar shows; the navbars read these as their display */ + --navbar-big-display: block; + --navbar-small-display: none; + + @media (width < 40rem) { + --navbar-big-display: none; + --navbar-small-display: flex; + } } diff --git a/packages/website/src/components/NavbarFine.astro b/packages/website/src/components/NavbarBig.astro similarity index 92% rename from packages/website/src/components/NavbarFine.astro rename to packages/website/src/components/NavbarBig.astro index b976bbf2e..7d362d729 100644 --- a/packages/website/src/components/NavbarFine.astro +++ b/packages/website/src/components/NavbarBig.astro @@ -34,16 +34,12 @@ const groups = toolGroups.map((group) => { --- -
+ -{solid && } +{solid && } -{!solid &&