fix(header): use single adaptive logo like Zibll

Replace dual light/dark header images with one img carrying white-src
and dark-src so theme.js swaps src; keep size rules and legacy hide
classes as fallback.
This commit is contained in:
2026-07-13 07:55:39 +08:00
parent 1e37da60c9
commit 9c19bc250d
2 changed files with 27 additions and 9 deletions
+17 -1
View File
@@ -195,7 +195,23 @@ body.dark-theme .site-nav--blur.is-scrolled {
white-space: nowrap;
}
/* Light/dark logo toggle */
/* Light/dark logo: single adaptive img (white-src/dark-src via theme.js) */
.navbar-logo > img,
.navbar-logo .site-brand__logo-img,
.site-brand .site-brand__logo-img,
.site-brand__logo-img,
.site-brand .navbar-logo img {
height: 36px !important;
width: auto !important;
max-width: min(180px, 40vw) !important;
max-height: 36px !important;
padding: 0 !important;
object-fit: contain !important;
display: inline-block;
vertical-align: middle;
}
/* Legacy dual-img classes (if any remain elsewhere) */
.site-brand__logo-img--dark {
display: none;
}