Feat v0.6.10 viewport foundation (#45)
All checks were successful
All checks were successful
Co-authored-by: Jeffrey Smith <jasafpro@gmail.com> Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
This commit was merged in pull request #45.
This commit is contained in:
@@ -3,26 +3,23 @@
|
||||
fixed banners, announcement, surface, and footer.
|
||||
──────────────────────────────────────────── */
|
||||
|
||||
/* v0.6.10: .sw-shell is no longer a viewport-level container.
|
||||
The single layout root is <body> in base.html.
|
||||
.sw-shell fills its parent if any surface uses it. */
|
||||
.sw-shell {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100vh;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
background: var(--bg);
|
||||
/* Safe-area insets for notched devices */
|
||||
padding-top: env(safe-area-inset-top, 0);
|
||||
padding-bottom: env(safe-area-inset-bottom, 0);
|
||||
padding-left: env(safe-area-inset-left, 0);
|
||||
padding-right: env(safe-area-inset-right, 0);
|
||||
}
|
||||
|
||||
/* ── Banner (fixed top / bottom — identical component) ── */
|
||||
|
||||
/* v0.6.10: banners are in-flow (template renders them), not fixed. */
|
||||
.sw-shell__banner {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
position: static;
|
||||
z-index: 900;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -60,13 +57,12 @@
|
||||
|
||||
/* ── Shell body — insets for fixed banners ─── */
|
||||
|
||||
/* v0.6.10: template banners are in-flow — no padding offset needed. */
|
||||
.sw-shell__body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
padding-top: var(--banner-top-height, 0px);
|
||||
padding-bottom: var(--banner-bottom-height, 0px);
|
||||
}
|
||||
|
||||
/* ── Announcement bar ─────────────────────── */
|
||||
|
||||
Reference in New Issue
Block a user