From 2f71f92165ef91c142d3f32067fb17421dd7a8e2 Mon Sep 17 00:00:00 2001 From: nessi Date: Sun, 16 Aug 2026 13:06:58 +0200 Subject: [PATCH] feat: add legacy mobile navigation cleanup with auto-close on outside click, escape key, and window resize Add DOMContentLoaded script to mark .nav with legacy-mobile-nav class and hide via @media(max-width:700px) display:none!important. Add closeAll() function to remove mobile-nav-open/open/mobile-drawer-open classes across body/drawer/shade/backdrop elements. Add document click handler to close drawer when clicking outside .mobile-drawer-clone/.mobile-nav/.brand on mobile. Add Escape keydown listener --- templates/index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/index.html b/templates/index.html index 1f19d6a..6a5f304 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,4 +1,6 @@ + +