包文件→ .shtukbase/packages/layout-basic/shell.css
shell.css
44 行, 3.3 KB.
文件按包中的原样显示:代码及其注释不做翻译。
- /* layout-basic shell: kit variables only, no colour literals.
- Laid out as the desktop app: the window ground (--bg2) carries the bar and the sidebar; the lens is a white sheet
- with a hairline edge and 10px corners; the lens switch is the pill tabs of a collection's views. */
- html, body { height: 100%; margin: 0; overflow: hidden; background: var(--bg2); color: var(--ink); font-family: var(--font); }
- .ls-app { height: 100%; }
- .ls-top { border-bottom: 0; gap: 12px; height: 44px; padding: 0 8px 0 12px; background: var(--bg2); }
- .ls-top .lx-btn.icon { width: 28px; height: 28px; border-radius: 6px; color: var(--lx-muted); }
- .ls-top .lx-btn.icon:hover { background: var(--wash); color: var(--ink); }
- .ls-top .lx-crumbs { flex: 0 1 auto; }
- .ls-space { font-weight: 500; }
- .ls-body { display: flex; border-top: 0; background: var(--bg2); padding: 0 8px 8px 0; box-sizing: border-box; }
- /* Sidebar on the window ground, as the desktop app: 270px, rows 30px, icon 18px, 14px text, no edge line. */
- .ls-side { width: 270px; flex: none; overflow-y: auto; overflow-x: hidden; padding: 4px 8px 16px; box-sizing: border-box;
- background: var(--bg2); font-size: 14px; }
- .ls-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; }
- .ls-row:hover { background: var(--wash); }
- .ls-row.on { background: var(--wash2); font-weight: 500; }
- .ls-row .car { width: 14px; flex: none; display: inline-flex; justify-content: center; color: var(--faint); font-size: 8px; }
- .ls-row .car.open { transform: rotate(90deg); }
- .ls-row .ic { width: 20px; flex: none; text-align: center; font-size: 17px; line-height: 1; }
- .ls-row .t { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
- .ls-row.dir { color: var(--lx-muted); }
- .ls-sec { padding: 14px 8px 6px; font-size: 13px; color: var(--faint); font-weight: 500; }
- /* Lens tabs: the pill tabs of a collection's views (Board, Table): 28px, round, the chosen one washed. */
- .ls-tabs { display: flex; gap: 4px; flex: 1 1 auto; min-width: 0; }
- .ls-tab { height: 28px; padding: 0 12px; border: 0; border-radius: 14px; background: none; font: inherit; font-size: 14px;
- color: var(--lx-muted); cursor: pointer; }
- .ls-tab:hover { background: var(--wash); color: var(--ink); }
- .ls-tab.on { background: var(--wash); color: var(--ink); font-weight: 500; }
- /* Lens area: frames stacked; only the current one is visible. No transitions: a swap is instant. */
- .ls-main { flex: 1; min-width: 0; position: relative; overflow: hidden; background: var(--bg);
- border-radius: var(--radius-lg); box-shadow: 0 0 0 1px var(--line); }
- .ls-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
- visibility: hidden; opacity: 0; pointer-events: none; background: var(--bg); }
- .ls-frame.on { visibility: visible; opacity: 1; pointer-events: auto; }
- .ls-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--lx-muted); font-size: 14px; }
- .ls-empty:empty { display: none; }
- .ls-panel { width: 360px; flex: none; margin-left: 8px; border-radius: var(--radius-lg); box-shadow: 0 0 0 1px var(--line); background: var(--bg); overflow: auto; }
- .ls-panel[hidden] { display: none; }