Fix folder stack overlap: pull slots, split tab/body sticky.
Sections overlap via negative margin; tabs stay in staggered rail; active body z-index covers layers below as you scroll. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+15
-10
@@ -37,16 +37,17 @@ body {
|
||||
.mount { padding: 0 0.25rem; }
|
||||
|
||||
.unit {
|
||||
position: sticky;
|
||||
position: relative;
|
||||
margin: 0;
|
||||
border: 1px solid #2a3448;
|
||||
background: #161a22;
|
||||
border-radius: 2px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 6px 0 #0a0c10, 0 12px 24px rgba(0,0,0,0.4);
|
||||
}
|
||||
|
||||
.unit-head {
|
||||
position: sticky;
|
||||
z-index: 60;
|
||||
display: flex; align-items: center; gap: 0.5rem;
|
||||
padding: 0.4rem 0.65rem;
|
||||
background: #1a2030;
|
||||
@@ -71,21 +72,25 @@ body {
|
||||
.unit-head a.ext { color: #60a5fa; text-decoration: none; font-size: 0.58rem; }
|
||||
|
||||
.unit-body {
|
||||
position: sticky;
|
||||
top: var(--stack-reveal);
|
||||
padding: 0.6rem 0.7rem 2rem;
|
||||
min-height: calc(100vh - var(--stack-nav) - 5rem);
|
||||
min-height: var(--stack-body-h);
|
||||
z-index: 10;
|
||||
background: #161a22;
|
||||
}
|
||||
|
||||
.unit-body strong { color: #e5e7eb; display: block; margin-bottom: 0.2rem; }
|
||||
.unit-body p { color: #6b7280; font-size: 0.7rem; }
|
||||
.unit-body a { color: #60a5fa; text-decoration: none; }
|
||||
|
||||
.u0 { top: calc(var(--stack-stick) + var(--stack-step) * 0); z-index: 10; }
|
||||
.u1 { top: calc(var(--stack-stick) + var(--stack-step) * 1); z-index: 11; }
|
||||
.u2 { top: calc(var(--stack-stick) + var(--stack-step) * 2); z-index: 12; }
|
||||
.u3 { top: calc(var(--stack-stick) + var(--stack-step) * 3); z-index: 13; }
|
||||
.u4 { top: calc(var(--stack-stick) + var(--stack-step) * 4); z-index: 14; }
|
||||
.u5 { top: calc(var(--stack-stick) + var(--stack-step) * 5); z-index: 15; }
|
||||
.u6 { top: calc(var(--stack-stick) + var(--stack-step) * 6); z-index: 16; }
|
||||
.u0 .unit-head { top: calc(var(--stack-stick) + var(--stack-step) * 0); }
|
||||
.u1 .unit-head { top: calc(var(--stack-stick) + var(--stack-step) * 1); }
|
||||
.u2 .unit-head { top: calc(var(--stack-stick) + var(--stack-step) * 2); }
|
||||
.u3 .unit-head { top: calc(var(--stack-stick) + var(--stack-step) * 3); }
|
||||
.u4 .unit-head { top: calc(var(--stack-stick) + var(--stack-step) * 4); }
|
||||
.u5 .unit-head { top: calc(var(--stack-stick) + var(--stack-step) * 5); }
|
||||
.u6 .unit-head { top: calc(var(--stack-stick) + var(--stack-step) * 6); }
|
||||
|
||||
.foot {
|
||||
display: flex; justify-content: space-between;
|
||||
|
||||
Reference in New Issue
Block a user