Fix double-logo bug and size up the sidebar brand image

.sidebar-brand img { display: block } (0,1,1 specificity) was beating
.brand-wordmark-light { display: none } (0,1,0), so both the light and
dark logo variants rendered stacked regardless of theme. Scoped the
show/hide rules to .sidebar-brand .brand-wordmark-{dark,light} (0,2,0) so
they correctly win, and moved display:block onto the dark variant's own
rule instead of the generic img selector.

Also sized the logo up 50% (64px -> 96px) per feedback, and regenerated
the source PNGs at 400px tall (previously 160px) so they stay crisp at
the larger size instead of upscaling a smaller source.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
ksmithandClaude Sonnet 5 committed 2026-10-30 21:59:29 -06:00
1 parent 4af7860acd
commit b08a78e747
3 files changed
+10 -7

No files matched your search

+10 -7
View File
@@ -158,30 +158,33 @@ form p {
} }
.sidebar-brand img { .sidebar-brand img {
display: block; height: 96px;
height: 64px;
width: auto; width: auto;
margin: 0 auto; margin: 0 auto;
} }
.brand-wordmark-light { .sidebar-brand .brand-wordmark-dark {
display: block;
}
.sidebar-brand .brand-wordmark-light {
display: none; display: none;
} }
@media (prefers-color-scheme: light) { @media (prefers-color-scheme: light) {
:root:not([data-theme]) .brand-wordmark-dark { :root:not([data-theme]) .sidebar-brand .brand-wordmark-dark {
display: none; display: none;
} }
:root:not([data-theme]) .brand-wordmark-light { :root:not([data-theme]) .sidebar-brand .brand-wordmark-light {
display: block; display: block;
} }
} }
:root[data-theme="light"] .brand-wordmark-dark { :root[data-theme="light"] .sidebar-brand .brand-wordmark-dark {
display: none; display: none;
} }
:root[data-theme="light"] .brand-wordmark-light { :root[data-theme="light"] .sidebar-brand .brand-wordmark-light {
display: block; display: block;
} }
Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 155 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 150 KiB