From 7a8f1aa4e57c0c8b503c6a78690c26d380a50f50 Mon Sep 17 00:00:00 2001 From: Ivo Oskamp Date: Thu, 19 Mar 2026 16:24:02 +0100 Subject: [PATCH] Remove light mode and theme switcher: dark mode only - base.html: hardcode data-bs-theme="dark", remove theme detection JS and theme selector form from sidebar footer - layout.css: replace dark/light theme selectors with unconditional dark background for .bc-main Co-Authored-By: Claude Sonnet 4.6 --- .../backupchecks/src/static/css/layout.css | 9 +----- .../src/templates/layout/base.html | 32 +------------------ 2 files changed, 2 insertions(+), 39 deletions(-) diff --git a/containers/backupchecks/src/static/css/layout.css b/containers/backupchecks/src/static/css/layout.css index e5c1381..d258e5e 100644 --- a/containers/backupchecks/src/static/css/layout.css +++ b/containers/backupchecks/src/static/css/layout.css @@ -373,17 +373,10 @@ body.bc-body { } } -/* ============================================================ - DARK THEME overrides - ============================================================ */ -[data-bs-theme="dark"] .bc-main { +.bc-main { background: var(--bc-main-bg-dark); } -[data-bs-theme="light"] .bc-main { - background: var(--bc-main-bg); -} - /* ============================================================ CONTENT TYPOGRAPHY & UTILITIES ============================================================ */ diff --git a/containers/backupchecks/src/templates/layout/base.html b/containers/backupchecks/src/templates/layout/base.html index a7d33b2..9ab2fd7 100644 --- a/containers/backupchecks/src/templates/layout/base.html +++ b/containers/backupchecks/src/templates/layout/base.html @@ -30,8 +30,7 @@ {% endmacro %} -{% set _theme_pref = (current_user.theme_preference if current_user.is_authenticated else 'auto') %} - + {% block title %}Backupchecks{% endblock %} @@ -45,28 +44,6 @@ {% block head %}{% endblock %} - - @@ -170,13 +147,6 @@ {% endif %} -
- -