@birdycom/omniaui 0.15.1 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/bin/lib/copy-js.mjs +3 -0
  2. package/dist/carousel.d.ts +2 -0
  3. package/dist/carousel.js +38 -2
  4. package/dist/combobox.d.ts +13 -0
  5. package/dist/combobox.js +143 -0
  6. package/dist/components-extra.css +7 -3
  7. package/dist/components.css +1211 -146
  8. package/dist/components.min.css +1 -1
  9. package/dist/docs-ui.css +1 -1
  10. package/dist/fly.js +13 -2
  11. package/dist/logo.d.ts +14 -0
  12. package/dist/logo.js +98 -0
  13. package/dist/oc-theme.css +1 -1
  14. package/dist/parts/app-0160-apps.css +141 -0
  15. package/dist/parts/app-accordion-accent.css +1 -1
  16. package/dist/parts/app-busy-overlay.css +1 -1
  17. package/dist/parts/app-confirm-dialog.css +4 -18
  18. package/dist/parts/app-cookie-consent.css +1 -1
  19. package/dist/parts/app-data-table-rich.css +1 -1
  20. package/dist/parts/app-mode-badge.css +125 -0
  21. package/dist/parts/app-name-card.css +10 -0
  22. package/dist/parts/app-severity-card.css +4 -3
  23. package/dist/parts/app-sheet-options.css +70 -0
  24. package/dist/parts/app-sidebar-dark.css +1 -1
  25. package/dist/parts/app-sidebar-meta.css +40 -0
  26. package/dist/parts/app-stat-card.css +2 -2
  27. package/dist/parts/app-upgrade-banner.css +1 -1
  28. package/dist/parts/data-chart-line.css +5 -2
  29. package/dist/parts/data-reading.css +2 -1
  30. package/dist/parts/data-stock.css +1 -1
  31. package/dist/parts/forms-affix-input.css +7 -0
  32. package/dist/parts/forms-barcode-input.css +2 -1
  33. package/dist/parts/forms-combobox-icons.css +78 -0
  34. package/dist/parts/forms-language-menu.css +89 -0
  35. package/dist/parts/forms-language-select.css +3 -2
  36. package/dist/parts/forms-phone-input.css +3 -0
  37. package/dist/parts/media-art.css +7 -5
  38. package/dist/parts/media-doc-viewer.css +1 -1
  39. package/dist/parts/media-flip-card.css +1 -1
  40. package/dist/parts/media-glass-liquid.css +14 -0
  41. package/dist/parts/media-glass.css +8 -0
  42. package/dist/parts/media-live-frame.css +28 -0
  43. package/dist/parts/media-logo.css +48 -0
  44. package/dist/parts/media-terminal-log.css +4 -3
  45. package/dist/parts/media-thumb.css +1 -1
  46. package/dist/parts/site-backgrounds.css +1 -1
  47. package/dist/parts/site-brand-mark.css +1 -1
  48. package/dist/parts/site-cards.css +4 -1
  49. package/dist/parts/site-fact-list.css +1 -1
  50. package/dist/parts/site-fly.css +1 -0
  51. package/dist/parts/site-header-variants.css +6 -1
  52. package/dist/parts/site-layout.css +1 -1
  53. package/dist/parts/site-link-arrow.css +1 -1
  54. package/dist/parts/site-link-row.css +1 -1
  55. package/dist/parts/site-next-teaser.css +2 -2
  56. package/dist/parts/site-paper.css +189 -0
  57. package/dist/parts/site-price-card.css +4 -3
  58. package/dist/parts/site-product-mark.css +1 -1
  59. package/dist/parts/site-project-card.css +13 -8
  60. package/dist/parts/site-stack-list.css +1 -1
  61. package/dist/parts/site-timeline.css +1 -1
  62. package/dist/parts/utility-hover.css +4 -3
  63. package/dist/showcase.css +74 -28
  64. package/dist/theme.js +130 -0
  65. package/manifest.json +32 -0
  66. package/package.json +5 -2
  67. package/snippets/card.html +4 -1
  68. package/snippets/code-plate.html +10 -0
  69. package/snippets/collapsible.html +2 -2
  70. package/snippets/combobox.html +19 -0
  71. package/snippets/context-menu.html +5 -2
  72. package/snippets/definition-list.html +1 -1
  73. package/snippets/dropdown-menu.html +1 -0
  74. package/snippets/language-select.html +15 -0
  75. package/snippets/live-frame.html +3 -1
  76. package/snippets/logo.html +10 -0
  77. package/snippets/mode-badge.html +12 -0
  78. package/snippets/next-teaser.html +1 -1
  79. package/snippets/page-sections.html +1 -1
  80. package/snippets/paper.html +32 -0
  81. package/snippets/project-card.html +4 -4
  82. package/snippets/sheet.html +4 -0
  83. package/snippets/shot-grid.html +2 -2
  84. package/snippets/sidebar.html +2 -0
  85. package/snippets/timeline.html +1 -1
@@ -0,0 +1,40 @@
1
+ /* File: packages/ui/src/parts/app-sidebar-meta.css
2
+ Map: meta line (brand, version, copyright) -> collapsed sidebar (only the version, the full line as a tooltip)
3
+ Sidebar meta: a ready-made small line at the foot of an app sidebar: "App 1 2.4.0 · (c) 2026 Company 1". The brand
4
+ never shortens, the copyright part ends in an ellipsis when the sidebar is narrow. In a collapsed sidebar
5
+ (.oc-sidebar--collapsed) only the version stays, and the whole line shows as a tooltip (data-tooltip) on hover and on
6
+ keyboard focus (tabindex="0" on the line). Markup:
7
+ <div class="oc-sidebar-meta oc-tooltip oc-tooltip--right" data-tooltip="App 1 2.4.0 · © 2026 Company 1" tabindex="0">
8
+ <span class="oc-sidebar-meta__brand">App 1</span> <span class="oc-sidebar-meta__version">2.4.0</span>
9
+ <span class="oc-sidebar-meta__copy">© 2026 Company 1</span></div> */
10
+
11
+ .oc-sidebar-meta {
12
+ display: flex;
13
+ align-items: baseline;
14
+ gap: 0.35rem;
15
+ min-inline-size: 0;
16
+ padding-inline: 0.25rem;
17
+ font-size: 0.75rem;
18
+ line-height: 1.4;
19
+ color: var(--oc-muted-foreground);
20
+ white-space: nowrap;
21
+ border-radius: calc(var(--oc-radius) - 2px);
22
+ }
23
+ .oc-sidebar-meta__brand { flex: none; font-weight: 600; color: var(--oc-foreground); }
24
+ .oc-sidebar-meta__version { flex: none; font-variant-numeric: tabular-nums; }
25
+ .oc-sidebar-meta__copy { flex: 0 1 auto; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; }
26
+ .oc-sidebar-meta__copy::before { content: "\00b7"; margin-inline-end: 0.35rem; }
27
+ .oc-sidebar-meta:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: 2px; }
28
+ /* Open sidebar: the whole line is visible, so no tooltip. */
29
+ .oc-sidebar:not(.oc-sidebar--collapsed) .oc-sidebar-meta.oc-tooltip::after { content: none; }
30
+
31
+ /* Collapsed: only the version, centred. */
32
+ .oc-sidebar--collapsed .oc-sidebar-meta { justify-content: center; padding-inline: 0; }
33
+ .oc-sidebar--collapsed .oc-sidebar-meta :is(.oc-sidebar-meta__brand, .oc-sidebar-meta__copy) {
34
+ position: absolute;
35
+ inline-size: 1px;
36
+ block-size: 1px;
37
+ overflow: hidden;
38
+ clip-path: inset(50%);
39
+ white-space: nowrap;
40
+ }
@@ -43,8 +43,8 @@
43
43
 
44
44
  /* Optional trend chip next to the value ("+12%"). */
45
45
  .oc-stat-card-trend { display: inline-block; margin-inline-start: 0.375rem; padding: 0.125rem 0.375rem; font-size: 0.6875rem; font-weight: 600; vertical-align: middle; border-radius: 999px; color: var(--oc-muted-foreground); background: var(--oc-muted); }
46
- .oc-stat-card-trend--up { color: var(--oc-success); background: oklch(from var(--oc-success) l c h / 0.12); }
47
- .oc-stat-card-trend--down { color: var(--oc-destructive); background: oklch(from var(--oc-destructive) l c h / 0.12); }
46
+ .oc-stat-card-trend--up { color: color-mix(in oklch, var(--oc-success) 75%, var(--oc-foreground)); background: oklch(from var(--oc-success) l c h / 0.12); }
47
+ .oc-stat-card-trend--down { color: color-mix(in oklch, var(--oc-destructive) 70%, var(--oc-foreground)); background: oklch(from var(--oc-destructive) l c h / 0.12); }
48
48
 
49
49
  /* Tones. --accent = "needs attention" (e.g. open orders). */
50
50
  .oc-stat-card--accent { --oc-stat-card-color: var(--oc-destructive); }
@@ -28,7 +28,7 @@
28
28
  padding: 0.125rem 0.5rem;
29
29
  font-size: 0.6875rem;
30
30
  font-weight: 600;
31
- color: var(--oc-upgrade-color);
31
+ color: color-mix(in oklch, var(--oc-upgrade-color) 65%, var(--oc-foreground));
32
32
  background: oklch(from var(--oc-upgrade-color) l c h / 0.14);
33
33
  border-radius: 999px;
34
34
  }
@@ -42,7 +42,8 @@
42
42
  position: relative;
43
43
  block-size: var(--oc-chart-line-height);
44
44
  border-block-end: 1px solid var(--oc-chart-axis, var(--oc-border));
45
- background: repeating-linear-gradient(to top, transparent 0 calc(100% / var(--oc-chart-line-rows) - 1px), var(--oc-chart-grid, var(--oc-border)) calc(100% / var(--oc-chart-line-rows) - 1px) calc(100% / var(--oc-chart-line-rows)));
45
+ /* one 1px line at the top of each row tile (a repeating gradient with calc(% - px) stops renders as solid bands in Firefox) */
46
+ background: linear-gradient(to bottom, var(--oc-chart-grid, var(--oc-border)) 1px, transparent 1px) 0 0 / 100% calc(100% / var(--oc-chart-line-rows)) repeat-y;
46
47
  }
47
48
  .oc-chart-line__svg { position: absolute; inset: 0; display: block; inline-size: 100%; block-size: 100%; overflow: visible; }
48
49
 
@@ -65,7 +66,9 @@
65
66
  .oc-chart-line__path--dashed { stroke-dasharray: 5 4; }
66
67
 
67
68
  /* ---- Hover columns: one per x value; the column is the hit area, the dots and tip live inside ---- */
68
- .oc-chart-line__cols { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
69
+ /* The first and last hit columns reach half a column past the plot; clip them sideways (keeping room for the edge
70
+ dots) so a chart at full width never makes its parent scroll. */
71
+ .oc-chart-line__cols { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; overflow-x: clip; overflow-clip-margin: 0.5rem; }
69
72
  .oc-chart-line__col {
70
73
  position: absolute;
71
74
  inset-block: 0;
@@ -12,7 +12,8 @@
12
12
  font-weight: 600;
13
13
  font-variant-numeric: tabular-nums;
14
14
  line-height: 1.4;
15
- color: var(--oc-reading-color, var(--oc-muted-foreground));
15
+ /* Light mode: the text takes a darker shade of the level color, so it stays readable (4.5:1) on its pale pill. */
16
+ color: light-dark(oklch(from var(--oc-reading-color, var(--oc-muted-foreground)) min(l, 0.44) c h), var(--oc-reading-color, var(--oc-muted-foreground)));
16
17
  white-space: nowrap;
17
18
  background: oklch(from var(--oc-reading-color, var(--oc-muted-foreground)) l c h / 0.1);
18
19
  border: 1px solid oklch(from var(--oc-reading-color, var(--oc-muted-foreground)) l c h / 0.25);
@@ -33,7 +33,7 @@
33
33
  .oc-stock--badge {
34
34
  padding: 0.125rem 0.5rem 0.125rem 0.45rem;
35
35
  font-size: 0.75rem;
36
- color: color-mix(in oklch, var(--oc-stock-color) 75%, var(--oc-foreground));
36
+ color: color-mix(in oklch, var(--oc-stock-color) 60%, var(--oc-foreground));
37
37
  background: oklch(from var(--oc-stock-color) l c h / 0.12);
38
38
  border: 1px solid oklch(from var(--oc-stock-color) l c h / 0.3);
39
39
  border-radius: 999px;
@@ -6,6 +6,9 @@
6
6
  /* The wrapper owns the border; children lose theirs. */
7
7
  .oc-input-group--affix {
8
8
  align-items: center;
9
+ /* Never wider than its column (a flex or grid cell with a narrow track). */
10
+ min-inline-size: 0;
11
+ max-inline-size: 100%;
9
12
  border: 1px solid var(--oc-input);
10
13
  border-radius: var(--oc-radius);
11
14
  transition: border-color var(--oc-transition-fast), box-shadow var(--oc-transition-fast);
@@ -22,6 +25,9 @@
22
25
  border: 0;
23
26
  border-radius: var(--oc-radius);
24
27
  box-shadow: none;
28
+ /* The input takes the room that is left next to the symbol, also when width: 100% is set on .oc-input. */
29
+ flex: 1 1 0;
30
+ inline-size: auto;
25
31
  min-inline-size: 0;
26
32
  }
27
33
 
@@ -32,6 +38,7 @@
32
38
  display: inline-flex;
33
39
  align-items: center;
34
40
  justify-content: center;
41
+ flex: none;
35
42
  min-inline-size: 2.25rem;
36
43
  padding-inline: 0.5rem;
37
44
  border: 0;
@@ -41,8 +41,9 @@
41
41
  .oc-barcode-preview-bars {
42
42
  inline-size: 100%;
43
43
  block-size: 3.5rem;
44
+ /* "in srgb": Firefox draws a repeating gradient with oklch() stops as empty or banded without it */
44
45
  background: repeating-linear-gradient(
45
- 90deg,
46
+ 90deg in srgb,
46
47
  var(--oc-foreground) 0 2px,
47
48
  transparent 2px 4px,
48
49
  var(--oc-foreground) 4px 5px,
@@ -0,0 +1,78 @@
1
+ /* File: packages/ui/src/parts/forms-combobox-icons.css
2
+ Map: combobox option icon -> icon of the chosen value in the field -> same start for options without icon
3
+ -> dropdown item icon -> same start in a dropdown menu -> forced colors
4
+ Icons in front of the options of a combobox and of the items of a dropdown menu. Any inline <svg>, <iconify-icon> or
5
+ <img> (a flag, a logo) in a span. Options and items without an icon line up with the labels of the ones that have one,
6
+ without a modifier (:has). Theme tokens only; an icon in currentColor follows the hover and active colors. */
7
+
8
+ /* Combobox: the icon column of an option (1.125rem), then the label, then the check of the chosen option at the end. */
9
+ .oc-combobox {
10
+ --oc-combobox-icon: 1.125rem;
11
+ }
12
+ .oc-combobox-option-icon,
13
+ .oc-combobox-icon {
14
+ display: inline-flex;
15
+ flex: none;
16
+ align-items: center;
17
+ justify-content: center;
18
+ inline-size: var(--oc-combobox-icon);
19
+ block-size: var(--oc-combobox-icon);
20
+ color: var(--oc-muted-foreground);
21
+ line-height: 1;
22
+ }
23
+ .oc-combobox-option-icon > :is(svg, iconify-icon, img),
24
+ .oc-combobox-icon > :is(svg, iconify-icon, img) {
25
+ display: block;
26
+ inline-size: 100%;
27
+ block-size: 100%;
28
+ font-size: var(--oc-combobox-icon);
29
+ object-fit: contain;
30
+ }
31
+ .oc-combobox-option:has(> .oc-combobox-option-icon) { justify-content: flex-start; }
32
+ .oc-combobox-option:has(> .oc-combobox-option-icon)[aria-selected="true"]::after { margin-inline-start: auto; }
33
+ /* Hover, keyboard and the chosen option: a currentColor icon takes the text color (multicolor icons keep theirs). */
34
+ .oc-combobox-option:is(:hover, :focus-visible, [data-active], [aria-selected="true"]) > .oc-combobox-option-icon { color: inherit; }
35
+ /* Options without an icon in a list that has icons: their label starts where the other labels start. */
36
+ .oc-combobox-list:has(.oc-combobox-option-icon) > .oc-combobox-option:not(:has(> .oc-combobox-option-icon)),
37
+ .oc-combobox-list:has(.oc-combobox-option-icon) > .oc-combobox-group {
38
+ padding-inline-start: calc(0.625rem + var(--oc-combobox-icon) + 0.5rem);
39
+ }
40
+
41
+ /* The icon of the chosen value inside the field, at the same start as the option icons in the list (list border 1px +
42
+ padding 4px + option padding 0.625rem), and the text of the field at the start of the option labels. */
43
+ .oc-combobox-icon {
44
+ position: absolute;
45
+ inset-block: 0;
46
+ inset-inline-start: calc(5px + 0.625rem);
47
+ block-size: auto;
48
+ pointer-events: none;
49
+ }
50
+ .oc-combobox:has(> .oc-combobox-icon) > .oc-combobox-input {
51
+ padding-inline-start: calc(4px + 0.625rem + var(--oc-combobox-icon) + 0.5rem);
52
+ }
53
+
54
+ /* Dropdown menu items with an icon (1rem, muted) in front of the label. */
55
+ .oc-dropdown-icon {
56
+ display: inline-flex;
57
+ flex: none;
58
+ align-items: center;
59
+ justify-content: center;
60
+ inline-size: 1rem;
61
+ block-size: 1rem;
62
+ color: var(--oc-muted-foreground);
63
+ line-height: 1;
64
+ }
65
+ .oc-dropdown-icon > :is(svg, iconify-icon, img) { display: block; inline-size: 100%; block-size: 100%; font-size: 1rem; object-fit: contain; }
66
+ .oc-dropdown-item:is(:hover, :focus-visible) > .oc-dropdown-icon,
67
+ .oc-dropdown-item--destructive > .oc-dropdown-icon { color: inherit; }
68
+ /* Plain items without an icon in a menu that has icons: the label starts where the other labels start. */
69
+ .oc-dropdown-menu:has(> .oc-dropdown-item > .oc-dropdown-icon)
70
+ > .oc-dropdown-item:not(:has(> .oc-dropdown-icon), :has(> .oc-dropdown-check), [role="menuitemcheckbox"], [role="menuitemradio"]) {
71
+ padding-inline-start: calc(10px + 1rem + 8px);
72
+ }
73
+
74
+ @media (forced-colors: active) {
75
+ .oc-combobox-option-icon,
76
+ .oc-combobox-icon,
77
+ .oc-dropdown-icon { color: CanvasText; }
78
+ }
@@ -0,0 +1,89 @@
1
+ /* File: packages/ui/src/parts/forms-language-menu.css
2
+ Map: flag -> code in the trigger -> icon-only trigger (--icon) -> the language menu (flag, native name, code, check)
3
+ -> forced colors
4
+ Language select as a menu: button.oc-language-select (popovertarget) opens a .oc-dropdown-menu.oc-language-menu with one
5
+ link per language. The trigger shows a flag and/or the code or name; --icon makes it a round icon button for a header
6
+ (globe or the current flag, the name in a tooltip). The list shows the flag, the name of each language in that language
7
+ (lang="…"), its code, and a check at the current one (aria-current="true", or aria-checked="true" on a menuitemradio).
8
+ Works with the popover API alone, no script. Flags: the bundled webicon set (flag:nl-4x3 …). */
9
+
10
+ /* Flag: a 4:3 picture with a thin edge, so white parts of a flag stay visible on a white menu. */
11
+ .oc-language-flag {
12
+ display: inline-flex;
13
+ flex: none;
14
+ inline-size: 1.25rem;
15
+ block-size: 0.9375rem;
16
+ overflow: hidden;
17
+ border-radius: 2px;
18
+ box-shadow: 0 0 0 1px color-mix(in oklch, var(--oc-foreground) 14%, transparent);
19
+ line-height: 0;
20
+ }
21
+ .oc-language-flag > :is(svg, iconify-icon, img) { display: block; inline-size: 100%; block-size: 100%; font-size: 1.25rem; object-fit: cover; }
22
+
23
+ /* Code in the trigger ("NL"): bold, the same width for every language. */
24
+ .oc-language-select-code {
25
+ min-inline-size: 2ch;
26
+ font-weight: 600;
27
+ letter-spacing: 0.02em;
28
+ text-align: center;
29
+ text-transform: uppercase;
30
+ font-variant-numeric: tabular-nums;
31
+ }
32
+ button.oc-language-select { gap: 0.4rem; }
33
+ button.oc-language-select:focus-visible { border-color: var(--oc-ring); box-shadow: 0 0 0 2px color-mix(in srgb, var(--oc-ring) 25%, transparent); }
34
+ button.oc-language-select.oc-language-select--ghost:hover { background: var(--oc-accent); color: var(--oc-accent-foreground); }
35
+ /* While the menu is open, the chevron points up. */
36
+ button.oc-language-select:not(.oc-language-select--icon):has(+ .oc-language-menu:popover-open)::after { transform: translateY(-20%) rotate(225deg); }
37
+
38
+ /* Icon only: a round 2.25rem button with the globe (or the current flag); its name goes in aria-label and a tooltip. */
39
+ button.oc-language-select.oc-language-select--icon {
40
+ justify-content: center;
41
+ inline-size: 2.25rem;
42
+ block-size: 2.25rem;
43
+ padding: 0;
44
+ cursor: pointer;
45
+ }
46
+ .oc-language-select--icon .oc-language-select-icon { inline-size: 1.25rem; color: currentColor; }
47
+ .oc-language-select--icon .oc-language-select-icon :is(svg, iconify-icon) { display: block; inline-size: 1.25rem; block-size: 1.25rem; font-size: 1.25rem; }
48
+ /* The tooltip of the icon button steps aside while its menu is open. */
49
+ button.oc-language-select.oc-tooltip:has(+ .oc-language-menu:popover-open)::after { content: none; }
50
+
51
+ /* The menu: as wide as the longest name (at least 12rem). One row per language: flag, name, code, check. */
52
+ .oc-dropdown-menu.oc-language-menu { min-inline-size: 12rem; }
53
+ /* A language switch usually sits at the end of a header: the menu lines up with the end of its button (and flips to
54
+ the other side when there is no room). */
55
+ .oc-dropdown-menu.oc-language-menu[popover] { position-area: block-end span-inline-start; }
56
+ .oc-language-menu > .oc-dropdown-item { gap: 0.625rem; padding-inline-start: 10px; }
57
+ .oc-language-menu > .oc-dropdown-item[role="menuitemradio"]::before { content: none; }
58
+ .oc-language-menu .oc-language-menu-code {
59
+ margin-inline-start: auto;
60
+ padding-inline-start: 1rem;
61
+ font-size: 0.75rem;
62
+ letter-spacing: 0.04em;
63
+ text-transform: uppercase;
64
+ color: var(--oc-muted-foreground);
65
+ }
66
+ .oc-language-menu > .oc-dropdown-item:is(:hover, :focus-visible) .oc-language-menu-code { color: inherit; }
67
+ /* The check column at the end: always there, so the codes line up; drawn at the current language. */
68
+ .oc-language-menu > .oc-dropdown-item::after {
69
+ content: "";
70
+ flex: none;
71
+ inline-size: 0.35rem;
72
+ block-size: 0.65rem;
73
+ margin-inline: 0.15rem 0.2rem;
74
+ border-inline-end: 2px solid currentColor;
75
+ border-block-end: 2px solid currentColor;
76
+ rotate: 45deg;
77
+ translate: 0 -12%;
78
+ color: var(--oc-primary);
79
+ opacity: 0;
80
+ }
81
+ .oc-language-menu > .oc-dropdown-item:not(:has(.oc-language-menu-code))::after { margin-inline-start: auto; }
82
+ .oc-language-menu > .oc-dropdown-item:is([aria-current="true"], [aria-current="page"], [aria-checked="true"]) { font-weight: 600; }
83
+ .oc-language-menu > .oc-dropdown-item:is([aria-current="true"], [aria-current="page"], [aria-checked="true"])::after { opacity: 1; }
84
+ .oc-language-menu > .oc-dropdown-item:is(:hover, :focus-visible)::after { color: inherit; }
85
+
86
+ @media (forced-colors: active) {
87
+ .oc-language-flag { box-shadow: none; outline: 1px solid CanvasText; }
88
+ .oc-language-menu > .oc-dropdown-item::after { color: CanvasText; }
89
+ }
@@ -53,8 +53,9 @@
53
53
  color: var(--oc-foreground);
54
54
  }
55
55
 
56
- /* Chevron drawn with two borders (no image, follows currentColor). */
57
- .oc-language-select::after {
56
+ /* Chevron drawn with two borders (no image, follows currentColor). Not on the icon-only menu button (--icon), whose
57
+ ::after is its tooltip. */
58
+ .oc-language-select:not(.oc-language-select--icon)::after {
58
59
  content: "";
59
60
  position: absolute;
60
61
  inset-inline-end: 0.7rem;
@@ -46,6 +46,9 @@
46
46
  .oc-phone-input-number {
47
47
  flex: 1;
48
48
  min-inline-size: 0;
49
+ /* The same natural width in every browser (a tel input is wider in Firefox), used when the frame sizes to its content */
50
+ inline-size: 10rem;
51
+ box-sizing: border-box;
49
52
  padding: 0.5rem 0.75rem;
50
53
  border: 0;
51
54
  background: transparent;
@@ -1,19 +1,21 @@
1
1
  /* File: packages/ui/src/parts/media-art.css | Map: base placeholder -> palette variants (--2 … --6)
2
- Placeholder artwork for media demos: a soft palette gradient instead of an image file.
2
+ Placeholder artwork for media demos: a soft tint of a palette color instead of an image file.
3
3
  Use it wherever an <img> would go: <div class="oc-media-art oc-media-art--3" role="img" aria-label="…"></div>.
4
4
  Only Omnia palette tokens, so no hex and no external image URLs. */
5
5
 
6
6
  .oc-media-art {
7
+ --oc-media-art-tone: var(--oc-media-art-from, var(--color-vividblue-60));
7
8
  display: block;
8
9
  inline-size: 100%;
9
10
  block-size: 100%;
10
- /* Light spot top-left + diagonal gradient; the two colors come from the variant. */
11
+ /* A quiet stand-in for a photo: one soft tint of the variant color with a faint diagonal weave. It is clearly a
12
+ placeholder and never a show of its own. --oc-media-art-to is still accepted but no longer used. */
11
13
  background:
12
- radial-gradient(circle at 28% 30%, oklch(from var(--color-white-50) l c h / 0.35), transparent 45%),
13
- linear-gradient(135deg, var(--oc-media-art-from, var(--color-vividblue-60)), var(--oc-media-art-to, var(--color-purple-50)));
14
+ repeating-linear-gradient(135deg in srgb, oklch(from var(--oc-media-art-tone) l c h / 0.12) 0 1px, transparent 1px 14px),
15
+ color-mix(in oklch, var(--oc-media-art-tone) 18%, var(--oc-muted));
14
16
  }
15
17
 
16
- /* Variants: just another pair of palette colors. */
18
+ /* Variants: just another palette color (the first of each pair sets the tint). */
17
19
  .oc-media-art--2 { --oc-media-art-from: var(--color-teal-50); --oc-media-art-to: var(--color-skycyan-50); }
18
20
  .oc-media-art--3 { --oc-media-art-from: var(--color-orange-60); --oc-media-art-to: var(--color-red-50); }
19
21
  .oc-media-art--4 { --oc-media-art-from: var(--color-green-40); --oc-media-art-to: var(--color-teal-70); }
@@ -1,7 +1,7 @@
1
1
  /* File: packages/ui/src/parts/media-doc-viewer.css | Map: grid -> card (bar, label, expand) -> frame (pdf, video, image)
2
2
  -> full-screen dialog -> small screens
3
3
  Document viewer: a PDF, video or image shown inline in a card with a label, plus a full-screen view on a native
4
- <dialog> opened with command="show-modal". Based on the PDF and video viewers of the Verdavita service pages. */
4
+ <dialog> opened with command="show-modal". Based on the PDF and video viewers of production service pages. */
5
5
 
6
6
  /* ---- Grid of viewers: cards keep their width, the group is centred ---- */
7
7
  .oc-doc-viewer-grid {
@@ -42,7 +42,7 @@
42
42
  color: var(--oc-primary-foreground);
43
43
  }
44
44
  .oc-flip-card__title { margin: 0; font-size: 1.25rem; font-weight: 700; }
45
- .oc-flip-card__text { margin: 0; font-size: 0.875rem; opacity: 0.85; }
45
+ .oc-flip-card__text { margin: 0; font-size: 0.875rem; color: inherit; opacity: 0.85; }
46
46
 
47
47
  /* Flip label ("Show answer"): its ::after covers the face, so a click anywhere flips. */
48
48
  .oc-flip-card__flip { justify-self: start; font-size: 0.8125rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@@ -108,6 +108,20 @@
108
108
  @supports not (backdrop-filter: blur(1px)) {
109
109
  .oc-glass--liquid, .oc-glass-bar { --oc-liquid-tint: light-dark(oklch(100% 0 0deg / 0.85), oklch(25% 0.02 260deg / 0.9)); }
110
110
  }
111
+ /* Firefox (no backdrop root): the lens filter moves from ::after to the sheet itself, see media-glass.css. */
112
+ @supports (-moz-appearance: none) {
113
+ .oc-glass.oc-glass--liquid,
114
+ .oc-glass--liquid,
115
+ .oc-glass-bar,
116
+ .oc-site-header--glass .oc-site-header__inner { backdrop-filter: blur(var(--oc-liquid-blur)) saturate(1.9) brightness(1.1) contrast(1.05); }
117
+ .oc-glass.oc-glass--liquid::after,
118
+ .oc-glass--liquid::after,
119
+ .oc-glass-bar::after,
120
+ .oc-site-header--glass .oc-site-header__inner::after { backdrop-filter: none; }
121
+ @media (prefers-reduced-transparency: reduce) {
122
+ .oc-glass.oc-glass--liquid, .oc-glass--liquid, .oc-glass-bar, .oc-site-header--glass .oc-site-header__inner { backdrop-filter: none; }
123
+ }
124
+ }
111
125
  @media (prefers-reduced-motion: reduce) {
112
126
  .oc-glass-bar__item { transition: none; }
113
127
  }
@@ -79,3 +79,11 @@
79
79
  }
80
80
  .oc-glass::after { backdrop-filter: none; }
81
81
  }
82
+ /* Firefox has no "backdrop root" yet: the filter on the ::after lens only sees the inside of the isolated sheet, so
83
+ nothing would be blurred. There the filter sits on the sheet itself (a position: fixed child is then placed
84
+ relative to the sheet; popovers, dialogs and anchored tooltips in the top layer are not affected). */
85
+ @supports (-moz-appearance: none) {
86
+ .oc-glass { backdrop-filter: blur(var(--oc-glass-blur)) saturate(1.5); }
87
+ .oc-glass::after { backdrop-filter: none; }
88
+ @media (prefers-reduced-transparency: reduce) { .oc-glass { backdrop-filter: none; } }
89
+ }
@@ -36,3 +36,31 @@
36
36
 
37
37
  /* A picture of a page, not a page to use: clicks and scrolling pass the frame by. */
38
38
  .oc-live-frame--static > :is(iframe, video, img, object, .oc-live-frame__content) { pointer-events: none; }
39
+ /* Only to look at: with the inert attribute on the iframe it also takes no focus and is hidden from screen readers
40
+ (a preview; give the box an aria-label or a caption so the preview still has a name). */
41
+ .oc-live-frame > [inert] { pointer-events: none; user-select: none; }
42
+
43
+ /* Device: the page in a phone or a television: a dark bezel with rounded corners around the scaled page. The bezel is
44
+ the border of a content-box frame, so the page keeps its exact ratio, and overflow: hidden gives the screen its
45
+ inner corners. Phone: 390 x 844 by default in the wrappers, at most --oc-live-phone-max wide. Color: --oc-live-bezel. */
46
+ .oc-live-frame:is(.oc-live-frame--phone, .oc-live-frame--tv) {
47
+ --oc-live-bezel: var(--color-duskblue-90);
48
+ box-sizing: content-box;
49
+ border: var(--oc-live-bezel-size) solid var(--oc-live-bezel);
50
+ background: var(--oc-live-bezel);
51
+ box-shadow: 0 0 0 1px var(--oc-border), 0 8px 24px oklch(from var(--color-black-60) l c h / 0.18);
52
+ }
53
+ .oc-live-frame--phone {
54
+ --oc-live-bezel-size: 0.5rem;
55
+ --oc-live-phone-max: 17rem;
56
+ inline-size: min(calc(100% - 2 * var(--oc-live-bezel-size)), var(--oc-live-phone-max));
57
+ border-radius: 1.75rem;
58
+ }
59
+ .oc-live-frame--tv {
60
+ --oc-live-bezel-size: 0.375rem;
61
+ inline-size: calc(100% - 2 * var(--oc-live-bezel-size));
62
+ border-radius: 0.625rem;
63
+ }
64
+ @media (forced-colors: active) {
65
+ .oc-live-frame:is(.oc-live-frame--phone, .oc-live-frame--tv) { border-color: CanvasText; }
66
+ }
@@ -0,0 +1,48 @@
1
+ /* File: packages/ui/src/parts/media-logo.css
2
+ Map: logo box (height, max width) -> image (own ratio, never filtered) -> box fit -> plates per theme -> forced colors
3
+ Logo: a customer or partner logo as it was uploaded: its own colors and ratio, never tinted, filtered or masked. Only in
4
+ the theme where it would disappear does it get a calm neutral plate: data-plate="light" (a white logo: a plate in the
5
+ light theme), "dark" (a dark logo: a plate in the dark theme), "both" (white and dark parts: a mid plate in both),
6
+ "none". data-plate="auto" lets oc-logo.js (or the React, Vue and Blade components) measure it once.
7
+ Size: --oc-logo-h (height) and --oc-logo-w (maximum width). Plate colors: --oc-logo-plate-light / -dark / -both. */
8
+
9
+ .oc-logo {
10
+ --oc-logo-h: 2.25rem;
11
+ --oc-logo-w: 14rem;
12
+ --oc-logo-plate-light: var(--color-slategray-70);
13
+ --oc-logo-plate-dark: var(--color-frostblue-10);
14
+ --oc-logo-plate-both: var(--color-gray-10);
15
+ display: inline-flex;
16
+ flex: none;
17
+ align-items: center;
18
+ justify-content: center;
19
+ box-sizing: border-box;
20
+ min-inline-size: 0;
21
+ max-inline-size: 100%;
22
+ padding: 0.25rem 0.5rem;
23
+ border-radius: var(--oc-radius);
24
+ background: transparent;
25
+ vertical-align: middle;
26
+ }
27
+ .oc-logo > img {
28
+ display: block;
29
+ inline-size: auto;
30
+ max-inline-size: min(100%, var(--oc-logo-w));
31
+ block-size: var(--oc-logo-h);
32
+ object-fit: contain;
33
+ filter: none;
34
+ mix-blend-mode: normal;
35
+ opacity: 1;
36
+ }
37
+ /* Box: every logo in the same box (a row or wall of logos), centred and as large as fits. */
38
+ .oc-logo.oc-logo--box { inline-size: var(--oc-logo-w); block-size: calc(var(--oc-logo-h) + 0.5rem); }
39
+ .oc-logo--box > img { inline-size: 100%; max-inline-size: 100%; block-size: 100%; }
40
+
41
+ /* Plates: light-dark() follows the color-scheme of the page (and of an .oc-theme-scope). */
42
+ .oc-logo[data-plate="light"] { background: light-dark(var(--oc-logo-plate-light), transparent); }
43
+ .oc-logo[data-plate="dark"] { background: light-dark(transparent, var(--oc-logo-plate-dark)); }
44
+ .oc-logo[data-plate="both"] { background: var(--oc-logo-plate-both); }
45
+
46
+ @media (forced-colors: active) {
47
+ .oc-logo[data-plate]:not([data-plate="none"], [data-plate="auto"]) { forced-color-adjust: none; }
48
+ }
@@ -41,7 +41,7 @@
41
41
  /* One line: time | level | message. Long messages wrap under the message column. */
42
42
  .oc-terminal-log__line { display: grid; grid-template-columns: auto 3.5rem minmax(0, 1fr); gap: 0.75rem; margin: 0; }
43
43
  .oc-terminal-log__line:not(:has(.oc-terminal-log__time)) { grid-template-columns: 3.5rem minmax(0, 1fr); }
44
- .oc-terminal-log__time { color: var(--color-stormblue-40); font-variant-numeric: tabular-nums; }
44
+ .oc-terminal-log__time { color: oklch(from var(--color-white-50) l c h / 0.62); font-variant-numeric: tabular-nums; }
45
45
  .oc-terminal-log__level { font-weight: 700; text-transform: uppercase; }
46
46
  .oc-terminal-log__msg { overflow-wrap: anywhere; white-space: pre-wrap; }
47
47
 
@@ -51,8 +51,9 @@
51
51
  .oc-terminal-log__line--warn .oc-terminal-log__level { color: var(--color-orange-50); }
52
52
  .oc-terminal-log__line--error .oc-terminal-log__level,
53
53
  .oc-terminal-log__line--error .oc-terminal-log__msg { color: var(--color-red-40); }
54
- .oc-terminal-log__line--debug { opacity: 0.6; }
55
- .oc-terminal-log__line--debug .oc-terminal-log__level { color: var(--color-purple-30); }
54
+ /* Debug lines step back with a quieter text color, not with opacity (that made them unreadable). */
55
+ .oc-terminal-log__line--debug .oc-terminal-log__msg { color: oklch(from var(--color-white-50) l c h / 0.62); }
56
+ .oc-terminal-log__line--debug .oc-terminal-log__level { color: var(--color-purple-20); }
56
57
 
57
58
  /* Prompt line: "$ " + text + a block cursor. */
58
59
  .oc-terminal-log__prompt { margin: 0.25rem 0 0; color: var(--oc-foreground); }
@@ -37,7 +37,7 @@
37
37
  font-variant-numeric: tabular-nums;
38
38
  }
39
39
  .oc-media-thumb__badge { inset-block-start: 0.4rem; inset-inline-start: 0.4rem; }
40
- .oc-media-thumb__badge--live { background: var(--color-red-60); }
40
+ .oc-media-thumb__badge--live { background: var(--color-red-70); } /* red-70: white text 4.5:1 or more */
41
41
  .oc-media-thumb__duration { inset-block-end: 0.45rem; inset-inline-end: 0.45rem; }
42
42
  /* With a progress bar the duration moves up a little. */
43
43
  .oc-media-thumb:has(.oc-media-thumb__progress) .oc-media-thumb__duration { inset-block-end: 0.7rem; }
@@ -41,7 +41,7 @@
41
41
  z-index: var(--oc-scanlines-z, 9999);
42
42
  pointer-events: none;
43
43
  background: repeating-linear-gradient(
44
- 0deg,
44
+ 0deg in srgb,
45
45
  transparent 0 2px,
46
46
  var(--oc-scanlines-color, oklch(from var(--oc-primary) l c h / 0.02)) 2px 4px
47
47
  );
@@ -37,7 +37,7 @@
37
37
  }
38
38
  .oc-brand-mark__tagline {
39
39
  margin-block-start: 0.3rem;
40
- color: var(--oc-subtle-foreground, var(--oc-muted-foreground));
40
+ color: var(--oc-muted-foreground);
41
41
  font-family: var(--oc-font-mono);
42
42
  font-size: var(--oc-brand-mark-tagline);
43
43
  font-weight: 600;
@@ -159,6 +159,7 @@
159
159
  .oc-shot img {
160
160
  display: block;
161
161
  inline-size: 100%;
162
+ block-size: auto; /* the height="" attribute must not win over the ratio (it made a tall, letterboxed box) */
162
163
  aspect-ratio: var(--oc-shot-ratio, 16 / 10);
163
164
  object-fit: contain;
164
165
  background: var(--oc-card);
@@ -169,13 +170,15 @@
169
170
  font-size: 0.88rem;
170
171
  }
171
172
 
172
- /* Browser frame with a shadow in the accent color and a product mark on the bottom end corner. */
173
+ /* Option: a browser frame with a shadow in the accent color, and a product mark on the bottom end corner. */
173
174
  .oc-browser-frame--glow {
174
175
  position: relative;
175
176
  box-shadow: 0 40px 90px -40px color-mix(in srgb, var(--oc-accent-from) 70%, transparent);
176
177
  }
177
178
  .oc-browser-frame--glow :is(.oc-browser-frame__view, .oc-browser-frame__body) img { transition: scale 0.6s var(--oc-ease-out, ease); }
178
179
  .oc-browser-frame--glow:hover :is(.oc-browser-frame__view, .oc-browser-frame__body) img { scale: 1.02; }
180
+ /* The mark also sits on a frame without the glow. */
181
+ .oc-browser-frame:has(> .oc-browser-frame__mark) { position: relative; }
179
182
  .oc-browser-frame__mark {
180
183
  position: absolute;
181
184
  inset-block-end: 1rem;
@@ -19,7 +19,7 @@
19
19
  .oc-fact-list--stacked dd { text-align: start; }
20
20
 
21
21
  /* Values in the accent color. */
22
- .oc-fact-list--accent dd { color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h)); }
22
+ .oc-fact-list--accent dd { color: light-dark(oklch(from var(--oc-accent-from) min(l, 0.52) c h), oklch(from var(--oc-accent-from) max(l, 0.72) c h)); }
23
23
 
24
24
  /* Very narrow containers: wrap instead of squeezing label and value together. */
25
25
  .oc-fact-list > div { flex-wrap: wrap; }
@@ -18,6 +18,7 @@ html.oc-fly-ready .oc-reveal--fly.is-flying {
18
18
  opacity var(--oc-fly-fade, 0.6s) var(--oc-ease-out, ease) var(--oc-fly-delay, 0s),
19
19
  transform var(--oc-fly-duration, 0.9s) var(--oc-fly-ease, cubic-bezier(0.16, 1, 0.3, 1)) var(--oc-fly-delay, 0s),
20
20
  filter var(--oc-fly-fade, 0.6s) var(--oc-ease-out, ease) var(--oc-fly-delay, 0s),
21
+ translate var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1)),
21
22
  border-color 0.35s;
22
23
  }
23
24
  html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
@@ -16,7 +16,9 @@
16
16
 
17
17
  /* Dark: a solid dark bar with light text. */
18
18
  .oc-site-header--dark {
19
+ --oc-header-glass: 0;
19
20
  animation: none;
21
+ backdrop-filter: none;
20
22
  color: var(--color-white-50);
21
23
  background: var(--oc-dark-band, var(--color-duskblue-95));
22
24
  }
@@ -24,7 +26,8 @@
24
26
  .oc-site-header--dark .oc-site-header__nav a:not(.oc-btn) { color: oklch(from var(--color-white-50) l c h / 0.72); }
25
27
 
26
28
  /* Floating: the bar as a rounded card with room around it. */
27
- .oc-site-header:is(.oc-site-header--floating, .oc-site-header--glass) { animation: none; padding: 0.75rem; }
29
+ /* No backdrop-filter on the bar itself: it would cut the backdrop of the glass inside it. */
30
+ .oc-site-header:is(.oc-site-header--floating, .oc-site-header--glass) { --oc-header-glass: 0; animation: none; backdrop-filter: none; padding: 0.75rem; }
28
31
  .oc-site-header--floating .oc-site-header__inner {
29
32
  block-size: 4rem;
30
33
  padding-inline: 1rem 0.75rem;
@@ -62,6 +65,8 @@
62
65
  /* Dark: light text on a dark band, the same deep blue in light and dark mode (--oc-dark-band), no top border. */
63
66
  .oc-site-footer--dark { border-block-start: 0; color: oklch(from var(--color-white-50) l c h / 0.7); background: var(--oc-dark-band, var(--color-duskblue-95)); }
64
67
  .oc-site-footer--dark :is(.oc-site-footer__title, .oc-site-header__brand, a:hover) { color: var(--color-white-50); }
68
+ /* Text and links take the light footer color, also when the page gives p / li a grey of its own. */
69
+ .oc-site-footer--dark :is(p, li) { color: inherit; }
65
70
  .oc-site-footer--dark :is(.oc-site-footer__bottom, .oc-site-footer__social a) { border-color: oklch(from var(--color-white-50) l c h / 0.16); }
66
71
 
67
72
  /* Newsletter: a sign-up field in the brand column. */
@@ -74,7 +74,7 @@
74
74
  /* Meta line under a page title: version · date, author. */
75
75
  .oc-meta {
76
76
  margin: 0 0 1rem;
77
- color: var(--oc-subtle-foreground, var(--oc-muted-foreground));
77
+ color: var(--oc-muted-foreground); /* the subtle tone was below 4.5:1 for this real text */
78
78
  font-size: 0.9rem;
79
79
  }
80
80