Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 37 additions & 6 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,22 @@ html[data-theme="dark"] {
============================================================ */

.navbar {
background: var(--dc-glass-navbar);
-webkit-backdrop-filter: saturate(180%) blur(20px);
backdrop-filter: saturate(180%) blur(20px);
background: transparent;
border-bottom: 1px solid var(--dc-glass-border);
box-shadow: none;
transition: background var(--dc-duration-normal) var(--dc-ease-expo);
}

.navbar::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
background: var(--dc-glass-navbar);
-webkit-backdrop-filter: saturate(180%) blur(20px);
backdrop-filter: saturate(180%) blur(20px);
}

.navbar__link,
.navbar__brand {
transition: color var(--dc-duration-fast) var(--dc-ease-expo),
Expand All @@ -156,9 +164,32 @@ html[data-theme="dark"] {

/* Mobile sidebar overlay */
.navbar-sidebar {
background: var(--dc-glass-navbar);
-webkit-backdrop-filter: saturate(180%) blur(24px);
backdrop-filter: saturate(180%) blur(24px);
background: #ffffff;
/* Pin opacity at 1 and drop it from the transition — the slide is carried by
transform, so there is no alpha animation left to strand. The drawer is
still fully hidden when closed via Infima's visibility:hidden +
translate3d(-100%). */
opacity: 1;
transition-property: transform, visibility;
/* Persistent compositing layer (DOM is always mounted via the swizzle) so
opening never creates a layer mid-transition; explicit order above the
fixed backdrop sibling. */
will-change: transform;
z-index: 1;
}

html[data-theme="dark"] .navbar-sidebar {
background: #1c1c1e;
}

.navbar.navbar-sidebar--show::before {
-webkit-backdrop-filter: none;
backdrop-filter: none;
background: #ffffff;
}

html[data-theme="dark"] .navbar.navbar-sidebar--show::before {
background: #1c1c1e;
}

/*
Expand Down
Loading