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