package file→ .shtukbase/packages/layout-studio/shell.css
shell.css
100 lines, 8.2 KB.
- /* layout-studio shell: kit variables only, no colour literals.
- Proportions: tab pills 28px with 1px dividers, right rail 320px (240..560) leaving at least 480px
- for the document, a resize edge that is a hair at rest and a 3px grip on hover.
- Laid out as the desktop app: the window ground (--bg2) carries the bar, the sidebar and the tab strips; the
- document and the panel are white sheets with a hairline edge and 10px corners. */
- :root { --st-side-w: 270px; --st-panel-w: 320px; --st-strip-h: 38px; }
- :root[data-side="narrow"] { --st-side-w: 200px; }
- :root[data-side="wide"] { --st-side-w: 300px; }
- html, body { height: 100%; margin: 0; overflow: hidden; background: var(--bg2); color: var(--ink); font-family: var(--font); }
- .st-app { height: 100%; }
- .st-top { gap: 4px; height: 44px; border-bottom: 0; padding: 0 8px 0 12px; background: var(--bg2); }
- .st-top .lx-btn.icon { width: 28px; height: 28px; border-radius: 6px; color: var(--lx-muted); }
- .st-top .lx-btn.icon:hover { background: var(--wash); color: var(--ink); }
- .st-top .lx-crumbs { flex: 1 1 auto; }
- .st-space { font-weight: 500; font-size: 14px; }
- .st-body { display: flex; min-height: 0; border-top: 0; background: var(--bg2); padding: 0 8px 8px 0; box-sizing: border-box; }
- /* Lens switch of the focused side */
- .st-lenses { display: flex; gap: 4px; flex: none; margin-right: 6px; }
- .st-ltab, .st-ptab { height: 28px; padding: 0 12px; border: 0; border-radius: 14px; background: none; font: inherit; font-size: 14px;
- color: var(--lx-muted); cursor: pointer; white-space: nowrap; }
- .st-ltab:hover, .st-ptab:hover { background: var(--wash); color: var(--ink); }
- .st-ltab.on, .st-ptab.on { background: var(--wash); color: var(--ink); font-weight: 500; }
- /* Settings popover */
- .st-settings-wrap { position: relative; }
- .st-pop { position: absolute; right: 0; top: 34px; z-index: 20; min-width: 240px; padding: 6px; box-sizing: border-box;
- background: var(--lx-card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); font-size: 13px; }
- .st-pop[hidden] { display: none; }
- .st-set { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 6px; cursor: pointer; }
- .st-set:hover { background: var(--wash); }
- .st-set.sel { justify-content: space-between; }
- .st-set input { margin: 0; accent-color: var(--lx-accent); }
- .st-set select { font: inherit; font-size: 13px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; height: 24px; }
- /* Sidebar on the window ground, as the desktop app: rows 30px, indent 24px a level, icon 18px, 14px text,
- a muted section caption; hover is a wash, the open page a stronger wash and 500 weight. No edge line. */
- .st-side { width: var(--st-side-w); flex: none; overflow-y: auto; overflow-x: hidden; padding: 4px 8px 16px; box-sizing: border-box;
- background: var(--bg2); font-size: 14px; }
- .st-sec { padding: 14px 8px 6px; font-size: 13px; color: var(--faint); font-weight: 500; }
- .st-row { display: flex; align-items: center; gap: 8px; height: 30px; padding-right: 8px; border-radius: 6px; cursor: pointer;
- color: var(--ink); text-decoration: none; user-select: none; white-space: nowrap; }
- .st-row:hover { background: var(--wash); }
- .st-row.on { background: var(--wash2); font-weight: 500; }
- .st-row .car { width: 14px; flex: none; display: inline-flex; justify-content: center; color: var(--faint); font-size: 8px; }
- .st-row .car.open { transform: rotate(90deg); }
- .st-row .ic { width: 20px; flex: none; text-align: center; font-size: 17px; line-height: 1; }
- .st-row .t { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
- /* Main: the tab strip over the stage. */
- .st-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg2); }
- .st-strip { display: flex; height: var(--st-strip-h); flex: none; background: var(--bg2); }
- .st-tabs { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 0; padding: 0 6px; overflow-x: auto; scrollbar-width: none; }
- .st-splithead { display: none; }
- .st-main.split .st-tabs { flex: 0 0 50%; box-sizing: border-box; }
- .st-main.split .st-splithead { display: flex; align-items: center; flex: 0 0 50%; box-sizing: border-box; padding: 0 6px; border-left: 1px solid var(--line); }
- /* Tabs as the desktop strip: 144px, 30px tall, 8px corners; the open one a white sheet with a hairline edge. */
- .st-tab { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 30px; width: 144px; max-width: 200px; min-width: 64px; flex: 0 1 auto;
- padding: 0 4px 0 10px; box-sizing: border-box; border-radius: 8px; font-size: 14px; color: var(--lx-muted); cursor: pointer; user-select: none; white-space: nowrap; }
- .st-tab + .st-tab::before { content: ''; position: absolute; left: 0; top: 7px; height: 16px; width: 1px; background: var(--line2); }
- .st-tab:hover { background: var(--wash); color: var(--ink); }
- .st-tab:hover::before, .st-tab:hover + .st-tab::before, .st-tab.on::before, .st-tab.on + .st-tab::before { background: none; }
- .st-tab.on { background: var(--bg); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
- .st-tabs .st-tab, .st-splithead .st-tab { margin-right: 2px; }
- .st-main.focus-r .st-tabs .st-tab.on, .st-main.split:not(.focus-r) .st-splithead .st-tab.on { box-shadow: none; background: var(--wash); color: var(--lx-muted); }
- .st-main.split .st-tabs .st-tab.on, .st-main.focus-r .st-splithead .st-tab.on { box-shadow: 0 0 0 1px var(--line), inset 0 -2px 0 var(--lx-accent); }
- .st-main.focus-r .st-tabs .st-tab.on { box-shadow: none; }
- .st-tab .ic { font-size: 15px; line-height: 1; flex: none; }
- .st-tab .ic:empty { display: none; }
- .st-tab .t { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 auto; }
- .st-tab .x { flex: none; width: 20px; height: 20px; border: 0; border-radius: 4px; padding: 0; background: none; font: inherit; font-size: 14px; line-height: 1;
- color: var(--faint); cursor: pointer; visibility: hidden; }
- .st-tab:hover .x, .st-tab.on .x { visibility: visible; }
- .st-tab .x:hover { background: var(--wash2); color: var(--ink); }
- .st-app.no-tabs .st-tabs .st-tab .x { display: none; }
- .st-app.no-tabs .st-tabs .st-tab { max-width: none; }
- /* Stage: all main frames in one box (moving a frame would reload it); the slot class places it. */
- .st-stage, .st-pstage { flex: 1; min-height: 0; position: relative; overflow: hidden; background: var(--bg);
- border-radius: var(--radius-lg); box-shadow: 0 0 0 1px var(--line); }
- .st-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; box-sizing: border-box;
- visibility: hidden; opacity: 0; pointer-events: none; background: var(--bg); }
- .st-frame.on { visibility: visible; opacity: 1; pointer-events: auto; }
- .st-main.split .st-frame.L { width: 50%; }
- .st-main.split .st-frame.R { left: 50%; width: 50%; border-left: 1px solid var(--line); }
- .st-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--lx-muted); font-size: 14px; }
- .st-empty:empty { display: none; }
- /* Right panel and its resize edge. */
- .st-panel { width: var(--st-panel-w); flex: none; display: flex; flex-direction: column; background: var(--bg2); min-width: 0; }
- .st-ptabs { display: flex; align-items: center; gap: 4px; height: var(--st-strip-h); flex: none; padding: 0 4px; box-sizing: border-box;
- background: var(--bg2); overflow-x: auto; scrollbar-width: none; }
- /* The gap between the two sheets is the resize edge: 8px of window ground, a 3px grip in its middle on hover. */
- .st-handle { position: relative; flex: none; width: 8px; background: none; cursor: col-resize; z-index: 3; outline: none; touch-action: none; }
- .st-handle::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; right: 0; }
- .st-handle::after { content: ''; position: absolute; top: var(--st-strip-h); bottom: 0; left: 2.5px; width: 3px; border-radius: 2px; background: none; }
- .st-handle:hover::after, .st-handle:focus-visible::after, .st-app.resizing .st-handle::after { background: var(--lx-accent); }
- .st-app.resizing, .st-app.resizing * { cursor: col-resize !important; user-select: none; }
- .st-app.resizing .st-frame { pointer-events: none !important; }
- .st-app.no-panel .st-panel, .st-app.no-panel .st-handle { display: none; }