ShtukbaseStandard
package file→ .shtukbase/packages/layout-minimal/test/fixtures/layout-plain/layout.css

test/fixtures/layout-plain/layout.css

45 lines, 1.7 KB.

  1. .shell[data-arrangement="docked"] {
  2. --nav: 0px;
  3. --left: 0px;
  4. --settings: 0px;
  5. position: relative;
  6. display: grid;
  7. grid-template-columns: var(--nav) var(--left) minmax(0, 1fr) var(--settings);
  8. grid-template-rows: minmax(0, 1fr);
  9. height: 100%;
  10. background: var(--background);
  11. color: var(--foreground);
  12. }
  13. .shell[data-sidebar="open"] { --nav: 220px; }
  14. .shell[data-left="open"] { --left: 220px; }
  15. .shell[data-panel="open"] { --settings: 275px; }
  16. .shell > aside[data-state="closed"] { display: none; }
  17. .shell-sidebar, .shell-left, .shell-main, .shell-right { grid-row: 1; min-width: 0; min-height: 0; }
  18. .shell-sidebar { grid-column: 1; border-right: 1px solid var(--border); }
  19. .shell-left { grid-column: 2; border-right: 1px solid var(--border); }
  20. .shell-main { grid-column: 3; position: relative; overflow: hidden; }
  21. .shell-main > :not(.shell-trigger) { height: 100%; }
  22. .shell-right { grid-column: 4; border-left: 1px solid var(--border); }
  23. .shell .panel { border-radius: 0; box-shadow: none; }
  24. .shell-trigger {
  25. position: absolute;
  26. z-index: 5;
  27. top: 12px;
  28. display: none;
  29. width: 36px;
  30. height: 36px;
  31. padding: 9px;
  32. border: 0;
  33. border-radius: var(--radius);
  34. color: var(--foreground);
  35. background: var(--background);
  36. box-shadow: 0 0 0 1px var(--border), var(--shadow-md);
  37. cursor: pointer;
  38. }
  39. .shell-trigger svg { display: block; width: 18px; height: 18px; }
  40. .shell-trigger[data-target="sidebar"] { left: 12px; }
  41. .shell-trigger[data-target="left"] { left: 56px; }
  42. .shell-trigger[data-target="panel"] { right: 12px; }
  43. .shell[data-sidebar="closed"] .shell-trigger[data-target="sidebar"],
  44. .shell[data-left="closed"] .shell-trigger[data-target="left"],
  45. .shell[data-panel="closed"] .shell-trigger[data-target="panel"] { display: block; }