fix(docs): use compound selector instead of media query
Target the exact state that breaks: when .navbar-sidebar--show is active on the same <nav> element. This preserves the blur on mobile when the sidebar is closed, and only removes it when the sidebar is open.
This commit is contained in:
@@ -63,16 +63,16 @@
|
||||
|
||||
/* Navbar styling */
|
||||
.navbar {
|
||||
backdrop-filter: blur(12px);
|
||||
border-bottom: 1px solid rgba(255, 215, 0, 0.08);
|
||||
}
|
||||
|
||||
/* Frosted-glass blur — desktop only.
|
||||
On mobile, backdrop-filter creates a stacking context that hides
|
||||
the navbar-sidebar menu content (Docusaurus #6996). */
|
||||
@media (min-width: 997px) {
|
||||
.navbar {
|
||||
backdrop-filter: blur(12px);
|
||||
}
|
||||
/* backdrop-filter creates a stacking context that hides
|
||||
.navbar-sidebar menu content (Docusaurus #6996). Remove it
|
||||
while the mobile sidebar is open — both classes live on the
|
||||
same <nav> element. */
|
||||
.navbar.navbar-sidebar--show {
|
||||
backdrop-filter: none;
|
||||
}
|
||||
|
||||
.navbar__title {
|
||||
|
||||
Reference in New Issue
Block a user