@birdycom/omniaui 0.14.0 → 0.14.1
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 +2 -0
- package/dist/components.css +503 -18
- 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-status-dot.css +19 -4
- package/dist/parts/app-version-banner.css +18 -1
- package/dist/parts/data-dl-glossary.css +11 -0
- package/dist/parts/data-meter-row.css +7 -0
- package/dist/parts/data-step-list.css +42 -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 +1 -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.1. 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); }
|
|
@@ -4057,17 +4061,32 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
4057
4061
|
--strong starts at the full accent with a wider ring. */
|
|
4058
4062
|
.oc-pill .oc-status-dot {
|
|
4059
4063
|
--oc-status-dot-pulse-alpha: 0.6;
|
|
4060
|
-
--oc-status-dot-pulse-
|
|
4064
|
+
--oc-status-dot-pulse-scale: 3;
|
|
4065
|
+
position: relative;
|
|
4061
4066
|
inline-size: 0.5rem;
|
|
4062
4067
|
aspect-ratio: 1;
|
|
4063
4068
|
border-radius: 50%;
|
|
4064
4069
|
background: var(--oc-accent-from);
|
|
4065
|
-
|
|
4070
|
+
box-shadow: none;
|
|
4071
|
+
}
|
|
4072
|
+
/* The ring is a ::after that scales and fades (transform + opacity): drawn by the GPU, no work per frame on the page. */
|
|
4073
|
+
.oc-pill .oc-status-dot::after {
|
|
4074
|
+
content: "";
|
|
4075
|
+
position: absolute;
|
|
4076
|
+
inset: 0;
|
|
4077
|
+
border-radius: inherit;
|
|
4078
|
+
background: var(--oc-accent-from);
|
|
4079
|
+
opacity: 0;
|
|
4080
|
+
pointer-events: none;
|
|
4081
|
+
animation: oc-status-dot-ring 2s ease-out var(--oc-status-dot-pulses, infinite);
|
|
4066
4082
|
}
|
|
4067
|
-
.oc-pill .oc-status-dot--strong { --oc-status-dot-pulse-alpha: 1; --oc-status-dot-pulse-
|
|
4083
|
+
.oc-pill .oc-status-dot--strong { --oc-status-dot-pulse-alpha: 1; --oc-status-dot-pulse-scale: 3.5; }
|
|
4068
4084
|
@keyframes oc-status-dot-ring {
|
|
4069
|
-
0% {
|
|
4070
|
-
70%, 100% {
|
|
4085
|
+
0% { transform: scale(1); opacity: var(--oc-status-dot-pulse-alpha); }
|
|
4086
|
+
70%, 100% { transform: scale(var(--oc-status-dot-pulse-scale)); opacity: 0; }
|
|
4087
|
+
}
|
|
4088
|
+
@media (prefers-reduced-motion: reduce) {
|
|
4089
|
+
.oc-pill .oc-status-dot::after { animation: none; }
|
|
4071
4090
|
}
|
|
4072
4091
|
|
|
4073
4092
|
/* Stat strip: big numbers in a bordered row (pairs with .oc-counter for counting up) */
|
|
@@ -4319,9 +4338,17 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
4319
4338
|
.oc-sidebar--docs.oc-sidebar--collapsed { inline-size: auto; }
|
|
4320
4339
|
|
|
4321
4340
|
/* ---- On this page: .oc-toc ---------------------------------------------------------------------- */
|
|
4322
|
-
|
|
4341
|
+
/* Sticky only from 64rem: stacked above the text on a phone it would stay over the text. It stops under a sticky site
|
|
4342
|
+
header (--oc-sticky-offset, see parts/site-doc-layout.css). */
|
|
4343
|
+
.oc-toc { max-block-size: 100%; overflow: auto; padding-block-start: 2px; padding-inline-end: 0.5rem; }
|
|
4344
|
+
@media (min-width: 64rem) {
|
|
4345
|
+
.oc-toc { position: sticky; inset-block-start: var(--oc-sticky-offset, 0px); }
|
|
4346
|
+
}
|
|
4323
4347
|
.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
4348
|
.oc-toc-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
|
|
4349
|
+
/* Label above a group of links (Articles, Annexes): a <p> between two lists, or an <li> inside one list. */
|
|
4350
|
+
.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)); }
|
|
4351
|
+
.oc-toc-group-label:first-child { margin-block-start: 0; }
|
|
4325
4352
|
.oc-toc-link {
|
|
4326
4353
|
display: block;
|
|
4327
4354
|
padding: 0.375rem 0.5rem;
|
|
@@ -4338,6 +4365,9 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
|
|
|
4338
4365
|
.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
4366
|
/* Scroll-spy without JavaScript: the link of the heading you are reading is highlighted (native :target-current). */
|
|
4340
4367
|
.oc-toc-list { scroll-target-group: auto; }
|
|
4368
|
+
/* One group for the whole table of contents, so with several lists (one per group) only one link lights up. */
|
|
4369
|
+
.oc-toc { scroll-target-group: auto; }
|
|
4370
|
+
.oc-toc .oc-toc-list { scroll-target-group: none; }
|
|
4341
4371
|
.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
4372
|
.oc-toc-item--sub { margin-inline-start: 0.75rem; }
|
|
4343
4373
|
.oc-toc-item--sub .oc-toc-link { font-size: 0.8125rem; }
|
|
@@ -6469,7 +6499,7 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
|
|
|
6469
6499
|
.oc-page-header--bordered { margin-block-end: 1rem; border-block-end: 1px solid var(--oc-border); }
|
|
6470
6500
|
|
|
6471
6501
|
/* Sticky: stays on top while the page scrolls (needs a background). */
|
|
6472
|
-
.oc-page-header--sticky { position: sticky; inset-block-start:
|
|
6502
|
+
.oc-page-header--sticky { position: sticky; inset-block-start: var(--oc-sticky-offset, 0px); z-index: 10; background: var(--oc-background); }
|
|
6473
6503
|
|
|
6474
6504
|
/* Small: for sub pages and dialogs. */
|
|
6475
6505
|
.oc-page-header--sm { padding-block: 0.5rem 0.75rem; }
|
|
@@ -6769,17 +6799,32 @@ button.oc-stat-card:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
6769
6799
|
vertical-align: middle;
|
|
6770
6800
|
}
|
|
6771
6801
|
|
|
6772
|
-
/* Tones. --working pulses a ring outwards
|
|
6802
|
+
/* Tones. --working pulses a ring outwards: a ::after that only scales and fades (transform + opacity), so the GPU
|
|
6803
|
+
draws it and the page does no style or paint work per frame, also in a window that is always open.
|
|
6804
|
+
--oc-status-dot-pulses: how many times (default infinite; 3 = pulse three times and then stay a steady dot).
|
|
6805
|
+
--still: working without the pulse. */
|
|
6806
|
+
:where(.oc-status-dot--working) { position: relative; }
|
|
6773
6807
|
.oc-status-dot--working {
|
|
6774
6808
|
--oc-status-dot-color: var(--oc-primary);
|
|
6775
|
-
animation: oc-status-dot-pulse 1.8s ease-in-out infinite;
|
|
6776
6809
|
}
|
|
6810
|
+
.oc-status-dot--working::after {
|
|
6811
|
+
content: "";
|
|
6812
|
+
position: absolute;
|
|
6813
|
+
inset: 0;
|
|
6814
|
+
border-radius: inherit;
|
|
6815
|
+
background: var(--oc-status-dot-color);
|
|
6816
|
+
opacity: 0;
|
|
6817
|
+
pointer-events: none;
|
|
6818
|
+
animation: oc-status-dot-pulse 1.8s ease-out var(--oc-status-dot-pulses, infinite);
|
|
6819
|
+
}
|
|
6820
|
+
.oc-status-dot--still::after { content: none; }
|
|
6777
6821
|
.oc-status-dot--waiting { --oc-status-dot-color: var(--oc-warning); }
|
|
6778
6822
|
.oc-status-dot--done { --oc-status-dot-color: var(--oc-success); }
|
|
6779
6823
|
.oc-status-dot--error { --oc-status-dot-color: var(--oc-destructive); }
|
|
6780
6824
|
.oc-status-dot--idle { --oc-status-dot-color: var(--oc-muted-foreground); box-shadow: none; opacity: 0.7; }
|
|
6781
6825
|
@keyframes oc-status-dot-pulse {
|
|
6782
|
-
|
|
6826
|
+
0% { transform: scale(1); opacity: 0.35; }
|
|
6827
|
+
100% { transform: scale(2.25); opacity: 0; }
|
|
6783
6828
|
}
|
|
6784
6829
|
|
|
6785
6830
|
/* Sizes */
|
|
@@ -6799,7 +6844,7 @@ button.oc-stat-card:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
6799
6844
|
.oc-status__meta { flex: none; margin-inline-start: auto; color: var(--oc-muted-foreground); font-variant-numeric: tabular-nums; }
|
|
6800
6845
|
|
|
6801
6846
|
@media (prefers-reduced-motion: reduce) {
|
|
6802
|
-
.oc-status-dot--working { animation: none; }
|
|
6847
|
+
.oc-status-dot--working::after { animation: none; }
|
|
6803
6848
|
}
|
|
6804
6849
|
|
|
6805
6850
|
/* parts/app-table-actions.css */
|
|
@@ -7337,9 +7382,26 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
|
|
|
7337
7382
|
block-size: 0.5rem;
|
|
7338
7383
|
border-radius: 50%;
|
|
7339
7384
|
background: var(--oc-version-banner-color);
|
|
7385
|
+
position: relative;
|
|
7386
|
+
}
|
|
7387
|
+
/* The pulse is a ::after that scales and fades (transform + opacity): drawn by the GPU, no work per frame. */
|
|
7388
|
+
.oc-version-banner-dot::after {
|
|
7389
|
+
content: "";
|
|
7390
|
+
position: absolute;
|
|
7391
|
+
inset: 0;
|
|
7392
|
+
border-radius: inherit;
|
|
7393
|
+
background: var(--oc-version-banner-color);
|
|
7394
|
+
opacity: 0;
|
|
7395
|
+
pointer-events: none;
|
|
7340
7396
|
animation: oc-version-banner-pulse 2s ease-in-out infinite;
|
|
7341
7397
|
}
|
|
7342
|
-
@keyframes oc-version-banner-pulse {
|
|
7398
|
+
@keyframes oc-version-banner-pulse {
|
|
7399
|
+
0%, 100% { transform: scale(1); opacity: 0; }
|
|
7400
|
+
50% { transform: scale(2); opacity: 0.2; }
|
|
7401
|
+
}
|
|
7402
|
+
@media (prefers-reduced-motion: reduce) {
|
|
7403
|
+
.oc-version-banner-dot::after { animation: none; }
|
|
7404
|
+
}
|
|
7343
7405
|
|
|
7344
7406
|
/* Text: the long text hides on small screens, the short one shows instead. */
|
|
7345
7407
|
.oc-version-banner-text { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
@@ -7556,6 +7618,19 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
|
|
|
7556
7618
|
.oc-chart-line__dot, .oc-chart-line__tip { transition: none; }
|
|
7557
7619
|
}
|
|
7558
7620
|
|
|
7621
|
+
/* parts/data-dl-glossary.css */
|
|
7622
|
+
/* File: packages/ui/src/parts/data-dl-glossary.css | Map: glossary rows (term bold, explanation normal, same top line) */
|
|
7623
|
+
/* Glossary: the definition list (.oc-dl) as term + explanation instead of label + value. The term is bold in the
|
|
7624
|
+
foreground, the explanation normal text; both use the same line height, so their first lines sit on one line. */
|
|
7625
|
+
|
|
7626
|
+
.oc-dl--glossary .oc-dl-row { align-items: baseline; }
|
|
7627
|
+
.oc-dl--glossary :is(.oc-dl-term, .oc-dl-detail) { line-height: 1.55; }
|
|
7628
|
+
.oc-dl--glossary .oc-dl-term { color: var(--oc-foreground); font-weight: 600; }
|
|
7629
|
+
.oc-dl--glossary .oc-dl-detail { color: var(--oc-muted-foreground); font-weight: 400; overflow-wrap: break-word; }
|
|
7630
|
+
@media (min-width: 40rem) {
|
|
7631
|
+
.oc-dl--glossary .oc-dl-row { grid-template-columns: minmax(8rem, var(--oc-dl-term-width, 30%)) minmax(0, 1fr); }
|
|
7632
|
+
}
|
|
7633
|
+
|
|
7559
7634
|
/* parts/data-graph.css */
|
|
7560
7635
|
/* File: packages/ui/src/parts/data-graph.css
|
|
7561
7636
|
Map: frame -> edges (moving dashes) -> nodes (halo, dot, mark, label) -> levels -> center node + pulse -> focus
|
|
@@ -7707,6 +7782,7 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
|
|
|
7707
7782
|
.oc-meter-row__value { font-size: 0.8125rem; font-variant-numeric: tabular-nums; color: var(--oc-muted-foreground); white-space: nowrap; }
|
|
7708
7783
|
.oc-meter-row__value strong { color: var(--oc-foreground); }
|
|
7709
7784
|
.oc-meter-row__bar {
|
|
7785
|
+
contain: layout paint;
|
|
7710
7786
|
grid-column: 1 / -1;
|
|
7711
7787
|
block-size: 0.5rem;
|
|
7712
7788
|
overflow: hidden;
|
|
@@ -7749,6 +7825,7 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
|
|
|
7749
7825
|
}
|
|
7750
7826
|
.oc-meter-row__subbar {
|
|
7751
7827
|
--oc-meter-color: var(--oc-muted-foreground);
|
|
7828
|
+
contain: layout paint;
|
|
7752
7829
|
flex: 1;
|
|
7753
7830
|
min-inline-size: 2rem;
|
|
7754
7831
|
block-size: 3px;
|
|
@@ -7778,6 +7855,11 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
|
|
|
7778
7855
|
.oc-meter-list--dense .oc-meter-row__label { font-size: 0.8rem; }
|
|
7779
7856
|
.oc-meter-list--dense .oc-meter-row__value { font-size: 0.75rem; }
|
|
7780
7857
|
.oc-meter-list--dense .oc-meter-row__bar { block-size: 5px; }
|
|
7858
|
+
/* Live meters (a value every few seconds, a window that stays open): no width transition, so no layout per frame.
|
|
7859
|
+
The dense list is meant for that, so it has none either. */
|
|
7860
|
+
:is(.oc-meter-list--live, .oc-meter-list--dense) .oc-meter-row__bar::before,
|
|
7861
|
+
:is(.oc-meter-list--live, .oc-meter-list--dense) .oc-meter-row__subbar::before,
|
|
7862
|
+
:is(.oc-meter-list--live, .oc-meter-list--dense) .oc-meter-row__fill { transition: none; }
|
|
7781
7863
|
|
|
7782
7864
|
@media (prefers-reduced-motion: reduce) {
|
|
7783
7865
|
.oc-meter-row__bar::before,
|
|
@@ -7951,6 +8033,50 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
|
|
|
7951
8033
|
.oc-spec-row > dd { margin: 0; min-inline-size: 0; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
|
|
7952
8034
|
.oc-spec-row > dd > small { margin-inline-start: 0.25rem; font-weight: 400; color: var(--oc-muted-foreground); }
|
|
7953
8035
|
|
|
8036
|
+
/* parts/data-step-list.css */
|
|
8037
|
+
/* File: packages/ui/src/parts/data-step-list.css | Map: list (one column, counter) -> row (number + text) -> number color
|
|
8038
|
+
-> links -> small */
|
|
8039
|
+
/* Step list: a compact numbered list of steps inside a card or a disclosure ("How to remove this", the steps per
|
|
8040
|
+
service, what a scan does). One row per step: the number on the left in the display font, the text on the right.
|
|
8041
|
+
The number takes --oc-step-list-color, else the color of the severity card it sits in (--oc-severity-color), else
|
|
8042
|
+
primary. Start at another number: style="counter-reset: oc-step-list 3" (the first step is then 4).
|
|
8043
|
+
Not to be confused with .oc-steps, the large process section of a website. */
|
|
8044
|
+
|
|
8045
|
+
.oc-step-list {
|
|
8046
|
+
display: grid;
|
|
8047
|
+
gap: 0.6rem;
|
|
8048
|
+
margin: 0;
|
|
8049
|
+
padding: 0;
|
|
8050
|
+
list-style: none;
|
|
8051
|
+
counter-reset: oc-step-list;
|
|
8052
|
+
font-size: 0.875rem;
|
|
8053
|
+
line-height: 1.5;
|
|
8054
|
+
}
|
|
8055
|
+
/* The text flows as normal text (bold words and links stay inline); the number hangs in the indent on the first line. */
|
|
8056
|
+
.oc-step-list > li {
|
|
8057
|
+
position: relative;
|
|
8058
|
+
padding-inline-start: 1.85rem;
|
|
8059
|
+
counter-increment: oc-step-list;
|
|
8060
|
+
}
|
|
8061
|
+
.oc-step-list > li::before {
|
|
8062
|
+
content: counter(oc-step-list);
|
|
8063
|
+
position: absolute;
|
|
8064
|
+
inset-block-start: 0;
|
|
8065
|
+
inset-inline-start: 0;
|
|
8066
|
+
inline-size: 1.25rem;
|
|
8067
|
+
color: var(--oc-step-list-color, var(--oc-severity-color, var(--oc-primary)));
|
|
8068
|
+
font-family: var(--oc-font-display, inherit);
|
|
8069
|
+
font-weight: 700;
|
|
8070
|
+
font-variant-numeric: tabular-nums;
|
|
8071
|
+
text-align: end;
|
|
8072
|
+
}
|
|
8073
|
+
.oc-step-list > li > :first-child { margin-block-start: 0; }
|
|
8074
|
+
.oc-step-list > li > :last-child { margin-block-end: 0; }
|
|
8075
|
+
.oc-step-list a { text-underline-offset: 2px; }
|
|
8076
|
+
|
|
8077
|
+
/* Small: tighter rows and a smaller text, for a dense panel. */
|
|
8078
|
+
.oc-step-list--sm { gap: 0.4rem; font-size: 0.8125rem; }
|
|
8079
|
+
|
|
7954
8080
|
/* parts/data-stock.css */
|
|
7955
8081
|
/* File: packages/ui/src/parts/data-stock.css | Map: indicator (dot + text) -> levels (ok, low, out, order) -> badge variant -> count */
|
|
7956
8082
|
/* Stock status: a colored dot with a short text ("In stock", "Only 3 left", "Out of stock", "On order").
|
|
@@ -8856,6 +8982,68 @@ button.oc-language-select:hover { background: var(--oc-surface); }
|
|
|
8856
8982
|
.oc-language-select--code::after,
|
|
8857
8983
|
.oc-language-select--code .oc-language-select-icon { display: none; }
|
|
8858
8984
|
.oc-language-select--code .oc-language-select-control { position: absolute; inset: 0; padding: 0; opacity: 0; }
|
|
8985
|
+
|
|
8986
|
+
/* Open list in the OmniaUI dropdown look (Chrome and Edge 135+: customizable select, appearance: base-select).
|
|
8987
|
+
The native list of the system looked like a bare Windows list: narrow, small, no padding. Now it is a popover with
|
|
8988
|
+
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
|
|
8989
|
+
language. Other browsers keep the system list (the select still works the same). */
|
|
8990
|
+
@supports (appearance: base-select) {
|
|
8991
|
+
.oc-language-select-control,
|
|
8992
|
+
.oc-language-select-control::picker(select) { appearance: base-select; }
|
|
8993
|
+
.oc-language-select-control {
|
|
8994
|
+
min-inline-size: 0;
|
|
8995
|
+
border: 0;
|
|
8996
|
+
background: transparent;
|
|
8997
|
+
}
|
|
8998
|
+
/* The list lines up with the whole pill (icon included), not only with the select inside it. anchor-scope keeps
|
|
8999
|
+
every pill its own anchor when a page has several. */
|
|
9000
|
+
.oc-language-select:has(> .oc-language-select-control) { anchor-name: --oc-language-select; anchor-scope: --oc-language-select; }
|
|
9001
|
+
.oc-language-select-control::picker(select) { position-anchor: --oc-language-select; }
|
|
9002
|
+
/* The label draws its own chevron (::after). */
|
|
9003
|
+
.oc-language-select-control::picker-icon { display: none; }
|
|
9004
|
+
.oc-language-select-control::picker(select) {
|
|
9005
|
+
/* As wide as the longest language, at least 8rem and never narrower than the field. */
|
|
9006
|
+
min-inline-size: max(8rem, anchor-size(inline));
|
|
9007
|
+
margin-block: 4px;
|
|
9008
|
+
padding: 4px;
|
|
9009
|
+
border: 1px solid var(--oc-border);
|
|
9010
|
+
border-radius: var(--oc-radius);
|
|
9011
|
+
background: var(--oc-popover);
|
|
9012
|
+
color: var(--oc-popover-foreground);
|
|
9013
|
+
box-shadow: 0 8px 24px oklch(from var(--color-black-60) l c h / 0.15);
|
|
9014
|
+
font-size: 0.875rem;
|
|
9015
|
+
font-weight: 400;
|
|
9016
|
+
letter-spacing: normal;
|
|
9017
|
+
text-transform: none;
|
|
9018
|
+
position-area: block-end span-inline-end;
|
|
9019
|
+
/* Under the field; above it only when it does not fit below (normal order: no "side with the most room"). */
|
|
9020
|
+
position-try-order: normal;
|
|
9021
|
+
position-try-fallbacks: flip-block;
|
|
9022
|
+
}
|
|
9023
|
+
.oc-language-select-control option {
|
|
9024
|
+
display: flex;
|
|
9025
|
+
align-items: center;
|
|
9026
|
+
gap: 1rem;
|
|
9027
|
+
padding: 8px 10px;
|
|
9028
|
+
border-radius: calc(var(--oc-radius) - 2px);
|
|
9029
|
+
background: transparent;
|
|
9030
|
+
color: inherit;
|
|
9031
|
+
cursor: pointer;
|
|
9032
|
+
}
|
|
9033
|
+
.oc-language-select-control option:hover,
|
|
9034
|
+
.oc-language-select-control option:focus-visible {
|
|
9035
|
+
background: var(--oc-accent);
|
|
9036
|
+
color: var(--oc-accent-foreground);
|
|
9037
|
+
outline: none;
|
|
9038
|
+
}
|
|
9039
|
+
.oc-language-select-control option:checked { font-weight: 600; }
|
|
9040
|
+
/* The check of the current language on the right, in the primary color. */
|
|
9041
|
+
.oc-language-select-control option::checkmark { order: 1; margin-inline-start: auto; color: var(--oc-primary); }
|
|
9042
|
+
|
|
9043
|
+
/* Code: the select lies over the whole button (still invisible text), the list opens under it, aligned right. */
|
|
9044
|
+
.oc-language-select--code .oc-language-select-control { opacity: 1; color: transparent; overflow: hidden; }
|
|
9045
|
+
.oc-language-select--code .oc-language-select-control::picker(select) { position-area: block-end span-inline-start; }
|
|
9046
|
+
}
|
|
8859
9047
|
|
|
8860
9048
|
/* parts/forms-number-input.css */
|
|
8861
9049
|
/* File: packages/ui/src/parts/forms-number-input.css
|
|
@@ -12022,6 +12210,47 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
12022
12210
|
filter: drop-shadow(0 10px 20px oklch(0 0 0 / 0.6));
|
|
12023
12211
|
}
|
|
12024
12212
|
|
|
12213
|
+
/* parts/site-doc-layout.css */
|
|
12214
|
+
/* File: packages/ui/src/parts/site-doc-layout.css */
|
|
12215
|
+
/* Map: sticky offset (token, auto under a site header, scroll padding for anchors) -> document layout (side column +
|
|
12216
|
+
text) -> sticky side column from 64rem -> a table of contents inside it */
|
|
12217
|
+
/* A document page with a side column (a table of contents next to a privacy policy, terms or a manual) and the offset
|
|
12218
|
+
that keeps sticky parts and anchor jumps clear of a sticky site header.
|
|
12219
|
+
--oc-sticky-offset: how far from the top sticky parts stop. Set it yourself (:root { --oc-sticky-offset: 5rem }), or
|
|
12220
|
+
let it follow .oc-site-header: its height (--oc-site-header-height, 4.5rem) plus 1rem. Used by .oc-toc,
|
|
12221
|
+
.oc-doc-layout__aside, .oc-page-header--sticky and the scroll padding of the page, so a heading you jump to from the
|
|
12222
|
+
table of contents is not hidden under the header. */
|
|
12223
|
+
|
|
12224
|
+
/* Only the header of the page itself (not one shown as an example inside <main>); :where keeps it overridable, also
|
|
12225
|
+
by a scroll-p* utility on <html>. */
|
|
12226
|
+
:where(html:has(.oc-site-header:not(main *))) { --oc-sticky-offset: calc(var(--oc-site-header-height, 4.5rem) + 1rem); }
|
|
12227
|
+
:where(html) { scroll-padding-block-start: var(--oc-sticky-offset, 0px); }
|
|
12228
|
+
|
|
12229
|
+
/* Document layout: side column (--oc-doc-aside, 17rem) and the text; stacked below 64rem, side column first.
|
|
12230
|
+
--end puts the side column on the right on a wide screen. */
|
|
12231
|
+
.oc-doc-layout {
|
|
12232
|
+
display: grid;
|
|
12233
|
+
gap: var(--oc-doc-gap, 2rem 4rem);
|
|
12234
|
+
align-items: start;
|
|
12235
|
+
}
|
|
12236
|
+
.oc-doc-layout__aside,
|
|
12237
|
+
.oc-doc-layout__main { min-inline-size: 0; }
|
|
12238
|
+
@media (min-width: 64rem) {
|
|
12239
|
+
.oc-doc-layout { grid-template-columns: var(--oc-doc-aside, 17rem) minmax(0, 1fr); }
|
|
12240
|
+
.oc-doc-layout--end { grid-template-columns: minmax(0, 1fr) var(--oc-doc-aside, 17rem); }
|
|
12241
|
+
.oc-doc-layout--end > .oc-doc-layout__aside { order: 1; }
|
|
12242
|
+
/* Sticky only next to the text: stacked on a phone it would stay over the text. */
|
|
12243
|
+
.oc-doc-layout__aside {
|
|
12244
|
+
position: sticky;
|
|
12245
|
+
inset-block-start: var(--oc-sticky-offset, 0px);
|
|
12246
|
+
max-block-size: calc(100dvh - var(--oc-sticky-offset, 0px) - 1rem);
|
|
12247
|
+
overflow: auto;
|
|
12248
|
+
overscroll-behavior: contain;
|
|
12249
|
+
}
|
|
12250
|
+
}
|
|
12251
|
+
/* The column is sticky itself, so the table of contents in it is not. */
|
|
12252
|
+
.oc-doc-layout__aside .oc-toc { position: static; max-block-size: none; overflow: visible; }
|
|
12253
|
+
|
|
12025
12254
|
/* parts/site-fact-list.css */
|
|
12026
12255
|
/* File: packages/ui/src/parts/site-fact-list.css
|
|
12027
12256
|
Map: plain -> compact -> stacked -> accent values -> narrow screens
|
|
@@ -12165,7 +12394,7 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
12165
12394
|
|
|
12166
12395
|
/* parts/site-layout.css */
|
|
12167
12396
|
/* File: packages/ui/src/parts/site-layout.css */
|
|
12168
|
-
/* Map: page hero -> section head / more -> action row -> group title -> band -> meta line */
|
|
12397
|
+
/* Map: page hero -> section head (split) / more -> action row -> group title -> band -> meta line */
|
|
12169
12398
|
/* Page building blocks for a marketing or company site, on top of the showcase classes (.oc-section-pad, .oc-display):
|
|
12170
12399
|
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
12400
|
a full-width band (for a stat strip) and a meta line (version · date). */
|
|
@@ -12186,6 +12415,20 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
12186
12415
|
margin-inline: auto;
|
|
12187
12416
|
text-align: center;
|
|
12188
12417
|
}
|
|
12418
|
+
/* Split: the title on the left, the lead on the right (one column below 56rem). Put the eyebrow and the title in a
|
|
12419
|
+
<div>, the lead next to it. */
|
|
12420
|
+
.oc-section-head--split {
|
|
12421
|
+
display: grid;
|
|
12422
|
+
gap: 1rem 4rem;
|
|
12423
|
+
align-items: end;
|
|
12424
|
+
max-inline-size: none;
|
|
12425
|
+
}
|
|
12426
|
+
.oc-section-head--split > :last-child,
|
|
12427
|
+
.oc-section-head--split > div > :last-child { margin-block-end: 0; }
|
|
12428
|
+
@media (min-width: 56rem) {
|
|
12429
|
+
.oc-section-head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
|
|
12430
|
+
.oc-section-head--split > .oc-lead { justify-self: end; max-inline-size: 36rem; }
|
|
12431
|
+
}
|
|
12189
12432
|
.oc-section-more { margin-block-start: 2.5rem; }
|
|
12190
12433
|
|
|
12191
12434
|
/* Row of buttons under a text: wraps on a narrow screen. */
|
|
@@ -12368,16 +12611,30 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
12368
12611
|
Colors: --oc-accent-from and --oc-accent-to (brand-1 and brand-2, or an .oc-accent--* preset).
|
|
12369
12612
|
.oc-glow-border goes on anything with a border: <form class="oc-glass oc-glow-border">, an .oc-card, a panel. */
|
|
12370
12613
|
|
|
12614
|
+
/* The element keeps a steady border and glow in --oc-accent-from; a ::after with the border and a wider glow in
|
|
12615
|
+
--oc-accent-to fades in and out over it. Only opacity animates, so the GPU does it: no style or paint work per frame.
|
|
12616
|
+
position: relative only when the element has no position of its own (:where = no specificity). */
|
|
12617
|
+
:where(.oc-glow-border) { position: relative; }
|
|
12371
12618
|
.oc-glow-border {
|
|
12372
12619
|
border-color: var(--oc-accent-from);
|
|
12373
12620
|
box-shadow: 0 0 10px oklch(from var(--oc-accent-from) l c h / 0.35), var(--oc-glow-extra, 0 0 transparent);
|
|
12621
|
+
}
|
|
12622
|
+
.oc-glow-border::after {
|
|
12623
|
+
content: "";
|
|
12624
|
+
position: absolute;
|
|
12625
|
+
inset: calc(-1 * var(--oc-glow-border-width, 1px));
|
|
12626
|
+
border: var(--oc-glow-border-width, 1px) solid var(--oc-accent-to);
|
|
12627
|
+
border-radius: inherit;
|
|
12628
|
+
box-shadow: 0 0 20px oklch(from var(--oc-accent-to) l c h / 0.35);
|
|
12629
|
+
opacity: 0;
|
|
12630
|
+
pointer-events: none;
|
|
12374
12631
|
animation: oc-glow-border var(--oc-glow-border-duration, 3s) ease-in-out infinite;
|
|
12375
12632
|
}
|
|
12376
12633
|
/* Glass keeps its light top edge and drop shadow under the glow. */
|
|
12377
12634
|
.oc-glass.oc-glow-border { --oc-glow-extra: var(--oc-glass-shadow), inset 0 1px 0 var(--oc-glass-edge-hi); }
|
|
12378
12635
|
@keyframes oc-glow-border {
|
|
12379
|
-
0%, 100% {
|
|
12380
|
-
50% {
|
|
12636
|
+
0%, 100% { opacity: 0; }
|
|
12637
|
+
50% { opacity: 1; }
|
|
12381
12638
|
}
|
|
12382
12639
|
|
|
12383
12640
|
/* Neon button: gradient from one accent to the other, with a glow. --oc-btn-neon-ink sets the text color. */
|
|
@@ -12394,7 +12651,7 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
12394
12651
|
.oc-btn--neon:disabled { color: var(--oc-muted-foreground); background: var(--oc-muted); box-shadow: none; }
|
|
12395
12652
|
|
|
12396
12653
|
@media (prefers-reduced-motion: reduce) {
|
|
12397
|
-
.oc-glow-border { animation: none; }
|
|
12654
|
+
.oc-glow-border::after { animation: none; }
|
|
12398
12655
|
}
|
|
12399
12656
|
|
|
12400
12657
|
/* parts/site-next-teaser.css */
|
|
@@ -12813,7 +13070,8 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
12813
13070
|
.oc-prose :where(h3) { margin-block-start: 1.6em; font-size: 1.2em; }
|
|
12814
13071
|
.oc-prose :where(h4) { margin-block-start: 1.4em; font-size: 1em; }
|
|
12815
13072
|
.oc-prose :where(h1, h2, h3, h4) + :where(*) { margin-block-start: 0.6em; }
|
|
12816
|
-
|
|
13073
|
+
/* Room above a heading you jump to: 5rem, or 0.5rem on top of the page's scroll padding (--oc-sticky-offset). */
|
|
13074
|
+
.oc-prose :where(h2, h3, h4) { scroll-margin-block-start: max(0.5rem, 5rem - var(--oc-sticky-offset, 0px)); }
|
|
12817
13075
|
|
|
12818
13076
|
/* ---- Paragraphs ---- */
|
|
12819
13077
|
.oc-prose :where(p) { text-wrap: pretty; }
|
|
@@ -12936,6 +13194,8 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
12936
13194
|
.oc-prose--legal :where(a) { color: var(--oc-brand-1); font-weight: inherit; text-decoration-color: currentColor; text-underline-offset: 3px; }
|
|
12937
13195
|
.oc-prose--legal :where(a:hover) { color: var(--oc-foreground); }
|
|
12938
13196
|
.oc-prose--legal :where(table) { font-size: 0.93rem; }
|
|
13197
|
+
/* Ruled: a line under every h2, so the articles of a long document stand apart (with --legal or any prose). */
|
|
13198
|
+
.oc-prose--ruled :where(h2) { padding-block-end: 0.6rem; border-block-end: 1px solid var(--oc-border); }
|
|
12939
13199
|
|
|
12940
13200
|
/* parts/site-stack-list.css */
|
|
12941
13201
|
/* File: packages/ui/src/parts/site-stack-list.css
|
|
@@ -13043,6 +13303,231 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
13043
13303
|
/* Line in the accent color instead of the neutral border. */
|
|
13044
13304
|
.oc-timeline--accent { border-inline-start-color: color-mix(in oklch, var(--oc-accent-from) 55%, transparent); }
|
|
13045
13305
|
|
|
13306
|
+
/* parts/site-tint-card.css */
|
|
13307
|
+
/* File: packages/ui/src/parts/site-tint-card.css */
|
|
13308
|
+
/* Map: tint card (link, tint, lift) -> head (title + go chip) -> text + meta -> corner art (drift, tilt on hover)
|
|
13309
|
+
-> glow -> tones -> large cards -> reduced motion */
|
|
13310
|
+
/* Tint card: a card that is a link, tinted in one color (--oc-tint), with a large outline webicon that sticks out of the
|
|
13311
|
+
bottom corner. The icon drifts slowly up and down (each card in a grid on its own beat) and tilts and grows on hover;
|
|
13312
|
+
a soft glow behind it grows with it. The arrow chip top right fills with the tint and the arrow flies out and back
|
|
13313
|
+
in. The card lifts 4px with a shadow in its own tint. For a row of services, training modules or product areas in an
|
|
13314
|
+
.oc-card-grid. Colors mix with the card color, so light and dark mode work without extra classes. */
|
|
13315
|
+
|
|
13316
|
+
.oc-tint-card {
|
|
13317
|
+
--oc-tint: var(--oc-primary);
|
|
13318
|
+
--oc-tint-foreground: var(--oc-primary-foreground);
|
|
13319
|
+
--oc-tint-mix: 9%;
|
|
13320
|
+
--oc-tint-mix-hover: 15%;
|
|
13321
|
+
position: relative;
|
|
13322
|
+
isolation: isolate;
|
|
13323
|
+
overflow: hidden;
|
|
13324
|
+
container-type: inline-size;
|
|
13325
|
+
display: flex;
|
|
13326
|
+
flex-direction: column;
|
|
13327
|
+
min-block-size: 9rem;
|
|
13328
|
+
padding: 1.5rem;
|
|
13329
|
+
border: 1px solid color-mix(in oklab, var(--oc-tint) 14%, transparent);
|
|
13330
|
+
border-radius: var(--oc-radius-xl, 1.5rem);
|
|
13331
|
+
background: color-mix(in oklab, var(--oc-tint) var(--oc-tint-mix), var(--oc-card, var(--oc-background)));
|
|
13332
|
+
color: var(--oc-foreground);
|
|
13333
|
+
text-decoration: none;
|
|
13334
|
+
transition:
|
|
13335
|
+
translate 0.3s var(--oc-ease-out, ease-out),
|
|
13336
|
+
box-shadow 0.3s var(--oc-ease-out, ease-out),
|
|
13337
|
+
background-color 0.3s var(--oc-ease-out, ease-out);
|
|
13338
|
+
}
|
|
13339
|
+
@media (min-width: 40rem) {
|
|
13340
|
+
.oc-tint-card { min-block-size: 15rem; padding: 1.75rem; }
|
|
13341
|
+
}
|
|
13342
|
+
.oc-tint-card:is(a, button):hover,
|
|
13343
|
+
.oc-tint-card:is(a, button):focus-visible,
|
|
13344
|
+
.oc-tint-card:has(.oc-tint-card__link:is(:hover, :focus-visible)) {
|
|
13345
|
+
translate: 0 -4px;
|
|
13346
|
+
background: color-mix(in oklab, var(--oc-tint) var(--oc-tint-mix-hover), var(--oc-card, var(--oc-background)));
|
|
13347
|
+
box-shadow: 0 24px 48px -24px color-mix(in oklab, var(--oc-tint) 45%, transparent);
|
|
13348
|
+
}
|
|
13349
|
+
.oc-tint-card:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: 2px; }
|
|
13350
|
+
/* A card that is not a link itself: the title link covers the whole card. */
|
|
13351
|
+
.oc-tint-card__link { color: inherit; text-decoration: none; }
|
|
13352
|
+
.oc-tint-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
|
|
13353
|
+
.oc-tint-card__link:focus-visible { outline: none; }
|
|
13354
|
+
.oc-tint-card__link:focus-visible::after { outline: 2px solid var(--oc-ring); outline-offset: 2px; }
|
|
13355
|
+
|
|
13356
|
+
/* Head: title on the left, the arrow chip on the right. */
|
|
13357
|
+
.oc-tint-card__head {
|
|
13358
|
+
display: flex;
|
|
13359
|
+
align-items: flex-start;
|
|
13360
|
+
justify-content: space-between;
|
|
13361
|
+
gap: 1rem;
|
|
13362
|
+
}
|
|
13363
|
+
.oc-tint-card__title {
|
|
13364
|
+
margin: 0;
|
|
13365
|
+
font-family: var(--oc-font-display, inherit);
|
|
13366
|
+
font-size: 1.125rem;
|
|
13367
|
+
font-weight: 650;
|
|
13368
|
+
line-height: 1.3;
|
|
13369
|
+
letter-spacing: -0.01em;
|
|
13370
|
+
text-wrap: balance;
|
|
13371
|
+
}
|
|
13372
|
+
.oc-tint-card__text {
|
|
13373
|
+
margin: 0.5rem 0 0;
|
|
13374
|
+
max-inline-size: 26ch;
|
|
13375
|
+
color: var(--oc-muted-foreground);
|
|
13376
|
+
font-size: 0.875rem;
|
|
13377
|
+
line-height: 1.6;
|
|
13378
|
+
text-wrap: pretty;
|
|
13379
|
+
}
|
|
13380
|
+
/* Meta line at the bottom (12 modules, New, From € 9): in the tint, pushed down. */
|
|
13381
|
+
.oc-tint-card__meta {
|
|
13382
|
+
margin-block-start: auto;
|
|
13383
|
+
padding-block-start: 1rem;
|
|
13384
|
+
color: color-mix(in oklab, var(--oc-tint) 75%, var(--oc-foreground));
|
|
13385
|
+
font-size: 0.8rem;
|
|
13386
|
+
font-weight: 600;
|
|
13387
|
+
}
|
|
13388
|
+
@container (min-width: 16rem) {
|
|
13389
|
+
.oc-tint-card__title { font-size: 1.25rem; }
|
|
13390
|
+
.oc-tint-card__text { font-size: 0.94rem; }
|
|
13391
|
+
}
|
|
13392
|
+
|
|
13393
|
+
/* Arrow chip: a round chip in the tint; on hover it fills and the arrow flies out top right and back in from below. */
|
|
13394
|
+
.oc-tint-card__go {
|
|
13395
|
+
display: inline-grid;
|
|
13396
|
+
place-items: center;
|
|
13397
|
+
flex-shrink: 0;
|
|
13398
|
+
inline-size: 2rem;
|
|
13399
|
+
block-size: 2rem;
|
|
13400
|
+
overflow: hidden;
|
|
13401
|
+
border-radius: 999px;
|
|
13402
|
+
background: color-mix(in oklab, var(--oc-tint) 16%, transparent);
|
|
13403
|
+
color: var(--oc-tint);
|
|
13404
|
+
font-size: 1.1rem;
|
|
13405
|
+
transition: background-color 0.3s, color 0.3s;
|
|
13406
|
+
}
|
|
13407
|
+
.oc-tint-card__go > * { display: block; }
|
|
13408
|
+
:is(a.oc-tint-card, button.oc-tint-card):is(:hover, :focus-visible) .oc-tint-card__go,
|
|
13409
|
+
.oc-tint-card:has(.oc-tint-card__link:is(:hover, :focus-visible)) .oc-tint-card__go {
|
|
13410
|
+
background: var(--oc-tint);
|
|
13411
|
+
color: var(--oc-tint-foreground);
|
|
13412
|
+
}
|
|
13413
|
+
:is(a.oc-tint-card, button.oc-tint-card):is(:hover, :focus-visible) .oc-tint-card__go > *,
|
|
13414
|
+
.oc-tint-card:has(.oc-tint-card__link:is(:hover, :focus-visible)) .oc-tint-card__go > * {
|
|
13415
|
+
animation: oc-tint-go 0.55s var(--oc-ease-out, ease-out);
|
|
13416
|
+
}
|
|
13417
|
+
@keyframes oc-tint-go {
|
|
13418
|
+
0% { translate: 0 0; opacity: 1; }
|
|
13419
|
+
45% { translate: 130% -130%; opacity: 0; }
|
|
13420
|
+
46% { translate: -130% 130%; opacity: 0; }
|
|
13421
|
+
100% { translate: 0 0; opacity: 1; }
|
|
13422
|
+
}
|
|
13423
|
+
|
|
13424
|
+
/* Corner art: a large outline webicon (mdi-light or material-symbols ...-outline), half outside the bottom corner.
|
|
13425
|
+
It drifts slowly (transform); hover tilts and grows it (rotate, scale), so the two never fight. */
|
|
13426
|
+
.oc-tint-card__art {
|
|
13427
|
+
position: absolute;
|
|
13428
|
+
inset-block-end: -1rem;
|
|
13429
|
+
inset-inline-end: -0.75rem;
|
|
13430
|
+
z-index: -1;
|
|
13431
|
+
display: block;
|
|
13432
|
+
color: var(--oc-tint);
|
|
13433
|
+
font-size: 6rem;
|
|
13434
|
+
line-height: 1;
|
|
13435
|
+
opacity: 0.32;
|
|
13436
|
+
pointer-events: none;
|
|
13437
|
+
transform-origin: 70% 70%;
|
|
13438
|
+
will-change: transform;
|
|
13439
|
+
animation: oc-tint-drift var(--oc-tint-drift, 6s) ease-in-out var(--oc-tint-delay, 0s) infinite alternate;
|
|
13440
|
+
transition:
|
|
13441
|
+
rotate 0.5s var(--oc-ease-out, ease-out),
|
|
13442
|
+
scale 0.5s var(--oc-ease-out, ease-out),
|
|
13443
|
+
opacity 0.5s var(--oc-ease-out, ease-out);
|
|
13444
|
+
}
|
|
13445
|
+
.oc-tint-card__art > * { display: block; }
|
|
13446
|
+
/* transform (not translate) + will-change: the drift runs on the GPU, so it costs no style work per frame. */
|
|
13447
|
+
@keyframes oc-tint-drift {
|
|
13448
|
+
from { transform: translate3d(0, 0, 0); }
|
|
13449
|
+
to { transform: translate3d(-4px, -10px, 0); }
|
|
13450
|
+
}
|
|
13451
|
+
/* Each card in a row drifts on its own beat. */
|
|
13452
|
+
.oc-tint-card:nth-child(5n + 2) { --oc-tint-delay: -1.2s; }
|
|
13453
|
+
.oc-tint-card:nth-child(5n + 3) { --oc-tint-delay: -2.4s; }
|
|
13454
|
+
.oc-tint-card:nth-child(5n + 4) { --oc-tint-delay: -3.6s; }
|
|
13455
|
+
.oc-tint-card:nth-child(5n + 5) { --oc-tint-delay: -4.8s; }
|
|
13456
|
+
:is(a.oc-tint-card, button.oc-tint-card):is(:hover, :focus-visible) .oc-tint-card__art,
|
|
13457
|
+
.oc-tint-card:has(.oc-tint-card__link:is(:hover, :focus-visible)) .oc-tint-card__art {
|
|
13458
|
+
rotate: -8deg;
|
|
13459
|
+
scale: 1.12;
|
|
13460
|
+
opacity: 0.5;
|
|
13461
|
+
}
|
|
13462
|
+
|
|
13463
|
+
/* Glow: a soft spot in the tint behind the icon that grows on hover. */
|
|
13464
|
+
.oc-tint-card::after {
|
|
13465
|
+
content: "";
|
|
13466
|
+
position: absolute;
|
|
13467
|
+
inset-block-end: -35%;
|
|
13468
|
+
inset-inline-end: -25%;
|
|
13469
|
+
z-index: -2;
|
|
13470
|
+
inline-size: min(75%, 14rem);
|
|
13471
|
+
aspect-ratio: 1;
|
|
13472
|
+
border-radius: 50%;
|
|
13473
|
+
background: radial-gradient(circle, color-mix(in oklab, var(--oc-tint) 24%, transparent), transparent 68%);
|
|
13474
|
+
scale: 0.8;
|
|
13475
|
+
pointer-events: none;
|
|
13476
|
+
transition: scale 0.6s var(--oc-ease-out, ease-out);
|
|
13477
|
+
}
|
|
13478
|
+
.oc-tint-card:is(a, button):is(:hover, :focus-visible)::after,
|
|
13479
|
+
.oc-tint-card:has(.oc-tint-card__link:is(:hover, :focus-visible))::after { scale: 1.15; }
|
|
13480
|
+
|
|
13481
|
+
/* On a phone the cards are low and wide: the icon stays small there and only grows from 40rem (in a card of 16rem+). */
|
|
13482
|
+
@media (min-width: 40rem) {
|
|
13483
|
+
.oc-tint-card__art { inset-block-end: -1.5rem; inset-inline-end: -1.5rem; font-size: 7rem; }
|
|
13484
|
+
@container (min-width: 16rem) {
|
|
13485
|
+
.oc-tint-card__art { font-size: 9rem; }
|
|
13486
|
+
}
|
|
13487
|
+
}
|
|
13488
|
+
|
|
13489
|
+
/* Tones (or set --oc-tint yourself: style="--oc-tint: #e8590c"). */
|
|
13490
|
+
.oc-tint-card--success { --oc-tint: var(--oc-success); --oc-tint-foreground: var(--oc-success-foreground); }
|
|
13491
|
+
.oc-tint-card--warning { --oc-tint: var(--oc-warning); --oc-tint-foreground: var(--oc-warning-foreground); }
|
|
13492
|
+
.oc-tint-card--destructive { --oc-tint: var(--oc-destructive); --oc-tint-foreground: var(--oc-destructive-foreground); }
|
|
13493
|
+
.oc-tint-card--info {
|
|
13494
|
+
--oc-tint: var(--oc-info, light-dark(var(--color-deepskyblue-70), var(--color-skyblue-50)));
|
|
13495
|
+
--oc-tint-foreground: #fff;
|
|
13496
|
+
}
|
|
13497
|
+
.oc-tint-card--muted { --oc-tint: var(--oc-muted-foreground); --oc-tint-foreground: var(--oc-background); }
|
|
13498
|
+
|
|
13499
|
+
/* Large: a card for a row of two or three, with more room and a larger icon. */
|
|
13500
|
+
.oc-tint-card--lg { min-block-size: 18rem; }
|
|
13501
|
+
@media (min-width: 40rem) {
|
|
13502
|
+
.oc-tint-card--lg { padding: 2.25rem; }
|
|
13503
|
+
}
|
|
13504
|
+
.oc-tint-card--lg .oc-tint-card__title { font-size: 1.5rem; }
|
|
13505
|
+
.oc-tint-card--lg .oc-tint-card__text { max-inline-size: 34ch; font-size: 1rem; }
|
|
13506
|
+
@media (min-width: 40rem) {
|
|
13507
|
+
@container (min-width: 22rem) {
|
|
13508
|
+
.oc-tint-card--lg .oc-tint-card__art { font-size: 12rem; }
|
|
13509
|
+
}
|
|
13510
|
+
}
|
|
13511
|
+
|
|
13512
|
+
/* With the fly-in (.oc-reveal--fly + fly.js) the card keeps its own hover transitions next to the fly-in ones. */
|
|
13513
|
+
.oc-fly-ready .oc-tint-card.oc-reveal--fly {
|
|
13514
|
+
transition:
|
|
13515
|
+
opacity 0.6s var(--oc-ease-out, ease) var(--oc-fly-delay, 0s),
|
|
13516
|
+
transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--oc-fly-delay, 0s),
|
|
13517
|
+
translate 0.3s var(--oc-ease-out, ease-out),
|
|
13518
|
+
box-shadow 0.3s var(--oc-ease-out, ease-out),
|
|
13519
|
+
background-color 0.3s var(--oc-ease-out, ease-out);
|
|
13520
|
+
}
|
|
13521
|
+
|
|
13522
|
+
@media (prefers-reduced-motion: reduce) {
|
|
13523
|
+
.oc-tint-card,
|
|
13524
|
+
.oc-tint-card__art,
|
|
13525
|
+
.oc-tint-card::after { transition: none; animation: none; }
|
|
13526
|
+
.oc-tint-card:is(a, button):is(:hover, :focus-visible),
|
|
13527
|
+
.oc-tint-card:has(.oc-tint-card__link:is(:hover, :focus-visible)) { translate: none; }
|
|
13528
|
+
.oc-tint-card .oc-tint-card__go > * { animation: none !important; }
|
|
13529
|
+
}
|
|
13530
|
+
|
|
13046
13531
|
/* parts/utility-hover.css */
|
|
13047
13532
|
/* File: packages/ui/src/parts/utility-hover.css */
|
|
13048
13533
|
/* Map: smooth timing -> lift / grow / glow / none -> steady hover area -> reduced motion */
|