From 20dd61e938cd79801a6e00bb9369cbfeb083fcac Mon Sep 17 00:00:00 2001 From: Keith Smith Date: Fri, 30 Oct 2026 22:03:13 -0600 Subject: [PATCH] Add the logo to login/setup pages and raise light-mode contrast MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The brand logo only appeared in the sidebar, so unauthenticated pages (login, first-run setup, create-user) had no branding at all. Added an .auth-brand block to base.html's shared unauthenticated shell so all three get it automatically, and generalized the theme-swapped logo show/hide rules (previously scoped to .sidebar-brand) so the same .brand-wordmark-dark/.brand-wordmark-light classes work in both places — safe to de-scope since neither .sidebar-brand img nor .auth-brand img touches `display`, so there's no repeat of the earlier specificity bug. Raised light-mode contrast across the board (WCAG contrast vs white, computed): --text-dim 3.64:1 -> 5.80:1 (was failing AA for normal text — this is the timestamp/feed-name color, used constantly), --star 3.65:1 -> 5.0:1, --border 1.25:1 -> 1.58:1 (still a hairline by design, just more visible), and widened the --bg/--bg-sidebar/--bg-row-hover/--bg-row- selected tiers, which were previously all within a few points of white and made the whole theme look flat. Co-Authored-By: Claude Sonnet 5 --- static/css/base.css | 51 +++++++++++++++++++++++++++++---------------- templates/base.html | 6 ++++++ 2 files changed, 39 insertions(+), 18 deletions(-) diff --git a/static/css/base.css b/static/css/base.css index cb6921b..14d259e 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -25,32 +25,32 @@ :root:not([data-theme]) { color-scheme: light; --bg: #ffffff; - --bg-sidebar: #f4f6fa; - --bg-row-hover: #eef1f6; - --bg-row-selected: #e4edfd; + --bg-sidebar: #eef1f6; + --bg-row-hover: #e2e8f0; + --bg-row-selected: #d6e3fb; --accent: #2f5fa8; --accent-dark: #24497f; - --star: #b7790f; + --star: #9c6307; --text: #0f2038; --text-muted: #4a5568; - --text-dim: #7c8798; - --border: #e2e6ed; + --text-dim: #5c6677; + --border: #c7cedb; } } :root[data-theme="light"] { color-scheme: light; --bg: #ffffff; - --bg-sidebar: #f4f6fa; - --bg-row-hover: #eef1f6; - --bg-row-selected: #e4edfd; + --bg-sidebar: #eef1f6; + --bg-row-hover: #e2e8f0; + --bg-row-selected: #d6e3fb; --accent: #2f5fa8; --accent-dark: #24497f; - --star: #b7790f; + --star: #9c6307; --text: #0f2038; --text-muted: #4a5568; - --text-dim: #7c8798; - --border: #e2e6ed; + --text-dim: #5c6677; + --border: #c7cedb; } * { @@ -163,31 +163,46 @@ form p { margin: 0 auto; } -.sidebar-brand .brand-wordmark-dark { +/* Theme-swapped logo images — used in the sidebar brand and on the + auth pages (login/setup/create user). Neither .sidebar-brand img nor + .auth-brand img sets `display`, so these stay the only rule touching + it and can't lose a specificity fight with the sizing rules. */ +.brand-wordmark-dark { display: block; } -.sidebar-brand .brand-wordmark-light { +.brand-wordmark-light { display: none; } @media (prefers-color-scheme: light) { - :root:not([data-theme]) .sidebar-brand .brand-wordmark-dark { + :root:not([data-theme]) .brand-wordmark-dark { display: none; } - :root:not([data-theme]) .sidebar-brand .brand-wordmark-light { + :root:not([data-theme]) .brand-wordmark-light { display: block; } } -:root[data-theme="light"] .sidebar-brand .brand-wordmark-dark { +:root[data-theme="light"] .brand-wordmark-dark { display: none; } -:root[data-theme="light"] .sidebar-brand .brand-wordmark-light { +:root[data-theme="light"] .brand-wordmark-light { display: block; } +.auth-brand { + display: flex; + justify-content: center; + margin-bottom: 1.5rem; +} + +.auth-brand img { + height: 110px; + width: auto; +} + .theme-switcher { display: flex; gap: 0.25rem; diff --git a/templates/base.html b/templates/base.html index 48ecd87..cb89068 100644 --- a/templates/base.html +++ b/templates/base.html @@ -38,6 +38,12 @@ {% endif %}
+ {% if not user.is_authenticated %} +
+ Evection + Evection +
+ {% endif %} {% block content %}{% endblock %}