From d20ce032648331aabd2136c36f32ff2ecfed48a2 Mon Sep 17 00:00:00 2001 From: Deco Vander Date: Sat, 5 Jul 2025 18:47:05 -0400 Subject: [PATCH] Fix theme transition flash on page navigation - Add immediate theme application in section for all pages - Prevents light mode flash when navigating in dark mode - Script executes before body renders to apply saved theme - Fixes flash when going from privacy policy back to home - Maintains consistent theme experience across all pages - Supports auto theme detection based on system preference --- public/admin.html | 13 +++++++ public/index.html | 14 +++++++ public/privacy.html | 91 +++++++-------------------------------------- 3 files changed, 41 insertions(+), 77 deletions(-) diff --git a/public/admin.html b/public/admin.html index 0fb381a..07f58f8 100644 --- a/public/admin.html +++ b/public/admin.html @@ -7,6 +7,18 @@ +
@@ -155,6 +167,7 @@
+ diff --git a/public/index.html b/public/index.html index 61bbf3c..cc9c836 100644 --- a/public/index.html +++ b/public/index.html @@ -8,6 +8,18 @@ +
@@ -109,6 +121,8 @@ placeholder="Enter address, intersection (e.g., Main St & Second St, City), or l
+ + diff --git a/public/privacy.html b/public/privacy.html index 2592ad8..f85fc45 100644 --- a/public/privacy.html +++ b/public/privacy.html @@ -7,6 +7,18 @@ +
@@ -110,84 +122,9 @@
+ +