@sypnia/ui 0.0.0-stage → 0.2.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 +78 -0
- package/astro/DocsHeader.astro +45 -0
- package/astro/DocsHero.astro +13 -0
- package/astro/DocsShell.astro +103 -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 +37 -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 +65 -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-editor.css +14 -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 +466 -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 +107 -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 +35 -0
- package/css/tokens.css +409 -0
- package/dist/chunk-AXIJDECU.js +97 -0
- package/dist/chunk-P7RZ7TCP.js +108 -0
- package/dist/chunk-PGPCLRLZ.js +701 -0
- package/dist/chunk-UM27QNJ7.js +412 -0
- package/dist/dom/elements.d.ts +2 -0
- package/dist/dom/elements.js +558 -0
- package/dist/dom/index.d.ts +53 -0
- package/dist/dom/index.js +2 -0
- package/dist/i18n/index.d.ts +661 -0
- package/dist/i18n/index.js +1 -0
- package/dist/react/code-editor.d.ts +25 -0
- package/dist/react/code-editor.js +89 -0
- package/dist/react/index.d.ts +4461 -0
- package/dist/react/index.js +7807 -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 +119 -4
- package/src/characters/data.ts +13 -0
- package/src/characters/index.ts +23 -0
- package/src/dom/search.ts +78 -0
- package/src/i18n/index.ts +140 -0
- package/src/icons/data.ts +760 -0
- package/tokens/tokens.json +625 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/* Field (label, hint, error) and the controls it wraps: Input, Textarea, Select, Checkbox, Radio, Switch.
|
|
2
|
+
Every control has a visible label. The error says what is wrong and how to fix it, next to the control. */
|
|
3
|
+
@layer sypnia.components {
|
|
4
|
+
.sy-field { display: grid; gap: 0.4rem; align-content: start; min-width: 0; }
|
|
5
|
+
.sy-field__label { display: flex; align-items: baseline; gap: 0.5em; font-size: var(--text-sm); font-weight: 600; line-height: var(--leading-ui); }
|
|
6
|
+
.sy-field__label small { font-weight: 400; color: var(--fg-muted); font-size: var(--text-xs); }
|
|
7
|
+
.sy-field__hint { font-size: var(--text-xs); color: var(--fg-muted); line-height: 1.4; }
|
|
8
|
+
.sy-field__error { display: flex; gap: 0.4em; align-items: flex-start; font-size: var(--text-xs); font-weight: 600; color: var(--fail-text); line-height: 1.4; }
|
|
9
|
+
.sy-field__error .sy-icon { width: 1.1em; height: 1.1em; margin-top: 0.1em; }
|
|
10
|
+
|
|
11
|
+
.sy-input {
|
|
12
|
+
width: 100%; min-width: 0; min-height: var(--ctl-h); padding: 0 var(--ctl-px);
|
|
13
|
+
border: 1.5px solid var(--line-strong); border-radius: var(--r-2); background: var(--bg-inset); color: var(--fg);
|
|
14
|
+
font-size: var(--text-sm); line-height: 1.3; appearance: none;
|
|
15
|
+
transition: border-color var(--dur-1), box-shadow var(--dur-2), background var(--dur-1);
|
|
16
|
+
}
|
|
17
|
+
.sy-input::placeholder { color: var(--fg-muted); opacity: 0.8; }
|
|
18
|
+
.sy-input:hover:not(:disabled, :focus-visible) { border-color: var(--fg-muted); }
|
|
19
|
+
.sy-input:focus-visible, .sy-input[data-focused] { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px var(--focus-halo); }
|
|
20
|
+
.sy-input:disabled, .sy-input[data-disabled] { opacity: 0.5; cursor: not-allowed; }
|
|
21
|
+
.sy-input[readonly] { background: transparent; border-style: dashed; }
|
|
22
|
+
.sy-input--sm { min-height: var(--ctl-h-sm); padding-inline: var(--ctl-px-sm); font-size: var(--text-xs); border-radius: 7px; }
|
|
23
|
+
.sy-input--lg { min-height: var(--ctl-h-lg); font-size: var(--text-md); }
|
|
24
|
+
.sy-input--machine { font-family: var(--font-machine); font-size: 0.8125rem; letter-spacing: var(--track-machine); word-spacing: 0; }
|
|
25
|
+
.sy-field[data-invalid] .sy-input, .sy-input[aria-invalid='true'], .sy-input[data-invalid] { border-color: var(--fail); }
|
|
26
|
+
.sy-field[data-invalid] .sy-input:focus-visible, .sy-input[aria-invalid='true']:focus-visible { box-shadow: 0 0 0 4px color-mix(in oklab, var(--fail) 28%, transparent); }
|
|
27
|
+
/* iOS zooms into any field under 16 px: on touch screens fields are 16 px. */
|
|
28
|
+
@media (pointer: coarse) { .sy-input, .sy-input--sm { font-size: 1rem; } }
|
|
29
|
+
|
|
30
|
+
textarea.sy-input { padding-block: 0.6rem; min-height: calc(var(--ctl-h) * 2); line-height: 1.5; resize: vertical; field-sizing: content; }
|
|
31
|
+
select.sy-input { padding-inline-end: 2.4rem; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-size: 0.38rem 0.38rem; background-position: right 1.15rem center, right 0.77rem center; background-repeat: no-repeat; }
|
|
32
|
+
|
|
33
|
+
/* InputGroup: an input with something attached before or after it (a unit, an icon, a button). */
|
|
34
|
+
.sy-input-group { display: flex; align-items: stretch; min-width: 0; border: 1.5px solid var(--line-strong); border-radius: var(--r-2); background: var(--bg-inset); transition: border-color var(--dur-1), box-shadow var(--dur-2); }
|
|
35
|
+
.sy-input-group:focus-within { border-color: var(--focus); box-shadow: 0 0 0 4px var(--focus-halo); }
|
|
36
|
+
.sy-input-group > .sy-input { border: 0; background: transparent; box-shadow: none; flex: 1 1 0; min-height: calc(var(--ctl-h) - 3px); }
|
|
37
|
+
.sy-input-group__addon { display: inline-flex; align-items: center; gap: 0.4em; padding-inline: var(--ctl-px-sm); color: var(--fg-muted); font-size: var(--text-xs); white-space: nowrap; }
|
|
38
|
+
.sy-input-group__addon:first-child { padding-inline-end: 0; }
|
|
39
|
+
.sy-input-group > .sy-btn { border-radius: 6px; margin: 2px; --_h: calc(var(--ctl-h) - 7px); }
|
|
40
|
+
.sy-field[data-invalid] .sy-input-group { border-color: var(--fail); }
|
|
41
|
+
|
|
42
|
+
/* Checkbox and Radio: the native input, redrawn. The label is always clickable. */
|
|
43
|
+
.sy-check { display: inline-flex; align-items: flex-start; gap: 0.6rem; font-size: var(--text-sm); line-height: 1.35; cursor: pointer; min-height: 1.5rem; }
|
|
44
|
+
.sy-check:has(:disabled) { opacity: 0.5; cursor: not-allowed; }
|
|
45
|
+
.sy-check input { appearance: none; flex: none; width: 1.2rem; height: 1.2rem; margin: 0.05rem 0 0; border: 1.5px solid var(--line-strong); border-radius: var(--r-1); background: var(--bg-inset); display: grid; place-content: center; cursor: inherit; transition: background var(--dur-1), border-color var(--dur-1); }
|
|
46
|
+
.sy-check input[type='radio'] { border-radius: 50%; }
|
|
47
|
+
.sy-check input::after { content: ''; scale: 0; transition: scale var(--dur-1) var(--ease-out); }
|
|
48
|
+
.sy-check input[type='checkbox']::after { width: 0.7rem; height: 0.7rem; background: var(--on-light); clip-path: polygon(12% 52%, 0 66%, 38% 100%, 100% 22%, 86% 10%, 37% 72%); }
|
|
49
|
+
.sy-check input[type='radio']::after { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--on-light); }
|
|
50
|
+
.sy-check input:hover:not(:disabled) { border-color: var(--fg); }
|
|
51
|
+
.sy-check input:checked, .sy-check input[type='checkbox']:indeterminate { background: var(--light-fill); border-color: var(--light-fill); box-shadow: 0 0 0 1.5px var(--light-ring); }
|
|
52
|
+
.sy-check input:checked::after { scale: 1; }
|
|
53
|
+
.sy-check input[type='checkbox']:indeterminate::after { scale: 1; clip-path: none; width: 0.6rem; height: 2px; border-radius: 1px; }
|
|
54
|
+
.sy-check__text { display: grid; gap: 0.15rem; }
|
|
55
|
+
.sy-check__text small { color: var(--fg-muted); font-size: var(--text-xs); }
|
|
56
|
+
|
|
57
|
+
/* Switch: something that is on or off right now, applied at once. For a choice saved with a form, use Checkbox. */
|
|
58
|
+
.sy-switch { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); font-size: var(--text-sm); cursor: pointer; min-height: var(--ctl-h-sm); }
|
|
59
|
+
.sy-switch:has(:disabled) { opacity: 0.5; cursor: not-allowed; }
|
|
60
|
+
.sy-switch input { appearance: none; flex: none; position: relative; width: 2.5rem; height: 1.5rem; margin: 0; border-radius: 99px; border: 1.5px solid var(--line-strong); background: var(--bg-inset); cursor: inherit; transition: background var(--dur-2), border-color var(--dur-2); }
|
|
61
|
+
.sy-switch input::after { content: ''; position: absolute; top: 50%; left: 0.2rem; width: 0.95rem; height: 0.95rem; border-radius: 50%; background: var(--fg-muted); translate: 0 -50%; transition: translate var(--dur-2) var(--ease-out), background var(--dur-2), box-shadow var(--dur-2); }
|
|
62
|
+
.sy-switch input:checked { background: color-mix(in oklab, var(--light-fill) 24%, var(--bg-inset)); border-color: var(--light); }
|
|
63
|
+
.sy-switch input:checked::after { translate: 0.95rem -50%; background: var(--light-fill); box-shadow: 0 0 0 1.5px var(--light-ring), 0 0 0.7rem 0.05rem color-mix(in oklab, var(--glow) 45%, transparent); }
|
|
64
|
+
.sy-switch__text { display: grid; gap: 0.15rem; }
|
|
65
|
+
.sy-switch__text small { color: var(--fg-muted); font-size: var(--text-xs); }
|
|
66
|
+
|
|
67
|
+
/* Fieldset: a group of fields with one name. */
|
|
68
|
+
.sy-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: var(--gap-stack); }
|
|
69
|
+
.sy-fieldset > legend { padding: 0; font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--s-2); }
|
|
70
|
+
.sy-form { display: grid; gap: var(--gap-stack); min-width: 0; }
|
|
71
|
+
.sy-form-grid { display: grid; gap: var(--gap-stack) var(--s-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
72
|
+
.sy-form-grid > .sy-field--wide { grid-column: 1 / -1; }
|
|
73
|
+
@media (max-width: 40rem) { .sy-form-grid { grid-template-columns: minmax(0, 1fr); } }
|
|
74
|
+
/* ErrorSummary: after a failed submit, what to fix, each line a link to its field. */
|
|
75
|
+
.sy-error-summary { padding: var(--s-3) var(--s-4); border: 1px solid var(--fail-line); border-radius: var(--r-2); background: var(--fail-bg); font-size: var(--text-sm); }
|
|
76
|
+
.sy-error-summary ul { margin: var(--s-2) 0 0; padding-inline-start: 1.1rem; display: grid; gap: 0.2rem; }
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@layer sypnia.components {
|
|
80
|
+
/* ---- skeletons (CONTRIBUTING.md): a large control is as tall as the real one ---- */
|
|
81
|
+
.sy-field[data-skeleton] > .sy-field__hint .sy-skeleton, .sy-check__text > small > .sy-skeleton, .sy-switch__text > small > .sy-skeleton { display: block; }
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@layer sypnia.components {
|
|
85
|
+
/* ErrorSummary. */
|
|
86
|
+
.sy-error-summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
|
|
87
|
+
.sy-error-summary__title { display: flex; gap: 0.5em; align-items: center; font-weight: 600; color: var(--fail-text); }
|
|
88
|
+
.sy-error-summary__title .sy-icon { width: 1.15em; height: 1.15em; flex: none; }
|
|
89
|
+
.sy-error-summary a { color: inherit; text-decoration: underline; text-decoration-color: var(--fail-line); text-underline-offset: 0.2em; }
|
|
90
|
+
.sy-error-summary a:hover { text-decoration-color: currentColor; }
|
|
91
|
+
.sy-error-summary b { font-weight: 600; }
|
|
92
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/* Advanced fields: Select, Combobox, MultiSelect, NumberInput, Slider, choice groups and cards, Calendar and the date
|
|
2
|
+
and time pickers, TagInput, OtpInput, FileDrop, SlugInput. They all draw on .sy-input and .sy-input-group, so a form
|
|
3
|
+
made of plain and advanced fields reads as one thing. Lists and calendars that float use .sy-popover and .sy-menu. */
|
|
4
|
+
@layer sypnia.components {
|
|
5
|
+
/* Controls built on an input group: the group is the box, so the group shows focus, invalid and disabled. */
|
|
6
|
+
.sy-input-group:is([data-focus-within], :focus-within) { border-color: var(--focus); box-shadow: 0 0 0 4px var(--focus-halo); }
|
|
7
|
+
.sy-input-group[data-invalid], [data-invalid] > .sy-input-group { border-color: var(--fail); }
|
|
8
|
+
.sy-input-group[data-invalid]:focus-within, .sy-field[data-invalid] .sy-input-group:focus-within { box-shadow: 0 0 0 4px color-mix(in oklab, var(--fail) 28%, transparent); }
|
|
9
|
+
.sy-input-group[data-disabled] { opacity: 0.5; cursor: not-allowed; }
|
|
10
|
+
.sy-input-group[data-disabled] > .sy-input { opacity: 1; }
|
|
11
|
+
.sy-field[data-invalid] .sy-input-group > .sy-input:focus-visible, .sy-input-group > .sy-input[data-focused] { box-shadow: none; }
|
|
12
|
+
|
|
13
|
+
.sy-input-group:has(> .sy-input--sm) { --ctl-h: var(--ctl-h-sm); border-radius: 7px; }
|
|
14
|
+
|
|
15
|
+
/* A button that lives inside a control: the chevron of a combobox, the steppers of a number, the calendar of a date. */
|
|
16
|
+
.sy-ctl-btn { flex: none; display: grid; place-content: center; width: calc(var(--ctl-h) - 3px); min-height: calc(var(--ctl-h) - 3px); padding: 0; border: 0; border-radius: 6px; background: none; color: var(--fg-muted); cursor: pointer; outline: none; transition: background var(--dur-1), color var(--dur-1); }
|
|
17
|
+
.sy-ctl-btn:is([data-hovered], :hover) { color: var(--fg); background: var(--state-hover); }
|
|
18
|
+
.sy-ctl-btn[data-pressed] { background: var(--state-press); }
|
|
19
|
+
.sy-ctl-btn[data-focus-visible] { box-shadow: inset 0 0 0 2px var(--focus); color: var(--fg); }
|
|
20
|
+
.sy-ctl-btn[data-disabled] { cursor: not-allowed; opacity: 0.45; background: none; }
|
|
21
|
+
.sy-ctl-btn .sy-icon { width: 1.1rem; height: 1.1rem; }
|
|
22
|
+
.sy-ctl-btn--step { border-radius: 0; border-inline-start: 1px solid var(--line); }
|
|
23
|
+
.sy-ctl-btn--step:last-child { border-start-end-radius: 6px; border-end-end-radius: 6px; }
|
|
24
|
+
|
|
25
|
+
/* Select: looks like an input, opens a list. */
|
|
26
|
+
.sy-select, .sy-combobox, .sy-number, .sy-datepicker { display: block; min-width: 0; }
|
|
27
|
+
.sy-select__trigger { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; text-align: start; cursor: pointer; }
|
|
28
|
+
.sy-select__trigger[data-disabled] { cursor: not-allowed; }
|
|
29
|
+
.sy-select__trigger[data-pressed], .sy-select[data-open] .sy-select__trigger { border-color: var(--fg-muted); }
|
|
30
|
+
.sy-select[data-invalid] .sy-select__trigger { border-color: var(--fail); }
|
|
31
|
+
.sy-select__value { display: flex; align-items: center; gap: 0.5rem; min-width: 0; flex: 1 1 0; }
|
|
32
|
+
.sy-select__value > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
33
|
+
.sy-select__value[data-placeholder] { color: var(--fg-muted); }
|
|
34
|
+
.sy-select__value .sy-icon { flex: none; width: 1.1rem; height: 1.1rem; color: var(--fg-muted); }
|
|
35
|
+
.sy-select__chevron { flex: none; width: 1.1rem; height: 1.1rem; color: var(--fg-muted); transition: rotate var(--dur-1) var(--ease-out); }
|
|
36
|
+
.sy-select[data-open] .sy-select__chevron { rotate: 180deg; }
|
|
37
|
+
|
|
38
|
+
/* The list that floats under a Select, Combobox or MultiSelect: as wide as the control, never wider than the window. */
|
|
39
|
+
.sy-popover.sy-listbox-pop { min-width: var(--trigger-width, 10rem); max-width: max(var(--trigger-width, 0px), min(24rem, calc(100vw - 1.5rem))); display: flex; flex-direction: column; overflow: hidden; }
|
|
40
|
+
.sy-popover.sy-listbox-pop > .sy-menu { flex: 1 1 auto; min-height: 0; max-height: min(20rem, 50dvh); }
|
|
41
|
+
.sy-listopt { align-items: flex-start; padding-block: 0.4rem; }
|
|
42
|
+
.sy-listopt > .sy-icon { flex: none; margin-top: 0.1rem; }
|
|
43
|
+
.sy-listopt__text { flex: 1 1 0; min-width: 0; display: grid; gap: 0.1rem; line-height: 1.3; }
|
|
44
|
+
.sy-listopt__text small { color: var(--fg-muted); font-size: var(--text-xs); }
|
|
45
|
+
.sy-listopt > .sy-listopt__check { visibility: hidden; color: var(--fg); }
|
|
46
|
+
.sy-listopt[data-selected] > .sy-listopt__check { visibility: visible; }
|
|
47
|
+
.sy-listbox__empty { margin: 0; padding: 0.5rem 0.6rem; color: var(--fg-muted); font-size: var(--text-sm); }
|
|
48
|
+
.sy-listbox__loading { display: grid; gap: 0.9rem; padding: 0.7rem 0.6rem; }
|
|
49
|
+
|
|
50
|
+
/* MultiSelect and TagInput: chips and the text being typed share the box, and wrap. */
|
|
51
|
+
.sy-tags { flex-wrap: wrap; align-items: center; gap: 0.3rem; padding: 0.25rem 0.3rem; min-height: var(--ctl-h); cursor: text; }
|
|
52
|
+
.sy-tags > .sy-chip { min-height: calc(var(--ctl-h) - 0.5rem - 3px); padding-inline: 0.6rem 0.55rem; color: var(--fg); background: var(--bg-raised); max-width: 100%; }
|
|
53
|
+
.sy-tags > .sy-chip > .sy-chip__remove:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
|
|
54
|
+
.sy-tags__input { flex: 1 1 3rem; min-width: 3rem; min-height: calc(var(--ctl-h) - 0.5rem - 3px); padding: 0 0.4rem; border: 0; background: none; color: inherit; font-size: var(--text-sm); outline: none; }
|
|
55
|
+
.sy-tags__input::placeholder { color: var(--fg-muted); opacity: 0.8; }
|
|
56
|
+
.sy-tags:has(> .sy-ctl-btn) { position: relative; padding-inline-end: calc(var(--ctl-h) - 0.25rem); }
|
|
57
|
+
.sy-tags > .sy-ctl-btn { position: absolute; inset-block: 0; inset-inline-end: 0; height: 100%; }
|
|
58
|
+
@media (pointer: coarse) { .sy-tags__input { font-size: 1rem; } }
|
|
59
|
+
/* The cross of a chip looks small and is easy to hit: on touch screens its area grows around it. */
|
|
60
|
+
@media (pointer: coarse) { .sy-tags > .sy-chip > .sy-chip__remove { position: relative; } .sy-tags > .sy-chip > .sy-chip__remove::after { content: ''; position: absolute; inset: -0.75rem -0.5rem; } }
|
|
61
|
+
|
|
62
|
+
/* NumberInput */
|
|
63
|
+
.sy-number .sy-input { font-variant-numeric: tabular-nums; }
|
|
64
|
+
|
|
65
|
+
/* Slider and RangeSlider: the track is quiet; the thumb carries the light. */
|
|
66
|
+
.sy-slider { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-4); min-height: var(--ctl-h); }
|
|
67
|
+
.sy-slider__track { position: relative; height: var(--ctl-h-sm); margin-inline: 0.625rem; cursor: pointer; touch-action: none; }
|
|
68
|
+
.sy-slider__rail { position: absolute; inset-inline: 0; top: 50%; height: 0.375rem; translate: 0 -50%; border-radius: 99px; background: var(--bg-inset); box-shadow: inset 0 0 0 1px var(--line-strong); overflow: hidden; }
|
|
69
|
+
.sy-slider__fill { background: var(--fg-muted); }
|
|
70
|
+
.sy-slider__thumb { top: 50%; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--light-fill); box-shadow: 0 0 0 1.5px var(--light-ring), 0 0 0.7rem 0.05rem color-mix(in oklab, var(--glow) 40%, transparent); cursor: grab; transition: scale var(--dur-1) var(--ease-out), box-shadow var(--dur-1); }
|
|
71
|
+
.sy-slider__thumb::after { content: ''; position: absolute; inset: -0.75rem; border-radius: 50%; }
|
|
72
|
+
.sy-slider__thumb[data-hovered] { scale: 1.1; }
|
|
73
|
+
.sy-slider__thumb[data-dragging] { scale: 1.15; cursor: grabbing; }
|
|
74
|
+
.sy-slider__thumb[data-focus-visible] { outline: 2px solid var(--focus); outline-offset: 3px; }
|
|
75
|
+
.sy-slider__output { min-width: 3ch; text-align: end; font-size: var(--text-sm); font-variant-numeric: tabular-nums; color: var(--fg-soft); white-space: nowrap; }
|
|
76
|
+
.sy-slider[data-disabled] { opacity: 0.5; }
|
|
77
|
+
.sy-slider[data-disabled] :is(.sy-slider__track, .sy-slider__thumb) { cursor: not-allowed; }
|
|
78
|
+
|
|
79
|
+
/* CheckboxGroup and RadioGroup */
|
|
80
|
+
.sy-choices { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
|
|
81
|
+
.sy-choices--horizontal { flex-direction: row; flex-wrap: wrap; gap: var(--s-3) var(--s-5); }
|
|
82
|
+
.sy-choices[data-invalid] input, .sy-choice-cards[data-invalid] .sy-choice-card { border-color: var(--fail); }
|
|
83
|
+
@media (pointer: coarse) { .sy-choices > .sy-check { min-height: var(--ctl-h); align-items: center; } .sy-choices > .sy-check input { margin-top: 0; } }
|
|
84
|
+
|
|
85
|
+
/* RadioCards and CheckboxCard: the whole card is the control. */
|
|
86
|
+
.sy-choice-cards { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); min-width: 0; }
|
|
87
|
+
.sy-choice-card { display: flex; gap: 0.7rem; min-height: var(--ctl-h-lg); padding: var(--s-3) var(--s-4); border: 1.5px solid var(--line-strong); border-radius: var(--r-3); background: var(--bg-inset); transition: border-color var(--dur-1), background var(--dur-1), box-shadow var(--dur-2); }
|
|
88
|
+
.sy-choice-card:hover:not(:has(:disabled)) { border-color: var(--fg-muted); }
|
|
89
|
+
.sy-choice-card:has(input:checked) { border-color: var(--light); background: var(--state-selected); }
|
|
90
|
+
.sy-choice-card:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--focus-halo); border-color: var(--focus); }
|
|
91
|
+
.sy-choice-card .sy-check__text { flex: 1 1 0; min-width: 0; font-weight: 600; }
|
|
92
|
+
.sy-choice-card .sy-check__text small { font-weight: 400; line-height: 1.4; }
|
|
93
|
+
.sy-choice-card__icon { flex: none; color: var(--fg-muted); }
|
|
94
|
+
|
|
95
|
+
/* Calendar */
|
|
96
|
+
.sy-calendar { --_c: var(--ctl-h); width: fit-content; max-width: 100%; }
|
|
97
|
+
.sy-calendar__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-2); }
|
|
98
|
+
.sy-calendar__title { margin: 0; font-size: var(--text-sm); font-weight: 600; }
|
|
99
|
+
.sy-calendar__title::first-letter { text-transform: uppercase; }
|
|
100
|
+
.sy-calendar__grid { border-collapse: collapse; border-spacing: 0; }
|
|
101
|
+
.sy-calendar__grid td { padding: 1px 0; }
|
|
102
|
+
.sy-calendar__weekday { width: var(--_c); height: 1.75rem; padding: 0; font-size: var(--text-2xs); font-weight: 500; color: var(--fg-muted); text-align: center; }
|
|
103
|
+
.sy-calendar__cell { display: grid; place-content: center; width: var(--_c); height: var(--_c); border-radius: var(--r-2); font-size: var(--text-sm); font-variant-numeric: tabular-nums; cursor: pointer; outline: none; transition: background var(--dur-0); }
|
|
104
|
+
.sy-calendar__cell[data-hovered] { background: var(--state-hover); }
|
|
105
|
+
.sy-calendar__cell[data-pressed] { background: var(--state-press); }
|
|
106
|
+
.sy-calendar__cell[data-today] { font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
|
|
107
|
+
.sy-calendar__cell[data-outside-month] { color: var(--fg-muted); opacity: 0.45; cursor: default; }
|
|
108
|
+
.sy-calendar__cell:is([data-disabled], [data-unavailable]) { color: var(--fg-muted); opacity: 0.45; cursor: not-allowed; }
|
|
109
|
+
.sy-calendar__cell[data-unavailable] { text-decoration: line-through; }
|
|
110
|
+
.sy-calendar__cell[data-selected] { background: var(--light-fill); color: var(--on-light); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--light-ring); }
|
|
111
|
+
.sy-calendar__cell[data-focus-visible] { outline: 2px solid var(--focus); outline-offset: 2px; z-index: 1; position: relative; }
|
|
112
|
+
/* A range: the days between are tinted and joined; the two ends carry the light. */
|
|
113
|
+
.sy-calendar--range .sy-calendar__cell[data-selected] { background: var(--state-selected); color: var(--fg); font-weight: 400; box-shadow: none; border-radius: 0; }
|
|
114
|
+
.sy-calendar--range .sy-calendar__cell[data-selection-start] { border-start-start-radius: var(--r-2); border-end-start-radius: var(--r-2); }
|
|
115
|
+
.sy-calendar--range .sy-calendar__cell[data-selection-end] { border-start-end-radius: var(--r-2); border-end-end-radius: var(--r-2); }
|
|
116
|
+
.sy-calendar--range .sy-calendar__cell:is([data-selection-start], [data-selection-end]) { background: var(--light-fill); color: var(--on-light); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--light-ring); }
|
|
117
|
+
.sy-popover__body.sy-calendar-pop { padding: var(--s-3); outline: none; }
|
|
118
|
+
/* On a narrow phone seven columns must fit: the days shrink with the window. */
|
|
119
|
+
@media (max-width: 40rem) { .sy-calendar { --_c: min(var(--ctl-h), calc((100vw - 4rem) / 7)); } }
|
|
120
|
+
|
|
121
|
+
/* DatePicker, DateRangePicker, DateTimePicker, TimePicker: every part of the date is typed on its own. */
|
|
122
|
+
.sy-date { align-items: center; }
|
|
123
|
+
.sy-date__input { flex: 1 1 0; min-width: 0; display: flex; align-items: center; min-height: calc(var(--ctl-h) - 3px); padding-inline: var(--ctl-px) 0.25rem; font-size: var(--text-sm); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
|
|
124
|
+
.sy-date--time .sy-date__input { padding-inline-start: 0.5rem; }
|
|
125
|
+
.sy-date--time { align-self: start; width: fit-content; min-width: 9rem; max-width: 100%; }
|
|
126
|
+
.sy-date__seg { padding: 0.1rem 0.12rem; border-radius: 4px; outline: none; caret-color: transparent; }
|
|
127
|
+
.sy-date__seg[data-placeholder] { color: var(--fg-muted); }
|
|
128
|
+
.sy-date__seg[data-type='literal'] { padding-inline: 0; color: var(--fg-muted); }
|
|
129
|
+
.sy-date__seg[data-focused] { background: var(--light-fill); color: var(--on-light); box-shadow: 0 0 0 1.5px var(--light-ring); }
|
|
130
|
+
.sy-date__range { flex: 1 1 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; }
|
|
131
|
+
.sy-date__range .sy-date__input { flex: 0 1 auto; padding-inline-end: 0; }
|
|
132
|
+
.sy-date__range .sy-date__input + .sy-date__dash + .sy-date__input { padding-inline-start: 0; }
|
|
133
|
+
.sy-date__dash { padding-inline: 0.35rem; color: var(--fg-muted); }
|
|
134
|
+
@media (pointer: coarse) { .sy-date__input { font-size: 1rem; } }
|
|
135
|
+
|
|
136
|
+
/* OtpInput */
|
|
137
|
+
.sy-otp { display: flex; gap: var(--s-2); max-width: 100%; }
|
|
138
|
+
.sy-otp__box { flex: 0 1 var(--ctl-h-lg); width: var(--ctl-h-lg); min-height: var(--ctl-h-lg); padding: 0; text-align: center; font-family: var(--font-machine); font-size: var(--text-lg); caret-color: transparent; }
|
|
139
|
+
.sy-otp[data-invalid] .sy-otp__box { border-color: var(--fail); }
|
|
140
|
+
|
|
141
|
+
/* FileDrop */
|
|
142
|
+
.sy-filedrop { display: grid; gap: var(--s-3); min-width: 0; }
|
|
143
|
+
.sy-filedrop__zone { display: grid; justify-items: center; gap: var(--s-2); padding: var(--pad-panel); border: 1.5px dashed var(--line-strong); border-radius: var(--r-3); background: var(--bg-inset); color: var(--fg-soft); font-size: var(--text-sm); text-align: center; transition: border-color var(--dur-1), background var(--dur-1); }
|
|
144
|
+
.sy-filedrop__zone > .sy-icon { color: var(--fg-muted); }
|
|
145
|
+
.sy-filedrop__zone[data-drop-target] { border-color: var(--light); border-style: solid; background: var(--state-selected); color: var(--fg); }
|
|
146
|
+
.sy-filedrop__zone[data-disabled] { opacity: 0.5; }
|
|
147
|
+
.sy-filedrop[data-invalid] .sy-filedrop__zone { border-color: var(--fail); }
|
|
148
|
+
.sy-filedrop__problems { display: grid; gap: 0.3rem; }
|
|
149
|
+
.sy-filedrop__problems p { margin: 0; }
|
|
150
|
+
.sy-filedrop__files { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
|
|
151
|
+
.sy-filedrop__file { display: flex; align-items: center; gap: 0.75rem; min-height: var(--ctl-h); padding: 0.2rem 0.3rem 0.2rem 0.8rem; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--bg-raised); font-size: var(--text-sm); }
|
|
152
|
+
.sy-filedrop__name { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
153
|
+
.sy-filedrop__size { flex: none; color: var(--fg-muted); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
|
|
154
|
+
|
|
155
|
+
/* SlugInput: the fixed part of the address sits tight against what is typed. */
|
|
156
|
+
.sy-slug > .sy-input-group__addon { font-family: var(--font-machine); font-size: 0.8125rem; padding-inline-end: 0; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
|
|
157
|
+
.sy-slug > .sy-input { padding-inline-start: 0.1rem; }
|
|
158
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/* More fields: duration, phone, month, files and images, colour, code editors, key-value pairs, cron and rating. They
|
|
2
|
+
sit on .sy-input and .sy-input-group, so a form of plain and advanced fields reads as one thing. */
|
|
3
|
+
@layer sypnia.components {
|
|
4
|
+
.sy-duration, .sy-phoneinput { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2); min-width: 0; }
|
|
5
|
+
.sy-phoneinput { grid-template-columns: auto minmax(0, 1fr); }
|
|
6
|
+
.sy-duration .sy-input, .sy-phoneinput .sy-input { width: 100%; }
|
|
7
|
+
.sy-phoneinput .sy-select-native, .sy-phoneinput select { width: auto; }
|
|
8
|
+
|
|
9
|
+
/* MonthPicker. */
|
|
10
|
+
.sy-monthpicker__trigger { justify-content: flex-start; min-width: 12rem; }
|
|
11
|
+
.sy-monthpicker { padding: var(--s-3); outline: none; display: grid; gap: var(--s-2); }
|
|
12
|
+
.sy-monthpicker__head { display: flex; align-items: center; justify-content: space-between; }
|
|
13
|
+
.sy-monthpicker__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
|
|
14
|
+
.sy-monthpicker__month { min-height: var(--ctl-h); padding: 0 var(--s-3); border: 0; border-radius: var(--r-2); background: none; color: var(--fg-soft); font: inherit; font-size: var(--text-sm); text-transform: capitalize; cursor: pointer; }
|
|
15
|
+
.sy-monthpicker__month:hover:not(:disabled) { background: var(--state-hover); color: var(--fg); }
|
|
16
|
+
.sy-monthpicker__month[aria-pressed='true'] { background: var(--light-fill); color: var(--on-light); box-shadow: 0 0 0 1.5px var(--light-ring); font-weight: 600; }
|
|
17
|
+
.sy-monthpicker__month:disabled { opacity: 0.4; cursor: not-allowed; }
|
|
18
|
+
.sy-monthpicker__month:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
|
|
19
|
+
|
|
20
|
+
/* Files and images. */
|
|
21
|
+
.sy-fileinput { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); min-width: 0; }
|
|
22
|
+
.sy-fileinput__name { display: inline-flex; align-items: center; gap: var(--s-2); min-width: 0; font-size: var(--text-sm); }
|
|
23
|
+
.sy-fileinput__name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
24
|
+
.sy-fileinput__name small, .sy-fileinput__none { color: var(--fg-muted); font-size: var(--text-xs); }
|
|
25
|
+
.sy-imageupload, .sy-avatarupload { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); min-width: 0; }
|
|
26
|
+
.sy-imageupload__preview { display: grid; place-items: center; width: 12rem; aspect-ratio: 16 / 9; border: 1px dashed var(--line-strong); border-radius: var(--r-2); background: var(--bg-inset); color: var(--fg-muted); overflow: hidden; }
|
|
27
|
+
.sy-imageupload--square .sy-imageupload__preview { width: 7rem; aspect-ratio: 1; }
|
|
28
|
+
.sy-imageupload__preview img { width: 100%; height: 100%; object-fit: contain; }
|
|
29
|
+
.sy-imageupload__preview .sy-icon { width: 2rem; height: 2rem; }
|
|
30
|
+
.sy-imageupload__side { display: grid; gap: var(--s-2); min-width: 0; flex: 1 1 14rem; }
|
|
31
|
+
.sy-imageupload__side .sy-field__hint, .sy-imageupload__side .sy-field__error { margin: 0; }
|
|
32
|
+
.sy-imageupload[data-skeleton] .sy-imageupload__preview { border: 0; } .sy-imageupload[data-skeleton] .sy-skeleton--text { width: 10rem; }
|
|
33
|
+
@media (max-width: 40rem) { .sy-imageupload__preview { width: 100%; } }
|
|
34
|
+
|
|
35
|
+
/* Colour. */
|
|
36
|
+
.sy-swatches { display: flex; flex-wrap: wrap; gap: var(--s-2); }
|
|
37
|
+
.sy-swatch { position: relative; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; cursor: pointer; }
|
|
38
|
+
.sy-swatch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
|
|
39
|
+
.sy-swatch__dot { width: 1.6rem; height: 1.6rem; border-radius: 50%; box-shadow: inset 0 0 0 1px color-mix(in oklab, black 15%, transparent); }
|
|
40
|
+
.sy-swatch:has(input:checked) { box-shadow: 0 0 0 2px var(--fg); }
|
|
41
|
+
.sy-swatch:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
|
|
42
|
+
.sy-colorpicker { display: grid; gap: var(--s-1); max-width: 14rem; }
|
|
43
|
+
.sy-colorpicker__native { width: 1.6rem; height: 1.6rem; padding: 0; border: 0; border-radius: 4px; background: none; cursor: pointer; }
|
|
44
|
+
.sy-colorpicker__native::-webkit-color-swatch-wrapper { padding: 0; } .sy-colorpicker__native::-webkit-color-swatch { border: 0; border-radius: 4px; }
|
|
45
|
+
|
|
46
|
+
/* Code editors: a gutter with line numbers beside a textarea, both on the machine font. */
|
|
47
|
+
.sy-code-editor { --_lh: 1.6; display: grid; grid-template-columns: auto minmax(0, 1fr); height: calc(var(--rows, 10) * var(--_lh) * 0.8125rem + 1.2rem); border: 1.5px solid var(--line-strong); border-radius: var(--r-2); background: var(--bg-inset); overflow: hidden; font-family: var(--font-machine); font-size: 0.8125rem; line-height: var(--_lh); }
|
|
48
|
+
.sy-code-editor:focus-within { border-color: var(--focus); box-shadow: 0 0 0 4px var(--focus-halo); }
|
|
49
|
+
.sy-code-editor[data-invalid] { border-color: var(--fail); }
|
|
50
|
+
.sy-code-editor--disabled { opacity: 0.5; }
|
|
51
|
+
.sy-code-editor__gutter { display: flex; flex-direction: column; padding: 0.6rem 0.6rem 0.6rem 0.75rem; overflow: hidden; color: var(--fg-muted); text-align: end; user-select: none; border-inline-end: 1px solid var(--line); background: color-mix(in oklab, var(--bg-inset) 70%, var(--bg)); }
|
|
52
|
+
.sy-code-editor__gutter span { min-width: 2ch; }
|
|
53
|
+
.sy-code-editor__text { width: 100%; height: 100%; margin: 0; padding: 0.6rem 0.75rem; border: 0; background: none; color: var(--fg); font: inherit; line-height: inherit; resize: none; outline: none; tab-size: 2; white-space: pre; overflow: auto; }
|
|
54
|
+
.sy-code-editor[data-skeleton] .sy-code-editor__text { display: grid; align-content: start; gap: 0.35rem; } .sy-code-editor[data-skeleton] .sy-skeleton:nth-child(2n) { width: 70%; }
|
|
55
|
+
.sy-sqleditor, .sy-jsoneditor { display: grid; gap: var(--s-2); min-width: 0; }
|
|
56
|
+
.sy-sqleditor__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); font-size: var(--text-xs); }
|
|
57
|
+
.sy-sqleditor__bar .sy-field__error { margin: 0; }
|
|
58
|
+
@media (max-width: 40rem) { .sy-sqleditor__bar { display: grid; } .sy-sqleditor__bar .sy-btn { width: 100%; } }
|
|
59
|
+
|
|
60
|
+
/* KeyValueEditor. */
|
|
61
|
+
.sy-kveditor { display: grid; gap: var(--s-2); min-width: 0; }
|
|
62
|
+
.sy-kveditor__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 4.5rem; gap: var(--s-2); font-size: var(--text-xs); font-weight: 600; color: var(--fg-muted); }
|
|
63
|
+
.sy-kveditor__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
|
|
64
|
+
.sy-kveditor__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 4.5rem; gap: var(--s-2); align-items: center; }
|
|
65
|
+
.sy-kveditor__tools { display: flex; gap: 2px; }
|
|
66
|
+
.sy-kveditor__error { grid-column: 1 / -1; margin: 0; }
|
|
67
|
+
.sy-kveditor__paste { font-size: var(--text-xs); }
|
|
68
|
+
@media (max-width: 40rem) {
|
|
69
|
+
.sy-kveditor__head { display: none; }
|
|
70
|
+
.sy-kveditor__row { grid-template-columns: minmax(0, 1fr) auto; padding-bottom: var(--s-2); border-bottom: 1px solid var(--line); }
|
|
71
|
+
.sy-kveditor__row > .sy-input:nth-child(2) { grid-column: 1; grid-row: 2; }
|
|
72
|
+
.sy-kveditor__tools { grid-column: 2; grid-row: 1 / 3; flex-direction: column; }
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* CronInput. */
|
|
76
|
+
.sy-cron { display: grid; gap: var(--s-1); min-width: 0; }
|
|
77
|
+
.sy-cron__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2); }
|
|
78
|
+
.sy-cron__words { display: flex; align-items: center; gap: 0.4em; margin: 0; font-size: var(--text-xs); color: var(--fg-soft); }
|
|
79
|
+
.sy-cron__words .sy-icon { width: 1.1em; height: 1.1em; color: var(--fg-muted); }
|
|
80
|
+
@media (max-width: 40rem) { .sy-cron__row { grid-template-columns: minmax(0, 1fr); } }
|
|
81
|
+
|
|
82
|
+
/* Rating. */
|
|
83
|
+
.sy-rating { display: inline-flex; gap: 2px; }
|
|
84
|
+
.sy-rating__star { position: relative; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--r-1); color: var(--line-strong); cursor: pointer; }
|
|
85
|
+
.sy-rating__star input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
|
|
86
|
+
.sy-rating__star .sy-icon { width: 1.4rem; height: 1.4rem; }
|
|
87
|
+
.sy-rating .sy-rating__on, .sy-rating__star.sy-rating__on { color: var(--warn); }
|
|
88
|
+
.sy-rating__star:hover, .sy-rating__star:hover ~ .sy-rating__star { color: var(--line-strong); }
|
|
89
|
+
.sy-rating:hover .sy-rating__star { color: var(--warn); } .sy-rating .sy-rating__star:hover ~ .sy-rating__star { color: var(--line-strong); }
|
|
90
|
+
.sy-rating__star:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 1px; }
|
|
91
|
+
.sy-rating--read .sy-icon { width: 1rem; height: 1rem; color: var(--line-strong); } .sy-rating--read .sy-rating__on { color: var(--warn); }
|
|
92
|
+
.sy-rating .sy-icon.sy-rating__on path, .sy-rating__on .sy-icon path { fill: currentColor; }
|
|
93
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* More floating layers: Popconfirm, HoverCard, ContextMenu, Lightbox and Tour. They sit on .sy-popover and .sy-scrim,
|
|
2
|
+
so they share the top layer, the shadow and the motion of the rest. */
|
|
3
|
+
@layer sypnia.components {
|
|
4
|
+
/* Popconfirm: a short question beside its button. */
|
|
5
|
+
.sy-popconfirm { max-width: min(20rem, calc(100vw - 1.5rem)); }
|
|
6
|
+
.sy-popconfirm .sy-popover__body { padding: var(--s-3) var(--s-4); outline: none; }
|
|
7
|
+
.sy-popconfirm__inner { display: grid; gap: var(--s-2); }
|
|
8
|
+
.sy-popconfirm__title { margin: 0; font-size: var(--text-sm); font-weight: 600; line-height: var(--leading-ui); }
|
|
9
|
+
.sy-popconfirm__text { margin: 0; color: var(--fg-soft); font-size: var(--text-xs); line-height: 1.45; }
|
|
10
|
+
.sy-popconfirm .sy-actions { margin-top: var(--s-1); }
|
|
11
|
+
@media (max-width: 40rem) { .sy-popconfirm .sy-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
|
12
|
+
|
|
13
|
+
/* HoverCard: a preview, wider than a tooltip and with room for an avatar and a few lines. */
|
|
14
|
+
.sy-hovercard__anchor { display: inline; }
|
|
15
|
+
.sy-hovercard { width: 18rem; pointer-events: auto; }
|
|
16
|
+
.sy-hovercard__body { display: grid; gap: var(--s-2); padding: var(--s-4); font-size: var(--text-sm); }
|
|
17
|
+
.sy-hovercard__body[data-skeleton] .sy-row .sy-skeleton--text { width: 8rem; }
|
|
18
|
+
.sy-hovercard__body[data-skeleton] > .sy-skeleton--text:last-child { width: 70%; }
|
|
19
|
+
|
|
20
|
+
/* ContextMenu: the area keeps its own look; the point is where the menu opens. */
|
|
21
|
+
.sy-contextmenu { position: relative; min-width: 0; }
|
|
22
|
+
.sy-contextmenu__point { position: absolute; left: 0; top: 0; width: 1px; height: 1px; pointer-events: none; }
|
|
23
|
+
|
|
24
|
+
/* Lightbox: the image fills the window with room for the bar, the caption and the arrows. */
|
|
25
|
+
.sy-lightbox { width: 100%; height: 100dvh; outline: none; }
|
|
26
|
+
.sy-lightbox__dialog { height: 100%; outline: none; color: var(--fg); }
|
|
27
|
+
.sy-lightbox__frame { position: relative; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); }
|
|
28
|
+
.sy-lightbox__bar { display: flex; align-items: center; justify-content: flex-end; gap: var(--s-3); padding: var(--s-3) var(--s-4); }
|
|
29
|
+
.sy-lightbox__count { margin-inline-end: auto; font-size: var(--text-sm); color: var(--fg-soft); }
|
|
30
|
+
.sy-lightbox__bar .sy-btn--icon { background: var(--bg-raised); }
|
|
31
|
+
.sy-lightbox__figure { margin: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; gap: var(--s-3); padding: 0 var(--s-10, 4rem) var(--s-5); }
|
|
32
|
+
.sy-lightbox__figure img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-2); box-shadow: var(--shadow-3); background: var(--bg-raised); }
|
|
33
|
+
.sy-lightbox__figure figcaption { max-width: 60ch; text-align: center; font-size: var(--text-sm); color: var(--fg-soft); }
|
|
34
|
+
.sy-lightbox__nav { position: absolute; inset-inline: var(--s-4); top: 50%; display: flex; justify-content: space-between; pointer-events: none; translate: 0 -50%; }
|
|
35
|
+
.sy-lightbox__nav .sy-btn { pointer-events: auto; }
|
|
36
|
+
@media (max-width: 40rem) {
|
|
37
|
+
.sy-lightbox__figure { padding: 0 var(--s-2) var(--s-3); }
|
|
38
|
+
.sy-lightbox__nav { position: static; translate: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); padding: 0 var(--s-4) var(--s-4); }
|
|
39
|
+
.sy-lightbox__nav .sy-btn { width: 100%; }
|
|
40
|
+
.sy-lightbox__frame { grid-template-rows: auto minmax(0, 1fr) auto; }
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* Tour: a card that points at one part of the screen; the part is ringed with the light. */
|
|
44
|
+
.sy-tour { position: fixed; z-index: var(--z-layer); width: min(20rem, calc(100vw - 1rem)); animation: sy-pop-in var(--dur-1) var(--ease-out) both; }
|
|
45
|
+
.sy-tour__body { display: grid; gap: var(--s-2); padding: var(--s-3) var(--s-4) var(--s-4); outline: none; }
|
|
46
|
+
.sy-tour__head { display: flex; align-items: center; justify-content: space-between; margin-inline-end: calc(var(--s-2) * -1); }
|
|
47
|
+
.sy-tour__count { font-size: var(--text-xs); color: var(--fg-muted); }
|
|
48
|
+
.sy-tour__title { margin: 0; font-size: var(--text-md); font-weight: 600; line-height: var(--leading-ui); }
|
|
49
|
+
.sy-tour__text { color: var(--fg-soft); font-size: var(--text-sm); line-height: 1.5; }
|
|
50
|
+
.sy-tour__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-2); }
|
|
51
|
+
.sy-tour__dots { display: inline-flex; gap: 0.3rem; }
|
|
52
|
+
.sy-tour__dots i { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--line-strong); }
|
|
53
|
+
.sy-tour__dots i[data-on] { background: var(--light-fill); box-shadow: 0 0 0 1px var(--light-ring); }
|
|
54
|
+
.sy-tour-target { outline: 2px solid var(--light); outline-offset: 4px; border-radius: var(--r-2); transition: outline-color var(--dur-2); }
|
|
55
|
+
}
|
|
@@ -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
|
+
}
|