- macOS: titleBarStyle Overlay + hiddenTitle, traffic lights aligned with the header - header itself is the titlebar: draggable regions, no native glass strip - solid (not blurred) header surfaces once content scrolls - keep traffic lights clear of controls on library/login/settings pages
45 lines
1.2 KiB
SCSS
45 lines
1.2 KiB
SCSS
.library-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
inset: 1em 2em auto 2em !important;
|
|
border-radius: 9999px;
|
|
margin: 0 auto;
|
|
width: fit-content;
|
|
position: sticky;
|
|
width: calc(100vw - 4em) !important;
|
|
z-index: 10;
|
|
padding: 0.25em !important;
|
|
transition: all 0.2s ease-in-out;
|
|
|
|
html.is-macos & {
|
|
// The window has an overlay titlebar: keep controls clear of the traffic lights
|
|
// without pushing the right-hand actions out of the viewport.
|
|
padding-left: 72px !important;
|
|
width: calc(100vw - 4em - 72px) !important;
|
|
left: calc(2em + 72px) !important;
|
|
right: 2em !important;
|
|
}
|
|
|
|
&::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: -0.35em;
|
|
pointer-events: none;
|
|
border-radius: inherit;
|
|
// Solid titlebar surface: no glass/blur.
|
|
background-color: $clr-background-default;
|
|
border: 1px solid rgb(255 255 255 / 0.08);
|
|
box-shadow: 0 4px 20px rgb(0 0 0 / 0.4);
|
|
opacity: 0;
|
|
z-index: -1;
|
|
transition: opacity 150ms;
|
|
}
|
|
&.scrolling {
|
|
&::after {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
|