fix(navigation): align page headers with the home header level
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
Pins the library header to the top of the window instead of letting it float lower in the page, matches the home row's insets including the macOS traffic-light offset, keeps the scrolled pill surface above the grid, and gives the global app bar the same top padding for consistent header levels.
This commit is contained in:
1 parent
7c5fa8f869
commit
cb5ee9b672
2 files changed
+12
-8
No files matched your search
@@ -3,7 +3,9 @@
|
||||
// Custom titlebar: the app header itself sits at the very top of the window,
|
||||
// under the native overlay titlebar (no native glass strip, no blur panels).
|
||||
transition: background-color $transition-time-fast;
|
||||
padding: 0.8em ($page-margin - 1.7em);
|
||||
// Same vertical rhythm as the home page header so every page's controls
|
||||
// sit on one consistent level.
|
||||
padding: 1.3rem ($page-margin - 1.7em);
|
||||
z-index: 999 !important;
|
||||
top: 0 !important;
|
||||
|
||||
|
||||
@@ -9,22 +9,24 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
// Fixed at the very top so the row of controls sits on the same level as
|
||||
// the home page header instead of floating further down the page.
|
||||
inset: 1em 2em auto 2em !important;
|
||||
border-radius: 9999px;
|
||||
margin: 0 auto;
|
||||
width: fit-content;
|
||||
position: sticky;
|
||||
position: fixed;
|
||||
width: calc(100vw - 4em) !important;
|
||||
z-index: 10;
|
||||
// Keep the scrolled pill surface behind the controls but above the page.
|
||||
isolation: isolate;
|
||||
padding: 0.25em !important;
|
||||
transition: background-color 0.2s ease-in-out, opacity 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;
|
||||
// The window has an overlay titlebar: shift the whole pill clear of the
|
||||
// traffic lights, matching the home header's left edge for the controls.
|
||||
width: calc(100vw - 4em - 64px) !important;
|
||||
left: calc(2em + 64px) !important;
|
||||
right: 2em !important;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user