@sinnstack/ui 0.0.0-stage → 0.3.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/CHANGELOG.md +89 -0
- package/LICENSE +373 -0
- package/README.md +188 -2
- package/docs/blocks.md +373 -0
- package/docs/data.md +128 -0
- package/docs/finishes.md +165 -0
- package/docs/motion.md +166 -0
- package/docs/primitives.md +510 -0
- package/docs/seo.md +191 -0
- package/docs/tokens.md +122 -0
- package/package.json +132 -3
- package/scripts/check-contrast.mjs +180 -0
- package/src/blocks/BlockRenderer.astro +60 -0
- package/src/blocks/CTABanner.astro +121 -0
- package/src/blocks/CTAPair.astro +110 -0
- package/src/blocks/CardGrid.astro +167 -0
- package/src/blocks/ConsentEmbed.astro +125 -0
- package/src/blocks/ConsentManager.astro +147 -0
- package/src/blocks/ConsentScript.astro +47 -0
- package/src/blocks/ContactCard.astro +164 -0
- package/src/blocks/ContactForm.astro +224 -0
- package/src/blocks/ErrorPage.astro +242 -0
- package/src/blocks/FAQ.astro +135 -0
- package/src/blocks/FeatureGrid.astro +148 -0
- package/src/blocks/Hero.astro +171 -0
- package/src/blocks/HeroCarousel.astro +220 -0
- package/src/blocks/HighlightCards.astro +107 -0
- package/src/blocks/LocationHours.astro +311 -0
- package/src/blocks/LogoCloud.astro +135 -0
- package/src/blocks/MaintenancePage.astro +173 -0
- package/src/blocks/MediaText.astro +177 -0
- package/src/blocks/PageHeader.astro +126 -0
- package/src/blocks/ProseSection.astro +98 -0
- package/src/blocks/Reviews.astro +194 -0
- package/src/blocks/RichText.astro +58 -0
- package/src/blocks/StatsBand.astro +117 -0
- package/src/blocks/Steps.astro +141 -0
- package/src/blocks/Testimonials.astro +144 -0
- package/src/blocks/Topbar.astro +158 -0
- package/src/blocks/cms/card-grid.ts +48 -0
- package/src/blocks/cms/consent.ts +16 -0
- package/src/blocks/cms/contact-card.ts +46 -0
- package/src/blocks/cms/contact-form.ts +37 -0
- package/src/blocks/cms/cta-banner.ts +27 -0
- package/src/blocks/cms/cta-pair.ts +30 -0
- package/src/blocks/cms/data-base.ts +5 -0
- package/src/blocks/cms/data.ts +257 -0
- package/src/blocks/cms/faq.ts +38 -0
- package/src/blocks/cms/feature-grid.ts +47 -0
- package/src/blocks/cms/fixtures.ts +591 -0
- package/src/blocks/cms/hero-carousel.ts +36 -0
- package/src/blocks/cms/hero.ts +33 -0
- package/src/blocks/cms/highlight-cards.ts +41 -0
- package/src/blocks/cms/images.ts +37 -0
- package/src/blocks/cms/index.ts +59 -0
- package/src/blocks/cms/location-hours.ts +67 -0
- package/src/blocks/cms/logo-cloud.ts +36 -0
- package/src/blocks/cms/media-text.ts +26 -0
- package/src/blocks/cms/page-header.ts +27 -0
- package/src/blocks/cms/pages.ts +35 -0
- package/src/blocks/cms/prose-section.ts +25 -0
- package/src/blocks/cms/reviews.ts +50 -0
- package/src/blocks/cms/schema-dsl.ts +134 -0
- package/src/blocks/cms/schema.ts +794 -0
- package/src/blocks/cms/shared.ts +63 -0
- package/src/blocks/cms/stats-band.ts +35 -0
- package/src/blocks/cms/steps.ts +40 -0
- package/src/blocks/cms/testimonials.ts +46 -0
- package/src/blocks/cms/topbar.ts +27 -0
- package/src/blocks/cms/types.ts +27 -0
- package/src/blocks/consent.ts +14 -0
- package/src/blocks/icons.ts +47 -0
- package/src/blocks/index.ts +42 -0
- package/src/blocks/internal/Actions.astro +35 -0
- package/src/blocks/internal/BlockHeader.astro +45 -0
- package/src/blocks/internal/BlockShell.astro +58 -0
- package/src/blocks/internal/CarouselScript.astro +7 -0
- package/src/blocks/internal/ConsentEmbedScript.astro +7 -0
- package/src/blocks/internal/ConsentManagerScript.astro +7 -0
- package/src/blocks/internal/HoursScript.astro +7 -0
- package/src/blocks/internal/Placeholder.astro +13 -0
- package/src/blocks/internal/RichTextNode.astro +133 -0
- package/src/blocks/internal/StandaloneDocument.astro +53 -0
- package/src/blocks/internal/consent.ts +96 -0
- package/src/blocks/internal/fields.ts +18 -0
- package/src/blocks/internal/registry-contract.ts +67 -0
- package/src/blocks/internal/reviews.ts +22 -0
- package/src/blocks/internal/slug.ts +12 -0
- package/src/blocks/internal/util.ts +23 -0
- package/src/blocks/lib/contact.ts +92 -0
- package/src/blocks/lib/error-pages.ts +119 -0
- package/src/blocks/lib/faq.ts +37 -0
- package/src/blocks/lib/hours.ts +201 -0
- package/src/blocks/lib/maintenance.ts +129 -0
- package/src/blocks/lib/markdown.ts +350 -0
- package/src/blocks/lib/rich-text.ts +132 -0
- package/src/blocks/registry.ts +79 -0
- package/src/blocks/scripts/carousel.ts +218 -0
- package/src/blocks/scripts/consent-embed.ts +105 -0
- package/src/blocks/scripts/consent-manager.ts +112 -0
- package/src/blocks/scripts/consent-store.ts +86 -0
- package/src/blocks/scripts/error-page.ts +71 -0
- package/src/blocks/scripts/hours.ts +107 -0
- package/src/blocks/scripts/maintenance.ts +109 -0
- package/src/blocks/styles/blocks.css +1320 -0
- package/src/blocks/styles/consent.css +102 -0
- package/src/blocks/styles/faq.css +28 -0
- package/src/blocks/styles/location.css +92 -0
- package/src/blocks/styles/prose-section.css +13 -0
- package/src/blocks/styles/quotes.css +123 -0
- package/src/blocks/styles/rich-text.css +14 -0
- package/src/blocks/types.ts +293 -0
- package/src/data/ChartAxis.astro +19 -0
- package/src/data/ChartContainer.astro +152 -0
- package/src/data/ChartLegend.astro +25 -0
- package/src/data/ChartSeries.astro +14 -0
- package/src/data/ChartTable.astro +17 -0
- package/src/data/ChartTooltip.astro +20 -0
- package/src/data/Sparkline.astro +55 -0
- package/src/data/cms.ts +130 -0
- package/src/data/index.ts +10 -0
- package/src/data/internal/scale.ts +107 -0
- package/src/data/lib/chart.ts +459 -0
- package/src/data/lib/render.ts +219 -0
- package/src/data/lib/sparkline.ts +117 -0
- package/src/data/schema.ts +65 -0
- package/src/data/scripts/chart.ts +324 -0
- package/src/data/styles/chart.css +392 -0
- package/src/finishes/aurora.css +75 -0
- package/src/finishes/autumn.css +87 -0
- package/src/finishes/blueprint.css +69 -0
- package/src/finishes/brutalist.css +55 -0
- package/src/finishes/clay.css +48 -0
- package/src/finishes/day-cycle.css +46 -0
- package/src/finishes/fog.css +71 -0
- package/src/finishes/glass.css +149 -0
- package/src/finishes/holographic.css +91 -0
- package/src/finishes/night.css +77 -0
- package/src/finishes/paper.css +58 -0
- package/src/finishes/polished-glass.css +159 -0
- package/src/finishes/rain.css +84 -0
- package/src/finishes/scripts/day-cycle.ts +30 -0
- package/src/finishes/scripts/holographic.ts +37 -0
- package/src/finishes/scripts/spotlight.ts +30 -0
- package/src/finishes/spotlight.css +41 -0
- package/src/finishes/spring.css +80 -0
- package/src/finishes/terminal.css +49 -0
- package/src/motion/Marquee.astro +90 -0
- package/src/motion/MotionProvider.astro +50 -0
- package/src/motion/PageTransitions.astro +61 -0
- package/src/motion/Parallax.astro +44 -0
- package/src/motion/ParallaxLayer.astro +31 -0
- package/src/motion/RevealOnScroll.astro +59 -0
- package/src/motion/SceneRegistry.astro +38 -0
- package/src/motion/ScrollScene.astro +81 -0
- package/src/motion/index.ts +12 -0
- package/src/motion/integration.ts +48 -0
- package/src/motion/runtime/page-transitions.ts +68 -0
- package/src/motion/runtime/runtime.ts +180 -0
- package/src/motion/runtime/scenes.ts +248 -0
- package/src/motion/runtime/types.ts +103 -0
- package/src/motion/styles/motion.css +332 -0
- package/src/motion/transitions.ts +74 -0
- package/src/motion/virtual.d.ts +4 -0
- package/src/primitives/Accordion.astro +129 -0
- package/src/primitives/Breadcrumbs.astro +50 -0
- package/src/primitives/BulletList.astro +69 -0
- package/src/primitives/Button.astro +73 -0
- package/src/primitives/ButtonGroup.astro +54 -0
- package/src/primitives/Callout.astro +137 -0
- package/src/primitives/Caption.astro +35 -0
- package/src/primitives/Card.astro +72 -0
- package/src/primitives/CardContent.astro +24 -0
- package/src/primitives/CardFooter.astro +36 -0
- package/src/primitives/CardHeader.astro +86 -0
- package/src/primitives/Checkbox.astro +38 -0
- package/src/primitives/ChoiceGroup.astro +23 -0
- package/src/primitives/Cluster.astro +49 -0
- package/src/primitives/Container.astro +44 -0
- package/src/primitives/DescriptionList.astro +83 -0
- package/src/primitives/Dialog.astro +38 -0
- package/src/primitives/Disclosure.astro +67 -0
- package/src/primitives/Divider.astro +93 -0
- package/src/primitives/Drawer.astro +33 -0
- package/src/primitives/Fieldset.astro +80 -0
- package/src/primitives/Flex.astro +64 -0
- package/src/primitives/FocusRing.astro +63 -0
- package/src/primitives/FocusTrap.astro +64 -0
- package/src/primitives/Footer.astro +155 -0
- package/src/primitives/Form.astro +68 -0
- package/src/primitives/FormDescription.astro +26 -0
- package/src/primitives/FormError.astro +106 -0
- package/src/primitives/FormField.astro +72 -0
- package/src/primitives/Grid.astro +64 -0
- package/src/primitives/Heading.astro +45 -0
- package/src/primitives/IconButton.astro +48 -0
- package/src/primitives/Image.astro +125 -0
- package/src/primitives/Input.astro +86 -0
- package/src/primitives/Label.astro +50 -0
- package/src/primitives/Link.astro +81 -0
- package/src/primitives/LinkButton.astro +66 -0
- package/src/primitives/List.astro +39 -0
- package/src/primitives/ListItem.astro +178 -0
- package/src/primitives/MediaObject.astro +66 -0
- package/src/primitives/MetricCard.astro +278 -0
- package/src/primitives/NavLink.astro +81 -0
- package/src/primitives/NavMenu.astro +109 -0
- package/src/primitives/Navbar.astro +197 -0
- package/src/primitives/Panel.astro +153 -0
- package/src/primitives/Picture.astro +167 -0
- package/src/primitives/Popover.astro +95 -0
- package/src/primitives/Prose.astro +45 -0
- package/src/primitives/Radio.astro +21 -0
- package/src/primitives/Rating.astro +135 -0
- package/src/primitives/ReducedMotion.astro +90 -0
- package/src/primitives/SegmentedControl.astro +132 -0
- package/src/primitives/Select.astro +109 -0
- package/src/primitives/Sheet.astro +45 -0
- package/src/primitives/SkipLink.astro +31 -0
- package/src/primitives/Slider.astro +186 -0
- package/src/primitives/Spacer.astro +35 -0
- package/src/primitives/Stack.astro +51 -0
- package/src/primitives/Surface.astro +70 -0
- package/src/primitives/Switch.astro +22 -0
- package/src/primitives/Table.astro +382 -0
- package/src/primitives/Tabs.astro +126 -0
- package/src/primitives/Text.astro +56 -0
- package/src/primitives/Textarea.astro +75 -0
- package/src/primitives/Thumbnail.astro +154 -0
- package/src/primitives/Toggle.astro +99 -0
- package/src/primitives/Tooltip.astro +50 -0
- package/src/primitives/VisuallyHidden.astro +29 -0
- package/src/primitives/index.ts +103 -0
- package/src/primitives/internal/AccordionScript.astro +7 -0
- package/src/primitives/internal/ChoiceField.astro +91 -0
- package/src/primitives/internal/FocusTrapScript.astro +8 -0
- package/src/primitives/internal/FormValidationScript.astro +10 -0
- package/src/primitives/internal/IndeterminateScript.astro +13 -0
- package/src/primitives/internal/ModalPanel.astro +114 -0
- package/src/primitives/internal/OverlayScript.astro +7 -0
- package/src/primitives/internal/ReducedMotionScript.astro +7 -0
- package/src/primitives/internal/SliderScript.astro +7 -0
- package/src/primitives/internal/SparklineScript.astro +7 -0
- package/src/primitives/internal/TableSortScript.astro +7 -0
- package/src/primitives/internal/TabsScript.astro +7 -0
- package/src/primitives/internal/TooltipScript.astro +7 -0
- package/src/primitives/internal/image-plan.ts +82 -0
- package/src/primitives/internal/image.ts +129 -0
- package/src/primitives/internal/slider.ts +170 -0
- package/src/primitives/lib/deprecate.ts +47 -0
- package/src/primitives/lib/focus-trap.ts +197 -0
- package/src/primitives/lib/focus.ts +60 -0
- package/src/primitives/lib/motion.ts +68 -0
- package/src/primitives/scripts/accordion.ts +123 -0
- package/src/primitives/scripts/form-validation.ts +225 -0
- package/src/primitives/scripts/overlay.ts +71 -0
- package/src/primitives/scripts/reduced-motion.ts +59 -0
- package/src/primitives/scripts/slider.ts +150 -0
- package/src/primitives/scripts/sparkline.ts +131 -0
- package/src/primitives/scripts/table-sort.ts +68 -0
- package/src/primitives/scripts/tabs.ts +151 -0
- package/src/primitives/scripts/tooltip.ts +28 -0
- package/src/primitives/styles/a11y.css +104 -0
- package/src/primitives/styles/accordion.css +53 -0
- package/src/primitives/styles/breadcrumbs.css +59 -0
- package/src/primitives/styles/bullet-list.css +89 -0
- package/src/primitives/styles/button.css +237 -0
- package/src/primitives/styles/choice.css +164 -0
- package/src/primitives/styles/cluster.css +24 -0
- package/src/primitives/styles/container.css +19 -0
- package/src/primitives/styles/data.css +849 -0
- package/src/primitives/styles/disclosure.css +140 -0
- package/src/primitives/styles/divider.css +50 -0
- package/src/primitives/styles/flex.css +42 -0
- package/src/primitives/styles/form.css +241 -0
- package/src/primitives/styles/grid.css +36 -0
- package/src/primitives/styles/media.css +247 -0
- package/src/primitives/styles/nav.css +792 -0
- package/src/primitives/styles/overlay.css +362 -0
- package/src/primitives/styles/prose.css +146 -0
- package/src/primitives/styles/scale.css +175 -0
- package/src/primitives/styles/segmented.css +165 -0
- package/src/primitives/styles/slider.css +170 -0
- package/src/primitives/styles/spacer.css +17 -0
- package/src/primitives/styles/stack.css +25 -0
- package/src/primitives/styles/surface.css +403 -0
- package/src/primitives/styles/tabs.css +223 -0
- package/src/primitives/styles/typography.css +144 -0
- package/src/primitives/styles/utilities.css +24 -0
- package/src/primitives/types.ts +385 -0
- package/src/primitives/utils.ts +254 -0
- package/src/seo/JSONLD.astro +35 -0
- package/src/seo/SEOHead.astro +47 -0
- package/src/seo/cms.ts +59 -0
- package/src/seo/index.ts +10 -0
- package/src/seo/integration.ts +268 -0
- package/src/seo/internal/url.ts +68 -0
- package/src/seo/lib/jsonld.ts +342 -0
- package/src/seo/lib/meta.ts +205 -0
- package/src/seo/lib/redirects.ts +293 -0
- package/src/seo/lib/robots.ts +33 -0
- package/src/seo/lib/rss.ts +98 -0
- package/src/seo/lib/sitemap.ts +105 -0
- package/src/seo/schema.ts +43 -0
- package/src/tokens/base.css +71 -0
- package/src/tokens/tokens.css +210 -0
|
@@ -0,0 +1,849 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* List/ListItem, DescriptionList, Table, Rating, MetricCard, plus shared data parts
|
|
3
|
+
* (bars, deltas, skeletons).
|
|
4
|
+
*
|
|
5
|
+
* Data-display rules applied throughout:
|
|
6
|
+
* - Text wears text tokens; color marks (bars, dots) carry identity or state.
|
|
7
|
+
* - Status color (good/bad) always comes with an arrow or sign, never color alone.
|
|
8
|
+
* - Columns of numbers use tabular figures; big standalone values keep proportional ones.
|
|
9
|
+
* - Marks are thin: 8px bars with a square baseline and a 4px rounded data end; hairline rules.
|
|
10
|
+
*/
|
|
11
|
+
/* Same order as tokens.css: whichever stylesheet loads first fixes the layer order. */
|
|
12
|
+
@layer sinn.reset, sinn.tokens, sinn.primitives, sinn.data, sinn.motion, sinn.blocks, sinn.overrides;
|
|
13
|
+
|
|
14
|
+
@layer sinn.primitives {
|
|
15
|
+
/* ================= Shared parts ================= */
|
|
16
|
+
|
|
17
|
+
/* Horizontal bar / meter. Width comes from data-pct (0–100), so no inline styles. */
|
|
18
|
+
:where(.sinn-bar) {
|
|
19
|
+
--sinn-p-bar-fill: var(--sinn-color-accent);
|
|
20
|
+
--sinn-p-bar-track: var(--sinn-color-data-track);
|
|
21
|
+
position: relative;
|
|
22
|
+
display: block;
|
|
23
|
+
block-size: 0.5rem;
|
|
24
|
+
min-inline-size: 2rem;
|
|
25
|
+
border-radius: var(--sinn-radius-full);
|
|
26
|
+
background-color: var(--sinn-p-bar-track);
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
}
|
|
29
|
+
:where(.sinn-bar)::before {
|
|
30
|
+
content: '';
|
|
31
|
+
position: absolute;
|
|
32
|
+
inset-block: 0;
|
|
33
|
+
inset-inline-start: 0;
|
|
34
|
+
inline-size: var(--sinn-p-pct, 0%);
|
|
35
|
+
/* Square at the baseline, 4px rounded data end. */
|
|
36
|
+
border-start-end-radius: 4px;
|
|
37
|
+
border-end-end-radius: 4px;
|
|
38
|
+
background-color: var(--sinn-p-bar-fill);
|
|
39
|
+
}
|
|
40
|
+
:where(.sinn-bar[data-pct='100'])::before { border-radius: inherit; }
|
|
41
|
+
:where(.sinn-bar[data-track='none']) { --sinn-p-bar-track: transparent; }
|
|
42
|
+
:where(.sinn-bar[data-tone='success']) { --sinn-p-bar-fill: var(--sinn-color-success); --sinn-p-bar-track: var(--sinn-color-success-soft); }
|
|
43
|
+
:where(.sinn-bar[data-tone='warning']) { --sinn-p-bar-fill: var(--sinn-color-warning); --sinn-p-bar-track: var(--sinn-color-warning-soft); }
|
|
44
|
+
:where(.sinn-bar[data-tone='danger']) { --sinn-p-bar-fill: var(--sinn-color-danger); --sinn-p-bar-track: var(--sinn-color-danger-soft); }
|
|
45
|
+
:where(.sinn-bar[data-tone='muted']) { --sinn-p-bar-fill: var(--sinn-color-data-muted); --sinn-p-bar-track: var(--sinn-color-neutral-soft); }
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
/* Delta: arrow + signed value. */
|
|
49
|
+
:where(.sinn-delta) {
|
|
50
|
+
display: inline-flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
gap: 0.2em;
|
|
53
|
+
font-weight: var(--sinn-weight-semibold);
|
|
54
|
+
white-space: nowrap;
|
|
55
|
+
}
|
|
56
|
+
:where(.sinn-delta__icon) { flex-shrink: 0; inline-size: 0.85em; block-size: 0.85em; }
|
|
57
|
+
|
|
58
|
+
/* Loading placeholder: reserves the final size so nothing shifts when data arrives. */
|
|
59
|
+
:where(.sinn-skeleton) {
|
|
60
|
+
display: block;
|
|
61
|
+
block-size: 1em;
|
|
62
|
+
border-radius: var(--sinn-radius-s);
|
|
63
|
+
background-color: var(--sinn-color-skeleton);
|
|
64
|
+
animation: sinn-skeleton-pulse 1.6s ease-in-out infinite;
|
|
65
|
+
}
|
|
66
|
+
/* Pulse depth follows --sinn-motion-scale: a still placeholder when motion is reduced. */
|
|
67
|
+
@keyframes sinn-skeleton-pulse {
|
|
68
|
+
50% { opacity: calc(1 - 0.45 * var(--sinn-motion-scale, 1)); }
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* ================= List / ListItem ================= */
|
|
72
|
+
:where(.sinn-list) {
|
|
73
|
+
--sinn-p-item-py: var(--sinn-space-xs);
|
|
74
|
+
--sinn-p-item-px: 0px;
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
margin: 0;
|
|
78
|
+
padding: 0;
|
|
79
|
+
list-style: none;
|
|
80
|
+
}
|
|
81
|
+
:where(.sinn-list[data-density='compact']) { --sinn-p-item-py: var(--sinn-space-2xs); }
|
|
82
|
+
:where(.sinn-list[data-density='comfortable']) { --sinn-p-item-py: var(--sinn-space-s); }
|
|
83
|
+
:where(.sinn-list[data-variant='divided']) > :where(* + *) { border-block-start: var(--sinn-border-width-thin) solid var(--sinn-color-border-subtle); }
|
|
84
|
+
:where(.sinn-list[data-variant='inset']) {
|
|
85
|
+
--sinn-p-item-px: var(--sinn-space-s);
|
|
86
|
+
border: var(--sinn-border-width-thin) solid var(--sinn-color-border);
|
|
87
|
+
border-radius: var(--sinn-radius-l);
|
|
88
|
+
background-color: var(--sinn-color-surface-raised);
|
|
89
|
+
overflow: clip;
|
|
90
|
+
}
|
|
91
|
+
:where(.sinn-list[data-variant='inset']) > :where(* + *) { border-block-start: var(--sinn-border-width-thin) solid var(--sinn-color-border-subtle); }
|
|
92
|
+
:where(.sinn-list[data-variant='plain']) { gap: var(--sinn-space-3xs); }
|
|
93
|
+
|
|
94
|
+
:where(.sinn-list-item) {
|
|
95
|
+
position: relative;
|
|
96
|
+
display: grid;
|
|
97
|
+
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
98
|
+
align-items: center;
|
|
99
|
+
column-gap: var(--sinn-space-s);
|
|
100
|
+
padding: var(--sinn-p-item-py, var(--sinn-space-xs)) var(--sinn-p-item-px, 0px);
|
|
101
|
+
color: var(--sinn-color-text);
|
|
102
|
+
}
|
|
103
|
+
:where(.sinn-list-item:not(:has(> .sinn-list-item__leading))) { grid-template-columns: minmax(0, 1fr) auto; }
|
|
104
|
+
:where(.sinn-list-item[data-align='start']) { align-items: start; }
|
|
105
|
+
|
|
106
|
+
:where(.sinn-list-item__leading) {
|
|
107
|
+
display: flex;
|
|
108
|
+
flex-shrink: 0;
|
|
109
|
+
align-items: center;
|
|
110
|
+
justify-content: center;
|
|
111
|
+
color: var(--sinn-color-text-muted);
|
|
112
|
+
}
|
|
113
|
+
:where(.sinn-list-item__leading) > :where(svg) { inline-size: 1.25rem; block-size: 1.25rem; }
|
|
114
|
+
:where(.sinn-list-item__leading) > :where(img) {
|
|
115
|
+
inline-size: 2.5rem;
|
|
116
|
+
block-size: 2.5rem;
|
|
117
|
+
border-radius: var(--sinn-radius-m);
|
|
118
|
+
object-fit: cover;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
:where(.sinn-avatar) {
|
|
122
|
+
display: inline-grid;
|
|
123
|
+
place-items: center;
|
|
124
|
+
inline-size: 2.5rem;
|
|
125
|
+
block-size: 2.5rem;
|
|
126
|
+
border-radius: 50%;
|
|
127
|
+
background-color: var(--sinn-color-accent-soft);
|
|
128
|
+
color: var(--sinn-color-accent-text);
|
|
129
|
+
font-size: var(--sinn-text-s);
|
|
130
|
+
font-weight: var(--sinn-weight-semibold);
|
|
131
|
+
letter-spacing: 0.02em;
|
|
132
|
+
user-select: none;
|
|
133
|
+
}
|
|
134
|
+
:where(.sinn-avatar[data-tone='neutral']) { background-color: var(--sinn-color-neutral-soft); color: var(--sinn-color-text); }
|
|
135
|
+
:where(.sinn-avatar[data-size='s']) { inline-size: 2rem; block-size: 2rem; font-size: var(--sinn-text-xs); }
|
|
136
|
+
|
|
137
|
+
:where(.sinn-list-item__main) {
|
|
138
|
+
display: flex;
|
|
139
|
+
flex-direction: column;
|
|
140
|
+
gap: 0.125rem;
|
|
141
|
+
min-inline-size: 0;
|
|
142
|
+
}
|
|
143
|
+
:where(.sinn-list-item__title) {
|
|
144
|
+
margin: 0;
|
|
145
|
+
font-size: var(--sinn-text-m);
|
|
146
|
+
font-weight: var(--sinn-weight-medium);
|
|
147
|
+
line-height: var(--sinn-leading-snug);
|
|
148
|
+
overflow-wrap: break-word;
|
|
149
|
+
}
|
|
150
|
+
:where(.sinn-list-item[data-truncate]) :where(.sinn-list-item__title, .sinn-list-item__description) {
|
|
151
|
+
overflow: hidden;
|
|
152
|
+
text-overflow: ellipsis;
|
|
153
|
+
white-space: nowrap;
|
|
154
|
+
}
|
|
155
|
+
:where(.sinn-list-item__description) {
|
|
156
|
+
margin: 0;
|
|
157
|
+
color: var(--sinn-color-text-muted);
|
|
158
|
+
font-size: var(--sinn-text-s);
|
|
159
|
+
line-height: var(--sinn-leading-snug);
|
|
160
|
+
}
|
|
161
|
+
:where(.sinn-list-item__meta) {
|
|
162
|
+
display: flex;
|
|
163
|
+
flex-wrap: wrap;
|
|
164
|
+
margin: 0;
|
|
165
|
+
padding: 0;
|
|
166
|
+
list-style: none;
|
|
167
|
+
color: var(--sinn-color-text-muted);
|
|
168
|
+
font-size: var(--sinn-text-xs);
|
|
169
|
+
}
|
|
170
|
+
:where(.sinn-list-item__meta) > :where(li + li)::before {
|
|
171
|
+
content: '·';
|
|
172
|
+
margin-inline: 0.4em;
|
|
173
|
+
color: var(--sinn-color-data-muted);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
:where(.sinn-list-item__trailing) {
|
|
177
|
+
display: flex;
|
|
178
|
+
align-items: center;
|
|
179
|
+
gap: var(--sinn-space-2xs);
|
|
180
|
+
text-align: end;
|
|
181
|
+
}
|
|
182
|
+
:where(.sinn-list-item__value) {
|
|
183
|
+
display: flex;
|
|
184
|
+
flex-direction: column;
|
|
185
|
+
align-items: flex-end;
|
|
186
|
+
gap: 0.125rem;
|
|
187
|
+
}
|
|
188
|
+
:where(.sinn-list-item__value-main) {
|
|
189
|
+
font-size: var(--sinn-text-m);
|
|
190
|
+
font-weight: var(--sinn-weight-semibold);
|
|
191
|
+
/* A column of values down the list: tabular so digits line up. */
|
|
192
|
+
font-variant-numeric: tabular-nums;
|
|
193
|
+
white-space: nowrap;
|
|
194
|
+
}
|
|
195
|
+
:where(.sinn-list-item__value-detail) {
|
|
196
|
+
color: var(--sinn-color-text-muted);
|
|
197
|
+
font-size: var(--sinn-text-xs);
|
|
198
|
+
white-space: nowrap;
|
|
199
|
+
}
|
|
200
|
+
:where(.sinn-list-item__chevron) {
|
|
201
|
+
flex-shrink: 0;
|
|
202
|
+
inline-size: 1rem;
|
|
203
|
+
block-size: 1rem;
|
|
204
|
+
color: var(--sinn-color-data-muted);
|
|
205
|
+
}
|
|
206
|
+
:where(.sinn-list-item__chevron:dir(rtl)) { transform: scaleX(-1); }
|
|
207
|
+
|
|
208
|
+
/* Whole-row link: one real link on the title, stretched over the row. */
|
|
209
|
+
:where(.sinn-list-item__link) { color: inherit; text-decoration: none; }
|
|
210
|
+
:where(.sinn-list-item__link)::after { content: ''; position: absolute; inset: 0; }
|
|
211
|
+
:where(.sinn-list-item__link:focus-visible) { outline: none; }
|
|
212
|
+
:where(.sinn-list-item:has(.sinn-list-item__link)) :where(a, button, input, select, textarea, label, [tabindex]):not(.sinn-list-item__link) {
|
|
213
|
+
position: relative;
|
|
214
|
+
z-index: 1;
|
|
215
|
+
}
|
|
216
|
+
:where(.sinn-list-item:has(.sinn-list-item__link:focus-visible)) {
|
|
217
|
+
outline: var(--sinn-focus-width) solid var(--sinn-color-focus);
|
|
218
|
+
outline-offset: calc(var(--sinn-focus-width) * -1);
|
|
219
|
+
border-radius: var(--sinn-radius-s);
|
|
220
|
+
}
|
|
221
|
+
@media (hover: hover) {
|
|
222
|
+
:where(.sinn-list-item:has(.sinn-list-item__link):hover) { background-color: var(--sinn-color-neutral-soft); }
|
|
223
|
+
:where(.sinn-list:not([data-variant='inset'])) :where(.sinn-list-item:has(.sinn-list-item__link)) {
|
|
224
|
+
margin-inline: calc(var(--sinn-space-2xs) * -1);
|
|
225
|
+
padding-inline: var(--sinn-space-2xs);
|
|
226
|
+
border-radius: var(--sinn-radius-m);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
:where(.sinn-list-item[aria-current='true'], .sinn-list-item:has(.sinn-list-item__link[aria-current='page'])) {
|
|
230
|
+
background-color: var(--sinn-color-accent-soft);
|
|
231
|
+
box-shadow: inset 3px 0 0 var(--sinn-color-accent);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/* ================= DescriptionList ================= */
|
|
235
|
+
:where(.sinn-dl) {
|
|
236
|
+
--sinn-p-dl-py: var(--sinn-space-2xs);
|
|
237
|
+
display: flex;
|
|
238
|
+
flex-direction: column;
|
|
239
|
+
gap: var(--sinn-space-s);
|
|
240
|
+
margin: 0;
|
|
241
|
+
container-type: inline-size;
|
|
242
|
+
}
|
|
243
|
+
:where(.sinn-dl__item) { display: flex; flex-direction: column; gap: var(--sinn-space-3xs); min-inline-size: 0; }
|
|
244
|
+
:where(.sinn-dl__term) {
|
|
245
|
+
color: var(--sinn-color-text-muted);
|
|
246
|
+
font-size: var(--sinn-text-s);
|
|
247
|
+
font-weight: var(--sinn-weight-medium);
|
|
248
|
+
line-height: var(--sinn-leading-snug);
|
|
249
|
+
}
|
|
250
|
+
:where(.sinn-dl__desc) {
|
|
251
|
+
margin: 0;
|
|
252
|
+
color: var(--sinn-color-text);
|
|
253
|
+
font-size: var(--sinn-text-m);
|
|
254
|
+
line-height: var(--sinn-leading-snug);
|
|
255
|
+
overflow-wrap: break-word;
|
|
256
|
+
}
|
|
257
|
+
:where(.sinn-dl__detail) {
|
|
258
|
+
display: block;
|
|
259
|
+
margin-block-start: 0.125rem;
|
|
260
|
+
color: var(--sinn-color-text-muted);
|
|
261
|
+
font-size: var(--sinn-text-xs);
|
|
262
|
+
}
|
|
263
|
+
:where(.sinn-dl__desc[data-numeric]) { font-variant-numeric: tabular-nums; }
|
|
264
|
+
|
|
265
|
+
:where(.sinn-dl[data-divided]) > :where(.sinn-dl__item + .sinn-dl__item) {
|
|
266
|
+
padding-block-start: var(--sinn-space-s);
|
|
267
|
+
border-block-start: var(--sinn-border-width-thin) solid var(--sinn-color-border-subtle);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/* inline: term | description rows that line up (subgrid), stacking when narrow. */
|
|
271
|
+
:where(.sinn-dl[data-layout='inline']) {
|
|
272
|
+
display: grid;
|
|
273
|
+
grid-template-columns: minmax(7rem, 1fr) minmax(0, 2fr);
|
|
274
|
+
column-gap: var(--sinn-space-m);
|
|
275
|
+
row-gap: 0;
|
|
276
|
+
}
|
|
277
|
+
:where(.sinn-dl[data-layout='inline']) > :where(.sinn-dl__item) {
|
|
278
|
+
display: grid;
|
|
279
|
+
grid-column: 1 / -1;
|
|
280
|
+
grid-template-columns: subgrid;
|
|
281
|
+
align-items: baseline;
|
|
282
|
+
padding-block: var(--sinn-p-dl-py);
|
|
283
|
+
}
|
|
284
|
+
:where(.sinn-dl[data-layout='inline'][data-divided]) > :where(.sinn-dl__item + .sinn-dl__item) {
|
|
285
|
+
padding-block-start: var(--sinn-p-dl-py);
|
|
286
|
+
}
|
|
287
|
+
@container (width < 28rem) {
|
|
288
|
+
:where(.sinn-dl[data-layout='inline']) > :where(.sinn-dl__item) {
|
|
289
|
+
display: flex;
|
|
290
|
+
flex-direction: column;
|
|
291
|
+
gap: var(--sinn-space-3xs);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/* grid: tiles of key facts (term small above, value large). */
|
|
296
|
+
:where(.sinn-dl[data-layout='grid']) {
|
|
297
|
+
display: grid;
|
|
298
|
+
grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr));
|
|
299
|
+
gap: var(--sinn-space-m) var(--sinn-space-l);
|
|
300
|
+
}
|
|
301
|
+
:where(.sinn-dl[data-layout='grid']) :where(.sinn-dl__desc) {
|
|
302
|
+
font-size: var(--sinn-text-xl);
|
|
303
|
+
font-weight: var(--sinn-weight-semibold);
|
|
304
|
+
letter-spacing: -0.01em;
|
|
305
|
+
}
|
|
306
|
+
:where(.sinn-dl[data-layout='grid'][data-divided]) > :where(.sinn-dl__item + .sinn-dl__item) {
|
|
307
|
+
padding-block-start: 0;
|
|
308
|
+
border-block-start: 0;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/* summary: label … value rows (invoices, cost breakdowns), with a total row. */
|
|
312
|
+
:where(.sinn-dl[data-layout='summary']) { gap: 0; }
|
|
313
|
+
:where(.sinn-dl[data-layout='summary']) > :where(.sinn-dl__item) {
|
|
314
|
+
flex-direction: row;
|
|
315
|
+
align-items: baseline;
|
|
316
|
+
justify-content: space-between;
|
|
317
|
+
gap: var(--sinn-space-s);
|
|
318
|
+
padding-block: var(--sinn-p-dl-py);
|
|
319
|
+
}
|
|
320
|
+
:where(.sinn-dl[data-layout='summary']) :where(.sinn-dl__term) { color: var(--sinn-color-text); font-weight: var(--sinn-weight-regular); font-size: var(--sinn-text-m); }
|
|
321
|
+
:where(.sinn-dl[data-layout='summary']) :where(.sinn-dl__desc) {
|
|
322
|
+
font-variant-numeric: tabular-nums;
|
|
323
|
+
text-align: end;
|
|
324
|
+
white-space: nowrap;
|
|
325
|
+
}
|
|
326
|
+
:where(.sinn-dl[data-layout='summary'][data-divided]) > :where(.sinn-dl__item + .sinn-dl__item) { padding-block-start: var(--sinn-p-dl-py); }
|
|
327
|
+
:where(.sinn-dl[data-layout='summary']) > :where(.sinn-dl__item[data-emphasis]) {
|
|
328
|
+
margin-block-start: var(--sinn-space-2xs);
|
|
329
|
+
padding-block-start: var(--sinn-space-xs);
|
|
330
|
+
border-block-start: var(--sinn-border-width-thick) solid var(--sinn-color-border-strong);
|
|
331
|
+
}
|
|
332
|
+
:where(.sinn-dl[data-layout='summary']) > :where(.sinn-dl__item[data-emphasis]) :where(.sinn-dl__term, .sinn-dl__desc) {
|
|
333
|
+
font-size: var(--sinn-text-l);
|
|
334
|
+
font-weight: var(--sinn-weight-semibold);
|
|
335
|
+
}
|
|
336
|
+
:where(.sinn-dl[data-density='compact']) { --sinn-p-dl-py: var(--sinn-space-3xs); }
|
|
337
|
+
:where(.sinn-dl__desc) :where(a) { color: var(--sinn-color-accent-text); text-underline-offset: 0.18em; }
|
|
338
|
+
|
|
339
|
+
/* ================= Rating ================= */
|
|
340
|
+
:where(.sinn-rating-block) { display: inline-flex; flex-direction: column; gap: var(--sinn-space-xs); }
|
|
341
|
+
:where(.sinn-rating-block:has(.sinn-rating-dist)) { display: flex; max-inline-size: 26rem; }
|
|
342
|
+
:where(.sinn-rating) {
|
|
343
|
+
display: inline-flex;
|
|
344
|
+
flex-wrap: wrap;
|
|
345
|
+
align-items: center;
|
|
346
|
+
gap: 0.25em 0.5em;
|
|
347
|
+
font-size: var(--sinn-text-m);
|
|
348
|
+
line-height: 1.2;
|
|
349
|
+
}
|
|
350
|
+
:where(.sinn-rating[data-size='s']) { font-size: var(--sinn-text-s); }
|
|
351
|
+
:where(.sinn-rating[data-size='l']) { font-size: var(--sinn-text-xl); }
|
|
352
|
+
:where(.sinn-rating__stars) {
|
|
353
|
+
display: block;
|
|
354
|
+
flex-shrink: 0;
|
|
355
|
+
block-size: 1.1em;
|
|
356
|
+
inline-size: auto;
|
|
357
|
+
}
|
|
358
|
+
:where(.sinn-rating__stars:dir(rtl)) { transform: scaleX(-1); }
|
|
359
|
+
:where(.sinn-rating__empty) {
|
|
360
|
+
fill: var(--sinn-color-rating-empty);
|
|
361
|
+
stroke: var(--sinn-color-data-muted);
|
|
362
|
+
stroke-width: 1;
|
|
363
|
+
stroke-linejoin: round;
|
|
364
|
+
}
|
|
365
|
+
:where(.sinn-rating__filled) {
|
|
366
|
+
fill: var(--sinn-color-rating);
|
|
367
|
+
stroke: var(--sinn-color-rating-stroke);
|
|
368
|
+
stroke-width: 1;
|
|
369
|
+
stroke-linejoin: round;
|
|
370
|
+
}
|
|
371
|
+
:where(.sinn-rating__value) { font-weight: var(--sinn-weight-semibold); }
|
|
372
|
+
:where(.sinn-rating__count) { color: var(--sinn-color-text-muted); font-size: min(0.875em, var(--sinn-text-s)); }
|
|
373
|
+
:where(a.sinn-rating__count) { color: var(--sinn-color-accent-text); text-decoration: underline; text-underline-offset: 0.18em; }
|
|
374
|
+
:where(a.sinn-rating__count:focus-visible) { outline: var(--sinn-focus-width) solid var(--sinn-color-focus); outline-offset: var(--sinn-focus-offset); border-radius: var(--sinn-radius-s); }
|
|
375
|
+
|
|
376
|
+
/* Distribution: one row per star level, bars aligned (a meter list). */
|
|
377
|
+
:where(.sinn-rating-dist) {
|
|
378
|
+
display: grid;
|
|
379
|
+
grid-template-columns: auto minmax(4rem, 1fr) auto;
|
|
380
|
+
align-items: center;
|
|
381
|
+
gap: 0.4rem var(--sinn-space-xs);
|
|
382
|
+
margin: 0;
|
|
383
|
+
padding: 0;
|
|
384
|
+
list-style: none;
|
|
385
|
+
font-size: var(--sinn-text-s);
|
|
386
|
+
}
|
|
387
|
+
:where(.sinn-rating-dist__row) {
|
|
388
|
+
display: grid;
|
|
389
|
+
grid-column: 1 / -1;
|
|
390
|
+
grid-template-columns: subgrid;
|
|
391
|
+
align-items: center;
|
|
392
|
+
}
|
|
393
|
+
:where(.sinn-rating-dist__label) { display: inline-flex; align-items: center; gap: 0.25em; white-space: nowrap; }
|
|
394
|
+
:where(.sinn-rating-dist__label) :where(svg) { inline-size: 0.9em; block-size: 0.9em; }
|
|
395
|
+
:where(.sinn-rating-dist__figure) {
|
|
396
|
+
color: var(--sinn-color-text-muted);
|
|
397
|
+
font-variant-numeric: tabular-nums;
|
|
398
|
+
text-align: end;
|
|
399
|
+
min-inline-size: 3ch;
|
|
400
|
+
}
|
|
401
|
+
:where(.sinn-rating-dist) :where(.sinn-bar) {
|
|
402
|
+
--sinn-p-bar-fill: var(--sinn-color-rating);
|
|
403
|
+
--sinn-p-bar-track: var(--sinn-color-rating-track);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/* ================= Table ================= */
|
|
407
|
+
:where(.sinn-table) {
|
|
408
|
+
--sinn-p-cell-px: var(--sinn-space-xs);
|
|
409
|
+
--sinn-p-cell-py: 0.625rem;
|
|
410
|
+
--sinn-p-table-bg: var(--sinn-color-surface-raised);
|
|
411
|
+
position: relative;
|
|
412
|
+
container-type: inline-size;
|
|
413
|
+
timeline-scope: --sinn-table-x;
|
|
414
|
+
border: var(--sinn-border-width-thin) solid var(--sinn-color-border);
|
|
415
|
+
border-radius: var(--sinn-radius-l);
|
|
416
|
+
background-color: var(--sinn-p-table-bg);
|
|
417
|
+
color: var(--sinn-color-text);
|
|
418
|
+
overflow: clip;
|
|
419
|
+
}
|
|
420
|
+
:where(.sinn-table[data-variant='plain']) {
|
|
421
|
+
--sinn-p-table-bg: var(--sinn-color-surface);
|
|
422
|
+
border: 0;
|
|
423
|
+
border-radius: 0;
|
|
424
|
+
background: transparent;
|
|
425
|
+
}
|
|
426
|
+
:where(.sinn-table[data-density='compact']) { --sinn-p-cell-py: 0.375rem; --sinn-p-cell-px: var(--sinn-space-2xs); }
|
|
427
|
+
:where(.sinn-table[data-density='comfortable']) { --sinn-p-cell-py: 0.875rem; --sinn-p-cell-px: var(--sinn-space-s); }
|
|
428
|
+
|
|
429
|
+
:where(.sinn-table__scroll) {
|
|
430
|
+
overflow-x: auto;
|
|
431
|
+
overscroll-behavior-x: contain;
|
|
432
|
+
scroll-timeline: --sinn-table-x inline;
|
|
433
|
+
}
|
|
434
|
+
:where(.sinn-table__scroll:focus-visible) {
|
|
435
|
+
outline: var(--sinn-focus-width) solid var(--sinn-color-focus);
|
|
436
|
+
outline-offset: calc(var(--sinn-focus-width) * -1);
|
|
437
|
+
}
|
|
438
|
+
:where(.sinn-table[data-max-height='s']) :where(.sinn-table__scroll) { max-block-size: 20rem; overflow-y: auto; }
|
|
439
|
+
:where(.sinn-table[data-max-height='m']) :where(.sinn-table__scroll) { max-block-size: 32rem; overflow-y: auto; }
|
|
440
|
+
:where(.sinn-table[data-max-height='l']) :where(.sinn-table__scroll) { max-block-size: 48rem; overflow-y: auto; }
|
|
441
|
+
|
|
442
|
+
/* Edge shadows show only while there's more to scroll (scroll-driven; no JS). */
|
|
443
|
+
:where(.sinn-table)::before,
|
|
444
|
+
:where(.sinn-table)::after {
|
|
445
|
+
content: '';
|
|
446
|
+
position: absolute;
|
|
447
|
+
z-index: 4;
|
|
448
|
+
inset-block: 0;
|
|
449
|
+
inline-size: 1.5rem;
|
|
450
|
+
pointer-events: none;
|
|
451
|
+
opacity: 0;
|
|
452
|
+
}
|
|
453
|
+
:where(.sinn-table)::before {
|
|
454
|
+
inset-inline-start: 0;
|
|
455
|
+
background: linear-gradient(to right, var(--sinn-shadow-color), transparent);
|
|
456
|
+
}
|
|
457
|
+
:where(.sinn-table)::after {
|
|
458
|
+
inset-inline-end: 0;
|
|
459
|
+
background: linear-gradient(to left, var(--sinn-shadow-color), transparent);
|
|
460
|
+
}
|
|
461
|
+
:where(.sinn-table:dir(rtl))::before { background: linear-gradient(to left, var(--sinn-shadow-color), transparent); }
|
|
462
|
+
:where(.sinn-table:dir(rtl))::after { background: linear-gradient(to right, var(--sinn-shadow-color), transparent); }
|
|
463
|
+
@supports (animation-timeline: scroll()) {
|
|
464
|
+
:where(.sinn-table)::before {
|
|
465
|
+
animation: sinn-fade-in linear both;
|
|
466
|
+
animation-timeline: --sinn-table-x;
|
|
467
|
+
animation-range: 0 3rem;
|
|
468
|
+
}
|
|
469
|
+
:where(.sinn-table)::after {
|
|
470
|
+
animation: sinn-fade-out linear both;
|
|
471
|
+
animation-timeline: --sinn-table-x;
|
|
472
|
+
animation-range: calc(100% - 3rem) 100%;
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
@keyframes sinn-fade-in { from { opacity: 0; } to { opacity: 1; } }
|
|
476
|
+
@keyframes sinn-fade-out { from { opacity: 1; } to { opacity: 0; } }
|
|
477
|
+
|
|
478
|
+
:where(.sinn-table__table) {
|
|
479
|
+
inline-size: 100%;
|
|
480
|
+
border-collapse: separate;
|
|
481
|
+
border-spacing: 0;
|
|
482
|
+
font-size: var(--sinn-text-s);
|
|
483
|
+
line-height: var(--sinn-leading-snug);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
:where(.sinn-table__caption) {
|
|
487
|
+
padding: var(--sinn-space-s) var(--sinn-p-cell-px) var(--sinn-space-xs);
|
|
488
|
+
caption-side: top;
|
|
489
|
+
text-align: start;
|
|
490
|
+
}
|
|
491
|
+
:where(.sinn-table[data-variant='plain']) :where(.sinn-table__caption) { padding-inline: 0; }
|
|
492
|
+
:where(.sinn-table__title) {
|
|
493
|
+
display: block;
|
|
494
|
+
font-size: var(--sinn-text-m);
|
|
495
|
+
font-weight: var(--sinn-weight-semibold);
|
|
496
|
+
}
|
|
497
|
+
:where(.sinn-table__description) {
|
|
498
|
+
display: block;
|
|
499
|
+
margin-block-start: 0.125rem;
|
|
500
|
+
color: var(--sinn-color-text-muted);
|
|
501
|
+
font-size: var(--sinn-text-s);
|
|
502
|
+
font-weight: var(--sinn-weight-regular);
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
:where(.sinn-table__table) :where(th, td) {
|
|
506
|
+
padding: var(--sinn-p-cell-py) var(--sinn-p-cell-px);
|
|
507
|
+
border-block-end: var(--sinn-border-width-thin) solid var(--sinn-color-data-grid);
|
|
508
|
+
text-align: start;
|
|
509
|
+
vertical-align: middle;
|
|
510
|
+
}
|
|
511
|
+
:where(.sinn-table__table) :where(th:first-child, td:first-child) { padding-inline-start: max(var(--sinn-p-cell-px), var(--sinn-space-s)); }
|
|
512
|
+
:where(.sinn-table__table) :where(th:last-child, td:last-child) { padding-inline-end: max(var(--sinn-p-cell-px), var(--sinn-space-s)); }
|
|
513
|
+
:where(.sinn-table[data-variant='plain']) :where(.sinn-table__table) :where(th:first-child, td:first-child) { padding-inline-start: 0; }
|
|
514
|
+
:where(.sinn-table[data-variant='plain']) :where(.sinn-table__table) :where(th:last-child, td:last-child) { padding-inline-end: 0; }
|
|
515
|
+
|
|
516
|
+
:where(.sinn-table__table) > :where(thead) :where(th) {
|
|
517
|
+
position: sticky;
|
|
518
|
+
inset-block-start: 0;
|
|
519
|
+
z-index: 2;
|
|
520
|
+
background-color: var(--sinn-p-table-bg);
|
|
521
|
+
border-block-end-color: var(--sinn-color-border);
|
|
522
|
+
color: var(--sinn-color-text-muted);
|
|
523
|
+
font-size: var(--sinn-text-xs);
|
|
524
|
+
font-weight: var(--sinn-weight-semibold);
|
|
525
|
+
letter-spacing: 0.02em;
|
|
526
|
+
white-space: nowrap;
|
|
527
|
+
vertical-align: bottom;
|
|
528
|
+
}
|
|
529
|
+
:where(.sinn-table__table) > :where(tbody) :where(th[scope='row']) {
|
|
530
|
+
color: var(--sinn-color-text);
|
|
531
|
+
font-weight: var(--sinn-weight-medium);
|
|
532
|
+
}
|
|
533
|
+
:where(.sinn-table__table) > :where(tbody) > :where(tr:last-child) > :where(th, td) { border-block-end: 0; }
|
|
534
|
+
:where(.sinn-table__table) > :where(tfoot) :where(th, td) {
|
|
535
|
+
border-block-start: var(--sinn-border-width-thin) solid var(--sinn-color-border);
|
|
536
|
+
border-block-end: 0;
|
|
537
|
+
background-color: var(--sinn-color-surface-subtle);
|
|
538
|
+
font-weight: var(--sinn-weight-semibold);
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
:where(.sinn-table__table) :where([data-align='end']) { text-align: end; }
|
|
542
|
+
:where(.sinn-table__table) :where([data-align='center']) { text-align: center; }
|
|
543
|
+
:where(.sinn-table__table) :where([data-numeric]) {
|
|
544
|
+
font-variant-numeric: tabular-nums;
|
|
545
|
+
white-space: nowrap;
|
|
546
|
+
}
|
|
547
|
+
:where(.sinn-table__table) :where([data-width='min']) { inline-size: 1%; white-space: nowrap; }
|
|
548
|
+
:where(.sinn-table__table) :where([data-width='s']) { inline-size: 12%; }
|
|
549
|
+
:where(.sinn-table__table) :where([data-width='m']) { inline-size: 20%; }
|
|
550
|
+
:where(.sinn-table__table) :where([data-width='l']) { inline-size: 32%; }
|
|
551
|
+
:where(.sinn-table__table) :where([data-wrap='nowrap']) { white-space: nowrap; }
|
|
552
|
+
|
|
553
|
+
/* Zebra, hover, current row */
|
|
554
|
+
:where(.sinn-table[data-zebra]) :where(tbody > tr:nth-child(even)) > :where(th, td) { background-color: var(--sinn-color-surface-subtle); }
|
|
555
|
+
@media (hover: hover) {
|
|
556
|
+
:where(.sinn-table[data-hover]) :where(tbody > tr:hover) > :where(th, td) { background-color: var(--sinn-color-neutral-soft); }
|
|
557
|
+
}
|
|
558
|
+
:where(.sinn-table__table) :where(tbody > tr[aria-current='true']) > :where(th, td) { background-color: var(--sinn-color-accent-soft); }
|
|
559
|
+
:where(.sinn-table__table) :where(tbody > tr[aria-current='true']) > :where(:first-child) { box-shadow: inset 3px 0 0 var(--sinn-color-accent); }
|
|
560
|
+
|
|
561
|
+
/* Sticky first column (with the row header) for wide tables. */
|
|
562
|
+
:where(.sinn-table[data-sticky-first]) :where(tr) > :where(:first-child) {
|
|
563
|
+
position: sticky;
|
|
564
|
+
inset-inline-start: 0;
|
|
565
|
+
z-index: 1;
|
|
566
|
+
background-color: var(--sinn-p-table-bg);
|
|
567
|
+
}
|
|
568
|
+
:where(.sinn-table[data-sticky-first]) :where(thead tr) > :where(:first-child) { z-index: 3; }
|
|
569
|
+
:where(.sinn-table[data-sticky-first][data-zebra]) :where(tbody > tr:nth-child(even)) > :where(:first-child) { background-color: var(--sinn-color-surface-subtle); }
|
|
570
|
+
:where(.sinn-table[data-sticky-first]) :where(tfoot tr) > :where(:first-child) { background-color: var(--sinn-color-surface-subtle); }
|
|
571
|
+
|
|
572
|
+
/* Sort controls */
|
|
573
|
+
:where(.sinn-table__sort) {
|
|
574
|
+
display: inline-flex;
|
|
575
|
+
align-items: center;
|
|
576
|
+
gap: 0.35em;
|
|
577
|
+
margin: -0.25rem -0.375rem;
|
|
578
|
+
padding: 0.25rem 0.375rem;
|
|
579
|
+
border: 0;
|
|
580
|
+
border-radius: var(--sinn-radius-s);
|
|
581
|
+
background: transparent;
|
|
582
|
+
color: inherit;
|
|
583
|
+
font: inherit;
|
|
584
|
+
letter-spacing: inherit;
|
|
585
|
+
text-decoration: none;
|
|
586
|
+
cursor: pointer;
|
|
587
|
+
}
|
|
588
|
+
:where([data-align='end']) > :where(.sinn-table__sort) { flex-direction: row-reverse; }
|
|
589
|
+
@media (hover: hover) {
|
|
590
|
+
:where(.sinn-table__sort:hover) { background-color: var(--sinn-color-neutral-soft); color: var(--sinn-color-text); }
|
|
591
|
+
}
|
|
592
|
+
:where(.sinn-table__sort:focus-visible) { outline: var(--sinn-focus-width) solid var(--sinn-color-focus); outline-offset: 0; }
|
|
593
|
+
:where(.sinn-table__sort-icon) { inline-size: 0.65rem; block-size: 0.85rem; flex-shrink: 0; }
|
|
594
|
+
:where(.sinn-table__sort-icon) :where(path) { fill: currentColor; opacity: 0.3; }
|
|
595
|
+
:where(th[aria-sort]) { color: var(--sinn-color-text); }
|
|
596
|
+
:where(th[aria-sort='ascending']) :where(.sinn-table__sort-icon .up),
|
|
597
|
+
:where(th[aria-sort='descending']) :where(.sinn-table__sort-icon .down) { opacity: 1; }
|
|
598
|
+
|
|
599
|
+
/* Cell parts */
|
|
600
|
+
:where(.sinn-table__barcell) {
|
|
601
|
+
display: grid;
|
|
602
|
+
grid-template-columns: minmax(3rem, 1fr) auto;
|
|
603
|
+
align-items: center;
|
|
604
|
+
gap: var(--sinn-space-2xs);
|
|
605
|
+
min-inline-size: 8rem;
|
|
606
|
+
}
|
|
607
|
+
:where(.sinn-table__barcell) > :where(.sinn-bar) { --sinn-p-bar-track: transparent; min-inline-size: 0; }
|
|
608
|
+
:where(.sinn-table__barcell) > :where(span:last-child) { min-inline-size: 5ch; text-align: end; }
|
|
609
|
+
:where(.sinn-table__empty) {
|
|
610
|
+
padding-block: var(--sinn-space-xl) !important;
|
|
611
|
+
color: var(--sinn-color-text-muted);
|
|
612
|
+
text-align: center !important;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
/* Responsive: hide low-priority columns in narrow containers. */
|
|
616
|
+
@container (width < 30rem) {
|
|
617
|
+
:where(.sinn-table) :where([data-hide-below='s']) { display: none; }
|
|
618
|
+
}
|
|
619
|
+
@container (width < 48rem) {
|
|
620
|
+
:where(.sinn-table) :where([data-hide-below='m']) { display: none; }
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/*
|
|
624
|
+
* Stack: below 36rem each row becomes a card of label/value pairs. Changing table
|
|
625
|
+
* display values drops table semantics in some browsers, so Table adds explicit ARIA
|
|
626
|
+
* roles (table/rowgroup/row/columnheader/rowheader/cell) whenever `stack` is on.
|
|
627
|
+
*/
|
|
628
|
+
@container (width < 36rem) {
|
|
629
|
+
:where(.sinn-table[data-stack]) :where(table, thead, tbody, tfoot, tr, th, td, caption) { display: block; }
|
|
630
|
+
:where(.sinn-table[data-stack]) :where(thead) {
|
|
631
|
+
position: absolute;
|
|
632
|
+
inline-size: 1px;
|
|
633
|
+
block-size: 1px;
|
|
634
|
+
overflow: hidden;
|
|
635
|
+
clip-path: inset(50%);
|
|
636
|
+
}
|
|
637
|
+
:where(.sinn-table[data-stack]) :where(tbody > tr, tfoot > tr) {
|
|
638
|
+
padding: var(--sinn-space-xs) var(--sinn-space-s);
|
|
639
|
+
border-block-end: var(--sinn-border-width-thin) solid var(--sinn-color-border-subtle);
|
|
640
|
+
}
|
|
641
|
+
:where(.sinn-table[data-stack]) :where(tbody > tr:last-child) { border-block-end: 0; }
|
|
642
|
+
:where(.sinn-table[data-stack]) :where(tbody > tr[aria-current='true']) {
|
|
643
|
+
background-color: var(--sinn-color-accent-soft);
|
|
644
|
+
box-shadow: inset 3px 0 0 var(--sinn-color-accent);
|
|
645
|
+
}
|
|
646
|
+
:where(.sinn-table[data-stack]) :where(tbody, tfoot) :where(th, td) {
|
|
647
|
+
display: grid;
|
|
648
|
+
grid-template-columns: minmax(6rem, 40%) minmax(0, 1fr);
|
|
649
|
+
align-items: baseline;
|
|
650
|
+
gap: var(--sinn-space-xs);
|
|
651
|
+
padding: 0.2rem 0;
|
|
652
|
+
border: 0;
|
|
653
|
+
text-align: start;
|
|
654
|
+
background: transparent !important;
|
|
655
|
+
box-shadow: none !important;
|
|
656
|
+
position: static;
|
|
657
|
+
}
|
|
658
|
+
:where(.sinn-table[data-stack]) :where(tbody, tfoot) :where(td)::before {
|
|
659
|
+
content: attr(data-label);
|
|
660
|
+
color: var(--sinn-color-text-muted);
|
|
661
|
+
font-size: var(--sinn-text-xs);
|
|
662
|
+
font-weight: var(--sinn-weight-semibold);
|
|
663
|
+
}
|
|
664
|
+
:where(.sinn-table[data-stack]) :where(tbody th[scope='row']) {
|
|
665
|
+
display: block;
|
|
666
|
+
padding-block-end: 0.35rem;
|
|
667
|
+
font-size: var(--sinn-text-m);
|
|
668
|
+
font-weight: var(--sinn-weight-semibold);
|
|
669
|
+
}
|
|
670
|
+
:where(.sinn-table[data-stack]) :where(.sinn-table__barcell) { min-inline-size: 0; }
|
|
671
|
+
:where(.sinn-table[data-stack]) :where([data-hide-below]) { display: grid; }
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
/* ================= MetricCard ================= */
|
|
675
|
+
:where(.sinn-metric) {
|
|
676
|
+
position: relative;
|
|
677
|
+
display: flex;
|
|
678
|
+
flex-direction: column;
|
|
679
|
+
gap: var(--sinn-space-2xs);
|
|
680
|
+
box-sizing: border-box;
|
|
681
|
+
block-size: 100%;
|
|
682
|
+
min-inline-size: 0;
|
|
683
|
+
padding: var(--sinn-space-m);
|
|
684
|
+
border: var(--sinn-border-width-thin) solid var(--sinn-color-border);
|
|
685
|
+
border-radius: var(--sinn-radius-l);
|
|
686
|
+
background-color: var(--sinn-color-surface-raised);
|
|
687
|
+
color: var(--sinn-color-text);
|
|
688
|
+
container-type: inline-size;
|
|
689
|
+
}
|
|
690
|
+
:where(.sinn-metric[data-variant='plain']) { padding: 0; border: 0; border-radius: 0; background: transparent; }
|
|
691
|
+
:where(.sinn-metric[data-size='s']) { padding: var(--sinn-space-s); gap: var(--sinn-space-3xs); }
|
|
692
|
+
|
|
693
|
+
:where(.sinn-metric__header) {
|
|
694
|
+
display: flex;
|
|
695
|
+
align-items: center;
|
|
696
|
+
justify-content: space-between;
|
|
697
|
+
gap: var(--sinn-space-2xs);
|
|
698
|
+
min-block-size: 1.5rem;
|
|
699
|
+
}
|
|
700
|
+
:where(.sinn-metric__label) {
|
|
701
|
+
margin: 0;
|
|
702
|
+
color: var(--sinn-color-text-muted);
|
|
703
|
+
font-size: var(--sinn-text-s);
|
|
704
|
+
font-weight: var(--sinn-weight-medium);
|
|
705
|
+
line-height: var(--sinn-leading-snug);
|
|
706
|
+
}
|
|
707
|
+
:where(.sinn-metric__icon) { display: flex; color: var(--sinn-color-data-muted); }
|
|
708
|
+
:where(.sinn-metric__icon) :where(svg) { inline-size: 1.25rem; block-size: 1.25rem; }
|
|
709
|
+
|
|
710
|
+
:where(.sinn-metric__figures) {
|
|
711
|
+
display: flex;
|
|
712
|
+
flex-wrap: wrap;
|
|
713
|
+
align-items: baseline;
|
|
714
|
+
gap: var(--sinn-space-3xs) var(--sinn-space-xs);
|
|
715
|
+
}
|
|
716
|
+
:where(.sinn-metric__value) {
|
|
717
|
+
margin: 0;
|
|
718
|
+
font-size: var(--sinn-text-3xl);
|
|
719
|
+
font-weight: var(--sinn-weight-semibold);
|
|
720
|
+
letter-spacing: -0.02em;
|
|
721
|
+
line-height: 1.05;
|
|
722
|
+
/* Standalone big number: proportional figures read tighter than tabular. */
|
|
723
|
+
font-variant-numeric: proportional-nums;
|
|
724
|
+
white-space: nowrap;
|
|
725
|
+
}
|
|
726
|
+
:where(.sinn-metric[data-size='s']) :where(.sinn-metric__value) { font-size: var(--sinn-text-2xl); }
|
|
727
|
+
:where(.sinn-metric[data-size='l']) :where(.sinn-metric__value) { font-size: max(3rem, var(--sinn-text-4xl)); }
|
|
728
|
+
:where(.sinn-metric__unit) {
|
|
729
|
+
margin-inline-start: 0.15em;
|
|
730
|
+
color: var(--sinn-color-text-muted);
|
|
731
|
+
font-size: 0.45em;
|
|
732
|
+
font-weight: var(--sinn-weight-medium);
|
|
733
|
+
letter-spacing: 0;
|
|
734
|
+
}
|
|
735
|
+
:where(.sinn-metric__delta) {
|
|
736
|
+
display: inline-flex;
|
|
737
|
+
flex-wrap: wrap;
|
|
738
|
+
align-items: baseline;
|
|
739
|
+
gap: 0.35em;
|
|
740
|
+
margin: 0;
|
|
741
|
+
font-size: var(--sinn-text-s);
|
|
742
|
+
}
|
|
743
|
+
:where(.sinn-metric__period) { color: var(--sinn-color-text-muted); font-weight: var(--sinn-weight-regular); }
|
|
744
|
+
:where(.sinn-metric__empty) { color: var(--sinn-color-data-muted); }
|
|
745
|
+
|
|
746
|
+
/* Sparkline */
|
|
747
|
+
:where(.sinn-sparkline) {
|
|
748
|
+
position: relative;
|
|
749
|
+
margin-block-start: var(--sinn-space-2xs);
|
|
750
|
+
border-radius: var(--sinn-radius-s);
|
|
751
|
+
outline-offset: 2px;
|
|
752
|
+
}
|
|
753
|
+
:where(.sinn-sparkline:focus-visible) { outline: var(--sinn-focus-width) solid var(--sinn-color-focus); }
|
|
754
|
+
:where(.sinn-sparkline) > :where(svg) { display: block; inline-size: 100%; block-size: auto; overflow: visible; }
|
|
755
|
+
:where(.sinn-sparkline__line) {
|
|
756
|
+
fill: none;
|
|
757
|
+
stroke: var(--sinn-color-data-muted);
|
|
758
|
+
stroke-width: 2;
|
|
759
|
+
stroke-linecap: round;
|
|
760
|
+
stroke-linejoin: round;
|
|
761
|
+
vector-effect: non-scaling-stroke;
|
|
762
|
+
}
|
|
763
|
+
:where(.sinn-sparkline__area) { fill: var(--sinn-color-data-muted); opacity: 0.1; }
|
|
764
|
+
:where(.sinn-sparkline__baseline) { stroke: var(--sinn-color-data-grid); stroke-width: 1; vector-effect: non-scaling-stroke; }
|
|
765
|
+
:where(.sinn-sparkline__current) {
|
|
766
|
+
fill: var(--sinn-color-accent);
|
|
767
|
+
stroke: var(--sinn-color-surface-raised);
|
|
768
|
+
stroke-width: 2;
|
|
769
|
+
}
|
|
770
|
+
:where(.sinn-sparkline__crosshair) { stroke: var(--sinn-color-border-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
|
|
771
|
+
:where(.sinn-sparkline__hover) { fill: var(--sinn-color-text); stroke: var(--sinn-color-surface-raised); stroke-width: 2; }
|
|
772
|
+
:where(.sinn-sparkline__tip) {
|
|
773
|
+
position: absolute;
|
|
774
|
+
inset-block-end: calc(100% + 0.35rem);
|
|
775
|
+
z-index: 5;
|
|
776
|
+
display: flex;
|
|
777
|
+
flex-direction: column;
|
|
778
|
+
padding: 0.3rem 0.55rem;
|
|
779
|
+
border-radius: var(--sinn-radius-s);
|
|
780
|
+
background-color: var(--sinn-color-neutral);
|
|
781
|
+
color: var(--sinn-color-neutral-contrast);
|
|
782
|
+
font-size: var(--sinn-text-xs);
|
|
783
|
+
line-height: 1.3;
|
|
784
|
+
white-space: nowrap;
|
|
785
|
+
pointer-events: none;
|
|
786
|
+
translate: -50% 0;
|
|
787
|
+
}
|
|
788
|
+
:where(.sinn-sparkline__tip[data-edge='start']) { translate: 0 0; }
|
|
789
|
+
:where(.sinn-sparkline__tip[data-edge='end']) { translate: -100% 0; }
|
|
790
|
+
:where(.sinn-sparkline__tip) > :where(strong) { font-size: var(--sinn-text-s); font-weight: var(--sinn-weight-semibold); }
|
|
791
|
+
:where(.sinn-sparkline__tip) > :where(span) { opacity: 0.8; }
|
|
792
|
+
|
|
793
|
+
/* Trend beside the figures when the card is wide enough. */
|
|
794
|
+
@container (width >= 22rem) {
|
|
795
|
+
:where(.sinn-metric[data-trend-position='end']) :where(.sinn-metric__body) {
|
|
796
|
+
display: grid;
|
|
797
|
+
grid-template-columns: minmax(0, 1fr) minmax(6rem, 45%);
|
|
798
|
+
align-items: end;
|
|
799
|
+
gap: var(--sinn-space-s);
|
|
800
|
+
}
|
|
801
|
+
:where(.sinn-metric[data-trend-position='end']) :where(.sinn-sparkline) { margin-block-start: 0; }
|
|
802
|
+
}
|
|
803
|
+
:where(.sinn-metric__main) { display: flex; flex-direction: column; gap: var(--sinn-space-3xs); min-inline-size: 0; }
|
|
804
|
+
/* Skeletons reserve the loaded size (CLS ≈ 0). */
|
|
805
|
+
:where(.sinn-skeleton[data-skeleton='value']) { block-size: 2.3rem; inline-size: 55%; }
|
|
806
|
+
:where(.sinn-metric[data-size='l']) :where(.sinn-skeleton[data-skeleton='value']) { block-size: 3.2rem; }
|
|
807
|
+
:where(.sinn-skeleton[data-skeleton='delta']) { block-size: 1.1rem; inline-size: 40%; }
|
|
808
|
+
:where(.sinn-skeleton[data-skeleton='trend']) { block-size: 3rem; inline-size: 100%; margin-block-start: var(--sinn-space-2xs); }
|
|
809
|
+
|
|
810
|
+
:where(.sinn-metric__progress) { display: flex; flex-direction: column; gap: 0.35rem; margin-block-start: var(--sinn-space-2xs); }
|
|
811
|
+
:where(.sinn-metric__progress-text) { color: var(--sinn-color-text-muted); font-size: var(--sinn-text-xs); }
|
|
812
|
+
:where(.sinn-metric__footnote) {
|
|
813
|
+
margin: auto 0 0;
|
|
814
|
+
padding-block-start: var(--sinn-space-xs);
|
|
815
|
+
color: var(--sinn-color-text-muted);
|
|
816
|
+
font-size: var(--sinn-text-xs);
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
/* Linked metric card */
|
|
820
|
+
:where(.sinn-metric__link) { color: inherit; text-decoration: none; }
|
|
821
|
+
:where(.sinn-metric__link)::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
|
|
822
|
+
:where(.sinn-metric__link:focus-visible) { outline: none; }
|
|
823
|
+
:where(.sinn-metric:has(.sinn-metric__link:focus-visible)) { outline: var(--sinn-focus-width) solid var(--sinn-color-focus); outline-offset: var(--sinn-focus-offset); }
|
|
824
|
+
@media (hover: hover) {
|
|
825
|
+
:where(.sinn-metric:has(.sinn-metric__link):hover) { border-color: var(--sinn-color-border-strong); box-shadow: var(--sinn-shadow-s); }
|
|
826
|
+
:where(.sinn-metric:has(.sinn-metric__link):hover) :where(.sinn-metric__link) { text-decoration: underline; text-underline-offset: 0.18em; }
|
|
827
|
+
}
|
|
828
|
+
:where(.sinn-metric:has(.sinn-metric__link)) :where(.sinn-sparkline) { position: relative; z-index: 1; }
|
|
829
|
+
|
|
830
|
+
/*
|
|
831
|
+
* Value tones, last in the file on purpose: these zero-specificity rules must win over
|
|
832
|
+
* the parts' own text colors (list value detail, dl description, table cells).
|
|
833
|
+
* Always paired with an arrow, sign or status icon + label; never color alone.
|
|
834
|
+
*/
|
|
835
|
+
:where([data-value-tone='success']) { color: var(--sinn-color-success-text); }
|
|
836
|
+
:where([data-value-tone='danger']) { color: var(--sinn-color-danger-text); }
|
|
837
|
+
:where([data-value-tone='warning']) { color: var(--sinn-color-warning-text); }
|
|
838
|
+
:where([data-value-tone='muted']) { color: var(--sinn-color-text-muted); }
|
|
839
|
+
:where(.sinn-status-value) { display: inline-flex; align-items: center; gap: 0.25em; white-space: nowrap; }
|
|
840
|
+
:where(.sinn-status-value__icon) { flex-shrink: 0; inline-size: 0.95em; block-size: 0.95em; }
|
|
841
|
+
|
|
842
|
+
@media (forced-colors: active) {
|
|
843
|
+
:where(.sinn-bar) { border: 1px solid CanvasText; }
|
|
844
|
+
:where(.sinn-bar)::before { background-color: CanvasText; }
|
|
845
|
+
:where(.sinn-rating__filled) { fill: CanvasText; }
|
|
846
|
+
:where(.sinn-sparkline__line) { stroke: CanvasText; }
|
|
847
|
+
:where(.sinn-sparkline__current) { fill: Highlight; }
|
|
848
|
+
}
|
|
849
|
+
}
|