@sypnia/ui 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +95 -2
- package/astro/ActionCard.astro +17 -0
- package/astro/ActionCardSkeleton.astro +10 -0
- package/astro/Actions.astro +6 -0
- package/astro/AgentInstall.astro +13 -0
- package/astro/Alert.astro +20 -0
- package/astro/Announcement.astro +7 -0
- package/astro/ApiReference.astro +29 -0
- package/astro/ArticleHead.astro +24 -0
- package/astro/Aside.astro +17 -0
- package/astro/AspectRatio.astro +7 -0
- package/astro/AuthLayout.astro +31 -0
- package/astro/AuthLayoutSkeleton.astro +19 -0
- package/astro/Avatar.astro +7 -0
- package/astro/AvatarGroup.astro +16 -0
- package/astro/AvatarGroupSkeleton.astro +7 -0
- package/astro/AvatarSkeleton.astro +6 -0
- package/astro/Badge.astro +8 -0
- package/astro/BadgeSkeleton.astro +6 -0
- package/astro/Banner.astro +6 -0
- package/astro/Button.astro +26 -0
- package/astro/ButtonGroup.astro +6 -0
- package/astro/CallToAction.astro +10 -0
- package/astro/Callout.astro +13 -0
- package/astro/CalloutSkeleton.astro +10 -0
- package/astro/Card.astro +11 -0
- package/astro/CardGrid.astro +9 -0
- package/astro/CardGridSkeleton.astro +7 -0
- package/astro/CardSkeleton.astro +11 -0
- package/astro/Cards.astro +16 -0
- package/astro/CardsSkeleton.astro +5 -0
- package/astro/CaseMap.astro +72 -0
- package/astro/Center.astro +7 -0
- package/astro/Changelog.astro +23 -0
- package/astro/Character.astro +7 -0
- package/astro/Checklist.astro +27 -0
- package/astro/ChecklistSkeleton.astro +10 -0
- package/astro/Chip.astro +10 -0
- package/astro/ChipSkeleton.astro +4 -0
- package/astro/Cli.astro +10 -0
- package/astro/CodeBlock.astro +20 -0
- package/astro/CodeBlockSkeleton.astro +9 -0
- package/astro/CodeTabs.astro +31 -0
- package/astro/Columns.astro +7 -0
- package/astro/Compare.astro +16 -0
- package/astro/CompareTable.astro +29 -0
- package/astro/CompareTableSkeleton.astro +12 -0
- package/astro/Container.astro +6 -0
- package/astro/CopyButton.astro +15 -0
- package/astro/Count.astro +9 -0
- package/astro/CountSkeleton.astro +4 -0
- package/astro/Delta.astro +20 -0
- package/astro/DeltaSkeleton.astro +4 -0
- package/astro/DescriptionList.astro +8 -0
- package/astro/DescriptionListSkeleton.astro +7 -0
- package/astro/Divider.astro +6 -0
- package/astro/DocsArticleSkeleton.astro +25 -0
- package/astro/DocsHead.astro +33 -0
- package/astro/DocsHeader.astro +44 -0
- package/astro/DocsHero.astro +13 -0
- package/astro/DocsShell.astro +79 -0
- package/astro/EditLink.astro +9 -0
- package/astro/EmptyState.astro +14 -0
- package/astro/Endpoint.astro +21 -0
- package/astro/ErrorItem.astro +5 -0
- package/astro/ErrorList.astro +8 -0
- package/astro/Expected.astro +8 -0
- package/astro/Faq.astro +11 -0
- package/astro/FeatureGrid.astro +11 -0
- package/astro/FeatureGridSkeleton.astro +8 -0
- package/astro/FeatureList.astro +18 -0
- package/astro/FeatureListSkeleton.astro +7 -0
- package/astro/Figure.astro +17 -0
- package/astro/FigureSkeleton.astro +9 -0
- package/astro/Fireflies.astro +8 -0
- package/astro/Glossary.astro +8 -0
- package/astro/Grid.astro +7 -0
- package/astro/Heading.astro +7 -0
- package/astro/Hero.astro +21 -0
- package/astro/Icon.astro +17 -0
- package/astro/IconButton.astro +21 -0
- package/astro/Identity.astro +7 -0
- package/astro/IdentitySkeleton.astro +10 -0
- package/astro/Install.astro +7 -0
- package/astro/Kbd.astro +4 -0
- package/astro/KeyValue.astro +6 -0
- package/astro/KeyValueSkeleton.astro +7 -0
- package/astro/Ledger.astro +6 -0
- package/astro/Logo.astro +9 -0
- package/astro/Mark.astro +1 -0
- package/astro/McpTool.astro +13 -0
- package/astro/NewCard.astro +7 -0
- package/astro/Option.astro +6 -0
- package/astro/Options.astro +6 -0
- package/astro/PackageTabs.astro +12 -0
- package/astro/Page.astro +5 -0
- package/astro/PageFeedback.astro +20 -0
- package/astro/PageHeader.astro +14 -0
- package/astro/PageHeaderSkeleton.astro +12 -0
- package/astro/PageSkeleton.astro +19 -0
- package/astro/PaginationSkeleton.astro +17 -0
- package/astro/Panel.astro +11 -0
- package/astro/PanelSkeleton.astro +10 -0
- package/astro/Param.astro +15 -0
- package/astro/Params.astro +12 -0
- package/astro/ParamsSkeleton.astro +5 -0
- package/astro/Phone.astro +6 -0
- package/astro/PlanCard.astro +27 -0
- package/astro/PlanCardSkeleton.astro +13 -0
- package/astro/PrevNext.astro +15 -0
- package/astro/PricingTable.astro +41 -0
- package/astro/PricingTableSkeleton.astro +9 -0
- package/astro/ProductGrid.astro +10 -0
- package/astro/ProductMark.astro +10 -0
- package/astro/Progress.astro +12 -0
- package/astro/ProgressSkeleton.astro +9 -0
- package/astro/Prose.astro +7 -0
- package/astro/Quote.astro +10 -0
- package/astro/QuoteSkeleton.astro +10 -0
- package/astro/Releases.astro +6 -0
- package/astro/RequestExample.astro +8 -0
- package/astro/ResponseExample.astro +9 -0
- package/astro/Row.astro +7 -0
- package/astro/Says.astro +6 -0
- package/astro/ScrollArea.astro +7 -0
- package/astro/Search.astro +36 -0
- package/astro/SearchResult.astro +8 -0
- package/astro/SearchResultSkeleton.astro +5 -0
- package/astro/Section.astro +17 -0
- package/astro/SectionSkeleton.astro +9 -0
- package/astro/Setting.astro +19 -0
- package/astro/Show.astro +6 -0
- package/astro/SideNav.astro +40 -0
- package/astro/SideNavSkeleton.astro +13 -0
- package/astro/SiteFooter.astro +14 -0
- package/astro/SiteHeader.astro +28 -0
- package/astro/Skeleton.astro +8 -0
- package/astro/SkeletonText.astro +6 -0
- package/astro/Spacer.astro +7 -0
- package/astro/Split.astro +17 -0
- package/astro/Stack.astro +7 -0
- package/astro/Stage.astro +12 -0
- package/astro/Stat.astro +10 -0
- package/astro/StatGroup.astro +1 -0
- package/astro/StatGroupSkeleton.astro +7 -0
- package/astro/StatSkeleton.astro +10 -0
- package/astro/Status.astro +6 -0
- package/astro/StatusSkeleton.astro +4 -0
- package/astro/Step.astro +5 -0
- package/astro/Steps.astro +4 -0
- package/astro/Sticky.astro +7 -0
- package/astro/TableOfContents.astro +16 -0
- package/astro/TableOfContentsSkeleton.astro +5 -0
- package/astro/TableSkeleton.astro +16 -0
- package/astro/Tabs.astro +31 -0
- package/astro/TabsSkeleton.astro +6 -0
- package/astro/Term.astro +8 -0
- package/astro/Terms.astro +4 -0
- package/astro/Text.astro +6 -0
- package/astro/TextSkeleton.astro +9 -0
- package/astro/Toolbar.astro +7 -0
- package/astro/ToolbarGroup.astro +5 -0
- package/astro/ToolbarSeparator.astro +1 -0
- package/astro/ToolbarSkeleton.astro +6 -0
- package/astro/VersionBadge.astro +8 -0
- package/astro/_gap.ts +5 -0
- package/astro/_id.ts +3 -0
- package/astro/_locale.ts +9 -0
- package/css/base.css +92 -0
- package/css/components/actions.css +36 -0
- package/css/components/brand.css +28 -0
- package/css/components/button.css +84 -0
- package/css/components/charts-more.css +89 -0
- package/css/components/charts.css +83 -0
- package/css/components/code.css +86 -0
- package/css/components/data-display.css +105 -0
- package/css/components/data-more.css +323 -0
- package/css/components/data-table.css +146 -0
- package/css/components/docs.css +451 -0
- package/css/components/feedback.css +103 -0
- package/css/components/field.css +92 -0
- package/css/components/fields-advanced.css +158 -0
- package/css/components/fields-more.css +93 -0
- package/css/components/floating.css +55 -0
- package/css/components/forms.css +109 -0
- package/css/components/layout.css +97 -0
- package/css/components/nav.css +105 -0
- package/css/components/navigation.css +133 -0
- package/css/components/overlay.css +112 -0
- package/css/components/primitives.css +15 -0
- package/css/components/screens.css +42 -0
- package/css/components/shell.css +118 -0
- package/css/components/site.css +114 -0
- package/css/components/status.css +81 -0
- package/css/components/surface.css +69 -0
- package/css/components/table.css +49 -0
- package/css/components/viz.css +117 -0
- package/css/fonts.css +8 -0
- package/css/index.css +34 -0
- package/css/tokens.css +409 -0
- package/dist/chunk-6X3IJPUY.js +699 -0
- package/dist/chunk-AXIJDECU.js +97 -0
- package/dist/chunk-O5ZNXHSV.js +86 -0
- package/dist/dom/elements.d.ts +2 -0
- package/dist/dom/elements.js +539 -0
- package/dist/dom/index.d.ts +51 -0
- package/dist/dom/index.js +2 -0
- package/dist/i18n/index.d.ts +659 -0
- package/dist/i18n/index.js +1 -0
- package/dist/react/index.d.ts +4455 -0
- package/dist/react/index.js +8208 -0
- package/dist/tokens/index.d.ts +64 -0
- package/dist/tokens/index.js +49 -0
- package/fonts/LICENSE-instrument-sans.txt +93 -0
- package/fonts/LICENSE-literata.txt +93 -0
- package/fonts/LICENSE-martian-mono.txt +93 -0
- package/fonts/instrument-sans.woff2 +0 -0
- package/fonts/literata-italic.woff2 +0 -0
- package/fonts/literata-roman.woff2 +0 -0
- package/fonts/martian-mono.woff2 +0 -0
- package/icons/sprite.svg +1 -0
- package/icons/svg/accessibility.svg +1 -0
- package/icons/svg/agent.svg +1 -0
- package/icons/svg/alert.svg +1 -0
- package/icons/svg/align-center.svg +1 -0
- package/icons/svg/align-left.svg +1 -0
- package/icons/svg/align-right.svg +1 -0
- package/icons/svg/api.svg +1 -0
- package/icons/svg/archive.svg +1 -0
- package/icons/svg/arrow-down-left.svg +1 -0
- package/icons/svg/arrow-down-right.svg +1 -0
- package/icons/svg/arrow-down.svg +1 -0
- package/icons/svg/arrow-left.svg +1 -0
- package/icons/svg/arrow-right.svg +1 -0
- package/icons/svg/arrow-up-left.svg +1 -0
- package/icons/svg/arrow-up-right.svg +1 -0
- package/icons/svg/arrow-up.svg +1 -0
- package/icons/svg/at.svg +1 -0
- package/icons/svg/audit.svg +1 -0
- package/icons/svg/award.svg +1 -0
- package/icons/svg/backend.svg +1 -0
- package/icons/svg/backup.svg +1 -0
- package/icons/svg/bag.svg +1 -0
- package/icons/svg/ban.svg +1 -0
- package/icons/svg/bank.svg +1 -0
- package/icons/svg/bell-off.svg +1 -0
- package/icons/svg/bell.svg +1 -0
- package/icons/svg/bold.svg +1 -0
- package/icons/svg/bolt.svg +1 -0
- package/icons/svg/book-open.svg +1 -0
- package/icons/svg/book.svg +1 -0
- package/icons/svg/bookmark.svg +1 -0
- package/icons/svg/box.svg +1 -0
- package/icons/svg/braces.svg +1 -0
- package/icons/svg/brackets.svg +1 -0
- package/icons/svg/browser.svg +1 -0
- package/icons/svg/brush.svg +1 -0
- package/icons/svg/bug.svg +1 -0
- package/icons/svg/calendar-check.svg +1 -0
- package/icons/svg/calendar-plus.svg +1 -0
- package/icons/svg/calendar.svg +1 -0
- package/icons/svg/camera.svg +1 -0
- package/icons/svg/cards.svg +1 -0
- package/icons/svg/cart.svg +1 -0
- package/icons/svg/certificate.svg +1 -0
- package/icons/svg/chart-area.svg +1 -0
- package/icons/svg/chart-bar.svg +1 -0
- package/icons/svg/chart-line.svg +1 -0
- package/icons/svg/chart-parts.svg +1 -0
- package/icons/svg/chart-scatter.svg +1 -0
- package/icons/svg/chat.svg +1 -0
- package/icons/svg/chats.svg +1 -0
- package/icons/svg/check-small.svg +1 -0
- package/icons/svg/check.svg +1 -0
- package/icons/svg/chevron-down.svg +1 -0
- package/icons/svg/chevron-left.svg +1 -0
- package/icons/svg/chevron-right.svg +1 -0
- package/icons/svg/chevron-up.svg +1 -0
- package/icons/svg/chevrons-down.svg +1 -0
- package/icons/svg/chevrons-left.svg +1 -0
- package/icons/svg/chevrons-right.svg +1 -0
- package/icons/svg/chevrons-up-down.svg +1 -0
- package/icons/svg/chevrons-up.svg +1 -0
- package/icons/svg/clipboard-check.svg +1 -0
- package/icons/svg/clipboard.svg +1 -0
- package/icons/svg/clock.svg +1 -0
- package/icons/svg/close-small.svg +1 -0
- package/icons/svg/close.svg +1 -0
- package/icons/svg/cloud-download.svg +1 -0
- package/icons/svg/cloud-off.svg +1 -0
- package/icons/svg/cloud-upload.svg +1 -0
- package/icons/svg/cloud.svg +1 -0
- package/icons/svg/code.svg +1 -0
- package/icons/svg/coins.svg +1 -0
- package/icons/svg/collapse.svg +1 -0
- package/icons/svg/columns.svg +1 -0
- package/icons/svg/comment.svg +1 -0
- package/icons/svg/commit.svg +1 -0
- package/icons/svg/compass.svg +1 -0
- package/icons/svg/contact.svg +1 -0
- package/icons/svg/container.svg +1 -0
- package/icons/svg/copy.svg +1 -0
- package/icons/svg/cpu.svg +1 -0
- package/icons/svg/credit-card.svg +1 -0
- package/icons/svg/cron.svg +1 -0
- package/icons/svg/crop.svg +1 -0
- package/icons/svg/crown.svg +1 -0
- package/icons/svg/csv.svg +1 -0
- package/icons/svg/cursor.svg +1 -0
- package/icons/svg/dark-mode.svg +1 -0
- package/icons/svg/dashboard.svg +1 -0
- package/icons/svg/data.svg +1 -0
- package/icons/svg/dead-click.svg +1 -0
- package/icons/svg/density.svg +1 -0
- package/icons/svg/deploy.svg +1 -0
- package/icons/svg/desktop.svg +1 -0
- package/icons/svg/disk.svg +1 -0
- package/icons/svg/dns.svg +1 -0
- package/icons/svg/dollar.svg +1 -0
- package/icons/svg/domain.svg +1 -0
- package/icons/svg/dot-off.svg +1 -0
- package/icons/svg/dot.svg +1 -0
- package/icons/svg/download.svg +1 -0
- package/icons/svg/duplicate.svg +1 -0
- package/icons/svg/edit.svg +1 -0
- package/icons/svg/engine.svg +1 -0
- package/icons/svg/enter.svg +1 -0
- package/icons/svg/environment.svg +1 -0
- package/icons/svg/equal.svg +1 -0
- package/icons/svg/eraser.svg +1 -0
- package/icons/svg/error.svg +1 -0
- package/icons/svg/expand.svg +1 -0
- package/icons/svg/export.svg +1 -0
- package/icons/svg/external.svg +1 -0
- package/icons/svg/eye-off.svg +1 -0
- package/icons/svg/failure.svg +1 -0
- package/icons/svg/fast-forward.svg +1 -0
- package/icons/svg/file-check.svg +1 -0
- package/icons/svg/file-code.svg +1 -0
- package/icons/svg/file-lock.svg +1 -0
- package/icons/svg/file-plus.svg +1 -0
- package/icons/svg/file-table.svg +1 -0
- package/icons/svg/file-text.svg +1 -0
- package/icons/svg/file.svg +1 -0
- package/icons/svg/files.svg +1 -0
- package/icons/svg/filter.svg +1 -0
- package/icons/svg/fingerprint.svg +1 -0
- package/icons/svg/fire.svg +1 -0
- package/icons/svg/firewall.svg +1 -0
- package/icons/svg/fix.svg +1 -0
- package/icons/svg/flag.svg +1 -0
- package/icons/svg/folder-open.svg +1 -0
- package/icons/svg/folder-plus.svg +1 -0
- package/icons/svg/folder.svg +1 -0
- package/icons/svg/fork.svg +1 -0
- package/icons/svg/fullscreen-exit.svg +1 -0
- package/icons/svg/fullscreen.svg +1 -0
- package/icons/svg/function.svg +1 -0
- package/icons/svg/funnel.svg +1 -0
- package/icons/svg/gauge.svg +1 -0
- package/icons/svg/gift.svg +1 -0
- package/icons/svg/git-branch.svg +1 -0
- package/icons/svg/globe.svg +1 -0
- package/icons/svg/grid.svg +1 -0
- package/icons/svg/grip.svg +1 -0
- package/icons/svg/hand.svg +1 -0
- package/icons/svg/handshake.svg +1 -0
- package/icons/svg/hash.svg +1 -0
- package/icons/svg/heading.svg +1 -0
- package/icons/svg/heart.svg +1 -0
- package/icons/svg/heatmap.svg +1 -0
- package/icons/svg/help.svg +1 -0
- package/icons/svg/highlight.svg +1 -0
- package/icons/svg/history.svg +1 -0
- package/icons/svg/home.svg +1 -0
- package/icons/svg/hourglass.svg +1 -0
- package/icons/svg/id-card.svg +1 -0
- package/icons/svg/idea.svg +1 -0
- package/icons/svg/image.svg +1 -0
- package/icons/svg/import.svg +1 -0
- package/icons/svg/inbox.svg +1 -0
- package/icons/svg/incognito.svg +1 -0
- package/icons/svg/indent.svg +1 -0
- package/icons/svg/index.svg +1 -0
- package/icons/svg/info.svg +1 -0
- package/icons/svg/invoice.svg +1 -0
- package/icons/svg/italic.svg +1 -0
- package/icons/svg/json.svg +1 -0
- package/icons/svg/kanban.svg +1 -0
- package/icons/svg/key.svg +1 -0
- package/icons/svg/keyboard.svg +1 -0
- package/icons/svg/laptop.svg +1 -0
- package/icons/svg/layers.svg +1 -0
- package/icons/svg/layout.svg +1 -0
- package/icons/svg/leaf.svg +1 -0
- package/icons/svg/light.svg +1 -0
- package/icons/svg/link.svg +1 -0
- package/icons/svg/list-checks.svg +1 -0
- package/icons/svg/list-ordered.svg +1 -0
- package/icons/svg/list.svg +1 -0
- package/icons/svg/load-balancer.svg +1 -0
- package/icons/svg/lock.svg +1 -0
- package/icons/svg/log-in.svg +1 -0
- package/icons/svg/logs.svg +1 -0
- package/icons/svg/mail-open.svg +1 -0
- package/icons/svg/mail.svg +1 -0
- package/icons/svg/map.svg +1 -0
- package/icons/svg/mcp.svg +1 -0
- package/icons/svg/megaphone.svg +1 -0
- package/icons/svg/memory.svg +1 -0
- package/icons/svg/menu.svg +1 -0
- package/icons/svg/merge.svg +1 -0
- package/icons/svg/mic-off.svg +1 -0
- package/icons/svg/mic.svg +1 -0
- package/icons/svg/migrate.svg +1 -0
- package/icons/svg/minus-circle.svg +1 -0
- package/icons/svg/minus.svg +1 -0
- package/icons/svg/mobile.svg +1 -0
- package/icons/svg/moon.svg +1 -0
- package/icons/svg/more-vertical.svg +1 -0
- package/icons/svg/more.svg +1 -0
- package/icons/svg/mouse.svg +1 -0
- package/icons/svg/move.svg +1 -0
- package/icons/svg/mute.svg +1 -0
- package/icons/svg/network.svg +1 -0
- package/icons/svg/notebook.svg +1 -0
- package/icons/svg/null.svg +1 -0
- package/icons/svg/open-source.svg +1 -0
- package/icons/svg/organization.svg +1 -0
- package/icons/svg/outdent.svg +1 -0
- package/icons/svg/p-agent.svg +1 -0
- package/icons/svg/p-ai.svg +1 -0
- package/icons/svg/p-app.svg +1 -0
- package/icons/svg/p-cases.svg +1 -0
- package/icons/svg/p-data.svg +1 -0
- package/icons/svg/p-design.svg +1 -0
- package/icons/svg/p-domains.svg +1 -0
- package/icons/svg/p-files.svg +1 -0
- package/icons/svg/p-git.svg +1 -0
- package/icons/svg/p-learn.svg +1 -0
- package/icons/svg/p-mail.svg +1 -0
- package/icons/svg/p-run.svg +1 -0
- package/icons/svg/p-skills.svg +1 -0
- package/icons/svg/p-telemetry.svg +1 -0
- package/icons/svg/p-ui.svg +1 -0
- package/icons/svg/palette.svg +1 -0
- package/icons/svg/panel-bottom.svg +1 -0
- package/icons/svg/paperclip.svg +1 -0
- package/icons/svg/paragraph.svg +1 -0
- package/icons/svg/password.svg +1 -0
- package/icons/svg/paste.svg +1 -0
- package/icons/svg/pause.svg +1 -0
- package/icons/svg/pending.svg +1 -0
- package/icons/svg/percent.svg +1 -0
- package/icons/svg/performance.svg +1 -0
- package/icons/svg/phone.svg +1 -0
- package/icons/svg/picture-in-picture.svg +1 -0
- package/icons/svg/pin.svg +1 -0
- package/icons/svg/pipeline.svg +1 -0
- package/icons/svg/plan.svg +1 -0
- package/icons/svg/play.svg +1 -0
- package/icons/svg/plug.svg +1 -0
- package/icons/svg/plus-circle.svg +1 -0
- package/icons/svg/plus.svg +1 -0
- package/icons/svg/pointer.svg +1 -0
- package/icons/svg/policy.svg +1 -0
- package/icons/svg/power.svg +1 -0
- package/icons/svg/primary-key.svg +1 -0
- package/icons/svg/print.svg +1 -0
- package/icons/svg/prompt.svg +1 -0
- package/icons/svg/pull-request.svg +1 -0
- package/icons/svg/puzzle.svg +1 -0
- package/icons/svg/qr-code.svg +1 -0
- package/icons/svg/query.svg +1 -0
- package/icons/svg/queue.svg +1 -0
- package/icons/svg/quote.svg +1 -0
- package/icons/svg/rage-click.svg +1 -0
- package/icons/svg/receipt.svg +1 -0
- package/icons/svg/record.svg +1 -0
- package/icons/svg/redo.svg +1 -0
- package/icons/svg/refresh.svg +1 -0
- package/icons/svg/region.svg +1 -0
- package/icons/svg/relation.svg +1 -0
- package/icons/svg/release.svg +1 -0
- package/icons/svg/replay.svg +1 -0
- package/icons/svg/rewind.svg +1 -0
- package/icons/svg/robot.svg +1 -0
- package/icons/svg/rocket.svg +1 -0
- package/icons/svg/role.svg +1 -0
- package/icons/svg/rollback.svg +1 -0
- package/icons/svg/route.svg +1 -0
- package/icons/svg/rows.svg +1 -0
- package/icons/svg/rss.svg +1 -0
- package/icons/svg/ruler.svg +1 -0
- package/icons/svg/save.svg +1 -0
- package/icons/svg/scan.svg +1 -0
- package/icons/svg/scissors.svg +1 -0
- package/icons/svg/sdk.svg +1 -0
- package/icons/svg/search.svg +1 -0
- package/icons/svg/secret.svg +1 -0
- package/icons/svg/seed.svg +1 -0
- package/icons/svg/select.svg +1 -0
- package/icons/svg/self-host.svg +1 -0
- package/icons/svg/send.svg +1 -0
- package/icons/svg/server.svg +1 -0
- package/icons/svg/settings.svg +1 -0
- package/icons/svg/share.svg +1 -0
- package/icons/svg/shield-alert.svg +1 -0
- package/icons/svg/shield-off.svg +1 -0
- package/icons/svg/shield-user.svg +1 -0
- package/icons/svg/shield.svg +1 -0
- package/icons/svg/sidebar-left.svg +1 -0
- package/icons/svg/sidebar-right.svg +1 -0
- package/icons/svg/sign-out.svg +1 -0
- package/icons/svg/signals-in.svg +1 -0
- package/icons/svg/skip-back.svg +1 -0
- package/icons/svg/skip-forward.svg +1 -0
- package/icons/svg/slash.svg +1 -0
- package/icons/svg/sleep.svg +1 -0
- package/icons/svg/sliders.svg +1 -0
- package/icons/svg/sort.svg +1 -0
- package/icons/svg/sparkle.svg +1 -0
- package/icons/svg/sparkline.svg +1 -0
- package/icons/svg/split.svg +1 -0
- package/icons/svg/star.svg +1 -0
- package/icons/svg/stop.svg +1 -0
- package/icons/svg/strikethrough.svg +1 -0
- package/icons/svg/success.svg +1 -0
- package/icons/svg/suggestion.svg +1 -0
- package/icons/svg/sum.svg +1 -0
- package/icons/svg/summary.svg +1 -0
- package/icons/svg/sun.svg +1 -0
- package/icons/svg/support.svg +1 -0
- package/icons/svg/swap-vertical.svg +1 -0
- package/icons/svg/swap.svg +1 -0
- package/icons/svg/table.svg +1 -0
- package/icons/svg/tablet.svg +1 -0
- package/icons/svg/tag.svg +1 -0
- package/icons/svg/target.svg +1 -0
- package/icons/svg/team.svg +1 -0
- package/icons/svg/terminal.svg +1 -0
- package/icons/svg/test.svg +1 -0
- package/icons/svg/text.svg +1 -0
- package/icons/svg/theme.svg +1 -0
- package/icons/svg/thumbs-down.svg +1 -0
- package/icons/svg/thumbs-up.svg +1 -0
- package/icons/svg/timer.svg +1 -0
- package/icons/svg/toggle.svg +1 -0
- package/icons/svg/traces.svg +1 -0
- package/icons/svg/translate.svg +1 -0
- package/icons/svg/trash.svg +1 -0
- package/icons/svg/trend-down.svg +1 -0
- package/icons/svg/trend-up.svg +1 -0
- package/icons/svg/two-factor.svg +1 -0
- package/icons/svg/underline.svg +1 -0
- package/icons/svg/undo.svg +1 -0
- package/icons/svg/unlink.svg +1 -0
- package/icons/svg/unlock.svg +1 -0
- package/icons/svg/upgrade.svg +1 -0
- package/icons/svg/upload.svg +1 -0
- package/icons/svg/uptime.svg +1 -0
- package/icons/svg/usage.svg +1 -0
- package/icons/svg/user-check.svg +1 -0
- package/icons/svg/user-circle.svg +1 -0
- package/icons/svg/user-minus.svg +1 -0
- package/icons/svg/user-plus.svg +1 -0
- package/icons/svg/user-x.svg +1 -0
- package/icons/svg/user.svg +1 -0
- package/icons/svg/users.svg +1 -0
- package/icons/svg/variable.svg +1 -0
- package/icons/svg/verified.svg +1 -0
- package/icons/svg/video.svg +1 -0
- package/icons/svg/volume.svg +1 -0
- package/icons/svg/wallet.svg +1 -0
- package/icons/svg/wand.svg +1 -0
- package/icons/svg/warning.svg +1 -0
- package/icons/svg/watch.svg +1 -0
- package/icons/svg/wave.svg +1 -0
- package/icons/svg/web.svg +1 -0
- package/icons/svg/webhook.svg +1 -0
- package/icons/svg/wifi-off.svg +1 -0
- package/icons/svg/wifi.svg +1 -0
- package/icons/svg/window.svg +1 -0
- package/icons/svg/zoom-in.svg +1 -0
- package/icons/svg/zoom-out.svg +1 -0
- package/package.json +108 -4
- package/src/characters/data.ts +13 -0
- package/src/characters/index.ts +23 -0
- package/src/dom/search.ts +59 -0
- package/src/i18n/index.ts +140 -0
- package/src/icons/data.ts +760 -0
- package/tokens/tokens.json +625 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/* Forms: Form and ErrorSummary, FormSection, FormRow (a setting and its control), InlineEdit and EditableText,
|
|
2
|
+
SaveBar, AutosaveStatus and FormSkeleton. Fields themselves live in field.css; this file is how they are put
|
|
3
|
+
together into something a person fills in and saves. */
|
|
4
|
+
@layer sypnia.components {
|
|
5
|
+
/* ErrorSummary: the box itself is in field.css; here, its title and links. */
|
|
6
|
+
|
|
7
|
+
/* FormSection: a title and a sentence on the left, the fields on the right; stacked on tablets and phones. */
|
|
8
|
+
.sy-form-section { display: grid; gap: var(--gap-stack) var(--s-8); grid-template-columns: minmax(12rem, 1fr) minmax(0, 2fr); padding-block: var(--gap-section) 0; border-top: 1px solid var(--line); min-width: 0; }
|
|
9
|
+
.sy-form > .sy-form-section:first-child, .sy-form > .sy-error-summary + .sy-form-section { border-top: 0; padding-top: 0; }
|
|
10
|
+
.sy-form-section__head { display: grid; gap: var(--s-1); align-content: start; }
|
|
11
|
+
.sy-form-section__title { margin: 0; font-size: var(--text-md); font-weight: 600; line-height: var(--leading-ui); }
|
|
12
|
+
.sy-form-section__lead { margin: 0; font-size: var(--text-sm); color: var(--fg-muted); line-height: 1.5; max-width: 40ch; }
|
|
13
|
+
.sy-form-section__body { display: grid; gap: var(--gap-stack); min-width: 0; }
|
|
14
|
+
@media (max-width: 56rem) { .sy-form-section { grid-template-columns: minmax(0, 1fr); } }
|
|
15
|
+
|
|
16
|
+
/* FormRow: one setting per row; rows stack into a list with lines between them. */
|
|
17
|
+
.sy-form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: var(--s-2) var(--s-6); align-items: center; padding-block: var(--s-4); border-bottom: 1px solid var(--line); min-width: 0; }
|
|
18
|
+
.sy-form-row:last-child { border-bottom: 0; }
|
|
19
|
+
.sy-form-row__text { display: grid; gap: 0.2rem; min-width: 0; }
|
|
20
|
+
.sy-form-row__label { margin: 0; font-size: var(--text-sm); font-weight: 600; line-height: var(--leading-ui); }
|
|
21
|
+
.sy-form-row__desc { margin: 0; font-size: var(--text-xs); color: var(--fg-muted); line-height: 1.45; max-width: 52ch; }
|
|
22
|
+
.sy-form-row__control { display: flex; justify-content: flex-end; min-width: 0; }
|
|
23
|
+
.sy-form-row__control > .sy-input, .sy-form-row__control > .sy-input-group, .sy-form-row__control > .sy-select { width: 100%; }
|
|
24
|
+
.sy-form-row--danger .sy-form-row__label { color: var(--fail-text); }
|
|
25
|
+
@media (max-width: 40rem) {
|
|
26
|
+
.sy-form-row { grid-template-columns: minmax(0, 1fr); align-items: start; }
|
|
27
|
+
.sy-form-row__control { justify-content: stretch; }
|
|
28
|
+
.sy-form-row__control > .sy-btn { width: 100%; }
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* InlineEdit: the value with a quiet edit button; editing turns it into a small field with Save and Cancel. */
|
|
32
|
+
.sy-inline-edit { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
|
|
33
|
+
.sy-inline-edit__value { min-width: 0; overflow-wrap: anywhere; font-size: var(--text-sm); }
|
|
34
|
+
.sy-inline-edit__value--empty { color: var(--fg-muted); font-style: italic; }
|
|
35
|
+
.sy-inline-edit--editing { display: grid; gap: 0.4rem; }
|
|
36
|
+
.sy-inline-edit__row { display: flex; gap: var(--s-2); align-items: center; min-width: 0; }
|
|
37
|
+
.sy-inline-edit__row > .sy-input { flex: 1 1 12rem; }
|
|
38
|
+
@media (max-width: 40rem) {
|
|
39
|
+
.sy-inline-edit__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
40
|
+
.sy-inline-edit__row > .sy-input { grid-column: 1 / -1; }
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* EditableText: reads as text until pressed; the pencil appears on hover and focus. */
|
|
44
|
+
.sy-editable { display: inline-grid; gap: 0.3rem; margin: 0; min-width: 0; max-width: 100%; font: inherit; }
|
|
45
|
+
.sy-editable--h1 { font-family: var(--font-voice); font-size: var(--display-sm, var(--text-xl)); font-weight: 500; line-height: 1.2; }
|
|
46
|
+
.sy-editable--h2 { font-size: var(--text-lg); font-weight: 600; line-height: 1.25; }
|
|
47
|
+
.sy-editable--h3 { font-size: var(--text-md); font-weight: 600; line-height: 1.3; }
|
|
48
|
+
.sy-editable__button {
|
|
49
|
+
display: inline-flex; align-items: center; gap: 0.4em; max-width: 100%; margin-inline: -0.3em; padding: 0.1em 0.3em;
|
|
50
|
+
border: 1px dashed transparent; border-radius: var(--r-1); background: none; color: inherit; font: inherit; text-align: start; cursor: text;
|
|
51
|
+
transition: border-color var(--dur-1), background var(--dur-1);
|
|
52
|
+
}
|
|
53
|
+
.sy-editable__button > span { min-width: 0; overflow-wrap: anywhere; }
|
|
54
|
+
.sy-editable__button .sy-icon { width: 0.85em; height: 0.85em; flex: none; color: var(--fg-muted); opacity: 0; transition: opacity var(--dur-1); }
|
|
55
|
+
.sy-editable__button:hover, .sy-editable__button:focus-visible { border-color: var(--line-strong); background: var(--bg-inset); }
|
|
56
|
+
.sy-editable__button:hover .sy-icon, .sy-editable__button:focus-visible .sy-icon { opacity: 1; }
|
|
57
|
+
.sy-editable__button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus-halo); border-color: var(--focus); }
|
|
58
|
+
@media (hover: none) { .sy-editable__button .sy-icon { opacity: 1; } }
|
|
59
|
+
.sy-editable__empty { color: var(--fg-muted); font-style: italic; }
|
|
60
|
+
.sy-editable__input {
|
|
61
|
+
width: 100%; min-width: 8ch; margin-inline: -0.3em; padding: 0.1em 0.3em; border: 1.5px solid var(--focus); border-radius: var(--r-1);
|
|
62
|
+
background: var(--bg-inset); color: var(--fg); font: inherit; box-shadow: 0 0 0 3px var(--focus-halo); field-sizing: content;
|
|
63
|
+
}
|
|
64
|
+
.sy-editable__input:focus-visible { outline: none; }
|
|
65
|
+
.sy-editable__input[aria-busy='true'] { cursor: progress; opacity: 0.7; }
|
|
66
|
+
.sy-editable[data-invalid] .sy-editable__input { border-color: var(--fail); }
|
|
67
|
+
.sy-editable .sy-field__error { font-family: var(--font-ui); }
|
|
68
|
+
|
|
69
|
+
/* SaveBar: sticks to the bottom of the scrolling area while there are changes. */
|
|
70
|
+
.sy-savebar {
|
|
71
|
+
position: sticky; bottom: var(--s-4); z-index: var(--z-sticky); display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
|
|
72
|
+
padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r-3);
|
|
73
|
+
background: var(--bg-raised); box-shadow: var(--shadow-float); animation: sy-enter var(--dur-2) var(--ease-out) both; --shift: 0.5rem;
|
|
74
|
+
}
|
|
75
|
+
.sy-savebar__text { display: flex; align-items: center; gap: var(--s-2); margin: 0; font-size: var(--text-sm); font-weight: 600; min-width: 0; }
|
|
76
|
+
.sy-savebar__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--light-fill); box-shadow: 0 0 0 3px var(--light-ring); flex: none; }
|
|
77
|
+
.sy-savebar__actions { display: flex; gap: var(--s-2); flex: none; }
|
|
78
|
+
@media (max-width: 40rem) {
|
|
79
|
+
.sy-savebar { display: grid; justify-content: stretch; bottom: var(--s-2); padding: var(--s-3); }
|
|
80
|
+
.sy-savebar__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
81
|
+
.sy-savebar__actions > .sy-btn { width: 100%; }
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* AutosaveStatus: quiet unless it failed. The light passes while it saves, like a busy button. */
|
|
85
|
+
.sy-autosave { display: inline-flex; align-items: center; gap: 0.45em; margin: 0; min-height: var(--ctl-h-sm); font-size: var(--text-xs); color: var(--fg-muted); }
|
|
86
|
+
.sy-autosave .sy-icon { width: 1.1em; height: 1.1em; flex: none; }
|
|
87
|
+
.sy-autosave--saved .sy-icon { color: var(--ok-text); }
|
|
88
|
+
.sy-autosave--error { color: var(--fail-text); font-weight: 600; }
|
|
89
|
+
.sy-autosave__light {
|
|
90
|
+
width: 2.2em; height: 0.35em; border-radius: 99px; background: linear-gradient(100deg, var(--line) 30%, var(--light-fill) 50%, var(--line) 70%) 0 0 / 200% 100%;
|
|
91
|
+
animation: sy-shimmer 1.2s linear infinite; animation-play-state: var(--loop, running);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* Skeletons: the pieces' own boxes; only the widths of the bars are set here. */
|
|
95
|
+
.sy-field[data-skeleton] .sy-field__label .sy-skeleton { width: 7rem; }
|
|
96
|
+
.sy-field[data-skeleton]:nth-child(3n + 2) .sy-field__label .sy-skeleton { width: 9rem; }
|
|
97
|
+
.sy-field[data-skeleton]:nth-child(3n) .sy-field__label .sy-skeleton { width: 5.5rem; }
|
|
98
|
+
.sy-form-section[data-skeleton] .sy-form-section__title, .sy-form-section[data-skeleton] .sy-form-section__lead { display: block; }
|
|
99
|
+
.sy-form-section[data-skeleton] .sy-form-section__title .sy-skeleton { width: 9rem; }
|
|
100
|
+
.sy-form-section[data-skeleton] .sy-form-section__lead .sy-skeleton { width: 90%; }
|
|
101
|
+
.sy-form-section[data-skeleton] .sy-form-section__lead .sy-skeleton:last-child { width: 60%; }
|
|
102
|
+
.sy-form-row[data-skeleton] .sy-form-row__label, .sy-form-row[data-skeleton] .sy-form-row__desc { display: block; }
|
|
103
|
+
.sy-form-row[data-skeleton] .sy-form-row__label .sy-skeleton { width: 10rem; }
|
|
104
|
+
.sy-form-row[data-skeleton] .sy-form-row__desc .sy-skeleton { width: 80%; }
|
|
105
|
+
.sy-form-row .sy-form-row__control > .sy-skeleton--ctl { width: 100%; }
|
|
106
|
+
.sy-inline-edit[data-skeleton] .sy-inline-edit__value { flex: 0 1 8rem; }
|
|
107
|
+
.sy-editable[data-skeleton] .sy-editable__button { display: block; width: 10ch; }
|
|
108
|
+
.sy-editable[data-skeleton] .sy-skeleton { width: 100%; }
|
|
109
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/* Layout pieces with a look or a behaviour: Split, ScrollArea and the parts of a Toolbar.
|
|
2
|
+
The plain helpers (sy-stack, sy-row, sy-grid, sy-cols, sy-divider, sy-wrap) live in base.css. */
|
|
3
|
+
@layer sypnia.components {
|
|
4
|
+
/* Split: two panes side by side. The divider can be dragged, or moved with the arrow keys. On phones the panes stack. */
|
|
5
|
+
.sy-split { --_size: var(--split, 50%); display: grid; grid-template-columns: minmax(0, var(--_size)) auto minmax(0, 1fr); min-width: 0; min-height: 0; }
|
|
6
|
+
.sy-split--v { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, var(--_size)) auto minmax(0, 1fr); }
|
|
7
|
+
.sy-split__pane { min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
|
|
8
|
+
.sy-split__handle { position: relative; width: 0.75rem; margin-inline: -0.25rem; z-index: var(--z-raised); display: grid; place-items: center; border: 0; padding: 0; background: none; color: var(--fg-muted); cursor: col-resize; touch-action: none; outline: none; }
|
|
9
|
+
.sy-split__handle::before { content: ''; position: absolute; inset-block: 0; left: 50%; width: 1px; translate: -50% 0; background: var(--line); transition: background var(--dur-1), width var(--dur-1); }
|
|
10
|
+
.sy-split__handle::after { content: ''; position: relative; width: 4px; height: 2rem; border-radius: var(--r-full); background: var(--line-strong); opacity: 0; transition: opacity var(--dur-1); }
|
|
11
|
+
.sy-split__handle:hover::after, .sy-split__handle:focus-visible::after, .sy-split__handle[data-dragging]::after { opacity: 1; }
|
|
12
|
+
.sy-split__handle:hover::before, .sy-split__handle[data-dragging]::before { background: var(--line-strong); }
|
|
13
|
+
.sy-split__handle:focus-visible::before { width: 2px; background: var(--focus); }
|
|
14
|
+
.sy-split__handle:focus-visible::after { background: var(--focus); }
|
|
15
|
+
.sy-split--v > .sy-split__handle { width: auto; height: 0.75rem; margin-inline: 0; margin-block: -0.25rem; cursor: row-resize; }
|
|
16
|
+
.sy-split--v > .sy-split__handle::before { inset-block: auto; inset-inline: 0; top: 50%; left: 0; width: auto; height: 1px; translate: 0 -50%; }
|
|
17
|
+
.sy-split--v > .sy-split__handle:focus-visible::before { height: 2px; width: auto; }
|
|
18
|
+
.sy-split--v > .sy-split__handle::after { width: 2rem; height: 4px; }
|
|
19
|
+
.sy-split[data-dragging] { user-select: none; cursor: col-resize; }
|
|
20
|
+
.sy-split--v[data-dragging] { cursor: row-resize; }
|
|
21
|
+
@media (max-width: 40rem) {
|
|
22
|
+
.sy-split:not(.sy-split--keep) { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
|
|
23
|
+
.sy-split:not(.sy-split--keep) > .sy-split__handle { display: none; }
|
|
24
|
+
.sy-split:not(.sy-split--keep) > .sy-split__pane + .sy-split__handle + .sy-split__pane { border-top: 1px solid var(--line); }
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* ScrollArea: a region that scrolls on its own, with a shadow on the side where more is hidden. It can be focused,
|
|
28
|
+
so the keyboard scrolls it too. The shadows are pure CSS: covers that travel with the content. */
|
|
29
|
+
.sy-scroll { --_bg: var(--scroll-bg, var(--bg)); --_shade: color-mix(in oklab, var(--fg) 14%, transparent); max-height: var(--max-h, 20rem); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; outline: none; border-radius: inherit;
|
|
30
|
+
background:
|
|
31
|
+
linear-gradient(var(--_bg) 30%, transparent) top / 100% 1.75rem no-repeat local,
|
|
32
|
+
linear-gradient(transparent, var(--_bg) 70%) bottom / 100% 1.75rem no-repeat local,
|
|
33
|
+
radial-gradient(farthest-side at 50% 0, var(--_shade), transparent) top / 100% 0.6rem no-repeat scroll,
|
|
34
|
+
radial-gradient(farthest-side at 50% 100%, var(--_shade), transparent) bottom / 100% 0.6rem no-repeat scroll,
|
|
35
|
+
var(--_bg); }
|
|
36
|
+
.sy-scroll--x { max-height: none; overflow-y: hidden; overscroll-behavior-y: auto;
|
|
37
|
+
background:
|
|
38
|
+
linear-gradient(to right, var(--_bg) 30%, transparent) left / 1.75rem 100% no-repeat local,
|
|
39
|
+
linear-gradient(to left, var(--_bg) 30%, transparent) right / 1.75rem 100% no-repeat local,
|
|
40
|
+
radial-gradient(farthest-side at 0 50%, var(--_shade), transparent) left / 0.6rem 100% no-repeat scroll,
|
|
41
|
+
radial-gradient(farthest-side at 100% 50%, var(--_shade), transparent) right / 0.6rem 100% no-repeat scroll,
|
|
42
|
+
var(--_bg); }
|
|
43
|
+
.sy-scroll:focus-visible { box-shadow: 0 0 0 2px var(--focus); }
|
|
44
|
+
|
|
45
|
+
/* The row of a Toolbar and of the TableToolbar: what you are looking at, and what you can do with it. */
|
|
46
|
+
.sy-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); min-width: 0; }
|
|
47
|
+
.sy-toolbar__start { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); flex: 1 1 12rem; min-width: 0; }
|
|
48
|
+
.sy-toolbar__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-inline-start: auto; }
|
|
49
|
+
.sy-toolbar .sy-input-group { flex: 1 1 12rem; max-width: 22rem; }
|
|
50
|
+
@media (max-width: 40rem) {
|
|
51
|
+
.sy-toolbar__start, .sy-toolbar .sy-input-group { flex-basis: 100%; max-width: none; }
|
|
52
|
+
.sy-toolbar__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin: 0; }
|
|
53
|
+
.sy-toolbar__actions > :only-child, .sy-toolbar__actions > :last-child:nth-child(odd) { grid-column: 1 / -1; }
|
|
54
|
+
.sy-toolbar__actions > .sy-btn { width: 100%; }
|
|
55
|
+
}
|
|
56
|
+
/* Toolbar: a row of controls that act on one thing. */
|
|
57
|
+
.sy-toolbar--bar { padding: var(--s-2) var(--s-3); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--bg-raised); }
|
|
58
|
+
.sy-toolbar--start { justify-content: flex-start; }
|
|
59
|
+
.sy-toolbar__group { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1); min-width: 0; }
|
|
60
|
+
.sy-toolbar__sep { align-self: stretch; width: 1px; min-height: 1.5rem; margin-block: var(--s-1); background: var(--line); flex: none; }
|
|
61
|
+
.sy-toolbar__spacer { flex: 1 1 0; }
|
|
62
|
+
@media (max-width: 40rem) {
|
|
63
|
+
/* Text buttons sit two by two; a group of icons stays a row. */
|
|
64
|
+
.sy-toolbar:not(.sy-toolbar--icons) > .sy-toolbar__group:not(.sy-toolbar__group--icons) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
|
|
65
|
+
.sy-toolbar:not(.sy-toolbar--icons) > .sy-toolbar__group:not(.sy-toolbar__group--icons) > .sy-btn { width: 100%; }
|
|
66
|
+
.sy-toolbar:not(.sy-toolbar--icons) > .sy-toolbar__sep, .sy-toolbar > .sy-toolbar__spacer { display: none; }
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* Container, Section, Center, AspectRatio, Sticky, Spacer, Show, labelled Divider. */
|
|
72
|
+
@layer sypnia.components {
|
|
73
|
+
.sy-wrap--narrow { width: min(100% - 2 * var(--gutter), var(--measure, 40rem)); }
|
|
74
|
+
.sy-wrap--wide { width: min(100% - 2 * var(--gutter), 120rem); }
|
|
75
|
+
.sy-section { display: grid; gap: var(--gap, var(--s-4)); padding-block: var(--gap-section); min-width: 0; }
|
|
76
|
+
.sy-section + .sy-section { border-top: 1px solid var(--line); }
|
|
77
|
+
.sy-section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-2) var(--s-4); }
|
|
78
|
+
.sy-section__text { display: grid; gap: var(--s-1); min-width: 0; flex: 1 1 20rem; }
|
|
79
|
+
.sy-section__title { font-size: var(--text-lg); font-weight: 600; line-height: var(--leading-ui); letter-spacing: -0.01em; text-wrap: balance; }
|
|
80
|
+
.sy-section__lead { font-size: var(--text-sm); color: var(--fg-muted); max-width: var(--measure); text-wrap: pretty; }
|
|
81
|
+
.sy-center { display: grid; place-items: center; min-height: var(--min-h, auto); text-align: center; }
|
|
82
|
+
.sy-ratio { aspect-ratio: var(--ratio, 16 / 9); overflow: hidden; border-radius: var(--r, 0); background: var(--bg-inset); }
|
|
83
|
+
.sy-ratio > :is(img, video, iframe, svg, picture) { width: 100%; height: 100%; object-fit: var(--fit, cover); display: block; border: 0; }
|
|
84
|
+
.sy-sticky { position: sticky; top: var(--top, 0); z-index: var(--z-sticky); }
|
|
85
|
+
.sy-sticky--bottom { top: auto; bottom: var(--bottom, 0); }
|
|
86
|
+
.sy-spacer { flex: 1 1 0; }
|
|
87
|
+
.sy-spacer--size { flex: none; inline-size: var(--size); block-size: var(--size); }
|
|
88
|
+
.sy-divider--label { display: flex; align-items: center; gap: var(--s-3); border: 0; font-size: var(--text-xs); color: var(--fg-muted); }
|
|
89
|
+
.sy-divider--label::before, .sy-divider--label::after { content: ''; flex: 1 1 0; border-top: 1px solid var(--line); }
|
|
90
|
+
/* Show: on screens wider than a breakpoint (above) or up to it (below). sm 40rem, md 56rem, lg 74rem. */
|
|
91
|
+
@media (max-width: 40rem) { .sy-above-sm { display: none !important; } }
|
|
92
|
+
@media (max-width: 56rem) { .sy-above-md { display: none !important; } }
|
|
93
|
+
@media (max-width: 74rem) { .sy-above-lg { display: none !important; } }
|
|
94
|
+
@media (min-width: 40.01rem) { .sy-below-sm { display: none !important; } }
|
|
95
|
+
@media (min-width: 56.01rem) { .sy-below-md { display: none !important; } }
|
|
96
|
+
@media (min-width: 74.01rem) { .sy-below-lg { display: none !important; } }
|
|
97
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/* Tabs, SegmentedControl, Pagination, Breadcrumb, Stepper. */
|
|
2
|
+
@layer sypnia.components {
|
|
3
|
+
/* Tabs: views of the same thing. The light moves to the active one. On phones the list wraps two by two. */
|
|
4
|
+
.sy-tabs { display: flex; gap: var(--s-5); border-bottom: 1px solid var(--line); min-width: 0; }
|
|
5
|
+
.sy-tab { position: relative; display: inline-flex; align-items: center; gap: 0.45em; padding: 0.65rem 0; border: 0; background: none; color: var(--fg-muted); font-weight: 600; font-size: var(--text-sm); text-decoration: none; cursor: pointer; white-space: nowrap; outline-offset: 4px; transition: color var(--dur-1); }
|
|
6
|
+
.sy-tab:hover { color: var(--fg); }
|
|
7
|
+
.sy-tab:is([aria-selected='true'], [aria-current='page'], [data-selected]) { color: var(--fg); }
|
|
8
|
+
.sy-tab::after { content: ''; position: absolute; left: 50%; bottom: -4px; width: 7px; height: 7px; border-radius: 50%; translate: -50% 0; background: var(--light-fill); box-shadow: 0 0 0 1.5px var(--light-ring), 0 0 0 4px var(--bg); scale: 0; transition: scale var(--dur-2) var(--ease-out); }
|
|
9
|
+
.sy-tab:is([aria-selected='true'], [aria-current='page'], [data-selected])::after { scale: 1; }
|
|
10
|
+
.sy-tab:disabled, .sy-tab[data-disabled] { opacity: 0.45; cursor: not-allowed; }
|
|
11
|
+
.sy-tabpanel { padding-top: var(--s-5); outline-offset: 4px; }
|
|
12
|
+
@media (max-width: 40rem) {
|
|
13
|
+
.sy-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); border-bottom: 0; }
|
|
14
|
+
.sy-tab { justify-content: center; min-height: var(--ctl-h); padding: 0 var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2); }
|
|
15
|
+
.sy-tab:is([aria-selected='true'], [aria-current='page'], [data-selected]) { border-color: var(--light); background: var(--state-selected); }
|
|
16
|
+
.sy-tab::after { display: none; }
|
|
17
|
+
.sy-tabs > .sy-tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* SegmentedControl: two to four views or modes, all visible, one chosen. */
|
|
21
|
+
.sy-seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 3px; border-radius: var(--r-2); background: var(--bg-inset); box-shadow: inset 0 0 0 1px var(--line); }
|
|
22
|
+
.sy-seg__item { display: inline-flex; align-items: center; justify-content: center; gap: 0.4em; min-height: calc(var(--ctl-h-sm) - 2px); padding: 0 0.8rem; border: 0; border-radius: 6px; background: none; color: var(--fg-muted); font-size: var(--text-xs); font-weight: 600; white-space: nowrap; cursor: pointer; transition: background var(--dur-1), color var(--dur-1); }
|
|
23
|
+
.sy-seg__item:hover { color: var(--fg); }
|
|
24
|
+
.sy-seg__item:is([aria-pressed='true'], [aria-checked='true'], [aria-selected='true']), .sy-seg__item:has(input:checked) { background: var(--bg-raised); color: var(--fg); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
|
|
25
|
+
.sy-seg__item input { position: absolute; opacity: 0; pointer-events: none; }
|
|
26
|
+
.sy-seg__item:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
|
|
27
|
+
@media (max-width: 40rem) { .sy-seg { display: grid; grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; } }
|
|
28
|
+
|
|
29
|
+
/* Pagination: every list or table longer than a page says how many there are, which ones you see, and lets you move.
|
|
30
|
+
On phones: previous, «page 3 of 12», next. */
|
|
31
|
+
.sy-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); font-size: var(--text-xs); color: var(--fg-muted); min-width: 0; }
|
|
32
|
+
.sy-pagination__pages { display: flex; align-items: center; gap: 0.2rem; list-style: none; margin: 0; padding: 0; }
|
|
33
|
+
.sy-pagination__page { display: inline-grid; place-content: center; min-width: var(--ctl-h-sm); height: var(--ctl-h-sm); padding: 0 0.4rem; border: 0; border-radius: 7px; background: none; color: var(--fg-soft); font-size: var(--text-xs); font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none; cursor: pointer; }
|
|
34
|
+
.sy-pagination__page:hover { background: var(--state-hover); color: var(--fg); }
|
|
35
|
+
.sy-pagination__page[aria-current='page'] { background: var(--light-fill); color: var(--on-light); box-shadow: 0 0 0 1.5px var(--light-ring); }
|
|
36
|
+
.sy-pagination__gap { min-width: 1.5rem; text-align: center; }
|
|
37
|
+
.sy-pagination__size { display: inline-flex; align-items: center; gap: 0.5rem; }
|
|
38
|
+
.sy-pagination__size .sy-input { width: auto; }
|
|
39
|
+
.sy-pagination__now { display: none; font-variant-numeric: tabular-nums; }
|
|
40
|
+
@media (max-width: 40rem) {
|
|
41
|
+
.sy-pagination { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
42
|
+
/* The list sits inside <nav>: the nav is what spans the bar. */
|
|
43
|
+
.sy-pagination > nav { grid-column: 1 / -1; min-width: 0; }
|
|
44
|
+
.sy-pagination__pages { display: grid; grid-template-columns: auto 1fr auto; }
|
|
45
|
+
.sy-pagination__pages > li:not(.sy-pagination__prev, .sy-pagination__next, .sy-pagination__now) { display: none; }
|
|
46
|
+
.sy-pagination__now { display: block; text-align: center; }
|
|
47
|
+
.sy-pagination__summary { grid-column: 1 / -1; }
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* Breadcrumb: where this page sits. The last item is the page itself. */
|
|
51
|
+
.sy-breadcrumb { display: flex; align-items: center; gap: 0.15rem; min-width: 0; font-size: var(--text-sm); list-style: none; margin: 0; padding: 0; }
|
|
52
|
+
.sy-breadcrumb > li { display: flex; align-items: center; gap: 0.15rem; min-width: 0; }
|
|
53
|
+
.sy-breadcrumb > li + li::before { content: '/'; color: var(--line-strong); padding-inline: 0.2rem; }
|
|
54
|
+
.sy-breadcrumb a, .sy-breadcrumb button { display: inline-flex; align-items: center; gap: 0.4em; max-width: 14rem; min-height: var(--ctl-h-sm); padding: 0 0.45rem; border: 0; border-radius: 7px; background: none; color: var(--fg-muted); text-decoration: none; font: inherit; font-weight: 500; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
55
|
+
.sy-breadcrumb :is(a, button):hover { background: var(--state-hover); color: var(--fg); }
|
|
56
|
+
.sy-breadcrumb [aria-current='page'] { color: var(--fg); font-weight: 600; padding-inline: 0.45rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
57
|
+
@media (max-width: 40rem) { .sy-breadcrumb > li:not(:nth-last-child(-n + 2)) { display: none; } .sy-breadcrumb > li:nth-last-child(2)::before { display: none; } }
|
|
58
|
+
|
|
59
|
+
/* Stepper: a task in a few steps, in order. It shows where you are and what is left. */
|
|
60
|
+
.sy-stepper { display: flex; gap: var(--s-2); list-style: none; margin: 0; padding: 0; counter-reset: sy-step; min-width: 0; }
|
|
61
|
+
.sy-stepper__step { flex: 1 1 0; min-width: 0; display: grid; gap: 0.4rem; counter-increment: sy-step; font-size: var(--text-xs); color: var(--fg-muted); font-weight: 600; }
|
|
62
|
+
.sy-stepper__step::before { content: ''; height: 3px; border-radius: 99px; background: var(--line); transition: background var(--dur-2); }
|
|
63
|
+
.sy-stepper__step[data-state='done']::before { background: var(--light); }
|
|
64
|
+
.sy-stepper__step[aria-current='step'] { color: var(--fg); }
|
|
65
|
+
.sy-stepper__step[aria-current='step']::before { background: var(--light-fill); box-shadow: 0 0 0 1px var(--light-ring), 0 0 0.7rem 0 color-mix(in oklab, var(--glow) 45%, transparent); }
|
|
66
|
+
.sy-stepper__label::before { content: counter(sy-step) '. '; font-variant-numeric: tabular-nums; }
|
|
67
|
+
.sy-stepper__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
68
|
+
@media (max-width: 40rem) { .sy-stepper__step:not([aria-current='step']) .sy-stepper__label { display: none; } .sy-stepper__step:not([aria-current='step']) { flex: 0 1 2.5rem; }
|
|
69
|
+
/* Finished: no step is current, so all of them share the width again. */
|
|
70
|
+
.sy-stepper:not(:has([aria-current='step'])) .sy-stepper__step { flex: 1 1 0; } }
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* Skeletons of the navigation pieces: the real boxes; only the widths of the bars are set here. */
|
|
74
|
+
@layer sypnia.components {
|
|
75
|
+
.sy-tabs[data-skeleton] .sy-tab .sy-skeleton { width: 5rem; }
|
|
76
|
+
.sy-tabs[data-skeleton] .sy-tab:nth-child(2n) .sy-skeleton { width: 6.5rem; }
|
|
77
|
+
.sy-tabs[data-skeleton] .sy-tab:first-child .sy-skeleton { width: 4rem; }
|
|
78
|
+
@media (max-width: 40rem) { .sy-tabs[data-skeleton] .sy-tab .sy-skeleton { width: 60%; } }
|
|
79
|
+
.sy-breadcrumb__item { display: inline-flex; align-items: center; min-height: var(--ctl-h-sm); padding: 0 0.45rem; }
|
|
80
|
+
.sy-breadcrumb[data-skeleton] .sy-skeleton { width: 5.5rem; }
|
|
81
|
+
.sy-breadcrumb[data-skeleton] li:last-child .sy-skeleton { width: 8rem; }
|
|
82
|
+
.sy-stepper[data-skeleton] .sy-stepper__label::before { content: none; }
|
|
83
|
+
.sy-stepper[data-skeleton] .sy-stepper__label { display: block; }
|
|
84
|
+
.sy-stepper[data-skeleton] .sy-stepper__label .sy-skeleton { width: 60%; }
|
|
85
|
+
@media (max-width: 40rem) { .sy-stepper[data-skeleton] .sy-stepper__label { display: none; } .sy-stepper[data-skeleton] .sy-stepper__step { flex: 1 1 0; } }
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* PaginationSkeleton: the same bar; bars where the summary, the page size, the pages and previous/next go. */
|
|
89
|
+
@layer sypnia.components {
|
|
90
|
+
.sy-pagination[data-skeleton] .sy-skeleton { display: inline-block; vertical-align: middle; }
|
|
91
|
+
.sy-pagination[data-skeleton] .sy-pagination__summary .sy-skeleton { width: 5.5rem; }
|
|
92
|
+
.sy-pagination[data-skeleton] .sy-pagination__size > .sy-skeleton--text { width: 3.5rem; }
|
|
93
|
+
.sy-pagination[data-skeleton] .sy-pagination__size > .sy-skeleton--ctl-sm { width: 4.5rem; }
|
|
94
|
+
.sy-pagination[data-skeleton] .sy-pagination__page { cursor: default; }
|
|
95
|
+
.sy-pagination[data-skeleton] .sy-pagination__page .sy-skeleton { width: 0.8rem; }
|
|
96
|
+
.sy-pagination[data-skeleton] :is(.sy-pagination__prev, .sy-pagination__next) .sy-skeleton { width: 4.5rem; }
|
|
97
|
+
.sy-pagination[data-skeleton] .sy-pagination__now .sy-skeleton { display: block; width: 6rem; margin-inline: auto; }
|
|
98
|
+
@media (max-width: 40rem) { .sy-pagination[data-skeleton] > div { grid-column: 1 / -1; min-width: 0; } }
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@layer sypnia.components {
|
|
102
|
+
/* The label of a tab panel, shown only while the tabs are not running. */
|
|
103
|
+
.sy-tabpanel__label { display: none; }
|
|
104
|
+
sy-tabs:not(:defined) > [role='tabpanel'] > .sy-tabpanel__label { display: block; padding: 0.6rem 1rem 0; font-size: var(--text-xs); font-weight: 600; color: var(--fg-muted); }
|
|
105
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/* Navigation of an app: switchers, the account menu, notifications, VerticalTabs, Wizard, the pages of a list, the
|
|
2
|
+
parts of the shell on their own, and the small helpers of a page. Shell parts reuse shell.css; here only what is new. */
|
|
3
|
+
@layer sypnia.components {
|
|
4
|
+
.sy-contents { display: contents; }
|
|
5
|
+
|
|
6
|
+
/* Switchers: the current one in a quiet button; the list with marks, details and a check. */
|
|
7
|
+
.sy-switcher { gap: 0.5rem; max-width: 16rem; padding-inline: 0.45rem; }
|
|
8
|
+
.sy-switcher .sy-avatar { width: 1.35rem; height: 1.35rem; font-size: 0.6rem; }
|
|
9
|
+
.sy-switcher__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
|
|
10
|
+
.sy-switcher > .sy-icon:last-child { width: 0.9rem; height: 0.9rem; color: var(--fg-muted); flex: none; }
|
|
11
|
+
.sy-switcher--compact { max-width: 11rem; }
|
|
12
|
+
.sy-switcher__light { width: 0.5rem; height: 0.5rem; border-radius: 50%; flex: none; background: var(--fg-muted); }
|
|
13
|
+
.sy-switcher__light--warn { background: var(--warn); box-shadow: 0 0 0 3px color-mix(in oklab, var(--warn) 25%, transparent); }
|
|
14
|
+
.sy-switcher__light--ok { background: var(--ok); }
|
|
15
|
+
.sy-switcher__popover { min-width: 15rem; }
|
|
16
|
+
.sy-switcher__filter { padding: var(--s-2) var(--s-2) 0; }
|
|
17
|
+
.sy-switcher__item .sy-avatar { width: 1.5rem; height: 1.5rem; font-size: 0.6rem; }
|
|
18
|
+
.sy-switcher__text { display: grid; min-width: 0; flex: 1 1 auto; }
|
|
19
|
+
.sy-switcher__text > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
20
|
+
.sy-switcher__text small { color: var(--fg-muted); font-size: var(--text-2xs); }
|
|
21
|
+
.sy-switcher__item > .sy-icon:last-child { color: var(--fg); margin-inline-start: auto; }
|
|
22
|
+
.sy-switcher__empty { padding: var(--s-3); color: var(--fg-muted); font-size: var(--text-xs); }
|
|
23
|
+
.sy-switcher[data-skeleton] .sy-skeleton--text { width: 7rem; }
|
|
24
|
+
@media (max-width: 40rem) { .sy-switcher { max-width: 9rem; } }
|
|
25
|
+
|
|
26
|
+
/* UserMenu: the avatar as the button; the menu opens with who is signed in. */
|
|
27
|
+
.sy-usermenu { padding: 0; width: var(--ctl-h); border-radius: 50%; }
|
|
28
|
+
.sy-usermenu__menu { min-width: 15rem; }
|
|
29
|
+
.sy-usermenu__head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3) var(--s-3); }
|
|
30
|
+
.sy-usermenu__head > span { display: grid; min-width: 0; }
|
|
31
|
+
.sy-usermenu__head b { font-weight: 600; }
|
|
32
|
+
.sy-usermenu__head small { color: var(--fg-muted); font-size: var(--text-xs); overflow: hidden; text-overflow: ellipsis; }
|
|
33
|
+
|
|
34
|
+
/* NotificationBell and NotificationList. */
|
|
35
|
+
.sy-bell { position: relative; }
|
|
36
|
+
.sy-bell__count { position: absolute; top: 2px; right: 2px; min-width: 1.05rem; height: 1.05rem; padding: 0 0.25rem; border-radius: 99px; background: var(--light-fill); box-shadow: 0 0 0 1.5px var(--light-ring), 0 0 0 3px var(--bg); color: var(--on-light); font-size: 0.625rem; font-weight: 700; line-height: 1.05rem; text-align: center; font-variant-numeric: tabular-nums; }
|
|
37
|
+
.sy-bell__popover { width: min(22rem, calc(100vw - 1rem)); max-width: none; }
|
|
38
|
+
.sy-bell__dialog { outline: none; max-height: min(28rem, 70dvh); overflow-y: auto; overscroll-behavior: contain; }
|
|
39
|
+
.sy-notifs { display: grid; min-width: 0; }
|
|
40
|
+
.sy-notifs__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4); border-bottom: 1px solid var(--line); }
|
|
41
|
+
.sy-notifs__count { font-size: var(--text-xs); font-weight: 600; color: var(--fg-soft); }
|
|
42
|
+
.sy-notifs__empty { margin: 0; padding: var(--s-6) var(--s-4); text-align: center; color: var(--fg-muted); font-size: var(--text-sm); }
|
|
43
|
+
.sy-notifs__list { list-style: none; margin: 0; padding: var(--s-1); display: grid; gap: 1px; }
|
|
44
|
+
.sy-notifs__item > :is(a, button, .sy-notifs__row) {
|
|
45
|
+
display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: var(--s-3); width: 100%; padding: var(--s-3);
|
|
46
|
+
border: 0; border-radius: var(--r-2); background: none; color: inherit; font: inherit; text-align: start; text-decoration: none; cursor: pointer;
|
|
47
|
+
}
|
|
48
|
+
.sy-notifs__item > :is(a, button):hover { background: var(--state-hover); }
|
|
49
|
+
.sy-notifs__item > :is(a, button):focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
|
|
50
|
+
.sy-notifs__icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--r-2); background: var(--bg-inset); color: var(--fg-soft); }
|
|
51
|
+
.sy-notifs__icon .sy-icon { width: 1.1rem; height: 1.1rem; }
|
|
52
|
+
.sy-notifs__icon--fail { color: var(--fail-text); background: var(--fail-bg); }
|
|
53
|
+
.sy-notifs__icon--warn { color: var(--warn-text, var(--fg)); background: color-mix(in oklab, var(--warn) 16%, transparent); }
|
|
54
|
+
.sy-notifs__icon--ok { color: var(--ok-text); background: var(--ok-bg); }
|
|
55
|
+
.sy-notifs__text { display: grid; gap: 0.15rem; min-width: 0; font-size: var(--text-sm); }
|
|
56
|
+
.sy-notifs__text b { font-weight: 600; }
|
|
57
|
+
.sy-notifs__text > span { color: var(--fg-soft); font-size: var(--text-xs); line-height: 1.45; }
|
|
58
|
+
.sy-notifs__text time { color: var(--fg-muted); font-size: var(--text-2xs); }
|
|
59
|
+
.sy-notifs__item--unread .sy-notifs__text b { color: var(--fg); }
|
|
60
|
+
.sy-notifs__dot { width: 0.5rem; height: 0.5rem; margin-top: 0.4rem; border-radius: 50%; background: var(--light-fill); box-shadow: 0 0 0 1.5px var(--light-ring); }
|
|
61
|
+
.sy-notifs[data-skeleton] .sy-notifs__text .sy-skeleton:first-child { width: 70%; }
|
|
62
|
+
.sy-notifs[data-skeleton] .sy-notifs__text .sy-skeleton:last-child { width: 45%; }
|
|
63
|
+
|
|
64
|
+
/* VerticalTabs: the list down the side, the light on the current one; on phones on top, two by two. */
|
|
65
|
+
.sy-vtabs { display: grid; grid-template-columns: minmax(10rem, 13rem) minmax(0, 1fr); gap: var(--s-6); min-width: 0; }
|
|
66
|
+
.sy-vtabs__list { display: flex; flex-direction: column; gap: 2px; }
|
|
67
|
+
.sy-vtab { position: relative; display: flex; align-items: center; gap: 0.6rem; min-height: var(--ctl-h-sm); padding: 0.35rem 0.7rem; border-radius: 7px; color: var(--fg-soft); font-size: var(--text-sm); font-weight: 500; cursor: pointer; outline: none; }
|
|
68
|
+
.sy-vtab .sy-icon { width: 1.1rem; height: 1.1rem; color: var(--fg-muted); }
|
|
69
|
+
.sy-vtab[data-hovered] { background: var(--state-hover); color: var(--fg); }
|
|
70
|
+
.sy-vtab[data-selected] { background: var(--state-selected); color: var(--fg); font-weight: 600; }
|
|
71
|
+
.sy-vtab[data-selected]::before { content: ''; position: absolute; left: -0.6rem; top: 50%; width: 6px; height: 6px; border-radius: 50%; translate: 0 -50%; background: var(--light-fill); box-shadow: 0 0 0 1.5px var(--light-ring); }
|
|
72
|
+
.sy-vtab[data-focus-visible] { outline: 2px solid var(--focus); outline-offset: 2px; }
|
|
73
|
+
.sy-vtab[data-disabled] { opacity: 0.45; cursor: not-allowed; }
|
|
74
|
+
.sy-vtabs__panel { min-width: 0; outline: none; }
|
|
75
|
+
.sy-vtabs[data-skeleton] .sy-vtab .sy-skeleton--text { width: 6rem; }
|
|
76
|
+
.sy-vtabs[data-skeleton] .sy-vtabs__panel .sy-skeleton:last-child { width: 60%; }
|
|
77
|
+
@media (max-width: 40rem) {
|
|
78
|
+
.sy-vtabs { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
|
|
79
|
+
.sy-vtabs__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
|
|
80
|
+
.sy-vtab { justify-content: center; min-height: var(--ctl-h); border: 1px solid var(--line); border-radius: var(--r-2); }
|
|
81
|
+
.sy-vtab[data-selected] { border-color: var(--light); }
|
|
82
|
+
.sy-vtab[data-selected]::before { display: none; }
|
|
83
|
+
.sy-vtabs__list > .sy-vtab:last-child:nth-child(odd) { grid-column: 1 / -1; }
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* Wizard. */
|
|
87
|
+
.sy-wizard { display: grid; gap: var(--gap-stack); min-width: 0; }
|
|
88
|
+
.sy-wizard__title { margin: var(--s-2) 0 0; font-family: var(--font-voice); font-size: var(--text-xl); font-weight: 500; line-height: 1.2; outline: none; }
|
|
89
|
+
.sy-wizard__body { min-width: 0; }
|
|
90
|
+
|
|
91
|
+
/* Pages of a list without a total, and loading more. */
|
|
92
|
+
.sy-cursor-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); font-size: var(--text-xs); color: var(--fg-muted); }
|
|
93
|
+
.sy-cursor-pages__buttons { display: flex; gap: var(--s-2); margin-inline-start: auto; }
|
|
94
|
+
@media (max-width: 40rem) { .sy-cursor-pages__buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; } .sy-cursor-pages__buttons .sy-btn { width: 100%; } }
|
|
95
|
+
.sy-loadmore { display: grid; justify-items: center; padding-block: var(--s-3); }
|
|
96
|
+
.sy-loadmore__end { font-size: var(--text-xs); color: var(--fg-muted); }
|
|
97
|
+
@media (max-width: 40rem) { .sy-loadmore > .sy-btn { width: 100%; } }
|
|
98
|
+
|
|
99
|
+
.sy-navgroup__chev { margin-inline-start: auto; width: 0.9rem !important; height: 0.9rem !important; transition: rotate var(--dur-1); }
|
|
100
|
+
.sy-navgroup--open .sy-navgroup__chev { rotate: 180deg; }
|
|
101
|
+
.sy-navgroup__head > span { flex: 1 1 0; }
|
|
102
|
+
.sy-navgroup__items { display: grid; gap: 2px; padding-inline-start: 1.15rem; margin-inline-start: 0.65rem; border-inline-start: 1px solid var(--line); }
|
|
103
|
+
|
|
104
|
+
/* Small helpers of a page. */
|
|
105
|
+
.sy-backtotop { position: fixed; right: var(--s-5); bottom: var(--s-5); z-index: var(--z-sticky); border-radius: 50%; box-shadow: var(--shadow-2); animation: sy-enter var(--dur-2) var(--ease-out) both; --shift: 0.5rem; }
|
|
106
|
+
@media (max-width: 40rem) { .sy-backtotop { bottom: calc(var(--s-4) + 3.5rem); right: var(--s-4); } }
|
|
107
|
+
.sy-anchornav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-inline-start: 1px solid var(--line); }
|
|
108
|
+
.sy-anchornav a { position: relative; display: block; padding: 0.3rem 0.8rem; color: var(--fg-muted); font-size: var(--text-xs); text-decoration: none; border-radius: 0 var(--r-1) var(--r-1) 0; }
|
|
109
|
+
.sy-anchornav a:hover { color: var(--fg); }
|
|
110
|
+
.sy-anchornav a[aria-current] { color: var(--fg); font-weight: 600; }
|
|
111
|
+
.sy-anchornav a[aria-current]::before { content: ''; position: absolute; left: -4px; top: 50%; width: 7px; height: 7px; border-radius: 50%; translate: 0 -50%; background: var(--light-fill); box-shadow: 0 0 0 1.5px var(--light-ring); }
|
|
112
|
+
.sy-linkcard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); padding: var(--pad-panel); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--bg-raised); color: inherit; text-decoration: none; transition: border-color var(--dur-1), translate var(--dur-1); }
|
|
113
|
+
.sy-linkcard:hover { border-color: var(--line-strong); }
|
|
114
|
+
.sy-linkcard:hover .sy-linkcard__arrow { translate: 3px 0; }
|
|
115
|
+
.sy-linkcard:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
|
|
116
|
+
.sy-linkcard__icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: var(--r-2); background: var(--bg-inset); }
|
|
117
|
+
.sy-linkcard__text { display: grid; gap: 0.2rem; min-width: 0; grid-column: 2; }
|
|
118
|
+
.sy-linkcard__text b { font-weight: 600; }
|
|
119
|
+
.sy-linkcard__text > span { color: var(--fg-soft); font-size: var(--text-sm); }
|
|
120
|
+
.sy-linkcard__arrow { color: var(--fg-muted); transition: translate var(--dur-1); }
|
|
121
|
+
.sy-linkcard[data-skeleton] .sy-skeleton:first-child { width: 9rem; }
|
|
122
|
+
.sy-linkcard[data-skeleton] .sy-skeleton:last-child { width: 70%; }
|
|
123
|
+
.sy-langswitch { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--fg-muted); }
|
|
124
|
+
.sy-langswitch .sy-input { width: auto; }
|
|
125
|
+
.sy-productswitch { width: min(20rem, calc(100vw - 1rem)); max-width: none; }
|
|
126
|
+
.sy-productswitch__body { padding: var(--s-2); outline: none; }
|
|
127
|
+
.sy-productswitch__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
|
|
128
|
+
.sy-productswitch__grid a { display: grid; justify-items: center; gap: 0.3rem; padding: var(--s-3) var(--s-1); border-radius: var(--r-2); color: var(--fg-soft); text-decoration: none; text-align: center; font-size: var(--text-xs); }
|
|
129
|
+
.sy-productswitch__grid a:hover { background: var(--state-hover); color: var(--fg); }
|
|
130
|
+
.sy-productswitch__grid a[aria-current] { background: var(--state-selected); color: var(--fg); }
|
|
131
|
+
.sy-productswitch__grid b { font-weight: 600; }
|
|
132
|
+
.sy-productswitch__grid small { color: var(--fg-muted); font-size: var(--text-2xs); }
|
|
133
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/* Floating layers: Dialog, ConfirmDialog, Drawer, Sheet, Popover, Menu, Tooltip, Toast.
|
|
2
|
+
All of them live in one layer on <body>, never inside the page: a transformed or animated ancestor would make
|
|
3
|
+
`position: fixed` relative to the content. The layer root has no transform, filter or contain of its own. */
|
|
4
|
+
@layer sypnia.components {
|
|
5
|
+
html.sy-locked, html.sy-locked body { overflow: hidden; }
|
|
6
|
+
html.sy-locked { padding-inline-end: var(--sy-scroll-gap, 0); }
|
|
7
|
+
|
|
8
|
+
.sy-scrim { position: fixed; inset: 0; z-index: var(--z-layer); background: var(--scrim); display: grid; place-items: center; padding: var(--s-4); overflow-y: auto; overscroll-behavior: contain; animation: sy-fade var(--dur-2) var(--ease-out) both; }
|
|
9
|
+
/* Leaving needs its own keyframes: the same animation name with «reverse» does not run again, the exit never ends,
|
|
10
|
+
and React Aria keeps an invisible scrim over the page that eats every click. */
|
|
11
|
+
@keyframes sy-fade-out { to { opacity: 0; } }
|
|
12
|
+
.sy-scrim[data-exiting] { animation: sy-fade-out var(--dur-1) var(--ease-in) both; }
|
|
13
|
+
.sy-scrim--drawer { place-items: stretch end; padding: 0; overflow: hidden; }
|
|
14
|
+
.sy-scrim--sheet { place-items: end stretch; padding: 0; overflow: hidden; }
|
|
15
|
+
.sy-scrim--top { place-items: start center; padding-top: min(14vh, 8rem); }
|
|
16
|
+
|
|
17
|
+
/* Dialog: a decision or a short task that needs the person now. If it scrolls a lot or has many fields, use a Drawer. */
|
|
18
|
+
@keyframes sy-dialog-in { from { opacity: 0; scale: 0.97; translate: 0 var(--shift); } }
|
|
19
|
+
.sy-dialog { position: relative; width: min(100%, var(--_w, 30rem)); max-height: calc(100dvh - 2 * var(--s-4)); display: flex; flex-direction: column; background: var(--bg-raised); color: var(--fg); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--shadow-3); outline: none; animation: sy-dialog-in var(--dur-2) var(--ease-out) both; }
|
|
20
|
+
.sy-dialog--sm { --_w: 24rem; } .sy-dialog--lg { --_w: 44rem; } .sy-dialog--xl { --_w: 64rem; }
|
|
21
|
+
[data-exiting] > .sy-dialog { animation: sy-fade-out var(--dur-1) var(--ease-in) both; }
|
|
22
|
+
.sy-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-4) 0 var(--s-5); }
|
|
23
|
+
.sy-dialog__title { font-family: var(--font-voice); font-weight: 400; font-size: var(--text-lg); letter-spacing: var(--track-voice); word-spacing: 0; line-height: 1.25; padding-top: 0.25rem; text-wrap: balance; }
|
|
24
|
+
.sy-dialog__body { padding: var(--s-3) var(--s-5) var(--s-5); overflow-y: auto; overscroll-behavior: contain; display: grid; gap: var(--gap-stack); font-size: var(--text-sm); color: var(--fg-soft); line-height: 1.5; }
|
|
25
|
+
.sy-dialog__foot { padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line); }
|
|
26
|
+
.sy-dialog__head + .sy-dialog__foot { border-top: 0; }
|
|
27
|
+
@media (max-width: 40rem) { .sy-dialog { align-self: end; } .sy-scrim:has(> .sy-dialog) { place-items: end center; } }
|
|
28
|
+
|
|
29
|
+
/* Drawer: a longer task beside the page (create, edit, inspect) without losing the place. On phones it fills the screen. */
|
|
30
|
+
@keyframes sy-drawer-in { from { translate: 100% 0; } }
|
|
31
|
+
.sy-drawer { width: min(100vw, var(--_w, 32rem)); height: 100dvh; display: flex; flex-direction: column; background: var(--bg-raised); color: var(--fg); border-inline-start: 1px solid var(--line); box-shadow: var(--shadow-3); outline: none; animation: sy-drawer-in var(--dur-2) var(--ease-out) both; }
|
|
32
|
+
.sy-drawer--lg { --_w: 46rem; }
|
|
33
|
+
@keyframes sy-drawer-out { to { translate: 100% 0; } }
|
|
34
|
+
[data-exiting] > .sy-drawer { animation: sy-drawer-out var(--dur-1) var(--ease-in) both; }
|
|
35
|
+
.sy-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-3) var(--s-3) var(--s-5); border-bottom: 1px solid var(--line); min-height: 3.5rem; }
|
|
36
|
+
.sy-drawer__title { font-size: var(--text-md); font-weight: 600; }
|
|
37
|
+
.sy-drawer__body { flex: 1 1 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--s-5); display: grid; gap: var(--gap-stack); align-content: start; }
|
|
38
|
+
.sy-drawer__foot { padding: var(--s-3) var(--s-5); border-top: 1px solid var(--line); }
|
|
39
|
+
|
|
40
|
+
/* Sheet: on phones, options that come up from the bottom edge (the «More» of the navigation, a menu). */
|
|
41
|
+
@keyframes sy-sheet-in { from { translate: 0 100%; } }
|
|
42
|
+
.sy-sheet { width: 100%; max-height: 85dvh; display: flex; flex-direction: column; background: var(--bg-raised); color: var(--fg); border-top: 1px solid var(--line); border-radius: var(--r-3) var(--r-3) 0 0; box-shadow: var(--shadow-3); padding-bottom: env(safe-area-inset-bottom); outline: none; animation: sy-sheet-in var(--dur-2) var(--ease-out) both; }
|
|
43
|
+
.sy-sheet::before { content: ''; width: 2.25rem; height: 0.25rem; border-radius: 99px; background: var(--line-strong); margin: 0.5rem auto 0; flex: none; }
|
|
44
|
+
@keyframes sy-sheet-out { to { translate: 0 100%; } }
|
|
45
|
+
[data-exiting] > .sy-sheet { animation: sy-sheet-out var(--dur-1) var(--ease-in) both; }
|
|
46
|
+
.sy-sheet__body { overflow-y: auto; padding: var(--s-4); display: grid; gap: var(--s-3); }
|
|
47
|
+
|
|
48
|
+
/* Popover and Menu: anchored to what opened them. */
|
|
49
|
+
@keyframes sy-pop-in { from { opacity: 0; scale: 0.97; } }
|
|
50
|
+
.sy-popover { min-width: 10rem; max-width: min(24rem, calc(100vw - 1.5rem)); background: var(--bg-raised); color: var(--fg); border: 1px solid var(--line); border-radius: var(--r-2); box-shadow: var(--shadow-2); outline: none; font-size: var(--text-sm); animation: sy-pop-in var(--dur-1) var(--ease-out) both; transform-origin: var(--trigger-anchor-point, top); }
|
|
51
|
+
.sy-popover[data-exiting] { animation: sy-fade-out var(--dur-0) both; }
|
|
52
|
+
.sy-popover__body { padding: var(--s-4); display: grid; gap: var(--s-3); }
|
|
53
|
+
.sy-menu { padding: 0.3rem; margin: 0; list-style: none; outline: none; max-height: min(24rem, 60dvh); overflow-y: auto; min-width: 11rem; }
|
|
54
|
+
.sy-menu__item { display: flex; align-items: center; gap: 0.6rem; min-height: var(--ctl-h-sm); padding: 0.3rem 0.6rem; border: 0; border-radius: 6px; background: none; color: var(--fg); font-size: var(--text-sm); text-align: start; text-decoration: none; cursor: pointer; outline: none; width: 100%; }
|
|
55
|
+
.sy-menu__item:is(:hover, [data-focused], :focus-visible) { background: var(--state-hover); }
|
|
56
|
+
.sy-menu__item:is([data-pressed], :active) { background: var(--state-press); }
|
|
57
|
+
.sy-menu__item:is([data-disabled], :disabled) { opacity: 0.45; cursor: not-allowed; }
|
|
58
|
+
.sy-menu__item[data-selected], .sy-menu__item[aria-checked='true'], .sy-menu__item[aria-current] { background: var(--state-selected); }
|
|
59
|
+
.sy-menu__item--danger { color: var(--fail-text); }
|
|
60
|
+
.sy-menu__item > .sy-icon { color: var(--fg-muted); width: 1.1rem; height: 1.1rem; }
|
|
61
|
+
.sy-menu__item--danger > .sy-icon { color: inherit; }
|
|
62
|
+
.sy-menu__item > .sy-kbd, .sy-menu__item > .sy-menu__end { margin-inline-start: auto; }
|
|
63
|
+
.sy-menu__label { padding: 0.5rem 0.6rem 0.25rem; font-size: var(--text-2xs); font-weight: 600; color: var(--fg-muted); }
|
|
64
|
+
.sy-menu__sep { height: 1px; margin: 0.3rem -0.3rem; background: var(--line); border: 0; }
|
|
65
|
+
|
|
66
|
+
/* Tooltip: the name of an icon button or the full text of something cut. Never the only place for information. */
|
|
67
|
+
.sy-tooltip { max-width: 18rem; padding: 0.35rem 0.55rem; border-radius: var(--r-1); background: var(--fg); color: var(--bg); font-size: var(--text-xs); font-weight: 500; line-height: 1.35; box-shadow: var(--shadow-2); animation: sy-fade var(--dur-1) both; pointer-events: none; }
|
|
68
|
+
/* Without JavaScript (docs, landings): data-tip on a focusable element. */
|
|
69
|
+
[data-tip] { position: relative; }
|
|
70
|
+
[data-tip]::after { content: attr(data-tip); position: absolute; z-index: var(--z-sticky); bottom: calc(100% + 0.4rem); left: 50%; translate: -50% 0; width: max-content; max-width: 16rem; padding: 0.35rem 0.55rem; border-radius: var(--r-1); background: var(--fg); color: var(--bg); font-size: var(--text-xs); font-weight: 500; line-height: 1.35; white-space: normal; opacity: 0; pointer-events: none; transition: opacity var(--dur-1) 0s; }
|
|
71
|
+
[data-tip]:is(:hover, :focus-visible)::after { opacity: 1; transition-delay: 0.35s; }
|
|
72
|
+
|
|
73
|
+
/* Toast: the answer to something the person just did («Saved», «Copied»). It leaves by itself; it never asks. */
|
|
74
|
+
.sy-toasts { position: fixed; z-index: var(--z-toast); inset-inline: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: var(--s-2); padding: var(--s-4); pointer-events: none; }
|
|
75
|
+
@media (min-width: 40rem) { .sy-toasts { align-items: flex-end; padding: var(--s-5); } }
|
|
76
|
+
.sy-toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 0.65rem; width: min(100%, 24rem); padding: 0.7rem 0.75rem 0.7rem 0.9rem; background: var(--bg-raised); color: var(--fg); border: 1px solid var(--line); border-radius: var(--r-2); box-shadow: var(--shadow-2); font-size: var(--text-sm); line-height: 1.4; animation: sy-enter var(--dur-2) var(--ease-out) both; }
|
|
77
|
+
.sy-toast[data-exiting] { animation: sy-fade-out var(--dur-1) var(--ease-in) both; }
|
|
78
|
+
.sy-toast > .sy-icon { margin-top: 0.1rem; color: var(--ok-text); }
|
|
79
|
+
.sy-toast--fail > .sy-icon { color: var(--fail-text); } .sy-toast--info > .sy-icon { color: var(--info-text); }
|
|
80
|
+
.sy-toast__text { flex: 1 1 0; min-width: 0; }
|
|
81
|
+
.sy-toast__text small { display: block; color: var(--fg-muted); font-size: var(--text-xs); }
|
|
82
|
+
.sy-toast .sy-btn { margin: -0.25rem 0; }
|
|
83
|
+
}
|
|
84
|
+
@layer sypnia.components {
|
|
85
|
+
/* The dialog element inside a Dialog, Drawer or Sheet: it only carries the role. */
|
|
86
|
+
.sy-overlay__content { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; outline: none; }
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* MenuSkeleton: the menu's own rows; only the widths of the bars are set here. */
|
|
90
|
+
@layer sypnia.components {
|
|
91
|
+
.sy-menu[data-skeleton] { min-width: 12rem; }
|
|
92
|
+
.sy-menu[data-skeleton] .sy-menu__item .sy-skeleton--text { width: 7rem; margin-block: 0; }
|
|
93
|
+
.sy-menu[data-skeleton] .sy-menu__item:nth-child(2n) .sy-skeleton--text { width: 9rem; }
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* A press outside a panel that cannot close (unsaved changes, a confirm at work) nudges it instead; with unsaved
|
|
97
|
+
changes a line above the buttons says how to close it. */
|
|
98
|
+
@layer sypnia.components {
|
|
99
|
+
@keyframes sy-nudge { 30% { scale: 1.015; } 60% { scale: 0.995; } }
|
|
100
|
+
.sy-nudge, .sy-nudge-2 { animation: sy-nudge var(--dur-2) var(--ease-out); }
|
|
101
|
+
.sy-nudge-2 { animation-name: sy-nudge-b; }
|
|
102
|
+
@keyframes sy-nudge-b { 30% { scale: 1.015; } 60% { scale: 0.995; } }
|
|
103
|
+
@media (prefers-reduced-motion: reduce) { .sy-nudge, .sy-nudge-2 { animation: none; } }
|
|
104
|
+
.sy-overlay__keep { margin: 0; }
|
|
105
|
+
.sy-overlay__keep:empty { display: none; }
|
|
106
|
+
.sy-overlay__keep--on { display: flex; gap: 0.5em; margin: 0 var(--pad-panel) var(--s-3); padding: var(--s-2) var(--s-3); border-radius: var(--r-2); background: var(--warn-bg); color: var(--fg); font-size: var(--text-xs); font-weight: 600; }
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@layer sypnia.components {
|
|
110
|
+
/* Lightbox scrim. */
|
|
111
|
+
.sy-scrim--lightbox { background: color-mix(in oklab, var(--bg) 94%, black); padding: 0; place-items: stretch; }
|
|
112
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* Primitives: the little look some behaviours need. */
|
|
2
|
+
@layer sypnia.components {
|
|
3
|
+
.sy-sr-only--focusable:focus, .sy-sr-only--focusable:focus-within { position: static; width: auto; height: auto; margin: 0; clip: auto; white-space: normal; overflow: visible; }
|
|
4
|
+
.sy-layer { position: fixed; z-index: var(--z-layer); }
|
|
5
|
+
.sy-layer--inset { inset: 0; }
|
|
6
|
+
.sy-positioned { position: fixed; z-index: var(--z-layer); }
|
|
7
|
+
.sy-collapsible { border-bottom: 1px solid var(--line); }
|
|
8
|
+
.sy-collapsible__head { margin: 0; font: inherit; }
|
|
9
|
+
.sy-collapsible__trigger { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); width: 100%; min-height: var(--ctl-h); padding: var(--s-3) 0; border: 0; background: none; color: var(--fg); font-size: var(--text-md); font-weight: 600; text-align: start; cursor: pointer; border-radius: var(--r-1); }
|
|
10
|
+
.sy-collapsible__trigger:hover { color: var(--fg); }
|
|
11
|
+
.sy-collapsible__icon { color: var(--fg-muted); transition: rotate var(--dur-2) var(--ease-out); }
|
|
12
|
+
.sy-collapsible[data-expanded] .sy-collapsible__icon { rotate: 180deg; }
|
|
13
|
+
.sy-collapsible__body { padding: 0 0 var(--s-4); color: var(--fg-soft); font-size: var(--text-sm); line-height: 1.6; }
|
|
14
|
+
.sy-hotkey { display: inline-flex; align-items: center; gap: 0.25em; white-space: nowrap; }
|
|
15
|
+
}
|