Tested all four variants in browser — only active layer body visible while tabs stay staggered; scroll covers previous layers correctly. Co-authored-by: Cursor <cursoragent@cursor.com>
110 lines
3.9 KiB
CSS
110 lines
3.9 KiB
CSS
@import '../shared/stack-vars.css';
|
|
@import '../shared/stack-layout.css';
|
|
|
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
body {
|
|
font-family: 'IBM Plex Mono', ui-monospace, monospace;
|
|
background: #08090c;
|
|
color: #9ca3af;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.nav {
|
|
position: fixed; top: 0; left: 0; right: 0; z-index: 200;
|
|
display: flex; gap: 1rem; padding: 0.5rem 1rem; font-size: 0.62rem;
|
|
background: rgba(8,9,12,0.95); border-bottom: 1px solid #1e2430;
|
|
}
|
|
|
|
.nav a { color: #5a6478; text-decoration: none; }
|
|
.nav a:hover { color: #4ade80; }
|
|
#depth { margin-left: auto; color: #4ade80; font-weight: 600; }
|
|
|
|
.rack-frame {
|
|
width: min(600px, 100%);
|
|
margin: 0 auto;
|
|
padding: var(--stack-nav) 0.5rem 0;
|
|
border-left: 4px solid #2a3040;
|
|
border-right: 4px solid #2a3040;
|
|
background: linear-gradient(90deg, #0c0e14 0%, #12141a 8%, #12141a 92%, #0c0e14 100%);
|
|
}
|
|
|
|
.rack-label {
|
|
font-size: 0.55rem; letter-spacing: 0.2em; color: #3a4458;
|
|
padding: 0 0.5rem 0.65rem; border-bottom: 1px dashed #2a3040;
|
|
}
|
|
|
|
.mount { padding: 0 0.25rem; }
|
|
|
|
.unit {
|
|
position: sticky;
|
|
margin: 0;
|
|
border: 1px solid #2a3448;
|
|
background: #161a22;
|
|
border-radius: 2px;
|
|
box-shadow: 0 6px 0 #0a0c10, 0 12px 24px rgba(0,0,0,0.4);
|
|
z-index: 10;
|
|
}
|
|
|
|
.unit-head {
|
|
display: flex; align-items: center; gap: 0.5rem;
|
|
padding: 0.4rem 0.65rem;
|
|
background: #1a2030;
|
|
border-bottom: 1px solid #2a3448;
|
|
}
|
|
|
|
.unit-head button.jump {
|
|
background: none; border: none; font: inherit; color: inherit;
|
|
cursor: pointer; display: flex; align-items: center; gap: 0.5rem; flex: 1;
|
|
text-align: left; padding: 0;
|
|
}
|
|
|
|
.unit-head button.jump:hover .uid { color: #4ade80; }
|
|
|
|
.led { width: 6px; height: 6px; border-radius: 50%; background: #3a4458; flex-shrink: 0; }
|
|
.led.on { background: #4ade80; box-shadow: 0 0 6px #4ade80; }
|
|
.led.blink { background: #fbbf24; animation: blink 1.2s ease infinite; }
|
|
@keyframes blink { 50% { opacity: 0.35; } }
|
|
|
|
.uid { color: #6b7280; font-weight: 600; min-width: 1.4rem; }
|
|
.svc { color: #9ca3af; text-transform: uppercase; letter-spacing: 0.08em; flex: 1; }
|
|
.unit-head a.ext { color: #60a5fa; text-decoration: none; font-size: 0.58rem; }
|
|
|
|
.unit-body {
|
|
padding: 0.6rem 0.7rem 2rem;
|
|
min-height: var(--stack-body-h);
|
|
background: #161a22;
|
|
}
|
|
|
|
.u0 { top: calc(var(--stack-stick) + var(--stack-step) * 0); }
|
|
.u0 .unit-body { margin-top: calc(var(--stack-reveal) - var(--stack-stick) - var(--stack-tab-h)); }
|
|
|
|
.u1 { top: calc(var(--stack-stick) + var(--stack-step) * 1); }
|
|
.u1 .unit-body { margin-top: calc(var(--stack-reveal) - var(--stack-stick) - var(--stack-step) * 1 - var(--stack-tab-h)); }
|
|
|
|
.u2 { top: calc(var(--stack-stick) + var(--stack-step) * 2); }
|
|
.u2 .unit-body { margin-top: calc(var(--stack-reveal) - var(--stack-stick) - var(--stack-step) * 2 - var(--stack-tab-h)); }
|
|
|
|
.u3 { top: calc(var(--stack-stick) + var(--stack-step) * 3); }
|
|
.u3 .unit-body { margin-top: calc(var(--stack-reveal) - var(--stack-stick) - var(--stack-step) * 3 - var(--stack-tab-h)); }
|
|
|
|
.u4 { top: calc(var(--stack-stick) + var(--stack-step) * 4); }
|
|
.u4 .unit-body { margin-top: calc(var(--stack-reveal) - var(--stack-stick) - var(--stack-step) * 4 - var(--stack-tab-h)); }
|
|
|
|
.u5 { top: calc(var(--stack-stick) + var(--stack-step) * 5); }
|
|
.u5 .unit-body { margin-top: calc(var(--stack-reveal) - var(--stack-stick) - var(--stack-step) * 5 - var(--stack-tab-h)); }
|
|
|
|
.u6 { top: calc(var(--stack-stick) + var(--stack-step) * 6); }
|
|
.u6 .unit-body { margin-top: calc(var(--stack-reveal) - var(--stack-stick) - var(--stack-step) * 6 - var(--stack-tab-h)); }
|
|
|
|
.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; }
|
|
|
|
.foot {
|
|
display: flex; justify-content: space-between;
|
|
width: min(600px, 100%); margin: 0 auto;
|
|
padding: 1rem 1.25rem 2.5rem; font-size: 0.58rem; color: #3a4458;
|
|
}
|
|
.foot a { color: #3a4458; text-decoration: none; }
|