From 6c7d77fd3bc7ce58a23ae59a3c1374eacdc306d7 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sat, 29 Nov 2025 11:00:54 +0530 Subject: [PATCH] ui: Minor CSS refactor to use variables Tests: - Main header's shadow is unchanged in light mode. In dark mode, it is still the same and not really visible. This is better than casting a white shadow. Reviewed-by: James Valleroy --- static/themes/default/css/main.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/themes/default/css/main.css b/static/themes/default/css/main.css index 009524331..71fd14f60 100644 --- a/static/themes/default/css/main.css +++ b/static/themes/default/css/main.css @@ -7,6 +7,7 @@ --freedombox-blue-color: #4989D4; /* Blue */ --progress-color: #3498db; /* Blue */ --freedombox-navbar-color: white; + --freedombox-navbar-shadow-color: rgba(0, 0, 0, 0.25); } @@ -449,7 +450,7 @@ footer { */ .main-header { background: var(--freedombox-blue-color); - box-shadow: 0 0.25rem 0.375rem 0 rgba(0, 0, 0, 0.25); + box-shadow: 0 0.25rem 0.375rem 0 var(--freedombox-navbar-shadow-color); border: none; }