diff --git a/src/components/appTitlebar/appTitlebar.scss b/src/components/appTitlebar/appTitlebar.scss index 1d0c173..3025526 100644 --- a/src/components/appTitlebar/appTitlebar.scss +++ b/src/components/appTitlebar/appTitlebar.scss @@ -32,22 +32,21 @@ html:not(.has-app-titlebar) { background: transparent; isolation: isolate; - /* Two layers that cross-fade: the glass surface and the soft gradient used - while the titlebar floats over the home hero. No hard border between the - bar and the page. */ - &::before, + /* The page background stays continuous through the titlebar. Only a soft + scrim appears over scrolling content (and over the home hero) so the + controls remain readable without drawing a second glass panel. */ &::after { content: ""; position: absolute; - inset: 0; + inset: 0 0 -14px; z-index: -1; pointer-events: none; - } - - &::before { - inset: 0 0 -14px; - background: rgb(12 13 18 / 0.74); - backdrop-filter: blur(24px) saturate(170%); + background: linear-gradient( + 180deg, + rgb(8 7 16 / 0.62) 0%, + rgb(8 7 16 / 0.28) 62%, + transparent 100% + ); mask-image: linear-gradient( to bottom, #000 calc(100% - 14px), @@ -58,21 +57,14 @@ html:not(.has-app-titlebar) { #000 calc(100% - 14px), transparent 100% ); - opacity: 1; + opacity: 0; transition: opacity 360ms cubic-bezier(0.33, 1, 0.68, 1); will-change: opacity; } - &::after { - background: linear-gradient( - 180deg, - rgb(0 0 0 / 0.58) 0%, - rgb(0 0 0 / 0.24) 62%, - transparent 100% - ); - opacity: 0; - transition: opacity 360ms cubic-bezier(0.33, 1, 0.68, 1); - will-change: opacity; + &--overlay::after, + &--scrolled::after { + opacity: 1; } html.is-macos & { @@ -81,10 +73,6 @@ html:not(.has-app-titlebar) { /* Home: transparent over the hero until the page starts scrolling. */ &--overlay { - &::before { - opacity: 0; - } - &::after { opacity: 1; } diff --git a/src/components/appTitlebar/index.tsx b/src/components/appTitlebar/index.tsx index 6104550..094177a 100644 --- a/src/components/appTitlebar/index.tsx +++ b/src/components/appTitlebar/index.tsx @@ -113,7 +113,7 @@ export const AppTitlebar = () => { return ( <>