страница пакета→ /design/shtukbase-ui-html/components/shell/panel/panel.css
pages/design/shtukbase-ui-html/components/shell/panel/panel.css
38 строк, 2.8 КБ. Открыть как есть (в проекте рядом лежат другие файлы, здесь их может не быть).
Файл как есть в пакете: код и комментарии в нём не переводятся.
- /* panel: the explore kit demo's panel as a component - one white sheet with a radius of 12 and the even shadow; the head
- is the title and a panel icon button that folds the whole sheet into a small square button in the corner; plain sections with one hairline between them; Reset
- and Copy link pinned at the bottom. A lens layout places the sheet. */
- .panel {
- --panel-width: 100%;
- display: flex; flex-direction: column; width: var(--panel-width); height: 100%; min-height: 0; box-sizing: border-box; overflow: hidden;
- border-radius: calc(var(--radius) + 4px); background: var(--background); color: var(--foreground); font: 400 13px/1.45 var(--font-sans);
- box-shadow: 0 0 0 1px var(--border), var(--shadow-md);
- }
- .panel *, .panel *::before, .panel *::after { box-sizing: border-box; }
- .panel-header { display: flex; align-items: center; gap: 8px; flex: none; height: 52px; padding: 0 10px 0 16px; }
- .panel-title {
- flex: 1; min-width: 0; margin: 0; font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: -0.005em;
- overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
- }
- .panel-close {
- display: grid; place-items: center; flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: calc(var(--radius) - 2px);
- background: transparent; color: var(--foreground); cursor: pointer;
- }
- .panel-close { color: var(--muted-foreground); }
- .panel-close:hover { background: var(--secondary); color: var(--foreground); }
- .panel-close:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
- .panel-body {
- flex: 1; min-height: 0; overflow: auto; padding: 0 16px 8px; display: flex; flex-direction: column;
- scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--foreground) 16%, transparent) transparent;
- }
- .panel-body > .panel-section:first-child, .panel-body > :not(.panel-section) + .panel-section { border-top: 0; }
- .panel-footer { display: flex; gap: 8px; flex: none; padding: 12px 16px 16px; border-top: 1px solid var(--border); }
- .panel-footer[hidden] { display: none; }
- .panel-footer > * { flex: 1 1 0; min-width: 0; }
- /* what a panel body may hold besides sections: a lead paragraph and the preset row */
- .panel-lead { margin: 0 0 14px; color: var(--muted-foreground); line-height: 1.5; overflow-wrap: anywhere; }
- .panel-preset { padding: 0 0 12px; }
- .panel-note { margin: 4px 0 12px; color: var(--muted-foreground); line-height: 1.5; overflow-wrap: anywhere; }
- .panel[data-status="error"] .panel-note { color: var(--destructive); }
- .panel-skeleton { height: 10px; margin: 14px 0 4px; border-radius: calc(var(--radius) - 4px); background: var(--secondary); animation: panel-pulse 1.4s ease-in-out infinite; }
- @keyframes panel-pulse { 50% { opacity: .5; } }
- @media (prefers-reduced-motion: reduce) { .panel-skeleton { animation: none; } }