Fix stack: 100vh slots, single sticky per layer, tabs not separate.

Removes dual-sticky tabs and tiny scroll ticks that broke folder overlap.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
ilia 2026-05-20 23:01:00 -04:00
parent 07dffaa323
commit acfc6ddd86
11 changed files with 105 additions and 116 deletions

16
shared/stack-layout.css Normal file
View File

@ -0,0 +1,16 @@
/* Sticky stack slots — import after stack-vars.css */
.scroll-section {
height: var(--stack-slot);
position: relative;
}
.scroll-section--final {
height: var(--stack-slot-last);
min-height: 280px;
}
.stack-stop,
.stop {
height: 2rem;
margin-bottom: 3rem;
}

View File

@ -32,9 +32,8 @@ export function initStackScroll(options = {}) {
const layer = tab.dataset.goto; const layer = tab.dataset.goto;
const target = document.querySelector(`${sectionSelector}[data-layer="${layer}"]`); const target = document.querySelector(`${sectionSelector}[data-layer="${layer}"]`);
if (!target) return; if (!target) return;
const navH = 56; const y = target.offsetTop - 48;
const y = target.getBoundingClientRect().top + window.scrollY - navH; window.scrollTo({ top: Math.max(0, y), behavior: 'smooth' });
window.scrollTo({ top: y, behavior: 'smooth' });
}); });
}); });

View File

@ -1,8 +1,8 @@
/* Import in each stack variant: @import '../shared/stack-vars.css'; */ /* Shared stack scroll — one viewport per layer */
:root { :root {
--stack-nav: 2.5rem; --stack-nav: 2.5rem;
--stack-stick: 0.5rem; --stack-stick: 3rem;
--stack-step: 1.75rem; --stack-step: 2.75rem;
--stack-tick: 13vh; --stack-slot: 100vh;
--stack-overlap: 11.5vh; --stack-slot-last: 55vh;
} }

View File

@ -1,7 +1,8 @@
@import '../shared/stack-vars.css'; @import '../shared/stack-vars.css';
@import '../shared/stack-layout.css';
:root { :root {
--tab-offset: 2.4rem; --tab-offset: 2.35rem;
--mono: 'IBM Plex Mono', monospace; --mono: 'IBM Plex Mono', monospace;
--sans: 'Instrument Sans', system-ui, sans-serif; --sans: 'Instrument Sans', system-ui, sans-serif;
} }
@ -21,17 +22,16 @@ body { font-family: var(--sans); background: #2a2824; color: #1a1814; }
.nav a:hover { color: #d4a574; } .nav a:hover { color: #d4a574; }
.depth { margin-left: auto; color: #d4a574; font-weight: 600; } .depth { margin-left: auto; color: #d4a574; font-weight: 600; }
/* Quick-jump rail */
.tab-rail { .tab-rail {
position: fixed; position: fixed;
top: 2.5rem; top: 2.75rem;
right: max(0.5rem, calc(50% - 360px)); right: max(0.5rem, calc(50% - 340px));
z-index: 350; z-index: 500;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 0.2rem; gap: 0.2rem;
padding: 0.35rem; padding: 0.35rem;
background: rgba(42,40,36,0.9); background: rgba(42,40,36,0.92);
border: 1px solid #4a4844; border: 1px solid #4a4844;
border-radius: 6px; border-radius: 6px;
} }
@ -57,30 +57,21 @@ body { font-family: var(--sans); background: #2a2824; color: #1a1814; }
.mount { .mount {
width: min(640px, 100%); width: min(640px, 100%);
margin: 0 auto; margin: 0 auto;
padding: calc(var(--stack-nav) + 0.25rem) 1rem 0; padding: var(--stack-nav) 1rem 0;
} }
.scroll-section { /* One sticky unit: tab + body move together */
height: var(--stack-tick);
position: relative;
}
.scroll-section--final {
height: 12vh;
min-height: 220px;
}
.stack-stop { height: 1px; margin-bottom: 4rem; }
.folder { .folder {
position: sticky; position: sticky;
width: 100%; width: 100%;
margin-bottom: calc(-1 * var(--stack-overlap)); margin: 0;
padding: 0;
background: transparent;
} }
/* Tab: sticky with layer, offset left so all labels readable when stacked */ /* Tab on top — NOT sticky alone; offset per layer */
.tab { .tab {
position: sticky; position: relative;
display: block; display: block;
width: fit-content; width: fit-content;
max-width: calc(100% - 1rem); max-width: calc(100% - 1rem);
@ -89,53 +80,48 @@ body { font-family: var(--sans); background: #2a2824; color: #1a1814; }
font-weight: 600; font-weight: 600;
letter-spacing: 0.04em; letter-spacing: 0.04em;
padding: 0.4rem 1rem 0.35rem; padding: 0.4rem 1rem 0.35rem;
border: 1px solid rgba(0,0,0,0.15); border: 1px solid rgba(0,0,0,0.12);
border-bottom: none; border-bottom: none;
border-radius: 8px 8px 0 0; border-radius: 8px 8px 0 0;
cursor: pointer; cursor: pointer;
text-align: left; text-align: left;
z-index: 50; box-shadow: 0 -2px 8px rgba(0,0,0,0.12);
box-shadow: 0 -3px 10px rgba(0,0,0,0.15); transition: filter 0.15s;
transition: filter 0.15s, transform 0.15s;
} }
.tab:hover { filter: brightness(1.08); transform: translateY(-1px); } .tab:hover { filter: brightness(1.06); }
.body { .body {
background: #e8e2d4; background: #e8e2d4;
border: 1px solid #c4b8a8; border: 1px solid #c4b8a8;
border-top: none;
border-radius: 0 10px 10px 10px; border-radius: 0 10px 10px 10px;
padding: 1.25rem 1.4rem 1.35rem; padding: 1.25rem 1.4rem 2rem;
min-height: 200px; min-height: calc(100vh - var(--stack-nav) - 5rem);
box-shadow: 0 8px 28px rgba(0,0,0,0.22); box-shadow: 0 10px 32px rgba(0,0,0,0.2);
position: relative;
z-index: 1;
} }
.f0 { top: calc(var(--stack-nav) + var(--stack-stick)); z-index: 1; } /* Sticky top steps — tabs stay visible above lower folders */
.f0 .tab { top: calc(var(--stack-nav) + var(--stack-stick)); margin-left: calc(var(--tab-offset) * 0); z-index: 170; background: #c9a86c; color: #2a2824; } .f0 { top: calc(var(--stack-stick) + var(--stack-step) * 0); z-index: 10; }
.f0 .tab { margin-left: calc(var(--tab-offset) * 0); background: #c9a86c; color: #2a2824; }
.f1 { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step)); z-index: 2; } .f1 { top: calc(var(--stack-stick) + var(--stack-step) * 1); z-index: 11; }
.f1 .tab { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step)); margin-left: calc(var(--tab-offset) * 1); z-index: 171; background: #a8c4d4; color: #1a2830; } .f1 .tab { margin-left: calc(var(--tab-offset) * 1); background: #a8c4d4; color: #1a2830; }
.f2 { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 2); z-index: 3; } .f2 { top: calc(var(--stack-stick) + var(--stack-step) * 2); z-index: 12; }
.f2 .tab { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 2); margin-left: calc(var(--tab-offset) * 2); z-index: 172; background: #b8d4a8; color: #1a2818; } .f2 .tab { margin-left: calc(var(--tab-offset) * 2); background: #b8d4a8; color: #1a2818; }
.f3 { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 3); z-index: 4; } .f3 { top: calc(var(--stack-stick) + var(--stack-step) * 3); z-index: 13; }
.f3 .tab { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 3); margin-left: calc(var(--tab-offset) * 3); z-index: 173; background: #d4b8c4; color: #2a1820; } .f3 .tab { margin-left: calc(var(--tab-offset) * 3); background: #d4b8c4; color: #2a1820; }
.f4 { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 4); z-index: 5; } .f4 { top: calc(var(--stack-stick) + var(--stack-step) * 4); z-index: 14; }
.f4 .tab { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 4); margin-left: calc(var(--tab-offset) * 4); z-index: 174; background: #d4c8a8; color: #2a2418; } .f4 .tab { margin-left: calc(var(--tab-offset) * 4); background: #d4c8a8; color: #2a2418; }
.f5 { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 5); z-index: 6; } .f5 { top: calc(var(--stack-stick) + var(--stack-step) * 5); z-index: 15; }
.f5 .tab { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 5); margin-left: calc(var(--tab-offset) * 5); z-index: 175; background: #c4c4c4; color: #2a2a2a; } .f5 .tab { margin-left: calc(var(--tab-offset) * 5); background: #c4c4c4; color: #2a2a2a; }
.f6 { .f6 { top: calc(var(--stack-stick) + var(--stack-step) * 6); z-index: 16; }
top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 6); .f6 .tab { margin-left: calc(var(--tab-offset) * 6); background: #2a4a6b; color: #e8e2d4; }
z-index: 7;
margin-bottom: 0;
}
.f6 .tab { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 6); margin-left: calc(var(--tab-offset) * 6); z-index: 176; background: #2a4a6b; color: #e8e2d4; }
.body h1 { font-size: 1.65rem; margin-bottom: 0.35rem; } .body h1 { font-size: 1.65rem; margin-bottom: 0.35rem; }
.body h2 { font-size: 1.25rem; margin-bottom: 0.4rem; } .body h2 { font-size: 1.25rem; margin-bottom: 0.4rem; }
@ -144,7 +130,8 @@ body { font-family: var(--sans); background: #2a2824; color: #1a1814; }
.avail { font-family: var(--mono); font-size: 0.68rem; color: #3d6b3d; margin-top: 0.5rem; } .avail { font-family: var(--mono); font-size: 0.68rem; color: #3d6b3d; margin-top: 0.5rem; }
.btn { .btn {
font-family: var(--mono); font-size: 0.7rem; padding: 0.45rem 0.75rem; font-family: var(--mono); font-size: 0.7rem; padding: 0.45rem 0.75rem;
background: #2a4a6b; color: #fff; text-decoration: none; border-radius: 4px; margin-right: 0.4rem; display: inline-block; margin-top: 0.35rem; background: #2a4a6b; color: #fff; text-decoration: none; border-radius: 4px;
margin-right: 0.4rem; display: inline-block; margin-top: 0.35rem;
} }
.btn.ghost { background: transparent; color: #2a4a6b; border: 1px solid #2a4a6b; } .btn.ghost { background: transparent; color: #2a4a6b; border: 1px solid #2a4a6b; }
@ -157,6 +144,7 @@ body { font-family: var(--sans); background: #2a2824; color: #1a1814; }
@media (max-width: 720px) { @media (max-width: 720px) {
.tab-rail { display: none; } .tab-rail { display: none; }
:root { --tab-offset: 1.5rem; --stack-tick: 12vh; --stack-overlap: 10.5vh; } :root { --tab-offset: 1.4rem; --stack-step: 2.25rem; }
.f5 .tab { margin-left: calc(var(--tab-offset) * 4); }
.f6 .tab { margin-left: calc(var(--tab-offset) * 3); } .f6 .tab { margin-left: calc(var(--tab-offset) * 3); }
} }

View File

@ -6,7 +6,6 @@
<title>Levkin — Stack Folder</title> <title>Levkin — Stack Folder</title>
<link rel="icon" href="/favicon.svg" type="image/svg+xml" /> <link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Instrument+Sans:wght@400;500;600&display=swap" rel="stylesheet" /> <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Instrument+Sans:wght@400;500;600&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="../shared/stack-vars.css" />
<link rel="stylesheet" href="./folder.css" /> <link rel="stylesheet" href="./folder.css" />
</head> </head>
<body> <body>

View File

@ -6,7 +6,6 @@
<title>Levkin — Stack Rack</title> <title>Levkin — Stack Rack</title>
<link rel="icon" href="/favicon.svg" type="image/svg+xml" /> <link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap" rel="stylesheet" /> <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="../shared/stack-vars.css" />
<link rel="stylesheet" href="./rack.css" /> <link rel="stylesheet" href="./rack.css" />
</head> </head>
<body> <body>

View File

@ -1,4 +1,5 @@
@import '../shared/stack-vars.css'; @import '../shared/stack-vars.css';
@import '../shared/stack-layout.css';
* { box-sizing: border-box; margin: 0; padding: 0; } * { box-sizing: border-box; margin: 0; padding: 0; }
@ -22,11 +23,10 @@ body {
.rack-frame { .rack-frame {
width: min(600px, 100%); width: min(600px, 100%);
margin: 0 auto; margin: 0 auto;
padding: calc(var(--stack-nav) + 0.5rem) 0.5rem 0; padding: var(--stack-nav) 0.5rem 0;
border-left: 4px solid #2a3040; border-left: 4px solid #2a3040;
border-right: 4px solid #2a3040; border-right: 4px solid #2a3040;
background: linear-gradient(90deg, #0c0e14 0%, #12141a 8%, #12141a 92%, #0c0e14 100%); background: linear-gradient(90deg, #0c0e14 0%, #12141a 8%, #12141a 92%, #0c0e14 100%);
min-height: 100vh;
} }
.rack-label { .rack-label {
@ -36,19 +36,14 @@ body {
.mount { padding: 0 0.25rem; } .mount { padding: 0 0.25rem; }
.scroll-section { height: var(--stack-tick); position: relative; }
.scroll-section--final { height: 12vh; min-height: 200px; }
.stop { height: 1px; margin-bottom: 4rem; }
.unit { .unit {
position: sticky; position: sticky;
margin-bottom: calc(-1 * var(--stack-overlap)); margin: 0;
border: 1px solid #2a3448; border: 1px solid #2a3448;
background: #161a22; background: #161a22;
border-radius: 2px; border-radius: 2px;
overflow: hidden; overflow: hidden;
box-shadow: 0 6px 0 #0a0c10, 0 12px 24px rgba(0,0,0,0.4); box-shadow: 0 6px 0 #0a0c10, 0 12px 24px rgba(0,0,0,0.4);
min-height: 160px;
} }
.unit-head { .unit-head {
@ -56,8 +51,6 @@ body {
padding: 0.4rem 0.65rem; padding: 0.4rem 0.65rem;
background: #1a2030; background: #1a2030;
border-bottom: 1px solid #2a3448; border-bottom: 1px solid #2a3448;
position: sticky;
z-index: 30;
} }
.unit-head button.jump { .unit-head button.jump {
@ -77,18 +70,22 @@ body {
.svc { color: #9ca3af; text-transform: uppercase; letter-spacing: 0.08em; flex: 1; } .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-head a.ext { color: #60a5fa; text-decoration: none; font-size: 0.58rem; }
.unit-body { padding: 0.6rem 0.7rem 0.75rem; min-height: 120px; } .unit-body {
padding: 0.6rem 0.7rem 2rem;
min-height: calc(100vh - var(--stack-nav) - 5rem);
}
.unit-body strong { color: #e5e7eb; display: block; margin-bottom: 0.2rem; } .unit-body strong { color: #e5e7eb; display: block; margin-bottom: 0.2rem; }
.unit-body p { color: #6b7280; font-size: 0.7rem; } .unit-body p { color: #6b7280; font-size: 0.7rem; }
.unit-body a { color: #60a5fa; text-decoration: none; } .unit-body a { color: #60a5fa; text-decoration: none; }
.u0 { top: calc(var(--stack-nav) + var(--stack-stick)); z-index: 1; } .u0 { top: calc(var(--stack-stick) + var(--stack-step) * 0); z-index: 10; }
.u1 { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step)); z-index: 2; } .u1 { top: calc(var(--stack-stick) + var(--stack-step) * 1); z-index: 11; }
.u2 { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 2); z-index: 3; } .u2 { top: calc(var(--stack-stick) + var(--stack-step) * 2); z-index: 12; }
.u3 { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 3); z-index: 4; } .u3 { top: calc(var(--stack-stick) + var(--stack-step) * 3); z-index: 13; }
.u4 { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 4); z-index: 5; } .u4 { top: calc(var(--stack-stick) + var(--stack-step) * 4); z-index: 14; }
.u5 { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 5); z-index: 6; } .u5 { top: calc(var(--stack-stick) + var(--stack-step) * 5); z-index: 15; }
.u6 { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 6); z-index: 7; margin-bottom: 0; } .u6 { top: calc(var(--stack-stick) + var(--stack-step) * 6); z-index: 16; }
.foot { .foot {
display: flex; justify-content: space-between; display: flex; justify-content: space-between;

View File

@ -6,7 +6,6 @@
<title>Levkin — Stack Trace</title> <title>Levkin — Stack Trace</title>
<link rel="icon" href="/favicon.svg" type="image/svg+xml" /> <link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap" rel="stylesheet" /> <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="../shared/stack-vars.css" />
<link rel="stylesheet" href="./trace.css" /> <link rel="stylesheet" href="./trace.css" />
</head> </head>
<body> <body>

View File

@ -1,4 +1,5 @@
@import '../shared/stack-vars.css'; @import '../shared/stack-vars.css';
@import '../shared/stack-layout.css';
* { box-sizing: border-box; margin: 0; padding: 0; } * { box-sizing: border-box; margin: 0; padding: 0; }
@ -25,17 +26,13 @@ body {
padding-top: var(--stack-nav); padding-top: var(--stack-nav);
} }
.scroll-section { height: var(--stack-tick); position: relative; }
.scroll-section--final { height: 12vh; min-height: 200px; }
.stop { height: 1px; margin-bottom: 4rem; }
.frame { .frame {
position: sticky; position: sticky;
margin: 0 0.5rem calc(-1 * var(--stack-overlap)) 0.5rem; margin: 0 0.5rem;
border-left: 3px solid #3a3a44; border-left: 3px solid #3a3a44;
background: #141418; background: #141418;
padding: 0.65rem 0 0.65rem 1rem; padding: 0.65rem 0 0.65rem 1rem;
min-height: 180px; min-height: calc(100vh - var(--stack-nav) - 5rem);
box-shadow: 0 8px 0 #0a0a0c, 0 14px 28px rgba(0,0,0,0.45); box-shadow: 0 8px 0 #0a0a0c, 0 14px 28px rgba(0,0,0,0.45);
} }
@ -59,13 +56,13 @@ body {
.frame-body p { color: #6b6966; font-size: 0.74rem; } .frame-body p { color: #6b6966; font-size: 0.74rem; }
.frame-body a { color: #8b9cb3; text-decoration: none; } .frame-body a { color: #8b9cb3; text-decoration: none; }
.f0 { top: calc(var(--stack-nav) + var(--stack-stick)); z-index: 1; border-color: #c4a574; } .f0 { top: calc(var(--stack-stick) + var(--stack-step) * 0); z-index: 10; border-color: #c4a574; }
.f1 { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step)); z-index: 2; } .f1 { top: calc(var(--stack-stick) + var(--stack-step) * 1); z-index: 11; }
.f2 { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 2); z-index: 3; } .f2 { top: calc(var(--stack-stick) + var(--stack-step) * 2); z-index: 12; }
.f3 { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 3); z-index: 4; } .f3 { top: calc(var(--stack-stick) + var(--stack-step) * 3); z-index: 13; }
.f4 { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 4); z-index: 5; border-color: #6b8b9b; } .f4 { top: calc(var(--stack-stick) + var(--stack-step) * 4); z-index: 14; border-color: #6b8b9b; }
.f5 { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 5); z-index: 6; } .f5 { top: calc(var(--stack-stick) + var(--stack-step) * 5); z-index: 15; }
.f6 { top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 6); z-index: 7; border-color: #7eb87a; margin-bottom: 0; } .f6 { top: calc(var(--stack-stick) + var(--stack-step) * 6); z-index: 16; border-color: #7eb87a; }
.foot { .foot {
display: flex; justify-content: space-between; display: flex; justify-content: space-between;

View File

@ -9,7 +9,6 @@
<link rel="preconnect" href="https://fonts.googleapis.com" /> <link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Instrument+Sans:wght@400;500;600&display=swap" rel="stylesheet" /> <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Instrument+Sans:wght@400;500;600&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="../shared/stack-vars.css" />
<link rel="stylesheet" href="./stack.css" /> <link rel="stylesheet" href="./stack.css" />
</head> </head>
<body> <body>

View File

@ -1,4 +1,5 @@
@import '../shared/stack-vars.css'; @import '../shared/stack-vars.css';
@import '../shared/stack-layout.css';
:root { :root {
--mono: 'IBM Plex Mono', ui-monospace, monospace; --mono: 'IBM Plex Mono', ui-monospace, monospace;
@ -33,13 +34,9 @@ body {
padding: var(--stack-nav) 1rem 0; padding: var(--stack-nav) 1rem 0;
} }
.scroll-section { height: var(--stack-tick); position: relative; }
.scroll-section--final { height: 12vh; min-height: 220px; }
.stack-stop { height: 1px; margin-bottom: 4rem; }
.layer { .layer {
position: sticky; position: sticky;
margin: 0 0 calc(-1 * var(--stack-overlap)) 0; margin: 0;
border-radius: 8px 8px 6px 6px; border-radius: 8px 8px 6px 6px;
border: 1px solid rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.08);
box-shadow: 0 12px 36px rgba(0,0,0,0.5); box-shadow: 0 12px 36px rgba(0,0,0,0.5);
@ -47,24 +44,27 @@ body {
.layer-tab { .layer-tab {
position: absolute; position: absolute;
top: -7px; left: 8px; right: 8px; height: 7px; top: -6px; left: 10px; right: 10px; height: 6px;
border-radius: 5px 5px 0 0; border-radius: 5px 5px 0 0;
background: inherit; background: inherit;
filter: brightness(1.15); filter: brightness(1.12);
border: 1px solid rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.07);
border-bottom: none; border-bottom: none;
pointer-events: none; pointer-events: none;
} }
.layer-0 { z-index: 1; background: #1c1c20; top: calc(var(--stack-nav) + var(--stack-stick)); } .layer-0 { z-index: 10; background: #1c1c20; top: calc(var(--stack-stick) + var(--stack-step) * 0); }
.layer-1 { z-index: 2; background: #24242c; top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step)); } .layer-1 { z-index: 11; background: #24242c; top: calc(var(--stack-stick) + var(--stack-step) * 1); }
.layer-2 { z-index: 3; background: #2c2c36; top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 2); } .layer-2 { z-index: 12; background: #2c2c36; top: calc(var(--stack-stick) + var(--stack-step) * 2); }
.layer-3 { z-index: 4; background: #343440; top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 3); } .layer-3 { z-index: 13; background: #343440; top: calc(var(--stack-stick) + var(--stack-step) * 3); }
.layer-4 { z-index: 5; background: #3c3c4a; top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 4); } .layer-4 { z-index: 14; background: #3c3c4a; top: calc(var(--stack-stick) + var(--stack-step) * 4); }
.layer-5 { z-index: 6; background: #444454; top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 5); } .layer-5 { z-index: 15; background: #444454; top: calc(var(--stack-stick) + var(--stack-step) * 5); }
.layer-6 { z-index: 7; background: #4c4c5e; top: calc(var(--stack-nav) + var(--stack-stick) + var(--stack-step) * 6); margin-bottom: 0; } .layer-6 { z-index: 16; background: #4c4c5e; top: calc(var(--stack-stick) + var(--stack-step) * 6); }
.layer-inner { padding: 1.2rem 1.35rem 1.3rem; min-height: 200px; } .layer-inner {
padding: 1.2rem 1.35rem 2rem;
min-height: calc(100vh - var(--stack-nav) - 5rem);
}
.layer-head { .layer-head {
display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.65rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.65rem;
@ -78,7 +78,6 @@ body {
font-family: var(--mono); font-size: 0.6rem; cursor: pointer; padding: 0; font-family: var(--mono); font-size: 0.6rem; cursor: pointer; padding: 0;
} }
.layer-id:hover { text-decoration: underline; } .layer-id:hover { text-decoration: underline; }
.layer-name { color: #6b6966; text-transform: uppercase; letter-spacing: 0.1em; } .layer-name { color: #6b6966; text-transform: uppercase; letter-spacing: 0.1em; }
.layer-link { margin-left: auto; color: #8b9cb3; text-decoration: none; font-size: 0.58rem; } .layer-link { margin-left: auto; color: #8b9cb3; text-decoration: none; font-size: 0.58rem; }
.layer h1 { font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; } .layer h1 { font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; }
@ -110,12 +109,9 @@ body {
font-family: var(--mono); font-size: 0.48rem; color: #2a2a30; font-family: var(--mono); font-size: 0.48rem; color: #2a2a30;
} }
.stack-ruler button { .stack-ruler button {
background: none; border: none; color: inherit; font: inherit; cursor: pointer; padding: 0.1rem 0; background: none; border: none; color: inherit; font: inherit; cursor: pointer; padding: 0.1rem 0; text-align: right;
text-align: right;
} }
.stack-ruler button:hover, .stack-ruler button:hover,
.stack-ruler button.active { color: #c4a574; } .stack-ruler button.active { color: #c4a574; }
@media (max-width: 700px) { @media (max-width: 700px) { .variants { display: none; } }
.variants { display: none; }
}