From 35a802cbd55b46d70632292e1dc68efcb08c3f60 Mon Sep 17 00:00:00 2001 From: juanatsap Date: Wed, 19 Nov 2025 14:57:38 +0000 Subject: [PATCH] fix: Keep sidebar background consistent across themes Change sidebar background from var(--sidebar-bg) to fixed #d1d4d2 so it remains the same light gray color in both light and dark themes. The sidebar should provide a consistent visual anchor regardless of the main content theme. --- static/css/03-components/_sidebar.css | 2 +- templates/partials/modals/pdf-modal.html | 15 ++- tests/mjs/20-pdf-download-debug.mjs | 125 +++++++++++++++++++++++ 3 files changed, 136 insertions(+), 6 deletions(-) create mode 100755 tests/mjs/20-pdf-download-debug.mjs diff --git a/static/css/03-components/_sidebar.css b/static/css/03-components/_sidebar.css index 185faf5..42fda6b 100644 --- a/static/css/03-components/_sidebar.css +++ b/static/css/03-components/_sidebar.css @@ -4,7 +4,7 @@ /* Sidebar - Left/Right columns */ .cv-sidebar { - background: var(--sidebar-bg); + background: #d1d4d2; /* Fixed color - same for both themes */ padding: 4rem 1.5rem; font-size: 0.9rem; } diff --git a/templates/partials/modals/pdf-modal.html b/templates/partials/modals/pdf-modal.html index 9a93508..9795a61 100644 --- a/templates/partials/modals/pdf-modal.html +++ b/templates/partials/modals/pdf-modal.html @@ -226,18 +226,21 @@