ShtukbaseStandard
package page→ /design/shtukbase-ui-html/components/shell/sheet/sheet.css

pages/design/shtukbase-ui-html/components/shell/sheet/sheet.css

22 lines, 1.8 KB. Open as is (in a project other files lie next to it; they may be missing here).

  1. /* sheet: a panel over the page from an edge, with a faint overlay. The sidebar and the side panels use it on a narrow
  2. screen. Positioned fixed; the catalog shows it in a box that sets position: relative. */
  3. .sheet { position: fixed; inset: 0; width: 100%; z-index: 50; overflow: hidden; font: 400 13px/1.45 var(--font-sans); color: var(--foreground); }
  4. .sheet[data-state="closed"] { display: none; }
  5. .sheet *, .sheet *::before, .sheet *::after { box-sizing: border-box; }
  6. .sheet-overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--foreground) 16%, transparent); }
  7. .sheet-content {
  8. position: absolute; top: 0; bottom: 0; right: 0; display: flex; flex-direction: column; width: min(340px, 92%);
  9. background: var(--background); box-shadow: var(--shadow-lg); padding: 0 16px; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-gutter: stable;
  10. }
  11. .sheet[data-side="left"] .sheet-content { right: auto; left: 0; }
  12. .sheet-header { position: relative; padding: 16px 36px 12px 0; }
  13. .sheet-title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
  14. .sheet-description { margin: 4px 0 0; color: var(--muted-foreground); line-height: 1.5; overflow-wrap: anywhere; }
  15. .sheet-close {
  16. position: absolute; top: 12px; right: -6px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0;
  17. border-radius: calc(var(--radius) - 2px); background: transparent; color: var(--muted-foreground); cursor: pointer;
  18. }
  19. .sheet-close:hover { background: var(--sidebar-accent); color: var(--foreground); }
  20. .sheet-close:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
  21. .sheet-footer { display: flex; gap: 8px; margin-top: auto; padding: 12px 0 16px; }
  22. .sheet-footer > * { flex: 1 1 0; min-width: 0; }