ShtukbaseStandard
страница пакета→ /design/shtukbase-ui-html/components/shell/panel/panel.css

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

38 строк, 2.8 КБ. Открыть как есть (в проекте рядом лежат другие файлы, здесь их может не быть).

Файл как есть в пакете: код и комментарии в нём не переводятся.

  1. /* panel: the explore kit demo's panel as a component - one white sheet with a radius of 12 and the even shadow; the head
  2. 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
  3. and Copy link pinned at the bottom. A lens layout places the sheet. */
  4. .panel {
  5. --panel-width: 100%;
  6. display: flex; flex-direction: column; width: var(--panel-width); height: 100%; min-height: 0; box-sizing: border-box; overflow: hidden;
  7. border-radius: calc(var(--radius) + 4px); background: var(--background); color: var(--foreground); font: 400 13px/1.45 var(--font-sans);
  8. box-shadow: 0 0 0 1px var(--border), var(--shadow-md);
  9. }
  10. .panel *, .panel *::before, .panel *::after { box-sizing: border-box; }
  11. .panel-header { display: flex; align-items: center; gap: 8px; flex: none; height: 52px; padding: 0 10px 0 16px; }
  12. .panel-title {
  13. flex: 1; min-width: 0; margin: 0; font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: -0.005em;
  14. overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  15. }
  16. .panel-close {
  17. display: grid; place-items: center; flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: calc(var(--radius) - 2px);
  18. background: transparent; color: var(--foreground); cursor: pointer;
  19. }
  20. .panel-close { color: var(--muted-foreground); }
  21. .panel-close:hover { background: var(--secondary); color: var(--foreground); }
  22. .panel-close:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
  23. .panel-body {
  24. flex: 1; min-height: 0; overflow: auto; padding: 0 16px 8px; display: flex; flex-direction: column;
  25. scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--foreground) 16%, transparent) transparent;
  26. }
  27. .panel-body > .panel-section:first-child, .panel-body > :not(.panel-section) + .panel-section { border-top: 0; }
  28. .panel-footer { display: flex; gap: 8px; flex: none; padding: 12px 16px 16px; border-top: 1px solid var(--border); }
  29. .panel-footer[hidden] { display: none; }
  30. .panel-footer > * { flex: 1 1 0; min-width: 0; }
  31. /* what a panel body may hold besides sections: a lead paragraph and the preset row */
  32. .panel-lead { margin: 0 0 14px; color: var(--muted-foreground); line-height: 1.5; overflow-wrap: anywhere; }
  33. .panel-preset { padding: 0 0 12px; }
  34. .panel-note { margin: 4px 0 12px; color: var(--muted-foreground); line-height: 1.5; overflow-wrap: anywhere; }
  35. .panel[data-status="error"] .panel-note { color: var(--destructive); }
  36. .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; }
  37. @keyframes panel-pulse { 50% { opacity: .5; } }
  38. @media (prefers-reduced-motion: reduce) { .panel-skeleton { animation: none; } }