@birdycom/omniaui 0.13.0 → 0.14.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/bin/lib/copy-js.mjs +3 -1
- package/dist/components.css +476 -6
- package/dist/components.min.css +1 -1
- package/dist/form-extras.d.ts +3 -1
- package/dist/form-extras.js +21 -3
- package/dist/oc-theme.css +1 -1
- package/dist/particles.d.ts +14 -0
- package/dist/particles.js +133 -0
- package/dist/parts/app-accordion-accent.css +18 -1
- package/dist/parts/app-callout.css +20 -0
- package/dist/parts/app-group.css +36 -0
- package/dist/parts/data-graph.css +132 -0
- package/dist/parts/data-meter-row.css +56 -3
- package/dist/parts/data-reading.css +26 -0
- package/dist/parts/forms-language-select.css +18 -0
- package/dist/parts/nav-menu-static.css +50 -0
- package/dist/parts/site-backgrounds.css +68 -0
- package/dist/parts/site-cards.css +2 -1
- package/dist/parts/site-neon.css +33 -0
- package/dist/showcase.css +2 -0
- package/manifest.json +64 -0
- package/package.json +3 -2
- package/snippets/accordion-accent.html +22 -0
- package/snippets/backgrounds.html +18 -0
- package/snippets/callout.html +17 -0
- package/snippets/graph.html +41 -0
- package/snippets/group.html +34 -0
- package/snippets/language-select.html +11 -0
- package/snippets/menu-static.html +36 -0
- package/snippets/meter-row.html +22 -0
- package/snippets/neon.html +18 -0
- package/snippets/particle-field.html +14 -0
- package/snippets/reading.html +25 -0
package/bin/lib/copy-js.mjs
CHANGED
|
@@ -15,13 +15,15 @@ const SCRIPTS = [
|
|
|
15
15
|
["@birdycom/omniaui", "dist/lazy.js", "oc-lazy.js", "lazy images: fade in over the placeholder (.oc-lazy)"],
|
|
16
16
|
["@birdycom/omniaui", "dist/contact-form.js", "oc-contact-form.js", "contact form: send with fetch, field errors and the result in place ([data-contact-form])"],
|
|
17
17
|
["@birdycom/omniaui", "dist/fly.js", "oc-fly.js", "cards that fly in from the middle of their row on scroll (.oc-reveal--fly)"],
|
|
18
|
-
["@birdycom/omniaui", "dist/
|
|
18
|
+
["@birdycom/omniaui", "dist/particles.js", "oc-particles.js", "particle field: drifting points with lines on a background canvas (canvas.oc-particles)"],
|
|
19
|
+
["@birdycom/omniaui", "dist/form-extras.js", "oc-form-extras.js", "ISO week in date fields, name card rename, avatar picker preview, quantity steps, language code"],
|
|
19
20
|
["@birdycom/omniaui-pro", "dist/spotlight.js", "oc-spotlight.js", "spotlight cards (Pro)"],
|
|
20
21
|
["@birdycom/omniaui-pro", "dist/ecosystem-map.js", "oc-ecosystem-map.js", "ecosystem map lines (Pro)"],
|
|
21
22
|
["@birdycom/omniaui-pro", "dist/infinite-carousel.js", "oc-infinite-carousel.js", "infinite carousel (Pro)"],
|
|
22
23
|
["@birdycom/omniaui-pro", "dist/data-table-pro.js", "oc-data-table-pro.js", "data table column width and row drag (Pro)"],
|
|
23
24
|
["@birdycom/omniaui-pro", "dist/product-picker.js", "oc-product-picker.js", "product picker dialog: search and pick (Pro)"],
|
|
24
25
|
["@birdycom/omniaui-pro", "dist/shop.js", "oc-shop.js", "shop catalog filters and cart totals (Pro)"],
|
|
26
|
+
["@birdycom/omniaui-pro", "dist/network-graph.js", "oc-network-graph.js", "network graph: a center with its nodes on a ring, tooltip and highlight (Pro)"],
|
|
25
27
|
["@birdycom/omniaui-pro", "dist/barcode-maker.js", "oc-barcode-maker.js", "barcode maker: live preview and SVG download (Pro, needs oc-barcode.js)"],
|
|
26
28
|
];
|
|
27
29
|
|
package/dist/components.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* File: oc-theme.css — generated from tokens/semantic.json by @birdycom/omniacss 0.
|
|
1
|
+
/* File: oc-theme.css — generated from tokens/semantic.json by @birdycom/omniacss 0.14.0. Do not edit. */
|
|
2
2
|
/* Semantic theme tokens: every color is light-dark() of an Omnia palette token (oc-colors.css). */
|
|
3
3
|
/* Same source as the desktop export: npx omniacss tokens --format json|dtcg|python */
|
|
4
4
|
:root {
|
|
@@ -3887,6 +3887,8 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
3887
3887
|
.oc-lead { margin: 0 0 1rem; color: var(--oc-muted-foreground); font-size: 1.15rem; line-height: 1.65; max-inline-size: 42rem; text-wrap: pretty; }
|
|
3888
3888
|
/* Larger and narrower, for a home hero. */
|
|
3889
3889
|
.oc-lead--lg { font-size: 1.2rem; max-inline-size: 36rem; }
|
|
3890
|
+
/* Plain: the lead size in the text color and the full width (the intro of a product page). */
|
|
3891
|
+
.oc-lead--plain { color: var(--oc-foreground); max-inline-size: none; }
|
|
3890
3892
|
.oc-split { display: grid; grid-template-columns: var(--oc-split-cols, repeat(auto-fit, minmax(min(100%, 24rem), 1fr))); gap: var(--oc-split-gap, 3rem); align-items: center; }
|
|
3891
3893
|
/* Ratio presets (one column up to 960px): --lead makes the text column wider, --media the image column.
|
|
3892
3894
|
Your own ratio: set --oc-split-cols in a class (and to 1fr in a media query for small screens). */
|
|
@@ -5497,7 +5499,7 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
5497
5499
|
.oc-separator--strong { background: var(--oc-border-strong); }
|
|
5498
5500
|
|
|
5499
5501
|
/* parts/app-accordion-accent.css */
|
|
5500
|
-
/* File: packages/ui/src/parts/app-accordion-accent.css | Map: accent accordion (separate cards) -> item card + left accent -> trigger -> open state -> color modifiers (presets) -> flush combination */
|
|
5502
|
+
/* File: packages/ui/src/parts/app-accordion-accent.css | Map: accent accordion (separate cards) -> item card + left accent -> trigger -> open state -> color modifiers (presets) -> status (data-status) -> status dot -> flush combination */
|
|
5501
5503
|
/* Accordion accent: every item becomes its own card with a colored accent on the start edge.
|
|
5502
5504
|
Add .oc-accordion--accent to an .oc-accordion. The color comes from --oc-accordion-accent:
|
|
5503
5505
|
primary by default, or an existing .oc-accent--* preset (blue, cyan, green, orange, red, violet, yellow)
|
|
@@ -5551,6 +5553,23 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
5551
5553
|
.oc-accordion--accent .oc-accordion-item--danger,
|
|
5552
5554
|
.oc-accordion--accent.oc-accordion--danger .oc-accordion-item { --oc-accordion-accent: var(--oc-destructive); }
|
|
5553
5555
|
|
|
5556
|
+
/* Info and muted (not checked, skipped). */
|
|
5557
|
+
.oc-accordion--accent .oc-accordion-item--info { --oc-accordion-accent: var(--oc-info, light-dark(var(--color-deepskyblue-70), var(--color-skyblue-50))); }
|
|
5558
|
+
.oc-accordion--accent .oc-accordion-item--muted { --oc-accordion-accent: var(--oc-muted-foreground); }
|
|
5559
|
+
|
|
5560
|
+
/* Status of a check (one row per check): data-status="ok|warn|error|skip|pending" on the item. Pending is primary. */
|
|
5561
|
+
.oc-accordion--accent .oc-accordion-item[data-status="ok"] { --oc-accordion-accent: var(--oc-success); }
|
|
5562
|
+
.oc-accordion--accent .oc-accordion-item[data-status="warn"] { --oc-accordion-accent: var(--oc-warning); }
|
|
5563
|
+
.oc-accordion--accent .oc-accordion-item[data-status="error"] { --oc-accordion-accent: var(--oc-destructive); }
|
|
5564
|
+
.oc-accordion--accent .oc-accordion-item[data-status="skip"] { --oc-accordion-accent: var(--oc-muted-foreground); }
|
|
5565
|
+
.oc-accordion--accent .oc-accordion-item[data-status="pending"] { --oc-accordion-accent: var(--oc-primary); }
|
|
5566
|
+
.oc-accordion--accent .oc-accordion-item[data-status="skip"] > .oc-accordion-trigger { color: var(--oc-muted-foreground); }
|
|
5567
|
+
|
|
5568
|
+
/* A dot in the status color at the start of the trigger (hollow while pending). */
|
|
5569
|
+
.oc-accordion-accent-dot { flex-shrink: 0; inline-size: 0.5rem; block-size: 0.5rem; border-radius: 50%; background: var(--oc-accordion-accent); }
|
|
5570
|
+
.oc-accordion-trigger:has(> .oc-accordion-accent-dot) { justify-content: flex-start; gap: 0.6rem; }
|
|
5571
|
+
.oc-accordion-item[data-status="pending"] .oc-accordion-accent-dot { background: transparent; border: 1.5px solid var(--oc-accordion-accent); }
|
|
5572
|
+
|
|
5554
5573
|
/* Accent + flush: no frame around each card except the accent edge. */
|
|
5555
5574
|
.oc-accordion--accent.oc-accordion--flush .oc-accordion-item { border-block: 0; border-inline-end: 0; border-radius: 0; }
|
|
5556
5575
|
|
|
@@ -5655,6 +5674,28 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
5655
5674
|
@keyframes oc-busy-in { from { opacity: 0; } }
|
|
5656
5675
|
@media (prefers-reduced-motion: reduce) { .oc-busy-overlay[open], .oc-busy-overlay[open]::backdrop { animation-duration: 0s; } }
|
|
5657
5676
|
|
|
5677
|
+
/* parts/app-callout.css */
|
|
5678
|
+
/* File: packages/ui/src/parts/app-callout.css | Map: card row (text + action) -> text -> action -> narrow: action under the text */
|
|
5679
|
+
/* Callout: a small card with a text on the left and one action on the right ("Like the app? Support it" + a button).
|
|
5680
|
+
Centred vertically; when the card is narrower than about 300px the action moves under the text. */
|
|
5681
|
+
|
|
5682
|
+
.oc-callout {
|
|
5683
|
+
display: flex;
|
|
5684
|
+
flex-wrap: wrap;
|
|
5685
|
+
align-items: center;
|
|
5686
|
+
gap: 0.5rem 0.75rem;
|
|
5687
|
+
padding: 11px 13px;
|
|
5688
|
+
color: var(--oc-card-foreground, var(--oc-foreground));
|
|
5689
|
+
background: var(--oc-card-background, var(--oc-card));
|
|
5690
|
+
border: 1px solid var(--oc-card-border, var(--oc-border));
|
|
5691
|
+
border-radius: var(--oc-radius);
|
|
5692
|
+
}
|
|
5693
|
+
/* 12rem basis: next to a button the text wraps under it at about 300px. */
|
|
5694
|
+
.oc-callout__text { flex: 1 1 12rem; min-inline-size: 0; margin: 0; font-size: 0.85rem; line-height: 1.45; }
|
|
5695
|
+
.oc-callout__text strong { display: block; color: var(--oc-foreground); }
|
|
5696
|
+
.oc-callout__text > :is(p, span):not(:first-child) { color: var(--oc-muted-foreground); }
|
|
5697
|
+
.oc-callout__action { flex-shrink: 0; display: flex; gap: 0.5rem; }
|
|
5698
|
+
|
|
5658
5699
|
/* parts/app-confirm-dialog.css */
|
|
5659
5700
|
/* File: packages/ui/src/parts/app-confirm-dialog.css | Map: confirm modifier (icon ring) -> close button -> typed confirm field -> confirm lock -> three-button footer -> narrow screens */
|
|
5660
5701
|
/* Confirm dialog: a variant of the alert dialog (dialog.oc-modal + .oc-alert-dialog).
|
|
@@ -6190,6 +6231,44 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
6190
6231
|
.oc-greeting--lg .oc-greeting-title { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); }
|
|
6191
6232
|
.oc-greeting--lg .oc-greeting-icon { inline-size: 3.5rem; block-size: 3.5rem; }
|
|
6192
6233
|
|
|
6234
|
+
/* parts/app-group.css */
|
|
6235
|
+
/* File: packages/ui/src/parts/app-group.css | Map: group -> head (title + aside) -> meta line -> hairline between groups */
|
|
6236
|
+
/* Group: one section inside a panel or widget (a service, an account), with a title, a short status on the right
|
|
6237
|
+
("2 busy") and a muted line under it. Consecutive groups get a hairline between them.
|
|
6238
|
+
<section class="oc-group"><header class="oc-group__head"><h2 class="oc-group__title">…</h2><span class="oc-group__aside">…</span></header>
|
|
6239
|
+
<p class="oc-group__meta">…</p> … </section> The aside takes a color from data-tone="busy|ok|warn|error". */
|
|
6240
|
+
|
|
6241
|
+
.oc-group { padding: 14px 0 6px; }
|
|
6242
|
+
.oc-group + .oc-group { border-block-start: 1px solid var(--oc-group-line, var(--oc-glass-hairline, var(--oc-border))); }
|
|
6243
|
+
.oc-group__head {
|
|
6244
|
+
display: flex;
|
|
6245
|
+
align-items: baseline;
|
|
6246
|
+
justify-content: space-between;
|
|
6247
|
+
gap: 0.75rem;
|
|
6248
|
+
margin-block-end: 0.25rem;
|
|
6249
|
+
}
|
|
6250
|
+
.oc-group__title {
|
|
6251
|
+
min-inline-size: 0;
|
|
6252
|
+
margin: 0;
|
|
6253
|
+
overflow: hidden;
|
|
6254
|
+
font-size: 0.875rem;
|
|
6255
|
+
font-weight: 600;
|
|
6256
|
+
text-overflow: ellipsis;
|
|
6257
|
+
white-space: nowrap;
|
|
6258
|
+
}
|
|
6259
|
+
.oc-group__aside {
|
|
6260
|
+
flex-shrink: 0;
|
|
6261
|
+
font-size: 0.75rem;
|
|
6262
|
+
font-weight: 600;
|
|
6263
|
+
font-variant-numeric: tabular-nums;
|
|
6264
|
+
color: var(--oc-group-tone, var(--oc-muted-foreground));
|
|
6265
|
+
}
|
|
6266
|
+
.oc-group__aside[data-tone="busy"] { --oc-group-tone: var(--oc-primary); }
|
|
6267
|
+
.oc-group__aside[data-tone="ok"] { --oc-group-tone: var(--oc-success); }
|
|
6268
|
+
.oc-group__aside[data-tone="warn"] { --oc-group-tone: var(--oc-warning); }
|
|
6269
|
+
.oc-group__aside[data-tone="error"] { --oc-group-tone: var(--oc-destructive); }
|
|
6270
|
+
.oc-group__meta { margin: 0 0 0.625rem; font-size: 0.75rem; color: var(--oc-muted-foreground); }
|
|
6271
|
+
|
|
6193
6272
|
/* parts/app-list-toolbar.css */
|
|
6194
6273
|
/* File: packages/ui/src/parts/app-list-toolbar.css | Map: toolbar row -> search -> count -> view toggle (radio icons) -> actions -> sticky modifier -> CSS-only view switch (scope) -> narrow screens */
|
|
6195
6274
|
/* List toolbar: search field + result count + cards / table view toggle + actions, above a list.
|
|
@@ -7477,10 +7556,146 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
|
|
|
7477
7556
|
.oc-chart-line__dot, .oc-chart-line__tip { transition: none; }
|
|
7478
7557
|
}
|
|
7479
7558
|
|
|
7559
|
+
/* parts/data-graph.css */
|
|
7560
|
+
/* File: packages/ui/src/parts/data-graph.css
|
|
7561
|
+
Map: frame -> edges (moving dashes) -> nodes (halo, dot, mark, label) -> levels -> center node + pulse -> focus
|
|
7562
|
+
(one node lit, the rest dimmed) -> tooltip -> reduced motion
|
|
7563
|
+
Graph: the look of a small network graph in SVG, a center (a person, an account, a server) with linked nodes
|
|
7564
|
+
around it. Draw it yourself (by hand, d3 or any code) with these classes, or let OmniaUI Pro's network graph
|
|
7565
|
+
lay it out. Node colors follow the severity tokens: data-level="low|medium|high|critical" on .oc-graph__node.
|
|
7566
|
+
<div class="oc-graph"><svg class="oc-graph__svg" viewBox="…">
|
|
7567
|
+
<line class="oc-graph__edge" …/>
|
|
7568
|
+
<g class="oc-graph__node" data-level="high" transform="translate(…)"><circle class="oc-graph__halo" r="21"/>
|
|
7569
|
+
<circle class="oc-graph__dot" r="14"/><text class="oc-graph__mark">▲</text><text class="oc-graph__label" y="27">…</text></g>
|
|
7570
|
+
</svg></div> */
|
|
7571
|
+
|
|
7572
|
+
.oc-graph {
|
|
7573
|
+
--oc-graph-accent: var(--oc-accent-from, var(--oc-primary));
|
|
7574
|
+
position: relative;
|
|
7575
|
+
inline-size: 100%;
|
|
7576
|
+
color: var(--oc-foreground);
|
|
7577
|
+
}
|
|
7578
|
+
.oc-graph__svg { display: block; inline-size: 100%; block-size: auto; overflow: visible; }
|
|
7579
|
+
|
|
7580
|
+
/* Edges: thin dashed lines in the accent color that flow from the center outwards. */
|
|
7581
|
+
.oc-graph__edge {
|
|
7582
|
+
fill: none;
|
|
7583
|
+
stroke: var(--oc-graph-accent);
|
|
7584
|
+
stroke-opacity: 0.35;
|
|
7585
|
+
stroke-width: 1.5;
|
|
7586
|
+
stroke-dasharray: 6 4;
|
|
7587
|
+
animation: oc-graph-flow 1.5s linear infinite;
|
|
7588
|
+
transition: stroke-opacity 0.3s, stroke-width 0.3s;
|
|
7589
|
+
}
|
|
7590
|
+
@keyframes oc-graph-flow { to { stroke-dashoffset: -20; } }
|
|
7591
|
+
|
|
7592
|
+
/* Nodes: a soft halo, a dot in the level color, a mark inside and a label under it. */
|
|
7593
|
+
.oc-graph__node {
|
|
7594
|
+
--oc-graph-color: var(--oc-muted-foreground);
|
|
7595
|
+
cursor: default;
|
|
7596
|
+
outline: none;
|
|
7597
|
+
transition: opacity 0.3s;
|
|
7598
|
+
}
|
|
7599
|
+
.oc-graph__node[role="button"] { cursor: pointer; }
|
|
7600
|
+
.oc-graph__halo {
|
|
7601
|
+
fill: none;
|
|
7602
|
+
stroke: var(--oc-graph-color);
|
|
7603
|
+
stroke-opacity: 0.25;
|
|
7604
|
+
stroke-width: 9;
|
|
7605
|
+
filter: blur(3px);
|
|
7606
|
+
transition: stroke-opacity 0.3s, stroke-width 0.3s;
|
|
7607
|
+
}
|
|
7608
|
+
.oc-graph__dot {
|
|
7609
|
+
fill: var(--oc-graph-color);
|
|
7610
|
+
fill-opacity: 0.88;
|
|
7611
|
+
transition: fill-opacity 0.3s, scale 0.3s;
|
|
7612
|
+
transform-box: fill-box;
|
|
7613
|
+
transform-origin: center;
|
|
7614
|
+
}
|
|
7615
|
+
.oc-graph__mark {
|
|
7616
|
+
fill: var(--color-white-50);
|
|
7617
|
+
font-size: 10px;
|
|
7618
|
+
text-anchor: middle;
|
|
7619
|
+
dominant-baseline: central;
|
|
7620
|
+
pointer-events: none;
|
|
7621
|
+
}
|
|
7622
|
+
.oc-graph__label {
|
|
7623
|
+
fill: var(--oc-muted-foreground);
|
|
7624
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
7625
|
+
font-size: 8.5px;
|
|
7626
|
+
text-anchor: middle;
|
|
7627
|
+
pointer-events: none;
|
|
7628
|
+
}
|
|
7629
|
+
.oc-graph__node:focus-visible .oc-graph__dot { stroke: var(--oc-ring); stroke-width: 2.5; }
|
|
7630
|
+
|
|
7631
|
+
/* Levels (the same tokens as the severity card); the tooltip takes the level of its node. */
|
|
7632
|
+
.oc-graph__node[data-level="low"],
|
|
7633
|
+
.oc-graph__tip[data-level="low"] { --oc-graph-color: var(--oc-success); }
|
|
7634
|
+
.oc-graph__node[data-level="medium"],
|
|
7635
|
+
.oc-graph__tip[data-level="medium"] { --oc-graph-color: var(--oc-warning); }
|
|
7636
|
+
.oc-graph__node[data-level="high"],
|
|
7637
|
+
.oc-graph__tip[data-level="high"] { --oc-graph-color: var(--oc-destructive); }
|
|
7638
|
+
.oc-graph__node[data-level="critical"],
|
|
7639
|
+
.oc-graph__tip[data-level="critical"] { --oc-graph-color: light-dark(var(--color-red-95), var(--color-red-30)); }
|
|
7640
|
+
|
|
7641
|
+
/* Center: the accent color, a thin white ring and a pulse that grows and fades. */
|
|
7642
|
+
.oc-graph__node--center { --oc-graph-color: var(--oc-graph-accent); }
|
|
7643
|
+
.oc-graph__node--center .oc-graph__dot { stroke: var(--color-white-50); stroke-opacity: 0.3; stroke-width: 1.5; }
|
|
7644
|
+
.oc-graph__node--center .oc-graph__mark { font-size: 13px; }
|
|
7645
|
+
.oc-graph__node--center .oc-graph__label { fill: var(--oc-graph-accent); }
|
|
7646
|
+
.oc-graph__pulse {
|
|
7647
|
+
fill: none;
|
|
7648
|
+
stroke: var(--oc-graph-accent);
|
|
7649
|
+
stroke-width: 2;
|
|
7650
|
+
transform-box: fill-box;
|
|
7651
|
+
transform-origin: center;
|
|
7652
|
+
animation: oc-graph-pulse 2.2s ease-out infinite;
|
|
7653
|
+
}
|
|
7654
|
+
@keyframes oc-graph-pulse {
|
|
7655
|
+
from { scale: 1; opacity: 0.6; }
|
|
7656
|
+
to { scale: 2; opacity: 0; }
|
|
7657
|
+
}
|
|
7658
|
+
|
|
7659
|
+
/* Focus: .is-focused on the graph and .is-active on one node light that node and its edge; the rest dims. */
|
|
7660
|
+
.oc-graph.is-focused .oc-graph__node:not(.is-active, .oc-graph__node--center) { opacity: 0.15; }
|
|
7661
|
+
.oc-graph.is-focused .oc-graph__edge { stroke-opacity: 0.08; stroke-width: 1; }
|
|
7662
|
+
.oc-graph.is-focused .oc-graph__edge.is-active { stroke-opacity: 0.8; stroke-width: 3; }
|
|
7663
|
+
.oc-graph__node.is-active .oc-graph__dot { fill-opacity: 1; scale: 1.55; }
|
|
7664
|
+
.oc-graph__node.is-active .oc-graph__halo { stroke-opacity: 0.6; stroke-width: 14; }
|
|
7665
|
+
.oc-graph__node.is-active .oc-graph__label { fill: var(--oc-graph-accent); }
|
|
7666
|
+
|
|
7667
|
+
/* Tooltip: level, title and meta lines of the node under the pointer. */
|
|
7668
|
+
.oc-graph__tip {
|
|
7669
|
+
position: absolute;
|
|
7670
|
+
z-index: 5;
|
|
7671
|
+
min-inline-size: 10rem;
|
|
7672
|
+
max-inline-size: 14rem;
|
|
7673
|
+
padding: 0.75rem;
|
|
7674
|
+
pointer-events: none;
|
|
7675
|
+
opacity: 0;
|
|
7676
|
+
background: var(--oc-popover);
|
|
7677
|
+
color: var(--oc-popover-foreground);
|
|
7678
|
+
border: 1px solid var(--oc-border);
|
|
7679
|
+
border-radius: 0.75rem;
|
|
7680
|
+
box-shadow: 0 8px 24px oklch(from var(--color-black-60) l c h / 0.15);
|
|
7681
|
+
transition: opacity 0.15s;
|
|
7682
|
+
}
|
|
7683
|
+
.oc-graph__tip.is-visible { opacity: 1; }
|
|
7684
|
+
.oc-graph__tip-level { margin-block-end: 0.25rem; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--oc-graph-color, var(--oc-muted-foreground)); }
|
|
7685
|
+
.oc-graph__tip-title { margin-block-end: 0.375rem; font-size: 0.75rem; font-weight: 700; }
|
|
7686
|
+
.oc-graph__tip-meta { font-size: 0.6875rem; line-height: 1.6; color: var(--oc-muted-foreground); }
|
|
7687
|
+
|
|
7688
|
+
@media (prefers-reduced-motion: reduce) {
|
|
7689
|
+
.oc-graph__edge, .oc-graph__pulse { animation: none; }
|
|
7690
|
+
.oc-graph__pulse { opacity: 0; }
|
|
7691
|
+
}
|
|
7692
|
+
|
|
7480
7693
|
/* parts/data-meter-row.css */
|
|
7481
|
-
/* File: packages/ui/src/parts/data-meter-row.css | Map: row grid -> label and value -> bar and fill -> levels -> reset line -> list */
|
|
7694
|
+
/* File: packages/ui/src/parts/data-meter-row.css | Map: row grid -> label and value -> bar and fill (or a fill element) -> levels -> reset line -> sub-line -> list (compact, dense) */
|
|
7482
7695
|
/* Usage meter row: a label, the usage as text, a bar and when it resets. The fill comes from
|
|
7483
|
-
--oc-meter (0–100%); data-level="warn" or "critical" changes the color.
|
|
7696
|
+
--oc-meter (0–100%); data-level="warn" or "critical" changes the color.
|
|
7697
|
+
A live meter can also carry its own fill element (<span class="oc-meter-row__fill" style="inline-size: 42%">):
|
|
7698
|
+
patch its inline width in place; the bar then draws no fill of its own. */
|
|
7484
7699
|
|
|
7485
7700
|
.oc-meter-row {
|
|
7486
7701
|
display: grid;
|
|
@@ -7507,16 +7722,67 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
|
|
|
7507
7722
|
border-radius: inherit;
|
|
7508
7723
|
transition: inline-size 0.4s ease;
|
|
7509
7724
|
}
|
|
7725
|
+
.oc-meter-row__bar:has(> .oc-meter-row__fill)::before { content: none; }
|
|
7726
|
+
.oc-meter-row__fill {
|
|
7727
|
+
display: block;
|
|
7728
|
+
max-inline-size: 100%;
|
|
7729
|
+
block-size: 100%;
|
|
7730
|
+
background: var(--oc-meter-color, var(--oc-success));
|
|
7731
|
+
border-radius: inherit;
|
|
7732
|
+
transition: inline-size 0.4s ease;
|
|
7733
|
+
}
|
|
7510
7734
|
.oc-meter-row[data-level="warn"] { --oc-meter-color: var(--oc-warning); }
|
|
7511
7735
|
.oc-meter-row[data-level="critical"] { --oc-meter-color: var(--oc-destructive); }
|
|
7512
7736
|
.oc-meter-row[data-level="critical"] .oc-meter-row__value strong { color: var(--oc-destructive); }
|
|
7513
7737
|
.oc-meter-row__reset { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; color: var(--oc-muted-foreground); }
|
|
7738
|
+
/* Sub-line: a muted second reading under the bar ("VRAM 2.7 / 8.0 GB") with an optional thin bar of its own.
|
|
7739
|
+
The thin bar takes --oc-meter on itself (or an .oc-meter-row__fill child) and its own data-level. */
|
|
7740
|
+
.oc-meter-row__sub {
|
|
7741
|
+
grid-column: 1 / -1;
|
|
7742
|
+
display: flex;
|
|
7743
|
+
align-items: center;
|
|
7744
|
+
gap: 0.5rem;
|
|
7745
|
+
font-size: 0.75rem;
|
|
7746
|
+
font-variant-numeric: tabular-nums;
|
|
7747
|
+
color: var(--oc-muted-foreground);
|
|
7748
|
+
white-space: nowrap;
|
|
7749
|
+
}
|
|
7750
|
+
.oc-meter-row__subbar {
|
|
7751
|
+
--oc-meter-color: var(--oc-muted-foreground);
|
|
7752
|
+
flex: 1;
|
|
7753
|
+
min-inline-size: 2rem;
|
|
7754
|
+
block-size: 3px;
|
|
7755
|
+
overflow: hidden;
|
|
7756
|
+
background: var(--oc-muted);
|
|
7757
|
+
border-radius: 999px;
|
|
7758
|
+
}
|
|
7759
|
+
.oc-meter-row__subbar::before {
|
|
7760
|
+
content: "";
|
|
7761
|
+
display: block;
|
|
7762
|
+
inline-size: clamp(0%, var(--oc-meter, 0%), 100%);
|
|
7763
|
+
block-size: 100%;
|
|
7764
|
+
background: var(--oc-meter-color);
|
|
7765
|
+
border-radius: inherit;
|
|
7766
|
+
transition: inline-size 0.4s ease;
|
|
7767
|
+
}
|
|
7768
|
+
.oc-meter-row__subbar:has(> .oc-meter-row__fill)::before { content: none; }
|
|
7769
|
+
.oc-meter-row__subbar[data-level="warn"] { --oc-meter-color: var(--oc-warning); }
|
|
7770
|
+
.oc-meter-row__subbar[data-level="critical"] { --oc-meter-color: var(--oc-destructive); }
|
|
7771
|
+
|
|
7514
7772
|
.oc-meter-list { display: grid; gap: 1rem; }
|
|
7515
7773
|
.oc-meter-list--compact { gap: 0.625rem; }
|
|
7516
7774
|
.oc-meter-list--compact .oc-meter-row__bar { block-size: 0.375rem; }
|
|
7775
|
+
/* Dense: for a small widget or tray window (5px bar, smaller label). */
|
|
7776
|
+
.oc-meter-list--dense { gap: 0.5rem; }
|
|
7777
|
+
.oc-meter-list--dense .oc-meter-row { gap: 0.25rem 0.625rem; }
|
|
7778
|
+
.oc-meter-list--dense .oc-meter-row__label { font-size: 0.8rem; }
|
|
7779
|
+
.oc-meter-list--dense .oc-meter-row__value { font-size: 0.75rem; }
|
|
7780
|
+
.oc-meter-list--dense .oc-meter-row__bar { block-size: 5px; }
|
|
7517
7781
|
|
|
7518
7782
|
@media (prefers-reduced-motion: reduce) {
|
|
7519
|
-
.oc-meter-row__bar::before
|
|
7783
|
+
.oc-meter-row__bar::before,
|
|
7784
|
+
.oc-meter-row__subbar::before,
|
|
7785
|
+
.oc-meter-row__fill { transition: none; }
|
|
7520
7786
|
}
|
|
7521
7787
|
|
|
7522
7788
|
/* parts/data-price.css */
|
|
@@ -7541,6 +7807,34 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
|
|
|
7541
7807
|
td[data-numeric] > .oc-price, .oc-price--end { justify-items: end; text-align: end; }
|
|
7542
7808
|
td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { justify-content: flex-end; }
|
|
7543
7809
|
|
|
7810
|
+
/* parts/data-reading.css */
|
|
7811
|
+
/* File: packages/ui/src/parts/data-reading.css | Map: reading -> levels (cool, warm, hot) -> inside a meter row */
|
|
7812
|
+
/* Reading: a small measured value next to another value ("57 °C", "1.2 GHz"), in tabular numbers.
|
|
7813
|
+
Levels: --cool (muted, the default look), --warm (warning) and --hot (destructive). The app picks the level,
|
|
7814
|
+
for example warm from 70 °C and hot from 85 °C. */
|
|
7815
|
+
|
|
7816
|
+
.oc-reading {
|
|
7817
|
+
display: inline-flex;
|
|
7818
|
+
align-items: center;
|
|
7819
|
+
gap: 0.25rem;
|
|
7820
|
+
padding: 0.0625rem 0.375rem;
|
|
7821
|
+
font-size: 0.75rem;
|
|
7822
|
+
font-weight: 600;
|
|
7823
|
+
font-variant-numeric: tabular-nums;
|
|
7824
|
+
line-height: 1.4;
|
|
7825
|
+
color: var(--oc-reading-color, var(--oc-muted-foreground));
|
|
7826
|
+
white-space: nowrap;
|
|
7827
|
+
background: oklch(from var(--oc-reading-color, var(--oc-muted-foreground)) l c h / 0.1);
|
|
7828
|
+
border: 1px solid oklch(from var(--oc-reading-color, var(--oc-muted-foreground)) l c h / 0.25);
|
|
7829
|
+
border-radius: 999px;
|
|
7830
|
+
}
|
|
7831
|
+
.oc-reading--cool { --oc-reading-color: var(--oc-muted-foreground); }
|
|
7832
|
+
.oc-reading--warm { --oc-reading-color: var(--oc-warning); }
|
|
7833
|
+
.oc-reading--hot { --oc-reading-color: var(--oc-destructive); }
|
|
7834
|
+
|
|
7835
|
+
/* In the value of a meter row: a little room before it. */
|
|
7836
|
+
.oc-meter-row__value .oc-reading { margin-inline-start: 0.375rem; }
|
|
7837
|
+
|
|
7544
7838
|
/* parts/data-ribbon.css */
|
|
7545
7839
|
/* File: packages/ui/src/parts/data-ribbon.css | Map: host (positioned, clipped) -> ribbon band -> four corners -> tones -> size -> RTL */
|
|
7546
7840
|
/* Corner ribbon: a diagonal band across one corner of a card, an image or a document ("Paid", "New", "Sale").
|
|
@@ -8544,6 +8838,24 @@ button.oc-language-select {
|
|
|
8544
8838
|
outline: none;
|
|
8545
8839
|
}
|
|
8546
8840
|
button.oc-language-select:hover { background: var(--oc-surface); }
|
|
8841
|
+
|
|
8842
|
+
/* Code: closed it shows only the language code ("NL"), open it shows the native list with the full names.
|
|
8843
|
+
34 × 30px, for the actions of a title bar. The code comes from data-code on the wrapper; form-extras.js (and the
|
|
8844
|
+
React, Vue and Blade components) keep it in step with the chosen option (its data-code, else its value). */
|
|
8845
|
+
.oc-language-select--code {
|
|
8846
|
+
justify-content: center;
|
|
8847
|
+
inline-size: 34px;
|
|
8848
|
+
block-size: 30px;
|
|
8849
|
+
padding: 0;
|
|
8850
|
+
border-radius: calc(var(--oc-radius) - 2px);
|
|
8851
|
+
font-size: 0.75rem;
|
|
8852
|
+
font-weight: 700;
|
|
8853
|
+
letter-spacing: 0.04em;
|
|
8854
|
+
}
|
|
8855
|
+
.oc-language-select--code::before { content: attr(data-code); text-transform: uppercase; pointer-events: none; }
|
|
8856
|
+
.oc-language-select--code::after,
|
|
8857
|
+
.oc-language-select--code .oc-language-select-icon { display: none; }
|
|
8858
|
+
.oc-language-select--code .oc-language-select-control { position: absolute; inset: 0; padding: 0; opacity: 0; }
|
|
8547
8859
|
|
|
8548
8860
|
/* parts/forms-number-input.css */
|
|
8549
8861
|
/* File: packages/ui/src/parts/forms-number-input.css
|
|
@@ -11211,6 +11523,58 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
11211
11523
|
.oc-watermark { --oc-watermark-opacity: 0.2; print-color-adjust: exact; }
|
|
11212
11524
|
}
|
|
11213
11525
|
|
|
11526
|
+
/* parts/nav-menu-static.css */
|
|
11527
|
+
/* File: packages/ui/src/parts/nav-menu-static.css | Map: static menu (no popover, fills its box) -> check column -> hint -> group title */
|
|
11528
|
+
/* Static menu: the dropdown menu as a whole surface of its own, for a tray menu in its own small window or a menu
|
|
11529
|
+
inside a panel. .oc-dropdown-menu--static drops the popover position and fills its container.
|
|
11530
|
+
Items can carry a check column (.oc-dropdown-check, 20px, shows ✓ when the item has aria-checked="true") and a
|
|
11531
|
+
muted hint on the right (.oc-dropdown-hint). Group titles: .oc-dropdown-label; red item: .oc-dropdown-item--destructive. */
|
|
11532
|
+
|
|
11533
|
+
.oc-dropdown-menu.oc-dropdown-menu--static,
|
|
11534
|
+
.oc-dropdown-menu.oc-dropdown-menu--static[popover] {
|
|
11535
|
+
position: static;
|
|
11536
|
+
display: block;
|
|
11537
|
+
inline-size: 100%;
|
|
11538
|
+
min-inline-size: 0;
|
|
11539
|
+
margin: 0;
|
|
11540
|
+
animation: none;
|
|
11541
|
+
}
|
|
11542
|
+
/* In a transparent desktop window the window is the frame: --flat drops the border and shadow. */
|
|
11543
|
+
.oc-dropdown-menu--static.oc-dropdown-menu--flat { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
|
|
11544
|
+
|
|
11545
|
+
.oc-dropdown-check {
|
|
11546
|
+
display: inline-flex;
|
|
11547
|
+
flex: none;
|
|
11548
|
+
justify-content: center;
|
|
11549
|
+
inline-size: 20px;
|
|
11550
|
+
margin-inline-start: -4px;
|
|
11551
|
+
color: var(--oc-primary);
|
|
11552
|
+
}
|
|
11553
|
+
.oc-dropdown-check::before {
|
|
11554
|
+
content: "";
|
|
11555
|
+
inline-size: 0.35rem;
|
|
11556
|
+
block-size: 0.65rem;
|
|
11557
|
+
border-inline-end: 2px solid currentColor;
|
|
11558
|
+
border-block-end: 2px solid currentColor;
|
|
11559
|
+
rotate: 45deg;
|
|
11560
|
+
translate: 0 -10%;
|
|
11561
|
+
opacity: 0;
|
|
11562
|
+
}
|
|
11563
|
+
.oc-dropdown-item[aria-checked="true"] > .oc-dropdown-check::before { opacity: 1; }
|
|
11564
|
+
/* With its own check column, the role-based check mark is not drawn a second time. */
|
|
11565
|
+
.oc-dropdown-item:has(> .oc-dropdown-check) { padding-inline-start: 10px; }
|
|
11566
|
+
.oc-dropdown-item:has(> .oc-dropdown-check)::before { content: none; }
|
|
11567
|
+
|
|
11568
|
+
.oc-dropdown-hint {
|
|
11569
|
+
margin-inline-start: auto;
|
|
11570
|
+
padding-inline-start: 1rem;
|
|
11571
|
+
font-size: 0.75rem;
|
|
11572
|
+
font-variant-numeric: tabular-nums;
|
|
11573
|
+
color: var(--oc-muted-foreground);
|
|
11574
|
+
white-space: nowrap;
|
|
11575
|
+
}
|
|
11576
|
+
.oc-dropdown-menu--static .oc-dropdown-label { font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; }
|
|
11577
|
+
|
|
11214
11578
|
/* parts/nav-topbar-variants.css */
|
|
11215
11579
|
/* File: packages/ui/src/parts/nav-topbar-variants.css
|
|
11216
11580
|
Map: brand (logo tile, room before the menu) -> centred menu -> plain links -> dark / brand colour -> floating pill
|
|
@@ -11309,6 +11673,76 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
11309
11673
|
.oc-footerbar--dark :is(a, .oc-footerbar-links a) { color: oklch(from var(--color-white-50) l c h / 0.85); }
|
|
11310
11674
|
.oc-footerbar--dark .oc-footerbar-links a:hover { color: var(--color-white-50); }
|
|
11311
11675
|
|
|
11676
|
+
/* parts/site-backgrounds.css */
|
|
11677
|
+
/* File: packages/ui/src/parts/site-backgrounds.css | Map: grid (--fixed, --fade) -> orb (--sm, --drift) -> scan lines -> particle canvas -> reduced motion */
|
|
11678
|
+
/* Background pack: decorative layers behind (or over) a page or a section. All are aria-hidden, ignore the pointer and
|
|
11679
|
+
follow the theme tokens; put them in a positioned parent (scan lines and the particle canvas cover the viewport unless --local).
|
|
11680
|
+
<div class="oc-bg-grid" aria-hidden="true"></div> <div class="oc-orb" aria-hidden="true"></div>
|
|
11681
|
+
<div class="oc-scanlines" aria-hidden="true"></div> <canvas class="oc-particles" aria-hidden="true"></canvas> (+ particles.js) */
|
|
11682
|
+
|
|
11683
|
+
/* Grid: thin lines in the primary color. --oc-bg-grid-size (60px) and --oc-bg-grid-line set the size and the color. */
|
|
11684
|
+
.oc-bg-grid {
|
|
11685
|
+
position: absolute;
|
|
11686
|
+
inset: 0;
|
|
11687
|
+
z-index: -1;
|
|
11688
|
+
pointer-events: none;
|
|
11689
|
+
background-image:
|
|
11690
|
+
linear-gradient(var(--oc-bg-grid-line, oklch(from var(--oc-primary) l c h / 0.04)) 1px, transparent 1px),
|
|
11691
|
+
linear-gradient(90deg, var(--oc-bg-grid-line, oklch(from var(--oc-primary) l c h / 0.04)) 1px, transparent 1px);
|
|
11692
|
+
background-size: var(--oc-bg-grid-size, 60px) var(--oc-bg-grid-size, 60px);
|
|
11693
|
+
}
|
|
11694
|
+
.oc-bg-grid--fixed { position: fixed; --oc-bg-grid-size: 40px; }
|
|
11695
|
+
/* Fade: the lines disappear towards the edges. */
|
|
11696
|
+
.oc-bg-grid--fade { mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%); }
|
|
11697
|
+
|
|
11698
|
+
/* Orb: a soft round glow in the accent color (.oc-accent--violet for another color). Place it with inset-* or translate. */
|
|
11699
|
+
.oc-orb {
|
|
11700
|
+
position: absolute;
|
|
11701
|
+
z-index: -1;
|
|
11702
|
+
inline-size: var(--oc-orb-size, min(500px, 90vw));
|
|
11703
|
+
aspect-ratio: 1;
|
|
11704
|
+
pointer-events: none;
|
|
11705
|
+
background: radial-gradient(circle, oklch(from var(--oc-accent-from) l c h / var(--oc-orb-strength, 0.15)) 0%, transparent 70%);
|
|
11706
|
+
border-radius: 50%;
|
|
11707
|
+
filter: blur(var(--oc-orb-blur, 50px));
|
|
11708
|
+
}
|
|
11709
|
+
.oc-orb--sm { --oc-orb-size: 18rem; --oc-orb-blur: 35px; }
|
|
11710
|
+
.oc-orb--drift { animation: oc-orb-drift 18s ease-in-out infinite alternate; }
|
|
11711
|
+
@keyframes oc-orb-drift { to { translate: 3rem 2rem; scale: 1.1; } }
|
|
11712
|
+
|
|
11713
|
+
/* Scan lines: a fine horizontal raster over the page (2% primary). --local keeps it inside a positioned parent. */
|
|
11714
|
+
.oc-scanlines {
|
|
11715
|
+
position: fixed;
|
|
11716
|
+
inset: 0;
|
|
11717
|
+
z-index: var(--oc-scanlines-z, 9999);
|
|
11718
|
+
pointer-events: none;
|
|
11719
|
+
background: repeating-linear-gradient(
|
|
11720
|
+
0deg,
|
|
11721
|
+
transparent 0 2px,
|
|
11722
|
+
var(--oc-scanlines-color, oklch(from var(--oc-primary) l c h / 0.02)) 2px 4px
|
|
11723
|
+
);
|
|
11724
|
+
}
|
|
11725
|
+
.oc-scanlines--local { position: absolute; z-index: 1; }
|
|
11726
|
+
|
|
11727
|
+
/* Particle canvas: particles.js draws drifting points with thin lines between neighbours. It reads two colors from
|
|
11728
|
+
this element: color (points and lines) and border-color (a second point color). --local fills a positioned parent. */
|
|
11729
|
+
.oc-particles {
|
|
11730
|
+
position: fixed;
|
|
11731
|
+
inset: 0;
|
|
11732
|
+
z-index: -1;
|
|
11733
|
+
display: block;
|
|
11734
|
+
inline-size: 100%;
|
|
11735
|
+
block-size: 100%;
|
|
11736
|
+
pointer-events: none;
|
|
11737
|
+
color: var(--oc-accent-from);
|
|
11738
|
+
border: 0 solid var(--oc-accent-to);
|
|
11739
|
+
}
|
|
11740
|
+
.oc-particles--local { position: absolute; }
|
|
11741
|
+
|
|
11742
|
+
@media (prefers-reduced-motion: reduce) {
|
|
11743
|
+
.oc-orb--drift { animation: none; }
|
|
11744
|
+
}
|
|
11745
|
+
|
|
11312
11746
|
/* parts/site-base.css */
|
|
11313
11747
|
/* File: packages/ui/src/parts/site-base.css */
|
|
11314
11748
|
/* Map: skip link -> icon */
|
|
@@ -11525,7 +11959,8 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
11525
11959
|
}
|
|
11526
11960
|
.oc-note--md {
|
|
11527
11961
|
max-inline-size: 60rem;
|
|
11528
|
-
|
|
11962
|
+
/* The size of the running text around it (the body size of the page). */
|
|
11963
|
+
font-size: inherit;
|
|
11529
11964
|
}
|
|
11530
11965
|
|
|
11531
11966
|
/* Row of badges or pills above a title, and a tagline in the accent color (lighter, so it reads on a dark page). */
|
|
@@ -11927,6 +12362,41 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
11927
12362
|
.oc-marquee__item[aria-hidden="true"] { display: none; }
|
|
11928
12363
|
}
|
|
11929
12364
|
|
|
12365
|
+
/* parts/site-neon.css */
|
|
12366
|
+
/* File: packages/ui/src/parts/site-neon.css | Map: glowing border (animated) -> neon button -> reduced motion */
|
|
12367
|
+
/* Neon: a border that slowly glows from one accent color to the other, and a button with a neon gradient.
|
|
12368
|
+
Colors: --oc-accent-from and --oc-accent-to (brand-1 and brand-2, or an .oc-accent--* preset).
|
|
12369
|
+
.oc-glow-border goes on anything with a border: <form class="oc-glass oc-glow-border">, an .oc-card, a panel. */
|
|
12370
|
+
|
|
12371
|
+
.oc-glow-border {
|
|
12372
|
+
border-color: var(--oc-accent-from);
|
|
12373
|
+
box-shadow: 0 0 10px oklch(from var(--oc-accent-from) l c h / 0.35), var(--oc-glow-extra, 0 0 transparent);
|
|
12374
|
+
animation: oc-glow-border var(--oc-glow-border-duration, 3s) ease-in-out infinite;
|
|
12375
|
+
}
|
|
12376
|
+
/* Glass keeps its light top edge and drop shadow under the glow. */
|
|
12377
|
+
.oc-glass.oc-glow-border { --oc-glow-extra: var(--oc-glass-shadow), inset 0 1px 0 var(--oc-glass-edge-hi); }
|
|
12378
|
+
@keyframes oc-glow-border {
|
|
12379
|
+
0%, 100% { border-color: var(--oc-accent-from); box-shadow: 0 0 10px oklch(from var(--oc-accent-from) l c h / 0.35), var(--oc-glow-extra, 0 0 transparent); }
|
|
12380
|
+
50% { border-color: var(--oc-accent-to); box-shadow: 0 0 20px oklch(from var(--oc-accent-to) l c h / 0.35), var(--oc-glow-extra, 0 0 transparent); }
|
|
12381
|
+
}
|
|
12382
|
+
|
|
12383
|
+
/* Neon button: gradient from one accent to the other, with a glow. --oc-btn-neon-ink sets the text color. */
|
|
12384
|
+
.oc-btn--neon {
|
|
12385
|
+
font-weight: 700;
|
|
12386
|
+
letter-spacing: 0.08em;
|
|
12387
|
+
color: var(--oc-btn-neon-ink, light-dark(var(--color-white-50), var(--color-black-40)));
|
|
12388
|
+
background: linear-gradient(135deg, var(--oc-accent-from), var(--oc-accent-to)) border-box;
|
|
12389
|
+
border-color: transparent;
|
|
12390
|
+
box-shadow: 0 0 24px oklch(from var(--oc-accent-from) l c h / 0.4);
|
|
12391
|
+
transition: filter var(--oc-transition-fast), box-shadow var(--oc-transition-fast);
|
|
12392
|
+
}
|
|
12393
|
+
.oc-btn--neon:hover:not(:disabled) { filter: brightness(1.08); box-shadow: 0 0 32px oklch(from var(--oc-accent-from) l c h / 0.55); opacity: 1; }
|
|
12394
|
+
.oc-btn--neon:disabled { color: var(--oc-muted-foreground); background: var(--oc-muted); box-shadow: none; }
|
|
12395
|
+
|
|
12396
|
+
@media (prefers-reduced-motion: reduce) {
|
|
12397
|
+
.oc-glow-border { animation: none; }
|
|
12398
|
+
}
|
|
12399
|
+
|
|
11930
12400
|
/* parts/site-next-teaser.css */
|
|
11931
12401
|
/* File: packages/ui/src/parts/site-next-teaser.css
|
|
11932
12402
|
Map: card -> label -> name (+ mark) -> tagline with arrow -> previous variant -> hover -> reduced motion
|