@birdycom/omniaui 0.14.3 → 0.15.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.
@@ -1,4 +1,4 @@
1
- /* File: oc-theme.css — generated from tokens/semantic.json by @birdycom/omniacss 0.14.3. Do not edit. */
1
+ /* File: oc-theme.css — generated from tokens/semantic.json by @birdycom/omniacss 0.15.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 {
@@ -2514,6 +2514,9 @@ details.oc-accordion-item[open]::details-content {
2514
2514
  }
2515
2515
  .oc-theme-switch label {
2516
2516
  position: relative;
2517
+ display: inline-flex;
2518
+ align-items: center;
2519
+ gap: 0.35em;
2517
2520
  padding: 4px 10px;
2518
2521
  border-radius: 999px;
2519
2522
  font-size: 0.8rem;
@@ -2535,6 +2538,23 @@ details.oc-accordion-item[open]::details-content {
2535
2538
  .oc-theme-switch label:has(input:focus-visible) {
2536
2539
  outline: 2px solid var(--oc-ring);
2537
2540
  }
2541
+ /* A webicon (or svg) in a label, next to the text or alone (--icons). */
2542
+ .oc-theme-switch label > :is(iconify-icon, svg) {
2543
+ flex: none;
2544
+ inline-size: 1.15em;
2545
+ block-size: 1.15em;
2546
+ font-size: 1.15em;
2547
+ }
2548
+ /* Icons only (monitor / sun / moon): the text stays for screen readers in .oc-theme-switch__text, add a title for a tooltip. */
2549
+ .oc-theme-switch--icons label { padding: 5px 8px; }
2550
+ .oc-theme-switch--icons .oc-theme-switch__text {
2551
+ position: absolute;
2552
+ inline-size: 1px;
2553
+ block-size: 1px;
2554
+ overflow: hidden;
2555
+ clip-path: inset(50%);
2556
+ white-space: nowrap;
2557
+ }
2538
2558
 
2539
2559
  /* Counter — animated number without JavaScript: <span class="oc-counter" style="--oc-counter-to: 1250"></span> */
2540
2560
  @property --oc-counter-value {
@@ -3840,7 +3860,7 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
3840
3860
  font-weight: 600;
3841
3861
  text-decoration: none;
3842
3862
  }
3843
- .oc-link-arrow::after { content: "→"; transition: translate 0.2s var(--oc-ease-out); }
3863
+ .oc-link-arrow::after { content: "\002192"; transition: translate 0.2s var(--oc-ease-out); }
3844
3864
  .oc-link-arrow:hover::after { translate: 4px 0; }
3845
3865
 
3846
3866
  /* Backdrop: slowly drifting color blobs + fine grid behind the page.
@@ -4045,7 +4065,7 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
4045
4065
  .oc-product-card__tagline { margin: 0; color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h)); font-weight: 600; font-size: 0.95rem; }
4046
4066
  .oc-product-card__summary { margin: 0; color: var(--oc-muted-foreground); font-size: 0.95rem; flex-grow: 1; }
4047
4067
  .oc-product-card__more { display: inline-flex; align-items: center; gap: 0.4rem; margin-block-start: 0.75rem; font-weight: 600; font-size: 0.92rem; }
4048
- .oc-product-card__more::after { content: "→"; transition: translate 0.25s var(--oc-ease-out); }
4068
+ .oc-product-card__more::after { content: "\002192"; transition: translate 0.25s var(--oc-ease-out); }
4049
4069
  .oc-product-card:hover .oc-product-card__more::after { translate: 5px 0; }
4050
4070
 
4051
4071
  /* Pill badge (neutral) and accent pill + pulsing status dot */
@@ -4179,7 +4199,7 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
4179
4199
  .oc-tag-list--lg > li { padding: 0.45rem 1rem; font-family: var(--oc-font-display, inherit); font-size: 1rem; font-weight: 700; letter-spacing: 0.02em; }
4180
4200
  .oc-check-list { display: grid; gap: 0.5rem; margin: 1.1rem 0 0; padding: 0; list-style: none; font-size: 0.93rem; }
4181
4201
  .oc-check-list > li { display: flex; gap: 0.5rem; align-items: baseline; }
4182
- .oc-check-list > li::before { content: "✓"; color: var(--oc-brand-1); font-weight: 700; }
4202
+ .oc-check-list > li::before { content: "\002713"; color: var(--oc-brand-1); font-weight: 700; }
4183
4203
 
4184
4204
  /* Site header: sticky; turns into glass after scrolling (scroll-driven animation, no JS).
4185
4205
  Mobile menu: <button popovertarget="site-nav"> + <nav id="site-nav" popover> — no JS either. */
@@ -7041,7 +7061,7 @@ button.oc-stat-card:focus-visible { outline: 2px solid var(--oc-ring); outline-o
7041
7061
  text-overflow: ellipsis;
7042
7062
  white-space: nowrap;
7043
7063
  }
7044
- .oc-titlebar__subtitle::before { content: "·"; margin-inline-end: 8px; }
7064
+ .oc-titlebar__subtitle::before { content: "\0000b7"; margin-inline-end: 8px; }
7045
7065
  /* Window buttons sit in the top right corner (as on a desktop window), not centred on the title line. */
7046
7066
  .oc-titlebar__actions { display: flex; flex: none; align-self: flex-start; align-items: flex-start; margin-inline-start: auto; }
7047
7067
 
@@ -10524,17 +10544,30 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
10524
10544
  --oc-liquid-blur: 5px;
10525
10545
  position: relative;
10526
10546
  isolation: isolate;
10527
- background: var(--oc-liquid-tint);
10547
+ background: none;
10528
10548
  border: 1px solid var(--oc-liquid-edge);
10529
- /* Light enters at the top left and leaves at the bottom right; a soft glow runs along the inner edge,
10530
- so the sheet reads as a thick, clear lens rather than frosted plastic. */
10549
+ box-shadow: 0 10px 30px -10px oklch(0% 0 0deg / 0.35);
10550
+ }
10551
+ /* The lens itself sits on ::after behind the content (not on the element: backdrop-filter there would trap a
10552
+ position: fixed tooltip inside). Light enters at the top left and leaves at the bottom right; a soft glow runs
10553
+ along the inner edge, so the sheet reads as a thick, clear lens rather than frosted plastic. */
10554
+ .oc-glass.oc-glass--liquid::after,
10555
+ .oc-glass--liquid::after,
10556
+ .oc-glass-bar::after,
10557
+ .oc-site-header--glass .oc-site-header__inner::after {
10558
+ content: "";
10559
+ position: absolute;
10560
+ inset: 0;
10561
+ z-index: -1;
10562
+ border-radius: inherit;
10563
+ background: var(--oc-liquid-tint);
10531
10564
  box-shadow:
10532
- 0 10px 30px -10px oklch(0% 0 0deg / 0.35),
10533
10565
  inset 2px 2px 1px -2px oklch(100% 0 0deg / 0.95),
10534
10566
  inset -2px -2px 1px -2px oklch(100% 0 0deg / 0.7),
10535
10567
  inset 0 0 10px 1px oklch(100% 0 0deg / 0.22),
10536
10568
  inset 0 -8px 16px -12px oklch(100% 0 0deg / 0.35);
10537
10569
  backdrop-filter: blur(var(--oc-liquid-blur)) saturate(1.9) brightness(1.1) contrast(1.05);
10570
+ pointer-events: none;
10538
10571
  }
10539
10572
  /* Specular rim: bright on the top-left and bottom-right edge, only on the border ring. */
10540
10573
  .oc-glass--liquid::before,
@@ -10600,7 +10633,8 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
10600
10633
 
10601
10634
  /* Less transparency asked for, or no backdrop-filter: a solid bar that still reads as one. */
10602
10635
  @media (prefers-reduced-transparency: reduce) {
10603
- .oc-glass--liquid, .oc-glass-bar { --oc-liquid-tint: var(--oc-card); backdrop-filter: none; }
10636
+ .oc-glass--liquid, .oc-glass-bar { --oc-liquid-tint: var(--oc-card); }
10637
+ .oc-glass--liquid::after, .oc-glass-bar::after { backdrop-filter: none; }
10604
10638
  }
10605
10639
  @supports not (backdrop-filter: blur(1px)) {
10606
10640
  .oc-glass--liquid, .oc-glass-bar { --oc-liquid-tint: light-dark(oklch(100% 0 0deg / 0.85), oklch(25% 0.02 260deg / 0.9)); }
@@ -10683,19 +10717,32 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
10683
10717
  --oc-glass-panel-radius: 14px;
10684
10718
  }
10685
10719
 
10686
- /* Sheet: the outer glass surface (a widget, a floating panel, a dialog over a photo). */
10720
+ /* Sheet: the outer glass surface (a widget, a floating panel, a dialog over a photo).
10721
+ The blur and tint sit on a ::after layer behind the content, not on the sheet itself: an element with
10722
+ backdrop-filter becomes the containing block of position: fixed children, so a tooltip inside would be trapped
10723
+ on the sheet instead of next to its anchor. */
10687
10724
  .oc-glass {
10688
10725
  position: relative;
10726
+ isolation: isolate;
10689
10727
  color: var(--oc-foreground);
10690
- background: var(--oc-glass-sheet);
10691
10728
  border: 1px solid var(--oc-glass-edge);
10692
10729
  border-radius: var(--oc-glass-radius);
10693
- box-shadow: var(--oc-glass-shadow), inset 0 1px 0 var(--oc-glass-edge-hi);
10694
- backdrop-filter: blur(var(--oc-glass-blur)) saturate(1.5);
10730
+ box-shadow: var(--oc-glass-shadow);
10695
10731
  /* OmniaUI cards inside become glass panels too. */
10696
10732
  --oc-card-background: var(--oc-glass-panel);
10697
10733
  --oc-card-border: var(--oc-glass-edge);
10698
10734
  }
10735
+ .oc-glass::after {
10736
+ content: "";
10737
+ position: absolute;
10738
+ inset: 0;
10739
+ z-index: -1;
10740
+ border-radius: inherit;
10741
+ background: var(--oc-glass-sheet);
10742
+ box-shadow: inset 0 1px 0 var(--oc-glass-edge-hi);
10743
+ backdrop-filter: blur(var(--oc-glass-blur)) saturate(1.5);
10744
+ pointer-events: none;
10745
+ }
10699
10746
 
10700
10747
  /* Panel: a lighter layer inside a sheet (a group of settings, a meter, a list). */
10701
10748
  .oc-glass-panel {
@@ -10711,15 +10758,12 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
10711
10758
  }
10712
10759
 
10713
10760
  /* Strong: more opaque, for text-heavy panels or a hovered row. */
10714
- .oc-glass--strong,
10761
+ .oc-glass--strong::after,
10715
10762
  .oc-glass-panel--strong { background: var(--oc-glass-panel-strong); }
10716
10763
 
10717
10764
  /* Flat: a frameless desktop window where the OS draws the blur (acrylic, vibrancy): no own blur, no drop shadow. */
10718
- .oc-glass--flat {
10719
- border-radius: 8px;
10720
- box-shadow: inset 0 1px 0 var(--oc-glass-edge-hi);
10721
- backdrop-filter: none;
10722
- }
10765
+ .oc-glass--flat { border-radius: 8px; box-shadow: none; }
10766
+ .oc-glass--flat::after { backdrop-filter: none; }
10723
10767
 
10724
10768
  /* Hairline divider in glass (sections, header). */
10725
10769
  .oc-glass-divider { block-size: 1px; margin: 0; border: 0; background: var(--oc-glass-hairline); }
@@ -10731,7 +10775,7 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
10731
10775
  --oc-glass-panel: var(--oc-card);
10732
10776
  --oc-glass-panel-strong: var(--oc-muted);
10733
10777
  }
10734
- .oc-glass { backdrop-filter: none; }
10778
+ .oc-glass::after { backdrop-filter: none; }
10735
10779
  }
10736
10780
 
10737
10781
  /* parts/media-image-zoom.css */
@@ -12119,7 +12163,7 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
12119
12163
  font-size: 0.9rem;
12120
12164
  font-weight: 600;
12121
12165
  }
12122
- .oc-link-card__more::after { content: "→"; transition: translate 0.25s var(--oc-ease-out, ease); }
12166
+ .oc-link-card__more::after { content: "\002192"; transition: translate 0.25s var(--oc-ease-out, ease); }
12123
12167
  .oc-link-card:hover .oc-link-card__more::after { translate: 4px 0; }
12124
12168
 
12125
12169
  /* Icon list: rows with an icon in a frame. --points: an icon tile next to a title and a text, without frames. */
@@ -12316,21 +12360,29 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
12316
12360
  70px lower, smaller and tilted, and land in their place. Without fly.js (html.oc-fly-ready is missing) or with
12317
12361
  "reduce motion" everything simply stands in its place. Options: --oc-fly-step (offset per column), --oc-fly-stagger
12318
12362
  (delay per column) and data-oc-fly-repeat (fly out again when leaving the view). The lift on hover uses translate, so it never fights the
12319
- transform of the fly-in. Also: a "New" badge in a product card name and short syntax classes for a code window. */
12320
-
12321
- .oc-fly-ready .oc-reveal--fly {
12322
- /* --oc-fly-delay: set per card by fly.js from --oc-fly-stagger (delay per column). */
12363
+ transform of the fly-in. Also: a "New" badge in a product card name and short syntax classes for a code window.
12364
+ Timing (on the grid or a card): --oc-fly-duration (movement, 0.9s), --oc-fly-fade (opacity, 0.6s), --oc-fly-ease,
12365
+ --oc-fly-rise (start lower, 70px) and --oc-fly-blur (start blurred, 0px). Later trigger: data-oc-fly-trigger (fly.js). */
12366
+
12367
+ /* The fly timing only while hidden (flying out) and while landing (.is-flying, set by fly.js until the card stands
12368
+ still). After that the card's own transition (hover lift, spotlight tilt) is back, so hover stays quick.
12369
+ html.oc-fly-ready: stronger than a card's own transition rule (e.g. the spotlight card of Pro), which comes later. */
12370
+ html.oc-fly-ready .oc-reveal--fly:not(.is-visible),
12371
+ html.oc-fly-ready .oc-reveal--fly.is-flying {
12372
+ /* --oc-fly-delay: set per card by fly.js from --oc-fly-stagger (delay per column) or data-oc-fly-random. */
12323
12373
  transition:
12324
- opacity 0.6s var(--oc-ease-out, ease) var(--oc-fly-delay, 0s),
12325
- transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--oc-fly-delay, 0s),
12374
+ opacity var(--oc-fly-fade, 0.6s) var(--oc-ease-out, ease) var(--oc-fly-delay, 0s),
12375
+ transform var(--oc-fly-duration, 0.9s) var(--oc-fly-ease, cubic-bezier(0.16, 1, 0.3, 1)) var(--oc-fly-delay, 0s),
12376
+ filter var(--oc-fly-fade, 0.6s) var(--oc-ease-out, ease) var(--oc-fly-delay, 0s),
12326
12377
  border-color 0.35s;
12327
12378
  }
12328
- .oc-fly-ready .oc-reveal--fly:not(.is-visible) {
12379
+ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
12329
12380
  opacity: 0;
12330
- transform: perspective(900px) translate3d(var(--oc-fly-x, 0), 70px, 0) scale(0.9) rotateX(14deg);
12381
+ filter: blur(var(--oc-fly-blur, 0px));
12382
+ transform: perspective(900px) translate3d(var(--oc-fly-x, 0), var(--oc-fly-rise, 70px), 0) scale(0.9) rotateX(14deg);
12331
12383
  }
12332
12384
  @media (prefers-reduced-motion: reduce) {
12333
- .oc-fly-ready .oc-reveal--fly:not(.is-visible) { opacity: 1; transform: none; }
12385
+ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) { opacity: 1; filter: none; transform: none; }
12334
12386
  }
12335
12387
 
12336
12388
  /* "New" after the name of a product card: <h3 class="oc-product-card__name">Product 1 <span class="oc-product-card__badge oc-pill">New</span></h3> */
@@ -12351,6 +12403,37 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
12351
12403
  .oc-code-window .oc-tok-f { color: var(--oc-syntax-function); }
12352
12404
  .oc-code-window .oc-tok-m { color: var(--oc-syntax-comment); }
12353
12405
 
12406
+ /* parts/site-header-progress.css */
12407
+ /* File: packages/ui/src/parts/site-header-progress.css */
12408
+ /* Map: thin line at the bottom of the site header -> fills with the scroll position of the page (no JS) -> fallback */
12409
+ /* Reading progress in the site header: put <span class="oc-site-header__progress" aria-hidden="true"></span> inside
12410
+ .oc-site-header (sticky, so it is the containing block). A thin gradient line at the bottom of the header fills from
12411
+ left to right while you scroll the page: a scroll-driven animation, no JS. Browsers without scroll-driven animations
12412
+ simply do not show it. Options: --oc-header-progress-height (3px) and --oc-header-progress-color (brand gradient). */
12413
+
12414
+ .oc-site-header__progress {
12415
+ display: none;
12416
+ position: absolute;
12417
+ inset-inline: 0;
12418
+ inset-block-end: -1px;
12419
+ block-size: var(--oc-header-progress-height, 3px);
12420
+ background: var(--oc-header-progress-color, linear-gradient(90deg, var(--oc-brand-1), var(--oc-brand-2), var(--oc-brand-3)));
12421
+ border-radius: 0 999px 999px 0;
12422
+ transform: scaleX(0);
12423
+ transform-origin: 0 50%;
12424
+ pointer-events: none;
12425
+ }
12426
+ @supports (animation-timeline: scroll()) {
12427
+ .oc-site-header__progress {
12428
+ display: block;
12429
+ animation: oc-header-progress linear both;
12430
+ animation-timeline: scroll(root);
12431
+ }
12432
+ }
12433
+ @keyframes oc-header-progress {
12434
+ to { transform: scaleX(1); }
12435
+ }
12436
+
12354
12437
  /* parts/site-header-variants.css */
12355
12438
  /* File: packages/ui/src/parts/site-header-variants.css
12356
12439
  Map: actions slot -> centred menu -> dark -> floating pill -> glass pill -> footer: centred, dark, newsletter, social
@@ -12523,11 +12606,11 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
12523
12606
 
12524
12607
  /* Back link: the arrow points left, sits before the text and moves left on hover. */
12525
12608
  .oc-link-arrow--back::after { content: none; }
12526
- .oc-link-arrow--back::before { content: "←"; transition: translate 0.2s var(--oc-ease-out); }
12609
+ .oc-link-arrow--back::before { content: "\002190"; transition: translate 0.2s var(--oc-ease-out); }
12527
12610
  .oc-link-arrow--back:is(:hover, :focus-visible)::before { translate: -4px 0; }
12528
12611
 
12529
12612
  /* External link: diagonal arrow that moves up-right. */
12530
- .oc-link-arrow--external::after { content: "↗"; }
12613
+ .oc-link-arrow--external::after { content: "\002197"; }
12531
12614
  .oc-link-arrow--external:is(:hover, :focus-visible)::after { translate: 3px -3px; }
12532
12615
 
12533
12616
  /* Colors: accent of the element, or muted text that turns to the foreground color on hover. */
@@ -12734,7 +12817,7 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
12734
12817
  color: var(--oc-muted-foreground);
12735
12818
  }
12736
12819
  .oc-next-teaser__tagline::after {
12737
- content: "→";
12820
+ content: "\002192";
12738
12821
  color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
12739
12822
  transition: translate 0.25s var(--oc-ease-out);
12740
12823
  }
@@ -12742,7 +12825,7 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
12742
12825
  /* Previous: the arrow points left and sits before the tagline. */
12743
12826
  .oc-next-teaser--prev .oc-next-teaser__tagline::after { content: none; }
12744
12827
  .oc-next-teaser--prev .oc-next-teaser__tagline::before {
12745
- content: "←";
12828
+ content: "\002190";
12746
12829
  color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
12747
12830
  transition: translate 0.25s var(--oc-ease-out);
12748
12831
  }
@@ -12865,9 +12948,9 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
12865
12948
  font-size: 0.92rem;
12866
12949
  }
12867
12950
  .oc-price-card__feature { display: flex; align-items: baseline; gap: 0.55rem; }
12868
- .oc-price-card__feature::before { content: "✓"; flex-shrink: 0; color: var(--oc-success); font-weight: 700; }
12951
+ .oc-price-card__feature::before { content: "\002713"; flex-shrink: 0; color: var(--oc-success); font-weight: 700; }
12869
12952
  .oc-price-card__feature--excluded { color: var(--oc-muted-foreground); }
12870
- .oc-price-card__feature--excluded::before { content: "✕"; color: var(--oc-muted-foreground); font-weight: 400; }
12953
+ .oc-price-card__feature--excluded::before { content: "\002715"; color: var(--oc-muted-foreground); font-weight: 400; }
12871
12954
 
12872
12955
  .oc-price-card__cta { inline-size: 100%; }
12873
12956
 
@@ -13056,7 +13139,7 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
13056
13139
  font-size: 0.9rem;
13057
13140
  font-weight: 600;
13058
13141
  }
13059
- .oc-project-card__more::after { content: "→"; transition: translate 0.25s var(--oc-ease-out); }
13142
+ .oc-project-card__more::after { content: "\002192"; transition: translate 0.25s var(--oc-ease-out); }
13060
13143
 
13061
13144
  /* Hover / focus: lift, accent border, zoom the shot a little, move the arrow. */
13062
13145
  .oc-project-card:is(a, [tabindex]):hover {