@birdycom/omniaui 0.14.0 → 0.14.2
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/add.mjs +7 -1
- package/bin/lib/catalog.mjs +6 -0
- package/bin/lib/copy-js.mjs +2 -0
- package/dist/components.css +540 -24
- package/dist/components.min.css +1 -1
- package/dist/docs-ui.css +12 -1
- package/dist/language-select.d.ts +7 -0
- package/dist/language-select.js +48 -0
- package/dist/oc-theme.css +1 -1
- package/dist/parts/app-page-header.css +1 -1
- package/dist/parts/app-severity-card.css +4 -0
- package/dist/parts/app-status-dot.css +19 -4
- package/dist/parts/app-version-banner.css +18 -1
- package/dist/parts/data-dl-glossary.css +22 -0
- package/dist/parts/data-meter-row.css +7 -0
- package/dist/parts/data-step-list.css +48 -0
- package/dist/parts/forms-language-select.css +62 -0
- package/dist/parts/site-doc-layout.css +39 -0
- package/dist/parts/site-layout.css +15 -1
- package/dist/parts/site-neon.css +17 -3
- package/dist/parts/site-prose.css +4 -1
- package/dist/parts/site-tint-card.css +223 -0
- package/dist/showcase.css +20 -5
- package/dist/toc.d.ts +9 -0
- package/dist/toc.js +96 -0
- package/manifest.json +24 -0
- package/package.json +4 -2
- package/snippets/definition-list.html +2 -0
- package/snippets/doc-layout.html +39 -0
- package/snippets/meter-row.html +2 -1
- package/snippets/page-sections.html +1 -1
- package/snippets/progress.html +1 -1
- package/snippets/status-dot.html +1 -0
- package/snippets/step-list.html +28 -0
- package/snippets/tint-card.html +66 -0
- package/snippets/toc.html +1 -1
package/dist/components.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* File: oc-theme.css — generated from tokens/semantic.json by @birdycom/omniacss 0.14.
|
|
1
|
+
/* File: oc-theme.css — generated from tokens/semantic.json by @birdycom/omniacss 0.14.2. 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 {
|
|
@@ -2114,6 +2114,10 @@ a.oc-breadcrumb-item:hover {
|
|
|
2114
2114
|
border-radius: 999px;
|
|
2115
2115
|
transition: width 300ms ease;
|
|
2116
2116
|
}
|
|
2117
|
+
/* contain: the width change of the bar is laid out inside the track only, never the page around it.
|
|
2118
|
+
--live: no transition, for a bar that gets a new value every few seconds in a window that stays open. */
|
|
2119
|
+
.oc-progress { contain: layout paint; }
|
|
2120
|
+
.oc-progress--live .oc-progress-bar { transition: none; }
|
|
2117
2121
|
|
|
2118
2122
|
.oc-progress-bar--success { --oc-progress-color: var(--oc-success); }
|
|
2119
2123
|
.oc-progress-bar--danger { --oc-progress-color: var(--oc-destructive); }
|
|
@@ -2369,14 +2373,19 @@ button.oc-pagination-item:focus-visible {
|
|
|
2369
2373
|
The older .is-open / aria-expanded hooks keep working for script-driven setups.
|
|
2370
2374
|
=================================================================== */
|
|
2371
2375
|
|
|
2372
|
-
/* Modal — <dialog>: focus trap, Esc to close and ::backdrop come from the browser
|
|
2376
|
+
/* Modal — <dialog>: focus trap, Esc to close and ::backdrop come from the browser.
|
|
2377
|
+
The dialog is as large as its card, not the whole screen: closedby="any" closes it on a click outside the
|
|
2378
|
+
dialog's box, so a full-screen dialog never closed on a click next to the card. The card keeps the sizes
|
|
2379
|
+
(sm, lg, xl, full or your own max-width); the browser centers the dialog (margin: auto). */
|
|
2373
2380
|
dialog.oc-modal {
|
|
2374
2381
|
display: none;
|
|
2375
|
-
width:
|
|
2376
|
-
height:
|
|
2377
|
-
max-width:
|
|
2378
|
-
max-height:
|
|
2379
|
-
margin:
|
|
2382
|
+
width: fit-content;
|
|
2383
|
+
height: fit-content;
|
|
2384
|
+
max-width: calc(100vw - 32px);
|
|
2385
|
+
max-height: calc(100dvh - 32px);
|
|
2386
|
+
margin: auto;
|
|
2387
|
+
padding: 0;
|
|
2388
|
+
overflow: visible;
|
|
2380
2389
|
border: 0;
|
|
2381
2390
|
background: transparent;
|
|
2382
2391
|
color: var(--oc-foreground);
|
|
@@ -2388,6 +2397,11 @@ dialog.oc-modal::backdrop {
|
|
|
2388
2397
|
background: oklch(from var(--color-black-60) l c h / 0.5);
|
|
2389
2398
|
backdrop-filter: blur(4px);
|
|
2390
2399
|
}
|
|
2400
|
+
/* The card asks for the full width; its max-width (480px, or a size modifier) decides. Low specificity, so a
|
|
2401
|
+
block's own width on the card still wins. */
|
|
2402
|
+
:where(dialog.oc-modal[open]) .oc-modal-content {
|
|
2403
|
+
width: calc(100vw - 32px);
|
|
2404
|
+
}
|
|
2391
2405
|
dialog.oc-modal[open] .oc-modal-content {
|
|
2392
2406
|
transition: opacity var(--oc-transition-normal), scale var(--oc-transition-normal);
|
|
2393
2407
|
@starting-style {
|
|
@@ -4057,17 +4071,32 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
4057
4071
|
--strong starts at the full accent with a wider ring. */
|
|
4058
4072
|
.oc-pill .oc-status-dot {
|
|
4059
4073
|
--oc-status-dot-pulse-alpha: 0.6;
|
|
4060
|
-
--oc-status-dot-pulse-
|
|
4074
|
+
--oc-status-dot-pulse-scale: 3;
|
|
4075
|
+
position: relative;
|
|
4061
4076
|
inline-size: 0.5rem;
|
|
4062
4077
|
aspect-ratio: 1;
|
|
4063
4078
|
border-radius: 50%;
|
|
4064
4079
|
background: var(--oc-accent-from);
|
|
4065
|
-
|
|
4080
|
+
box-shadow: none;
|
|
4081
|
+
}
|
|
4082
|
+
/* The ring is a ::after that scales and fades (transform + opacity): drawn by the GPU, no work per frame on the page. */
|
|
4083
|
+
.oc-pill .oc-status-dot::after {
|
|
4084
|
+
content: "";
|
|
4085
|
+
position: absolute;
|
|
4086
|
+
inset: 0;
|
|
4087
|
+
border-radius: inherit;
|
|
4088
|
+
background: var(--oc-accent-from);
|
|
4089
|
+
opacity: 0;
|
|
4090
|
+
pointer-events: none;
|
|
4091
|
+
animation: oc-status-dot-ring 2s ease-out var(--oc-status-dot-pulses, infinite);
|
|
4066
4092
|
}
|
|
4067
|
-
.oc-pill .oc-status-dot--strong { --oc-status-dot-pulse-alpha: 1; --oc-status-dot-pulse-
|
|
4093
|
+
.oc-pill .oc-status-dot--strong { --oc-status-dot-pulse-alpha: 1; --oc-status-dot-pulse-scale: 3.5; }
|
|
4068
4094
|
@keyframes oc-status-dot-ring {
|
|
4069
|
-
0% {
|
|
4070
|
-
70%, 100% {
|
|
4095
|
+
0% { transform: scale(1); opacity: var(--oc-status-dot-pulse-alpha); }
|
|
4096
|
+
70%, 100% { transform: scale(var(--oc-status-dot-pulse-scale)); opacity: 0; }
|
|
4097
|
+
}
|
|
4098
|
+
@media (prefers-reduced-motion: reduce) {
|
|
4099
|
+
.oc-pill .oc-status-dot::after { animation: none; }
|
|
4071
4100
|
}
|
|
4072
4101
|
|
|
4073
4102
|
/* Stat strip: big numbers in a bordered row (pairs with .oc-counter for counting up) */
|
|
@@ -4319,9 +4348,17 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
4319
4348
|
.oc-sidebar--docs.oc-sidebar--collapsed { inline-size: auto; }
|
|
4320
4349
|
|
|
4321
4350
|
/* ---- On this page: .oc-toc ---------------------------------------------------------------------- */
|
|
4322
|
-
|
|
4351
|
+
/* Sticky only from 64rem: stacked above the text on a phone it would stay over the text. It stops under a sticky site
|
|
4352
|
+
header (--oc-sticky-offset, see parts/site-doc-layout.css). */
|
|
4353
|
+
.oc-toc { max-block-size: 100%; overflow: auto; padding-block-start: 2px; padding-inline-end: 0.5rem; }
|
|
4354
|
+
@media (min-width: 64rem) {
|
|
4355
|
+
.oc-toc { position: sticky; inset-block-start: var(--oc-sticky-offset, 0px); }
|
|
4356
|
+
}
|
|
4323
4357
|
.oc-toc-title { margin: 1rem 0 0.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--oc-muted-foreground); }
|
|
4324
4358
|
.oc-toc-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
|
|
4359
|
+
/* Label above a group of links (Articles, Annexes): a <p> between two lists, or an <li> inside one list. */
|
|
4360
|
+
.oc-toc-group-label { margin: 1.25rem 0 0.4rem; padding-inline: 0.5rem; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--oc-subtle-foreground, var(--oc-muted-foreground)); }
|
|
4361
|
+
.oc-toc-group-label:first-child { margin-block-start: 0; }
|
|
4325
4362
|
.oc-toc-link {
|
|
4326
4363
|
display: block;
|
|
4327
4364
|
padding: 0.375rem 0.5rem;
|
|
@@ -4338,6 +4375,9 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
4338
4375
|
.oc-toc-link.is-active { color: var(--oc-foreground); border-color: var(--oc-primary); background: oklch(from var(--oc-primary) l c h / 0.1); }
|
|
4339
4376
|
/* Scroll-spy without JavaScript: the link of the heading you are reading is highlighted (native :target-current). */
|
|
4340
4377
|
.oc-toc-list { scroll-target-group: auto; }
|
|
4378
|
+
/* One group for the whole table of contents, so with several lists (one per group) only one link lights up. */
|
|
4379
|
+
.oc-toc { scroll-target-group: auto; }
|
|
4380
|
+
.oc-toc .oc-toc-list { scroll-target-group: none; }
|
|
4341
4381
|
.oc-toc-link:target-current { color: var(--oc-foreground); border-color: var(--oc-primary); background: oklch(from var(--oc-primary) l c h / 0.1); }
|
|
4342
4382
|
.oc-toc-item--sub { margin-inline-start: 0.75rem; }
|
|
4343
4383
|
.oc-toc-item--sub .oc-toc-link { font-size: 0.8125rem; }
|
|
@@ -6469,7 +6509,7 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
6469
6509
|
.oc-page-header--bordered { margin-block-end: 1rem; border-block-end: 1px solid var(--oc-border); }
|
|
6470
6510
|
|
|
6471
6511
|
/* Sticky: stays on top while the page scrolls (needs a background). */
|
|
6472
|
-
.oc-page-header--sticky { position: sticky; inset-block-start:
|
|
6512
|
+
.oc-page-header--sticky { position: sticky; inset-block-start: var(--oc-sticky-offset, 0px); z-index: 10; background: var(--oc-background); }
|
|
6473
6513
|
|
|
6474
6514
|
/* Small: for sub pages and dialogs. */
|
|
6475
6515
|
.oc-page-header--sm { padding-block: 0.5rem 0.75rem; }
|
|
@@ -6534,6 +6574,8 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
6534
6574
|
interpolate-size: allow-keywords;
|
|
6535
6575
|
}
|
|
6536
6576
|
.oc-severity-card + .oc-severity-card { margin-block-start: 0.5rem; }
|
|
6577
|
+
/* In a stack the gap of the stack is the space between the cards; the margin would add to it. */
|
|
6578
|
+
.oc-stack > .oc-severity-card + .oc-severity-card { margin-block-start: 0; }
|
|
6537
6579
|
|
|
6538
6580
|
/* Head row (summary): icon, title + tags, level badge, chevron. */
|
|
6539
6581
|
.oc-severity-card-head {
|
|
@@ -6591,6 +6633,8 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
6591
6633
|
.oc-severity-card[open]::details-content { block-size: auto; }
|
|
6592
6634
|
.oc-severity-card-body { padding: 0 1rem 1rem 3rem; font-size: 0.875rem; line-height: 1.6; color: var(--oc-muted-foreground); }
|
|
6593
6635
|
.oc-severity-card-body > :first-child { margin-block-start: 0; }
|
|
6636
|
+
/* Without an icon in the head the text lines up with the title instead of the icon column. */
|
|
6637
|
+
.oc-severity-card:not(:has(> .oc-severity-card-head .oc-severity-card-icon)) .oc-severity-card-body { padding-inline-start: 1rem; }
|
|
6594
6638
|
.oc-severity-card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block-start: 0.75rem; }
|
|
6595
6639
|
|
|
6596
6640
|
/* Levels (theme tokens; critical is a deeper red). */
|
|
@@ -6769,17 +6813,32 @@ button.oc-stat-card:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
6769
6813
|
vertical-align: middle;
|
|
6770
6814
|
}
|
|
6771
6815
|
|
|
6772
|
-
/* Tones. --working pulses a ring outwards
|
|
6816
|
+
/* Tones. --working pulses a ring outwards: a ::after that only scales and fades (transform + opacity), so the GPU
|
|
6817
|
+
draws it and the page does no style or paint work per frame, also in a window that is always open.
|
|
6818
|
+
--oc-status-dot-pulses: how many times (default infinite; 3 = pulse three times and then stay a steady dot).
|
|
6819
|
+
--still: working without the pulse. */
|
|
6820
|
+
:where(.oc-status-dot--working) { position: relative; }
|
|
6773
6821
|
.oc-status-dot--working {
|
|
6774
6822
|
--oc-status-dot-color: var(--oc-primary);
|
|
6775
|
-
animation: oc-status-dot-pulse 1.8s ease-in-out infinite;
|
|
6776
6823
|
}
|
|
6824
|
+
.oc-status-dot--working::after {
|
|
6825
|
+
content: "";
|
|
6826
|
+
position: absolute;
|
|
6827
|
+
inset: 0;
|
|
6828
|
+
border-radius: inherit;
|
|
6829
|
+
background: var(--oc-status-dot-color);
|
|
6830
|
+
opacity: 0;
|
|
6831
|
+
pointer-events: none;
|
|
6832
|
+
animation: oc-status-dot-pulse 1.8s ease-out var(--oc-status-dot-pulses, infinite);
|
|
6833
|
+
}
|
|
6834
|
+
.oc-status-dot--still::after { content: none; }
|
|
6777
6835
|
.oc-status-dot--waiting { --oc-status-dot-color: var(--oc-warning); }
|
|
6778
6836
|
.oc-status-dot--done { --oc-status-dot-color: var(--oc-success); }
|
|
6779
6837
|
.oc-status-dot--error { --oc-status-dot-color: var(--oc-destructive); }
|
|
6780
6838
|
.oc-status-dot--idle { --oc-status-dot-color: var(--oc-muted-foreground); box-shadow: none; opacity: 0.7; }
|
|
6781
6839
|
@keyframes oc-status-dot-pulse {
|
|
6782
|
-
|
|
6840
|
+
0% { transform: scale(1); opacity: 0.35; }
|
|
6841
|
+
100% { transform: scale(2.25); opacity: 0; }
|
|
6783
6842
|
}
|
|
6784
6843
|
|
|
6785
6844
|
/* Sizes */
|
|
@@ -6799,7 +6858,7 @@ button.oc-stat-card:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
6799
6858
|
.oc-status__meta { flex: none; margin-inline-start: auto; color: var(--oc-muted-foreground); font-variant-numeric: tabular-nums; }
|
|
6800
6859
|
|
|
6801
6860
|
@media (prefers-reduced-motion: reduce) {
|
|
6802
|
-
.oc-status-dot--working { animation: none; }
|
|
6861
|
+
.oc-status-dot--working::after { animation: none; }
|
|
6803
6862
|
}
|
|
6804
6863
|
|
|
6805
6864
|
/* parts/app-table-actions.css */
|
|
@@ -7337,9 +7396,26 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
|
|
|
7337
7396
|
block-size: 0.5rem;
|
|
7338
7397
|
border-radius: 50%;
|
|
7339
7398
|
background: var(--oc-version-banner-color);
|
|
7399
|
+
position: relative;
|
|
7400
|
+
}
|
|
7401
|
+
/* The pulse is a ::after that scales and fades (transform + opacity): drawn by the GPU, no work per frame. */
|
|
7402
|
+
.oc-version-banner-dot::after {
|
|
7403
|
+
content: "";
|
|
7404
|
+
position: absolute;
|
|
7405
|
+
inset: 0;
|
|
7406
|
+
border-radius: inherit;
|
|
7407
|
+
background: var(--oc-version-banner-color);
|
|
7408
|
+
opacity: 0;
|
|
7409
|
+
pointer-events: none;
|
|
7340
7410
|
animation: oc-version-banner-pulse 2s ease-in-out infinite;
|
|
7341
7411
|
}
|
|
7342
|
-
@keyframes oc-version-banner-pulse {
|
|
7412
|
+
@keyframes oc-version-banner-pulse {
|
|
7413
|
+
0%, 100% { transform: scale(1); opacity: 0; }
|
|
7414
|
+
50% { transform: scale(2); opacity: 0.2; }
|
|
7415
|
+
}
|
|
7416
|
+
@media (prefers-reduced-motion: reduce) {
|
|
7417
|
+
.oc-version-banner-dot::after { animation: none; }
|
|
7418
|
+
}
|
|
7343
7419
|
|
|
7344
7420
|
/* Text: the long text hides on small screens, the short one shows instead. */
|
|
7345
7421
|
.oc-version-banner-text { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
@@ -7556,6 +7632,30 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
|
|
|
7556
7632
|
.oc-chart-line__dot, .oc-chart-line__tip { transition: none; }
|
|
7557
7633
|
}
|
|
7558
7634
|
|
|
7635
|
+
/* parts/data-dl-glossary.css */
|
|
7636
|
+
/* File: packages/ui/src/parts/data-dl-glossary.css | Map: glossary rows (term bold, explanation normal, same top line) */
|
|
7637
|
+
/* Glossary: the definition list (.oc-dl) as term + explanation instead of label + value. The term is bold in the
|
|
7638
|
+
foreground, the explanation normal text; both use the same line height, so their first lines sit on one line. */
|
|
7639
|
+
|
|
7640
|
+
.oc-dl--glossary .oc-dl-row { align-items: baseline; }
|
|
7641
|
+
.oc-dl--glossary :is(.oc-dl-term, .oc-dl-detail) { line-height: 1.55; }
|
|
7642
|
+
.oc-dl--glossary .oc-dl-term { color: var(--oc-foreground); font-weight: 600; }
|
|
7643
|
+
.oc-dl--glossary .oc-dl-detail { color: var(--oc-muted-foreground); font-weight: 400; overflow-wrap: break-word; }
|
|
7644
|
+
@media (min-width: 40rem) {
|
|
7645
|
+
.oc-dl--glossary .oc-dl-row { grid-template-columns: minmax(8rem, var(--oc-dl-term-width, 30%)) minmax(0, 1fr); }
|
|
7646
|
+
}
|
|
7647
|
+
|
|
7648
|
+
/* A definition list inside .oc-prose (a glossary in a privacy policy): the rows keep their own rhythm, not the flow
|
|
7649
|
+
margin of the prose (1.1em on every element), and the dd does not get the indent and top margin of a prose dd. */
|
|
7650
|
+
.oc-prose .oc-dl > .oc-dl-row { margin-block: 0; }
|
|
7651
|
+
.oc-prose .oc-dl :is(.oc-dl-term, .oc-dl-detail) { margin: 0; padding-inline-start: 0; }
|
|
7652
|
+
/* Long terms ("Verwerkingsverantwoordelijke") hyphenate in the language of the page; where the browser has no hyphenation for it, they still break instead of running into the explanation. */
|
|
7653
|
+
.oc-dl--glossary .oc-dl-term { hyphens: auto; overflow-wrap: break-word; }
|
|
7654
|
+
|
|
7655
|
+
/* Flush: no margin and no line above the list (a list with no .oc-dl-title above it). */
|
|
7656
|
+
.oc-dl--flush { margin-block-start: 0; border-block-start: 0; }
|
|
7657
|
+
.oc-dl--flush > .oc-dl-row:first-child { padding-block-start: 0; }
|
|
7658
|
+
|
|
7559
7659
|
/* parts/data-graph.css */
|
|
7560
7660
|
/* File: packages/ui/src/parts/data-graph.css
|
|
7561
7661
|
Map: frame -> edges (moving dashes) -> nodes (halo, dot, mark, label) -> levels -> center node + pulse -> focus
|
|
@@ -7707,6 +7807,7 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
|
|
|
7707
7807
|
.oc-meter-row__value { font-size: 0.8125rem; font-variant-numeric: tabular-nums; color: var(--oc-muted-foreground); white-space: nowrap; }
|
|
7708
7808
|
.oc-meter-row__value strong { color: var(--oc-foreground); }
|
|
7709
7809
|
.oc-meter-row__bar {
|
|
7810
|
+
contain: layout paint;
|
|
7710
7811
|
grid-column: 1 / -1;
|
|
7711
7812
|
block-size: 0.5rem;
|
|
7712
7813
|
overflow: hidden;
|
|
@@ -7749,6 +7850,7 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
|
|
|
7749
7850
|
}
|
|
7750
7851
|
.oc-meter-row__subbar {
|
|
7751
7852
|
--oc-meter-color: var(--oc-muted-foreground);
|
|
7853
|
+
contain: layout paint;
|
|
7752
7854
|
flex: 1;
|
|
7753
7855
|
min-inline-size: 2rem;
|
|
7754
7856
|
block-size: 3px;
|
|
@@ -7778,6 +7880,11 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
|
|
|
7778
7880
|
.oc-meter-list--dense .oc-meter-row__label { font-size: 0.8rem; }
|
|
7779
7881
|
.oc-meter-list--dense .oc-meter-row__value { font-size: 0.75rem; }
|
|
7780
7882
|
.oc-meter-list--dense .oc-meter-row__bar { block-size: 5px; }
|
|
7883
|
+
/* Live meters (a value every few seconds, a window that stays open): no width transition, so no layout per frame.
|
|
7884
|
+
The dense list is meant for that, so it has none either. */
|
|
7885
|
+
:is(.oc-meter-list--live, .oc-meter-list--dense) .oc-meter-row__bar::before,
|
|
7886
|
+
:is(.oc-meter-list--live, .oc-meter-list--dense) .oc-meter-row__subbar::before,
|
|
7887
|
+
:is(.oc-meter-list--live, .oc-meter-list--dense) .oc-meter-row__fill { transition: none; }
|
|
7781
7888
|
|
|
7782
7889
|
@media (prefers-reduced-motion: reduce) {
|
|
7783
7890
|
.oc-meter-row__bar::before,
|
|
@@ -7951,6 +8058,56 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
|
|
|
7951
8058
|
.oc-spec-row > dd { margin: 0; min-inline-size: 0; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
|
|
7952
8059
|
.oc-spec-row > dd > small { margin-inline-start: 0.25rem; font-weight: 400; color: var(--oc-muted-foreground); }
|
|
7953
8060
|
|
|
8061
|
+
/* parts/data-step-list.css */
|
|
8062
|
+
/* File: packages/ui/src/parts/data-step-list.css | Map: list (one column, counter) -> row (number + text) -> number color
|
|
8063
|
+
-> links -> small */
|
|
8064
|
+
/* Step list: a compact numbered list of steps inside a card or a disclosure ("How to remove this", the steps per
|
|
8065
|
+
service, what a scan does). One row per step: the number on the left in the display font, the text on the right.
|
|
8066
|
+
The number takes --oc-step-list-color, else the color of the severity card it sits in (--oc-severity-color), else
|
|
8067
|
+
primary. Start at another number: style="counter-reset: oc-step-list 3" (the first step is then 4).
|
|
8068
|
+
Not to be confused with .oc-steps, the large process section of a website. */
|
|
8069
|
+
|
|
8070
|
+
.oc-step-list {
|
|
8071
|
+
display: grid;
|
|
8072
|
+
gap: 0.6rem;
|
|
8073
|
+
margin: 0;
|
|
8074
|
+
padding: 0;
|
|
8075
|
+
list-style: none;
|
|
8076
|
+
/* One column that never grows with its widest step (a <pre> or a long URL stays inside the card). */
|
|
8077
|
+
grid-template-columns: minmax(0, 1fr);
|
|
8078
|
+
counter-reset: oc-step-list;
|
|
8079
|
+
font-size: 0.875rem;
|
|
8080
|
+
line-height: 1.5;
|
|
8081
|
+
}
|
|
8082
|
+
/* The text flows as normal text (bold words and links stay inline); the number hangs in the indent on the first line. */
|
|
8083
|
+
.oc-step-list > li {
|
|
8084
|
+
position: relative;
|
|
8085
|
+
min-inline-size: 0;
|
|
8086
|
+
padding-inline-start: 1.85rem;
|
|
8087
|
+
overflow-wrap: anywhere;
|
|
8088
|
+
counter-increment: oc-step-list;
|
|
8089
|
+
}
|
|
8090
|
+
.oc-step-list > li::before {
|
|
8091
|
+
content: counter(oc-step-list);
|
|
8092
|
+
position: absolute;
|
|
8093
|
+
inset-block-start: 0;
|
|
8094
|
+
inset-inline-start: 0;
|
|
8095
|
+
inline-size: 1.25rem;
|
|
8096
|
+
color: var(--oc-step-list-color, var(--oc-severity-color, var(--oc-primary)));
|
|
8097
|
+
font-family: var(--oc-font-display, inherit);
|
|
8098
|
+
font-weight: 700;
|
|
8099
|
+
font-variant-numeric: tabular-nums;
|
|
8100
|
+
text-align: end;
|
|
8101
|
+
}
|
|
8102
|
+
.oc-step-list > li > :first-child { margin-block-start: 0; }
|
|
8103
|
+
.oc-step-list > li > :last-child { margin-block-end: 0; }
|
|
8104
|
+
.oc-step-list a { text-underline-offset: 2px; }
|
|
8105
|
+
/* A code block in a step scrolls inside the step. */
|
|
8106
|
+
.oc-step-list pre { max-inline-size: 100%; overflow-x: auto; overflow-wrap: normal; }
|
|
8107
|
+
|
|
8108
|
+
/* Small: tighter rows and a smaller text, for a dense panel. */
|
|
8109
|
+
.oc-step-list--sm { gap: 0.4rem; font-size: 0.8125rem; }
|
|
8110
|
+
|
|
7954
8111
|
/* parts/data-stock.css */
|
|
7955
8112
|
/* File: packages/ui/src/parts/data-stock.css | Map: indicator (dot + text) -> levels (ok, low, out, order) -> badge variant -> count */
|
|
7956
8113
|
/* Stock status: a colored dot with a short text ("In stock", "Only 3 left", "Out of stock", "On order").
|
|
@@ -8856,6 +9013,68 @@ button.oc-language-select:hover { background: var(--oc-surface); }
|
|
|
8856
9013
|
.oc-language-select--code::after,
|
|
8857
9014
|
.oc-language-select--code .oc-language-select-icon { display: none; }
|
|
8858
9015
|
.oc-language-select--code .oc-language-select-control { position: absolute; inset: 0; padding: 0; opacity: 0; }
|
|
9016
|
+
|
|
9017
|
+
/* Open list in the OmniaUI dropdown look (Chrome and Edge 135+: customizable select, appearance: base-select).
|
|
9018
|
+
The native list of the system looked like a bare Windows list: narrow, small, no padding. Now it is a popover with
|
|
9019
|
+
the colors, padding, radius and shadow of .oc-dropdown-menu, as wide as the longest language (at least 8rem), with a check at the current
|
|
9020
|
+
language. Other browsers keep the system list (the select still works the same). */
|
|
9021
|
+
@supports (appearance: base-select) {
|
|
9022
|
+
.oc-language-select-control,
|
|
9023
|
+
.oc-language-select-control::picker(select) { appearance: base-select; }
|
|
9024
|
+
.oc-language-select-control {
|
|
9025
|
+
min-inline-size: 0;
|
|
9026
|
+
border: 0;
|
|
9027
|
+
background: transparent;
|
|
9028
|
+
}
|
|
9029
|
+
/* The list lines up with the whole pill (icon included), not only with the select inside it. anchor-scope keeps
|
|
9030
|
+
every pill its own anchor when a page has several. */
|
|
9031
|
+
.oc-language-select:has(> .oc-language-select-control) { anchor-name: --oc-language-select; anchor-scope: --oc-language-select; }
|
|
9032
|
+
.oc-language-select-control::picker(select) { position-anchor: --oc-language-select; }
|
|
9033
|
+
/* The label draws its own chevron (::after). */
|
|
9034
|
+
.oc-language-select-control::picker-icon { display: none; }
|
|
9035
|
+
.oc-language-select-control::picker(select) {
|
|
9036
|
+
/* As wide as the longest language, at least 8rem and never narrower than the field. */
|
|
9037
|
+
min-inline-size: max(8rem, anchor-size(inline));
|
|
9038
|
+
margin-block: 4px;
|
|
9039
|
+
padding: 4px;
|
|
9040
|
+
border: 1px solid var(--oc-border);
|
|
9041
|
+
border-radius: var(--oc-radius);
|
|
9042
|
+
background: var(--oc-popover);
|
|
9043
|
+
color: var(--oc-popover-foreground);
|
|
9044
|
+
box-shadow: 0 8px 24px oklch(from var(--color-black-60) l c h / 0.15);
|
|
9045
|
+
font-size: 0.875rem;
|
|
9046
|
+
font-weight: 400;
|
|
9047
|
+
letter-spacing: normal;
|
|
9048
|
+
text-transform: none;
|
|
9049
|
+
position-area: block-end span-inline-end;
|
|
9050
|
+
/* Under the field; above it only when it does not fit below (normal order: no "side with the most room"). */
|
|
9051
|
+
position-try-order: normal;
|
|
9052
|
+
position-try-fallbacks: flip-block;
|
|
9053
|
+
}
|
|
9054
|
+
.oc-language-select-control option {
|
|
9055
|
+
display: flex;
|
|
9056
|
+
align-items: center;
|
|
9057
|
+
gap: 1rem;
|
|
9058
|
+
padding: 8px 10px;
|
|
9059
|
+
border-radius: calc(var(--oc-radius) - 2px);
|
|
9060
|
+
background: transparent;
|
|
9061
|
+
color: inherit;
|
|
9062
|
+
cursor: pointer;
|
|
9063
|
+
}
|
|
9064
|
+
.oc-language-select-control option:hover,
|
|
9065
|
+
.oc-language-select-control option:focus-visible {
|
|
9066
|
+
background: var(--oc-accent);
|
|
9067
|
+
color: var(--oc-accent-foreground);
|
|
9068
|
+
outline: none;
|
|
9069
|
+
}
|
|
9070
|
+
.oc-language-select-control option:checked { font-weight: 600; }
|
|
9071
|
+
/* The check of the current language on the right, in the primary color. */
|
|
9072
|
+
.oc-language-select-control option::checkmark { order: 1; margin-inline-start: auto; color: var(--oc-primary); }
|
|
9073
|
+
|
|
9074
|
+
/* Code: the select lies over the whole button (still invisible text), the list opens under it, aligned right. */
|
|
9075
|
+
.oc-language-select--code .oc-language-select-control { opacity: 1; color: transparent; overflow: hidden; }
|
|
9076
|
+
.oc-language-select--code .oc-language-select-control::picker(select) { position-area: block-end span-inline-start; }
|
|
9077
|
+
}
|
|
8859
9078
|
|
|
8860
9079
|
/* parts/forms-number-input.css */
|
|
8861
9080
|
/* File: packages/ui/src/parts/forms-number-input.css
|
|
@@ -12022,6 +12241,47 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
12022
12241
|
filter: drop-shadow(0 10px 20px oklch(0 0 0 / 0.6));
|
|
12023
12242
|
}
|
|
12024
12243
|
|
|
12244
|
+
/* parts/site-doc-layout.css */
|
|
12245
|
+
/* File: packages/ui/src/parts/site-doc-layout.css */
|
|
12246
|
+
/* Map: sticky offset (token, auto under a site header, scroll padding for anchors) -> document layout (side column +
|
|
12247
|
+
text) -> sticky side column from 64rem -> a table of contents inside it */
|
|
12248
|
+
/* A document page with a side column (a table of contents next to a privacy policy, terms or a manual) and the offset
|
|
12249
|
+
that keeps sticky parts and anchor jumps clear of a sticky site header.
|
|
12250
|
+
--oc-sticky-offset: how far from the top sticky parts stop. Set it yourself (:root { --oc-sticky-offset: 5rem }), or
|
|
12251
|
+
let it follow .oc-site-header: its height (--oc-site-header-height, 4.5rem) plus 1rem. Used by .oc-toc,
|
|
12252
|
+
.oc-doc-layout__aside, .oc-page-header--sticky and the scroll padding of the page, so a heading you jump to from the
|
|
12253
|
+
table of contents is not hidden under the header. */
|
|
12254
|
+
|
|
12255
|
+
/* Only the header of the page itself (not one shown as an example inside <main>); :where keeps it overridable, also
|
|
12256
|
+
by a scroll-p* utility on <html>. */
|
|
12257
|
+
:where(html:has(.oc-site-header:not(main *))) { --oc-sticky-offset: calc(var(--oc-site-header-height, 4.5rem) + 1rem); }
|
|
12258
|
+
:where(html) { scroll-padding-block-start: var(--oc-sticky-offset, 0px); }
|
|
12259
|
+
|
|
12260
|
+
/* Document layout: side column (--oc-doc-aside, 17rem) and the text; stacked below 64rem, side column first.
|
|
12261
|
+
--end puts the side column on the right on a wide screen. */
|
|
12262
|
+
.oc-doc-layout {
|
|
12263
|
+
display: grid;
|
|
12264
|
+
gap: var(--oc-doc-gap, 2rem 4rem);
|
|
12265
|
+
align-items: start;
|
|
12266
|
+
}
|
|
12267
|
+
.oc-doc-layout__aside,
|
|
12268
|
+
.oc-doc-layout__main { min-inline-size: 0; }
|
|
12269
|
+
@media (min-width: 64rem) {
|
|
12270
|
+
.oc-doc-layout { grid-template-columns: var(--oc-doc-aside, 17rem) minmax(0, 1fr); }
|
|
12271
|
+
.oc-doc-layout--end { grid-template-columns: minmax(0, 1fr) var(--oc-doc-aside, 17rem); }
|
|
12272
|
+
.oc-doc-layout--end > .oc-doc-layout__aside { order: 1; }
|
|
12273
|
+
/* Sticky only next to the text: stacked on a phone it would stay over the text. */
|
|
12274
|
+
.oc-doc-layout__aside {
|
|
12275
|
+
position: sticky;
|
|
12276
|
+
inset-block-start: var(--oc-sticky-offset, 0px);
|
|
12277
|
+
max-block-size: calc(100dvh - var(--oc-sticky-offset, 0px) - 1rem);
|
|
12278
|
+
overflow: auto;
|
|
12279
|
+
overscroll-behavior: contain;
|
|
12280
|
+
}
|
|
12281
|
+
}
|
|
12282
|
+
/* The column is sticky itself, so the table of contents in it is not. */
|
|
12283
|
+
.oc-doc-layout__aside .oc-toc { position: static; max-block-size: none; overflow: visible; }
|
|
12284
|
+
|
|
12025
12285
|
/* parts/site-fact-list.css */
|
|
12026
12286
|
/* File: packages/ui/src/parts/site-fact-list.css
|
|
12027
12287
|
Map: plain -> compact -> stacked -> accent values -> narrow screens
|
|
@@ -12165,7 +12425,7 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
12165
12425
|
|
|
12166
12426
|
/* parts/site-layout.css */
|
|
12167
12427
|
/* File: packages/ui/src/parts/site-layout.css */
|
|
12168
|
-
/* Map: page hero -> section head / more -> action row -> group title -> band -> meta line */
|
|
12428
|
+
/* Map: page hero -> section head (split) / more -> action row -> group title -> band -> meta line */
|
|
12169
12429
|
/* Page building blocks for a marketing or company site, on top of the showcase classes (.oc-section-pad, .oc-display):
|
|
12170
12430
|
the larger header of an inner page, a section head and a "see more" row, a row of buttons, a group title with a count,
|
|
12171
12431
|
a full-width band (for a stat strip) and a meta line (version · date). */
|
|
@@ -12186,6 +12446,20 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
12186
12446
|
margin-inline: auto;
|
|
12187
12447
|
text-align: center;
|
|
12188
12448
|
}
|
|
12449
|
+
/* Split: the title on the left, the lead on the right (one column below 56rem). Put the eyebrow and the title in a
|
|
12450
|
+
<div>, the lead next to it. */
|
|
12451
|
+
.oc-section-head--split {
|
|
12452
|
+
display: grid;
|
|
12453
|
+
gap: 1rem 4rem;
|
|
12454
|
+
align-items: end;
|
|
12455
|
+
max-inline-size: none;
|
|
12456
|
+
}
|
|
12457
|
+
.oc-section-head--split > :last-child,
|
|
12458
|
+
.oc-section-head--split > div > :last-child { margin-block-end: 0; }
|
|
12459
|
+
@media (min-width: 56rem) {
|
|
12460
|
+
.oc-section-head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
|
|
12461
|
+
.oc-section-head--split > .oc-lead { justify-self: end; max-inline-size: 36rem; }
|
|
12462
|
+
}
|
|
12189
12463
|
.oc-section-more { margin-block-start: 2.5rem; }
|
|
12190
12464
|
|
|
12191
12465
|
/* Row of buttons under a text: wraps on a narrow screen. */
|
|
@@ -12368,16 +12642,30 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
12368
12642
|
Colors: --oc-accent-from and --oc-accent-to (brand-1 and brand-2, or an .oc-accent--* preset).
|
|
12369
12643
|
.oc-glow-border goes on anything with a border: <form class="oc-glass oc-glow-border">, an .oc-card, a panel. */
|
|
12370
12644
|
|
|
12645
|
+
/* The element keeps a steady border and glow in --oc-accent-from; a ::after with the border and a wider glow in
|
|
12646
|
+
--oc-accent-to fades in and out over it. Only opacity animates, so the GPU does it: no style or paint work per frame.
|
|
12647
|
+
position: relative only when the element has no position of its own (:where = no specificity). */
|
|
12648
|
+
:where(.oc-glow-border) { position: relative; }
|
|
12371
12649
|
.oc-glow-border {
|
|
12372
12650
|
border-color: var(--oc-accent-from);
|
|
12373
12651
|
box-shadow: 0 0 10px oklch(from var(--oc-accent-from) l c h / 0.35), var(--oc-glow-extra, 0 0 transparent);
|
|
12652
|
+
}
|
|
12653
|
+
.oc-glow-border::after {
|
|
12654
|
+
content: "";
|
|
12655
|
+
position: absolute;
|
|
12656
|
+
inset: calc(-1 * var(--oc-glow-border-width, 1px));
|
|
12657
|
+
border: var(--oc-glow-border-width, 1px) solid var(--oc-accent-to);
|
|
12658
|
+
border-radius: inherit;
|
|
12659
|
+
box-shadow: 0 0 20px oklch(from var(--oc-accent-to) l c h / 0.35);
|
|
12660
|
+
opacity: 0;
|
|
12661
|
+
pointer-events: none;
|
|
12374
12662
|
animation: oc-glow-border var(--oc-glow-border-duration, 3s) ease-in-out infinite;
|
|
12375
12663
|
}
|
|
12376
12664
|
/* Glass keeps its light top edge and drop shadow under the glow. */
|
|
12377
12665
|
.oc-glass.oc-glow-border { --oc-glow-extra: var(--oc-glass-shadow), inset 0 1px 0 var(--oc-glass-edge-hi); }
|
|
12378
12666
|
@keyframes oc-glow-border {
|
|
12379
|
-
0%, 100% {
|
|
12380
|
-
50% {
|
|
12667
|
+
0%, 100% { opacity: 0; }
|
|
12668
|
+
50% { opacity: 1; }
|
|
12381
12669
|
}
|
|
12382
12670
|
|
|
12383
12671
|
/* Neon button: gradient from one accent to the other, with a glow. --oc-btn-neon-ink sets the text color. */
|
|
@@ -12394,7 +12682,7 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
12394
12682
|
.oc-btn--neon:disabled { color: var(--oc-muted-foreground); background: var(--oc-muted); box-shadow: none; }
|
|
12395
12683
|
|
|
12396
12684
|
@media (prefers-reduced-motion: reduce) {
|
|
12397
|
-
.oc-glow-border { animation: none; }
|
|
12685
|
+
.oc-glow-border::after { animation: none; }
|
|
12398
12686
|
}
|
|
12399
12687
|
|
|
12400
12688
|
/* parts/site-next-teaser.css */
|
|
@@ -12813,7 +13101,8 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
12813
13101
|
.oc-prose :where(h3) { margin-block-start: 1.6em; font-size: 1.2em; }
|
|
12814
13102
|
.oc-prose :where(h4) { margin-block-start: 1.4em; font-size: 1em; }
|
|
12815
13103
|
.oc-prose :where(h1, h2, h3, h4) + :where(*) { margin-block-start: 0.6em; }
|
|
12816
|
-
|
|
13104
|
+
/* Room above a heading you jump to: 5rem, or 0.5rem on top of the page's scroll padding (--oc-sticky-offset). */
|
|
13105
|
+
.oc-prose :where(h2, h3, h4) { scroll-margin-block-start: max(0.5rem, 5rem - var(--oc-sticky-offset, 0px)); }
|
|
12817
13106
|
|
|
12818
13107
|
/* ---- Paragraphs ---- */
|
|
12819
13108
|
.oc-prose :where(p) { text-wrap: pretty; }
|
|
@@ -12936,6 +13225,8 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
12936
13225
|
.oc-prose--legal :where(a) { color: var(--oc-brand-1); font-weight: inherit; text-decoration-color: currentColor; text-underline-offset: 3px; }
|
|
12937
13226
|
.oc-prose--legal :where(a:hover) { color: var(--oc-foreground); }
|
|
12938
13227
|
.oc-prose--legal :where(table) { font-size: 0.93rem; }
|
|
13228
|
+
/* Ruled: a line under every h2, so the articles of a long document stand apart (with --legal or any prose). */
|
|
13229
|
+
.oc-prose--ruled :where(h2) { padding-block-end: 0.6rem; border-block-end: 1px solid var(--oc-border); }
|
|
12939
13230
|
|
|
12940
13231
|
/* parts/site-stack-list.css */
|
|
12941
13232
|
/* File: packages/ui/src/parts/site-stack-list.css
|
|
@@ -13043,6 +13334,231 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
13043
13334
|
/* Line in the accent color instead of the neutral border. */
|
|
13044
13335
|
.oc-timeline--accent { border-inline-start-color: color-mix(in oklch, var(--oc-accent-from) 55%, transparent); }
|
|
13045
13336
|
|
|
13337
|
+
/* parts/site-tint-card.css */
|
|
13338
|
+
/* File: packages/ui/src/parts/site-tint-card.css */
|
|
13339
|
+
/* Map: tint card (link, tint, lift) -> head (title + go chip) -> text + meta -> corner art (drift, tilt on hover)
|
|
13340
|
+
-> glow -> tones -> large cards -> reduced motion */
|
|
13341
|
+
/* Tint card: a card that is a link, tinted in one color (--oc-tint), with a large outline webicon that sticks out of the
|
|
13342
|
+
bottom corner. The icon drifts slowly up and down (each card in a grid on its own beat) and tilts and grows on hover;
|
|
13343
|
+
a soft glow behind it grows with it. The arrow chip top right fills with the tint and the arrow flies out and back
|
|
13344
|
+
in. The card lifts 4px with a shadow in its own tint. For a row of services, training modules or product areas in an
|
|
13345
|
+
.oc-card-grid. Colors mix with the card color, so light and dark mode work without extra classes. */
|
|
13346
|
+
|
|
13347
|
+
.oc-tint-card {
|
|
13348
|
+
--oc-tint: var(--oc-primary);
|
|
13349
|
+
--oc-tint-foreground: var(--oc-primary-foreground);
|
|
13350
|
+
--oc-tint-mix: 9%;
|
|
13351
|
+
--oc-tint-mix-hover: 15%;
|
|
13352
|
+
position: relative;
|
|
13353
|
+
isolation: isolate;
|
|
13354
|
+
overflow: hidden;
|
|
13355
|
+
container-type: inline-size;
|
|
13356
|
+
display: flex;
|
|
13357
|
+
flex-direction: column;
|
|
13358
|
+
min-block-size: 9rem;
|
|
13359
|
+
padding: 1.5rem;
|
|
13360
|
+
border: 1px solid color-mix(in oklab, var(--oc-tint) 14%, transparent);
|
|
13361
|
+
border-radius: var(--oc-radius-xl, 1.5rem);
|
|
13362
|
+
background: color-mix(in oklab, var(--oc-tint) var(--oc-tint-mix), var(--oc-card, var(--oc-background)));
|
|
13363
|
+
color: var(--oc-foreground);
|
|
13364
|
+
text-decoration: none;
|
|
13365
|
+
transition:
|
|
13366
|
+
translate 0.3s var(--oc-ease-out, ease-out),
|
|
13367
|
+
box-shadow 0.3s var(--oc-ease-out, ease-out),
|
|
13368
|
+
background-color 0.3s var(--oc-ease-out, ease-out);
|
|
13369
|
+
}
|
|
13370
|
+
@media (min-width: 40rem) {
|
|
13371
|
+
.oc-tint-card { min-block-size: 15rem; padding: 1.75rem; }
|
|
13372
|
+
}
|
|
13373
|
+
.oc-tint-card:is(a, button):hover,
|
|
13374
|
+
.oc-tint-card:is(a, button):focus-visible,
|
|
13375
|
+
.oc-tint-card:has(.oc-tint-card__link:is(:hover, :focus-visible)) {
|
|
13376
|
+
translate: 0 -4px;
|
|
13377
|
+
background: color-mix(in oklab, var(--oc-tint) var(--oc-tint-mix-hover), var(--oc-card, var(--oc-background)));
|
|
13378
|
+
box-shadow: 0 24px 48px -24px color-mix(in oklab, var(--oc-tint) 45%, transparent);
|
|
13379
|
+
}
|
|
13380
|
+
.oc-tint-card:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: 2px; }
|
|
13381
|
+
/* A card that is not a link itself: the title link covers the whole card. */
|
|
13382
|
+
.oc-tint-card__link { color: inherit; text-decoration: none; }
|
|
13383
|
+
.oc-tint-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
|
|
13384
|
+
.oc-tint-card__link:focus-visible { outline: none; }
|
|
13385
|
+
.oc-tint-card__link:focus-visible::after { outline: 2px solid var(--oc-ring); outline-offset: 2px; }
|
|
13386
|
+
|
|
13387
|
+
/* Head: title on the left, the arrow chip on the right. */
|
|
13388
|
+
.oc-tint-card__head {
|
|
13389
|
+
display: flex;
|
|
13390
|
+
align-items: flex-start;
|
|
13391
|
+
justify-content: space-between;
|
|
13392
|
+
gap: 1rem;
|
|
13393
|
+
}
|
|
13394
|
+
.oc-tint-card__title {
|
|
13395
|
+
margin: 0;
|
|
13396
|
+
font-family: var(--oc-font-display, inherit);
|
|
13397
|
+
font-size: 1.125rem;
|
|
13398
|
+
font-weight: 650;
|
|
13399
|
+
line-height: 1.3;
|
|
13400
|
+
letter-spacing: -0.01em;
|
|
13401
|
+
text-wrap: balance;
|
|
13402
|
+
}
|
|
13403
|
+
.oc-tint-card__text {
|
|
13404
|
+
margin: 0.5rem 0 0;
|
|
13405
|
+
max-inline-size: 26ch;
|
|
13406
|
+
color: var(--oc-muted-foreground);
|
|
13407
|
+
font-size: 0.875rem;
|
|
13408
|
+
line-height: 1.6;
|
|
13409
|
+
text-wrap: pretty;
|
|
13410
|
+
}
|
|
13411
|
+
/* Meta line at the bottom (12 modules, New, From € 9): in the tint, pushed down. */
|
|
13412
|
+
.oc-tint-card__meta {
|
|
13413
|
+
margin-block-start: auto;
|
|
13414
|
+
padding-block-start: 1rem;
|
|
13415
|
+
color: color-mix(in oklab, var(--oc-tint) 75%, var(--oc-foreground));
|
|
13416
|
+
font-size: 0.8rem;
|
|
13417
|
+
font-weight: 600;
|
|
13418
|
+
}
|
|
13419
|
+
@container (min-width: 16rem) {
|
|
13420
|
+
.oc-tint-card__title { font-size: 1.25rem; }
|
|
13421
|
+
.oc-tint-card__text { font-size: 0.94rem; }
|
|
13422
|
+
}
|
|
13423
|
+
|
|
13424
|
+
/* Arrow chip: a round chip in the tint; on hover it fills and the arrow flies out top right and back in from below. */
|
|
13425
|
+
.oc-tint-card__go {
|
|
13426
|
+
display: inline-grid;
|
|
13427
|
+
place-items: center;
|
|
13428
|
+
flex-shrink: 0;
|
|
13429
|
+
inline-size: 2rem;
|
|
13430
|
+
block-size: 2rem;
|
|
13431
|
+
overflow: hidden;
|
|
13432
|
+
border-radius: 999px;
|
|
13433
|
+
background: color-mix(in oklab, var(--oc-tint) 16%, transparent);
|
|
13434
|
+
color: var(--oc-tint);
|
|
13435
|
+
font-size: 1.1rem;
|
|
13436
|
+
transition: background-color 0.3s, color 0.3s;
|
|
13437
|
+
}
|
|
13438
|
+
.oc-tint-card__go > * { display: block; }
|
|
13439
|
+
:is(a.oc-tint-card, button.oc-tint-card):is(:hover, :focus-visible) .oc-tint-card__go,
|
|
13440
|
+
.oc-tint-card:has(.oc-tint-card__link:is(:hover, :focus-visible)) .oc-tint-card__go {
|
|
13441
|
+
background: var(--oc-tint);
|
|
13442
|
+
color: var(--oc-tint-foreground);
|
|
13443
|
+
}
|
|
13444
|
+
:is(a.oc-tint-card, button.oc-tint-card):is(:hover, :focus-visible) .oc-tint-card__go > *,
|
|
13445
|
+
.oc-tint-card:has(.oc-tint-card__link:is(:hover, :focus-visible)) .oc-tint-card__go > * {
|
|
13446
|
+
animation: oc-tint-go 0.55s var(--oc-ease-out, ease-out);
|
|
13447
|
+
}
|
|
13448
|
+
@keyframes oc-tint-go {
|
|
13449
|
+
0% { translate: 0 0; opacity: 1; }
|
|
13450
|
+
45% { translate: 130% -130%; opacity: 0; }
|
|
13451
|
+
46% { translate: -130% 130%; opacity: 0; }
|
|
13452
|
+
100% { translate: 0 0; opacity: 1; }
|
|
13453
|
+
}
|
|
13454
|
+
|
|
13455
|
+
/* Corner art: a large outline webicon (mdi-light or material-symbols ...-outline), half outside the bottom corner.
|
|
13456
|
+
It drifts slowly (transform); hover tilts and grows it (rotate, scale), so the two never fight. */
|
|
13457
|
+
.oc-tint-card__art {
|
|
13458
|
+
position: absolute;
|
|
13459
|
+
inset-block-end: -1rem;
|
|
13460
|
+
inset-inline-end: -0.75rem;
|
|
13461
|
+
z-index: -1;
|
|
13462
|
+
display: block;
|
|
13463
|
+
color: var(--oc-tint);
|
|
13464
|
+
font-size: 6rem;
|
|
13465
|
+
line-height: 1;
|
|
13466
|
+
opacity: 0.32;
|
|
13467
|
+
pointer-events: none;
|
|
13468
|
+
transform-origin: 70% 70%;
|
|
13469
|
+
will-change: transform;
|
|
13470
|
+
animation: oc-tint-drift var(--oc-tint-drift, 6s) ease-in-out var(--oc-tint-delay, 0s) infinite alternate;
|
|
13471
|
+
transition:
|
|
13472
|
+
rotate 0.5s var(--oc-ease-out, ease-out),
|
|
13473
|
+
scale 0.5s var(--oc-ease-out, ease-out),
|
|
13474
|
+
opacity 0.5s var(--oc-ease-out, ease-out);
|
|
13475
|
+
}
|
|
13476
|
+
.oc-tint-card__art > * { display: block; }
|
|
13477
|
+
/* transform (not translate) + will-change: the drift runs on the GPU, so it costs no style work per frame. */
|
|
13478
|
+
@keyframes oc-tint-drift {
|
|
13479
|
+
from { transform: translate3d(0, 0, 0); }
|
|
13480
|
+
to { transform: translate3d(-4px, -10px, 0); }
|
|
13481
|
+
}
|
|
13482
|
+
/* Each card in a row drifts on its own beat. */
|
|
13483
|
+
.oc-tint-card:nth-child(5n + 2) { --oc-tint-delay: -1.2s; }
|
|
13484
|
+
.oc-tint-card:nth-child(5n + 3) { --oc-tint-delay: -2.4s; }
|
|
13485
|
+
.oc-tint-card:nth-child(5n + 4) { --oc-tint-delay: -3.6s; }
|
|
13486
|
+
.oc-tint-card:nth-child(5n + 5) { --oc-tint-delay: -4.8s; }
|
|
13487
|
+
:is(a.oc-tint-card, button.oc-tint-card):is(:hover, :focus-visible) .oc-tint-card__art,
|
|
13488
|
+
.oc-tint-card:has(.oc-tint-card__link:is(:hover, :focus-visible)) .oc-tint-card__art {
|
|
13489
|
+
rotate: -8deg;
|
|
13490
|
+
scale: 1.12;
|
|
13491
|
+
opacity: 0.5;
|
|
13492
|
+
}
|
|
13493
|
+
|
|
13494
|
+
/* Glow: a soft spot in the tint behind the icon that grows on hover. */
|
|
13495
|
+
.oc-tint-card::after {
|
|
13496
|
+
content: "";
|
|
13497
|
+
position: absolute;
|
|
13498
|
+
inset-block-end: -35%;
|
|
13499
|
+
inset-inline-end: -25%;
|
|
13500
|
+
z-index: -2;
|
|
13501
|
+
inline-size: min(75%, 14rem);
|
|
13502
|
+
aspect-ratio: 1;
|
|
13503
|
+
border-radius: 50%;
|
|
13504
|
+
background: radial-gradient(circle, color-mix(in oklab, var(--oc-tint) 24%, transparent), transparent 68%);
|
|
13505
|
+
scale: 0.8;
|
|
13506
|
+
pointer-events: none;
|
|
13507
|
+
transition: scale 0.6s var(--oc-ease-out, ease-out);
|
|
13508
|
+
}
|
|
13509
|
+
.oc-tint-card:is(a, button):is(:hover, :focus-visible)::after,
|
|
13510
|
+
.oc-tint-card:has(.oc-tint-card__link:is(:hover, :focus-visible))::after { scale: 1.15; }
|
|
13511
|
+
|
|
13512
|
+
/* On a phone the cards are low and wide: the icon stays small there and only grows from 40rem (in a card of 16rem+). */
|
|
13513
|
+
@media (min-width: 40rem) {
|
|
13514
|
+
.oc-tint-card__art { inset-block-end: -1.5rem; inset-inline-end: -1.5rem; font-size: 7rem; }
|
|
13515
|
+
@container (min-width: 16rem) {
|
|
13516
|
+
.oc-tint-card__art { font-size: 9rem; }
|
|
13517
|
+
}
|
|
13518
|
+
}
|
|
13519
|
+
|
|
13520
|
+
/* Tones (or set --oc-tint yourself: style="--oc-tint: #e8590c"). */
|
|
13521
|
+
.oc-tint-card--success { --oc-tint: var(--oc-success); --oc-tint-foreground: var(--oc-success-foreground); }
|
|
13522
|
+
.oc-tint-card--warning { --oc-tint: var(--oc-warning); --oc-tint-foreground: var(--oc-warning-foreground); }
|
|
13523
|
+
.oc-tint-card--destructive { --oc-tint: var(--oc-destructive); --oc-tint-foreground: var(--oc-destructive-foreground); }
|
|
13524
|
+
.oc-tint-card--info {
|
|
13525
|
+
--oc-tint: var(--oc-info, light-dark(var(--color-deepskyblue-70), var(--color-skyblue-50)));
|
|
13526
|
+
--oc-tint-foreground: #fff;
|
|
13527
|
+
}
|
|
13528
|
+
.oc-tint-card--muted { --oc-tint: var(--oc-muted-foreground); --oc-tint-foreground: var(--oc-background); }
|
|
13529
|
+
|
|
13530
|
+
/* Large: a card for a row of two or three, with more room and a larger icon. */
|
|
13531
|
+
.oc-tint-card--lg { min-block-size: 18rem; }
|
|
13532
|
+
@media (min-width: 40rem) {
|
|
13533
|
+
.oc-tint-card--lg { padding: 2.25rem; }
|
|
13534
|
+
}
|
|
13535
|
+
.oc-tint-card--lg .oc-tint-card__title { font-size: 1.5rem; }
|
|
13536
|
+
.oc-tint-card--lg .oc-tint-card__text { max-inline-size: 34ch; font-size: 1rem; }
|
|
13537
|
+
@media (min-width: 40rem) {
|
|
13538
|
+
@container (min-width: 22rem) {
|
|
13539
|
+
.oc-tint-card--lg .oc-tint-card__art { font-size: 12rem; }
|
|
13540
|
+
}
|
|
13541
|
+
}
|
|
13542
|
+
|
|
13543
|
+
/* With the fly-in (.oc-reveal--fly + fly.js) the card keeps its own hover transitions next to the fly-in ones. */
|
|
13544
|
+
.oc-fly-ready .oc-tint-card.oc-reveal--fly {
|
|
13545
|
+
transition:
|
|
13546
|
+
opacity 0.6s var(--oc-ease-out, ease) var(--oc-fly-delay, 0s),
|
|
13547
|
+
transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--oc-fly-delay, 0s),
|
|
13548
|
+
translate 0.3s var(--oc-ease-out, ease-out),
|
|
13549
|
+
box-shadow 0.3s var(--oc-ease-out, ease-out),
|
|
13550
|
+
background-color 0.3s var(--oc-ease-out, ease-out);
|
|
13551
|
+
}
|
|
13552
|
+
|
|
13553
|
+
@media (prefers-reduced-motion: reduce) {
|
|
13554
|
+
.oc-tint-card,
|
|
13555
|
+
.oc-tint-card__art,
|
|
13556
|
+
.oc-tint-card::after { transition: none; animation: none; }
|
|
13557
|
+
.oc-tint-card:is(a, button):is(:hover, :focus-visible),
|
|
13558
|
+
.oc-tint-card:has(.oc-tint-card__link:is(:hover, :focus-visible)) { translate: none; }
|
|
13559
|
+
.oc-tint-card .oc-tint-card__go > * { animation: none !important; }
|
|
13560
|
+
}
|
|
13561
|
+
|
|
13046
13562
|
/* parts/utility-hover.css */
|
|
13047
13563
|
/* File: packages/ui/src/parts/utility-hover.css */
|
|
13048
13564
|
/* Map: smooth timing -> lift / grow / glow / none -> steady hover area -> reduced motion */
|