ShtukbaseStandard
包文件→ .shtukbase/packages/layout-basic/shell.css

shell.css

44 行, 3.3 KB.

文件按包中的原样显示:代码及其注释不做翻译。

  1. /* layout-basic shell: kit variables only, no colour literals.
  2. Laid out as the desktop app: the window ground (--bg2) carries the bar and the sidebar; the lens is a white sheet
  3. with a hairline edge and 10px corners; the lens switch is the pill tabs of a collection's views. */
  4. html, body { height: 100%; margin: 0; overflow: hidden; background: var(--bg2); color: var(--ink); font-family: var(--font); }
  5. .ls-app { height: 100%; }
  6. .ls-top { border-bottom: 0; gap: 12px; height: 44px; padding: 0 8px 0 12px; background: var(--bg2); }
  7. .ls-top .lx-btn.icon { width: 28px; height: 28px; border-radius: 6px; color: var(--lx-muted); }
  8. .ls-top .lx-btn.icon:hover { background: var(--wash); color: var(--ink); }
  9. .ls-top .lx-crumbs { flex: 0 1 auto; }
  10. .ls-space { font-weight: 500; }
  11. .ls-body { display: flex; border-top: 0; background: var(--bg2); padding: 0 8px 8px 0; box-sizing: border-box; }
  12. /* Sidebar on the window ground, as the desktop app: 270px, rows 30px, icon 18px, 14px text, no edge line. */
  13. .ls-side { width: 270px; flex: none; overflow-y: auto; overflow-x: hidden; padding: 4px 8px 16px; box-sizing: border-box;
  14. background: var(--bg2); font-size: 14px; }
  15. .ls-row { display: flex; align-items: center; gap: 8px; height: 30px; padding-right: 8px; border-radius: 6px; cursor: pointer;
  16. color: var(--ink); text-decoration: none; user-select: none; white-space: nowrap; }
  17. .ls-row:hover { background: var(--wash); }
  18. .ls-row.on { background: var(--wash2); font-weight: 500; }
  19. .ls-row .car { width: 14px; flex: none; display: inline-flex; justify-content: center; color: var(--faint); font-size: 8px; }
  20. .ls-row .car.open { transform: rotate(90deg); }
  21. .ls-row .ic { width: 20px; flex: none; text-align: center; font-size: 17px; line-height: 1; }
  22. .ls-row .t { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  23. .ls-row.dir { color: var(--lx-muted); }
  24. .ls-sec { padding: 14px 8px 6px; font-size: 13px; color: var(--faint); font-weight: 500; }
  25. /* Lens tabs: the pill tabs of a collection's views (Board, Table): 28px, round, the chosen one washed. */
  26. .ls-tabs { display: flex; gap: 4px; flex: 1 1 auto; min-width: 0; }
  27. .ls-tab { height: 28px; padding: 0 12px; border: 0; border-radius: 14px; background: none; font: inherit; font-size: 14px;
  28. color: var(--lx-muted); cursor: pointer; }
  29. .ls-tab:hover { background: var(--wash); color: var(--ink); }
  30. .ls-tab.on { background: var(--wash); color: var(--ink); font-weight: 500; }
  31. /* Lens area: frames stacked; only the current one is visible. No transitions: a swap is instant. */
  32. .ls-main { flex: 1; min-width: 0; position: relative; overflow: hidden; background: var(--bg);
  33. border-radius: var(--radius-lg); box-shadow: 0 0 0 1px var(--line); }
  34. .ls-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
  35. visibility: hidden; opacity: 0; pointer-events: none; background: var(--bg); }
  36. .ls-frame.on { visibility: visible; opacity: 1; pointer-events: auto; }
  37. .ls-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--lx-muted); font-size: 14px; }
  38. .ls-empty:empty { display: none; }
  39. .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; }
  40. .ls-panel[hidden] { display: none; }