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 %}