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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user