fix(ui): keep one continuous background behind titlebar
Continuous Integration / build_web (push) Failing after 1s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build_web (push) Failing after 1s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Drop the separate glass strip on the titlebar; page backdrop and gradients now run continuously behind it, with a soft scrim only over scrolling content and the home hero.
This commit is contained in:
1 parent
4bd884ebd1
commit
80ebe77fbc
2 files changed
+15
-27
No files matched your search
@@ -32,22 +32,21 @@ html:not(.has-app-titlebar) {
|
|||||||
background: transparent;
|
background: transparent;
|
||||||
isolation: isolate;
|
isolation: isolate;
|
||||||
|
|
||||||
/* Two layers that cross-fade: the glass surface and the soft gradient used
|
/* The page background stays continuous through the titlebar. Only a soft
|
||||||
while the titlebar floats over the home hero. No hard border between the
|
scrim appears over scrolling content (and over the home hero) so the
|
||||||
bar and the page. */
|
controls remain readable without drawing a second glass panel. */
|
||||||
&::before,
|
|
||||||
&::after {
|
&::after {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
inset: 0;
|
inset: 0 0 -14px;
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
background: linear-gradient(
|
||||||
|
180deg,
|
||||||
&::before {
|
rgb(8 7 16 / 0.62) 0%,
|
||||||
inset: 0 0 -14px;
|
rgb(8 7 16 / 0.28) 62%,
|
||||||
background: rgb(12 13 18 / 0.74);
|
transparent 100%
|
||||||
backdrop-filter: blur(24px) saturate(170%);
|
);
|
||||||
mask-image: linear-gradient(
|
mask-image: linear-gradient(
|
||||||
to bottom,
|
to bottom,
|
||||||
#000 calc(100% - 14px),
|
#000 calc(100% - 14px),
|
||||||
@@ -58,21 +57,14 @@ html:not(.has-app-titlebar) {
|
|||||||
#000 calc(100% - 14px),
|
#000 calc(100% - 14px),
|
||||||
transparent 100%
|
transparent 100%
|
||||||
);
|
);
|
||||||
opacity: 1;
|
opacity: 0;
|
||||||
transition: opacity 360ms cubic-bezier(0.33, 1, 0.68, 1);
|
transition: opacity 360ms cubic-bezier(0.33, 1, 0.68, 1);
|
||||||
will-change: opacity;
|
will-change: opacity;
|
||||||
}
|
}
|
||||||
|
|
||||||
&::after {
|
&--overlay::after,
|
||||||
background: linear-gradient(
|
&--scrolled::after {
|
||||||
180deg,
|
opacity: 1;
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
html.is-macos & {
|
html.is-macos & {
|
||||||
@@ -81,10 +73,6 @@ html:not(.has-app-titlebar) {
|
|||||||
|
|
||||||
/* Home: transparent over the hero until the page starts scrolling. */
|
/* Home: transparent over the hero until the page starts scrolling. */
|
||||||
&--overlay {
|
&--overlay {
|
||||||
&::before {
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ export const AppTitlebar = () => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<header
|
<header
|
||||||
className={`app-titlebar${overlay ? " app-titlebar--overlay" : ""}`}
|
className={`app-titlebar${overlay ? " app-titlebar--overlay" : ""}${scrolled ? " app-titlebar--scrolled" : ""}`}
|
||||||
data-tauri-drag-region
|
data-tauri-drag-region
|
||||||
>
|
>
|
||||||
<div className="app-titlebar-top">
|
<div className="app-titlebar-top">
|
||||||
|
|||||||
Reference in new issue
Block a user