@birdycom/omniaui 0.16.1 → 0.17.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 +8 -0
  2. package/bin/lib/webicons-builtin.json +1 -0
  3. package/bin/lib/webicons.mjs +4 -0
  4. package/dist/back-link.d.ts +6 -0
  5. package/dist/back-link.js +54 -0
  6. package/dist/barcode.d.ts +5 -1
  7. package/dist/barcode.js +29 -8
  8. package/dist/calendar.d.ts +17 -0
  9. package/dist/calendar.js +190 -0
  10. package/dist/code-block.css +3 -0
  11. package/dist/combobox.d.ts +27 -4
  12. package/dist/combobox.js +231 -33
  13. package/dist/components-extra.css +33 -2
  14. package/dist/components.css +2112 -166
  15. package/dist/components.min.css +1 -1
  16. package/dist/countdown.d.ts +11 -0
  17. package/dist/countdown.js +76 -0
  18. package/dist/data-table.d.ts +28 -0
  19. package/dist/data-table.js +186 -18
  20. package/dist/docs-ui.css +11 -1
  21. package/dist/glass-lens.d.ts +41 -0
  22. package/dist/glass-lens.js +307 -0
  23. package/dist/input-mask.d.ts +31 -0
  24. package/dist/input-mask.js +228 -0
  25. package/dist/nav-overflow.d.ts +11 -0
  26. package/dist/nav-overflow.js +151 -0
  27. package/dist/oc-theme.css +1 -1
  28. package/dist/parts/app-0160-apps.css +6 -0
  29. package/dist/parts/app-compound-overlays.css +68 -0
  30. package/dist/parts/app-countdown.css +66 -0
  31. package/dist/parts/app-data-table-footer.css +6 -3
  32. package/dist/parts/app-data-table-server.css +47 -0
  33. package/dist/parts/app-data-table.css +27 -1
  34. package/dist/parts/app-header-settings.css +9 -0
  35. package/dist/parts/app-mode-badge.css +12 -0
  36. package/dist/parts/app-module-color.css +152 -0
  37. package/dist/parts/app-name-card.css +5 -0
  38. package/dist/parts/app-page-header.css +1 -1
  39. package/dist/parts/app-recovery-codes-extras.css +13 -0
  40. package/dist/parts/app-sidebar-meta.css +14 -3
  41. package/dist/parts/app-sidebar-provider.css +98 -0
  42. package/dist/parts/app-table-actions.css +16 -0
  43. package/dist/parts/app-top-progress.css +3 -0
  44. package/dist/parts/app-tree.css +6 -0
  45. package/dist/parts/app-type-picker.css +272 -0
  46. package/dist/parts/data-dl-numbered.css +17 -0
  47. package/dist/parts/data-graph.css +12 -4
  48. package/dist/parts/forms-combobox-catalog.css +142 -0
  49. package/dist/parts/forms-combobox-icons.css +40 -2
  50. package/dist/parts/forms-copy-field-extras.css +47 -0
  51. package/dist/parts/forms-field-extras.css +55 -0
  52. package/dist/parts/forms-form-section.css +39 -1
  53. package/dist/parts/forms-ledger.css +98 -0
  54. package/dist/parts/media-aspect-flush.css +6 -0
  55. package/dist/parts/media-barcode.css +25 -4
  56. package/dist/parts/media-doc-viewer.css +2 -0
  57. package/dist/parts/media-entity-card.css +5 -0
  58. package/dist/parts/media-glass-liquid.css +10 -5
  59. package/dist/parts/media-glass-options.css +37 -5
  60. package/dist/parts/media-glass.css +85 -35
  61. package/dist/parts/media-scrim.css +51 -0
  62. package/dist/parts/nav-topbar-variants.css +12 -4
  63. package/dist/parts/site-header-variants.css +40 -4
  64. package/dist/parts/site-hero-media.css +88 -0
  65. package/dist/parts/site-price-card.css +3 -1
  66. package/dist/parts/site-split-reverse.css +11 -0
  67. package/dist/parts/site-tint-card.css +5 -4
  68. package/dist/parts/utility-hover.css +6 -3
  69. package/dist/showcase.css +73 -31
  70. package/dist/sidebar.d.ts +22 -0
  71. package/dist/sidebar.js +161 -0
  72. package/dist/tabs.d.ts +9 -0
  73. package/dist/tabs.js +104 -0
  74. package/dist/theme.js +20 -4
  75. package/manifest.json +24 -0
  76. package/package.json +10 -2
  77. package/snippets/accordion-accent.html +1 -1
  78. package/snippets/copy-field.html +44 -6
  79. package/snippets/countdown.html +12 -0
  80. package/snippets/dropdown-menu.html +2 -0
  81. package/snippets/glass.html +3 -3
  82. package/snippets/hero-media.html +20 -0
  83. package/snippets/page-header.html +1 -1
  84. package/snippets/recovery-codes.html +55 -6
  85. package/snippets/scrim.html +19 -0
@@ -0,0 +1,151 @@
1
+ // File: packages/ui/src/nav-overflow.js
2
+ // Map: fit rule (how many items fit next to a More button) -> More item (found or built) -> apply (data-oc-hidden, menu
3
+ // copies, aria-current on More) -> bind one [data-oc-nav-overflow] nav (ResizeObserver) -> init every one -> boot
4
+ // Behaviour for the app header "More" overflow (<x-oc::block.app-header :overflow="true">, or any nav with
5
+ // data-oc-nav-overflow around a <ul>): the <li> items that do not fit get data-oc-hidden (they keep their width so they
6
+ // can be measured again) and a copy of their link goes into the More menu (.oc-dropdown-menu[popover]). When the current
7
+ // page (aria-current) is in that menu, the More button gets aria-current="page". The label of a built More button comes
8
+ // from data-more-label on the nav (default "More").
9
+ // Event on the nav: oc-nav-overflow, detail { visible, hidden }.
10
+
11
+ const DOTS =
12
+ "M16 12a2 2 0 0 1 2-2a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2m-6 0a2 2 0 0 1 2-2a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2m-6 0a2 2 0 0 1 2-2a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2";
13
+ let counter = 0;
14
+
15
+ /**
16
+ * How many items fit: all of them when their widths (plus gaps) fit in `available`, otherwise as many as fit next to
17
+ * the More button (`moreWidth`).
18
+ */
19
+ export function fitNavItems(widths, available, moreWidth, gap = 0) {
20
+ const total = widths.reduce((sum, w, i) => sum + w + (i ? gap : 0), 0);
21
+ if (total <= available) return widths.length;
22
+ let used = moreWidth;
23
+ let n = 0;
24
+ for (const w of widths) {
25
+ const next = used + gap + w;
26
+ if (next > available) break;
27
+ used = next;
28
+ n++;
29
+ }
30
+ return n;
31
+ }
32
+
33
+ /** The More <li> of a list: the existing [data-oc-nav-more] item, or a new one at the end. */
34
+ function moreItem(nav, list) {
35
+ const found = list.querySelector(":scope > [data-oc-nav-more]");
36
+ if (found) return found;
37
+ const doc = list.ownerDocument;
38
+ const id = `oc-nav-more-${++counter}`;
39
+ const li = doc.createElement("li");
40
+ li.setAttribute("data-oc-nav-more", "");
41
+ const button = doc.createElement("button");
42
+ button.className = "oc-navmenu-link oc-block-appbar-more";
43
+ button.type = "button";
44
+ button.setAttribute("popovertarget", id);
45
+ button.setAttribute("aria-haspopup", "menu");
46
+ button.innerHTML = `<svg data-icon="mdi:dots-horizontal" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="${DOTS}"/></svg>`;
47
+ button.append(nav.dataset.moreLabel || "More");
48
+ const menu = doc.createElement("div");
49
+ menu.className = "oc-dropdown-menu";
50
+ menu.id = id;
51
+ menu.setAttribute("role", "menu");
52
+ menu.setAttribute("popover", "");
53
+ li.append(button, menu);
54
+ list.append(li);
55
+ return li;
56
+ }
57
+
58
+ const hide = (el, on) => {
59
+ if (on) {
60
+ el.setAttribute("data-oc-hidden", "");
61
+ el.setAttribute("aria-hidden", "true");
62
+ } else {
63
+ el.removeAttribute("data-oc-hidden");
64
+ el.removeAttribute("aria-hidden");
65
+ }
66
+ };
67
+
68
+ /** Shows the first `visible` items, hides the rest and copies their links into the More menu. */
69
+ export function applyNavOverflow(list, more, visible) {
70
+ const items = [...list.children].filter((el) => el !== more);
71
+ const menu = more.querySelector(".oc-dropdown-menu");
72
+ const button = more.querySelector("button");
73
+ const hidden = items.slice(visible);
74
+ items.forEach((li, i) => {
75
+ hide(li, i >= visible);
76
+ li.querySelectorAll("a, button").forEach((el) => (i >= visible ? el.setAttribute("tabindex", "-1") : el.removeAttribute("tabindex")));
77
+ });
78
+ hide(more, hidden.length === 0);
79
+ if (button) {
80
+ if (hidden.length === 0) button.setAttribute("tabindex", "-1");
81
+ else button.removeAttribute("tabindex");
82
+ }
83
+ let current = false;
84
+ if (menu) {
85
+ menu.replaceChildren(
86
+ ...hidden.map((li) => {
87
+ const link = li.querySelector("a");
88
+ const a = list.ownerDocument.createElement("a");
89
+ a.className = "oc-dropdown-item";
90
+ a.setAttribute("role", "menuitem");
91
+ a.href = link?.getAttribute("href") ?? "#";
92
+ a.textContent = (link ?? li).textContent.trim();
93
+ if (link?.getAttribute("aria-current")) {
94
+ a.setAttribute("aria-current", link.getAttribute("aria-current"));
95
+ current = true;
96
+ }
97
+ return a;
98
+ }),
99
+ );
100
+ }
101
+ if (button) {
102
+ if (current) button.setAttribute("aria-current", "page");
103
+ else button.removeAttribute("aria-current");
104
+ }
105
+ return hidden.length;
106
+ }
107
+
108
+ /** Starts one [data-oc-nav-overflow] nav. Returns a function that stops it. */
109
+ export function bindNavOverflow(nav) {
110
+ if (nav.dataset.ocBound) return () => {};
111
+ const list = nav.querySelector("ul");
112
+ if (!list) return () => {};
113
+ nav.dataset.ocBound = "1";
114
+ const more = moreItem(nav, list);
115
+ const view = nav.ownerDocument.defaultView;
116
+ const measure = () => {
117
+ const items = [...list.children].filter((el) => el !== more);
118
+ const gap = parseFloat(view?.getComputedStyle(list).columnGap ?? "") || 0;
119
+ const visible = fitNavItems(items.map((el) => el.offsetWidth), nav.clientWidth, more.offsetWidth, gap);
120
+ const hidden = applyNavOverflow(list, more, visible);
121
+ const Ev = view?.CustomEvent ?? CustomEvent;
122
+ nav.dispatchEvent(new Ev("oc-nav-overflow", { bubbles: true, detail: { visible, hidden } }));
123
+ };
124
+ measure();
125
+ const RO = view?.ResizeObserver ?? globalThis.ResizeObserver;
126
+ const ro = RO ? new RO(measure) : null;
127
+ ro?.observe(nav);
128
+ return () => {
129
+ ro?.disconnect();
130
+ delete nav.dataset.ocBound;
131
+ };
132
+ }
133
+
134
+ /** Starts every [data-oc-nav-overflow] nav under `scope`. */
135
+ export function initNavOverflow(scope = document) {
136
+ return [...scope.querySelectorAll("[data-oc-nav-overflow]")].map(bindNavOverflow);
137
+ }
138
+
139
+ // Starts on its own as /js/oc-nav-overflow.js (`npx omniaui copy-js nav-overflow`), with ?auto in the URL or data-oc-auto on the tag.
140
+ function autoStart() {
141
+ if (typeof document === "undefined") return false;
142
+ const url = String(import.meta.url);
143
+ if (url.includes("oc-nav-overflow") || /[?&]auto(=|&|$)/.test(url)) return true;
144
+ const file = url.split(/[?#]/)[0];
145
+ return [...document.querySelectorAll("script[data-oc-auto][src]")].some((s) => s.src.split(/[?#]/)[0] === file);
146
+ }
147
+ if (autoStart()) {
148
+ const boot = () => initNavOverflow(document);
149
+ if (document.readyState === "loading") document.addEventListener("DOMContentLoaded", boot);
150
+ else boot();
151
+ }
package/dist/oc-theme.css CHANGED
@@ -1,4 +1,4 @@
1
- /* File: oc-theme.css — generated from tokens/semantic.json by @birdycom/omniacss 0.16.1. Do not edit. */
1
+ /* File: oc-theme.css — generated from tokens/semantic.json by @birdycom/omniacss 0.17.0. Do not edit. */
2
2
  /* Semantic theme tokens: every color is light-dark() of an Omnia palette token (oc-colors.css). */
3
3
  /* Same source as the desktop export: npx omniacss tokens --format json|dtcg|python */
4
4
  :root {
@@ -78,6 +78,12 @@
78
78
  :is([data-theme="light"], :root:has(.oc-theme-switch input[value="light"]:checked:not(.oc-theme-scope *))) .oc-theme-img--dark { display: none; }
79
79
  :is([data-theme="dark"], .dark, :root:has(.oc-theme-switch input[value="dark"]:checked:not(.oc-theme-scope *))) .oc-theme-img--light { display: none; }
80
80
  :is([data-theme="dark"], .dark, :root:has(.oc-theme-switch input[value="dark"]:checked:not(.oc-theme-scope *))) .oc-theme-img--dark { display: revert; }
81
+ /* A .oc-theme-scope with its own theme (data-theme on the scope, or a switch inside it) wins over the page.
82
+ The doubled class gives the same specificity as the rules above, so the order decides. */
83
+ .oc-theme-scope.oc-theme-scope:is([data-theme="light"], :has(.oc-theme-switch input[value="light"]:checked)) .oc-theme-img--light { display: revert; }
84
+ .oc-theme-scope.oc-theme-scope:is([data-theme="light"], :has(.oc-theme-switch input[value="light"]:checked)) .oc-theme-img--dark { display: none; }
85
+ .oc-theme-scope.oc-theme-scope:is([data-theme="dark"], :has(.oc-theme-switch input[value="dark"]:checked)) .oc-theme-img--light { display: none; }
86
+ .oc-theme-scope.oc-theme-scope:is([data-theme="dark"], :has(.oc-theme-switch input[value="dark"]:checked)) .oc-theme-img--dark { display: revert; }
81
87
 
82
88
  /* Card grid that scrolls sideways on a phone instead of stacking every card: one row with scroll snap.
83
89
  <div class="oc-card-grid oc-card-grid--scroll">. --oc-card-scroll-width is the width of a card (80%). */
@@ -0,0 +1,68 @@
1
+ /* File: packages/ui/src/parts/app-compound-overlays.css | Map: compound tabs root (vertical) -> scrolling dialog content -> popover side/align/offset -> tooltip provider, delay and controlled open */
2
+ /* 0.17.0 compound API for Tabs, Dialog, Popover and Tooltip. Same classes as the props API; this part only adds what the
3
+ compound parts need: a root for class-toggle tabs, a dialog whose body scrolls between a fixed header and footer, popover
4
+ placement by data-side / data-align, and the tooltip delay and controlled state. */
5
+
6
+ /* ---- Tabs: compound root (.oc-tabs) ---- */
7
+ /* Horizontal: the tab list on top, the panel below it over the full width (not in the flex row of the pill-tab .oc-tabs). */
8
+ .oc-tabs:has(> .oc-tab-list) { display: block; inline-size: 100%; }
9
+ .oc-tabs:has(> .oc-tab-list--vertical) {
10
+ display: grid;
11
+ grid-template-columns: max-content minmax(0, 1fr);
12
+ gap: 0 1.5rem;
13
+ align-items: start;
14
+ }
15
+ .oc-tabs > .oc-tab-list--vertical { grid-row: 1 / span 99; }
16
+ .oc-tabs:has(> .oc-tab-list--vertical) > .oc-tab-panel { grid-column: 2; padding-block: 0.5rem 0.25rem; }
17
+ .oc-tabs .oc-tab-list--vertical .oc-tab-trigger { justify-content: flex-start; }
18
+ .oc-tabs > .oc-tab-panel:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: 2px; border-radius: var(--oc-radius); }
19
+
20
+ /* ---- Dialog: the Blade root wrapper takes no box; header and footer fixed, the body scrolls ---- */
21
+ .oc-dialog { display: contents; }
22
+ .oc-modal-content--scroll { overflow: hidden; }
23
+ .oc-modal-content--scroll > .oc-modal-header,
24
+ .oc-modal-content--scroll > .oc-modal-footer { flex-shrink: 0; }
25
+ .oc-modal-content--scroll > .oc-modal-header { padding-block-end: 16px; border-block-end: 1px solid var(--oc-border); }
26
+ .oc-modal-content--scroll > .oc-modal-body { min-block-size: 0; overflow-y: auto; overscroll-behavior: contain; }
27
+
28
+ /* ---- Popover: side, align and offset (compound PopoverContent sets data-side / data-align) ---- */
29
+ .oc-popover[popover][data-side] { margin: 0; }
30
+ .oc-popover[popover][data-side="bottom"] { margin-block-start: var(--oc-popover-offset, 4px); position-area: block-end span-inline-end; position-try-fallbacks: flip-block, flip-inline; }
31
+ .oc-popover[popover][data-side="bottom"][data-align="center"] { position-area: block-end; }
32
+ .oc-popover[popover][data-side="bottom"][data-align="end"] { position-area: block-end span-inline-start; }
33
+ .oc-popover[popover][data-side="top"] { margin-block-end: var(--oc-popover-offset, 4px); position-area: block-start span-inline-end; position-try-fallbacks: flip-block, flip-inline; }
34
+ .oc-popover[popover][data-side="top"][data-align="center"] { position-area: block-start; }
35
+ .oc-popover[popover][data-side="top"][data-align="end"] { position-area: block-start span-inline-start; }
36
+ .oc-popover[popover][data-side="right"] { margin-inline-start: var(--oc-popover-offset, 4px); position-area: inline-end span-block-end; position-try-fallbacks: flip-inline, flip-block; }
37
+ .oc-popover[popover][data-side="right"][data-align="center"] { position-area: inline-end; }
38
+ .oc-popover[popover][data-side="right"][data-align="end"] { position-area: inline-end span-block-start; }
39
+ .oc-popover[popover][data-side="left"] { margin-inline-end: var(--oc-popover-offset, 4px); position-area: inline-start span-block-end; position-try-fallbacks: flip-inline, flip-block; }
40
+ .oc-popover[popover][data-side="left"][data-align="center"] { position-area: inline-start; }
41
+ .oc-popover[popover][data-side="left"][data-align="end"] { position-area: inline-start span-block-start; }
42
+
43
+ /* ---- Tooltip: provider, delay, controlled open ---- */
44
+ .oc-tooltip-provider { display: contents; }
45
+
46
+ /* The delay applies when the bubble appears, not when it goes away. */
47
+ .oc-tooltip:hover::after,
48
+ .oc-tooltip:focus-visible::after,
49
+ .oc-tooltip:has(:focus-visible)::after,
50
+ .oc-tooltip:hover > .oc-tooltip__content,
51
+ .oc-tooltip:focus-visible > .oc-tooltip__content,
52
+ .oc-tooltip:has(:focus-visible) > .oc-tooltip__content {
53
+ transition-delay: var(--oc-tooltip-delay, 0ms);
54
+ }
55
+
56
+ /* open=true: shown without hover. open=false: hidden, also on hover and focus. */
57
+ .oc-tooltip.is-open::after,
58
+ .oc-tooltip.is-open > .oc-tooltip__content {
59
+ opacity: 1;
60
+ scale: 1;
61
+ }
62
+ .oc-tooltip.is-closed::after,
63
+ .oc-tooltip.is-closed > .oc-tooltip__content {
64
+ opacity: 0;
65
+ scale: 0.96;
66
+ }
67
+ /* Rich content may hold links: let the pointer reach it while it is shown. */
68
+ .oc-tooltip.is-open > .oc-tooltip__content { pointer-events: auto; }
@@ -0,0 +1,66 @@
1
+ /* File: packages/ui/src/parts/app-countdown.css
2
+ Map: countdown (label + time) -> --pill -> --display (large digits) -> --bar (shrinking bar) -> states (low, done)
3
+ -> reduced motion
4
+ Countdown (0.17.0): the time left for a task, a round or a reservation. role="timer" (a screen reader does not read
5
+ every second; give it an aria-label). The script or the component writes the time and --oc-countdown-left (1 = full,
6
+ 0 = empty) for the bar, and data-state="low" (little time left, warning tone) or "done" (time is up).
7
+ <div class="oc-countdown oc-countdown--pill" role="timer" aria-label="Time left" data-state="low">
8
+ <span class="oc-countdown-label">Time left</span> <b class="oc-countdown-time">0:45</b></div> */
9
+
10
+ .oc-countdown {
11
+ --oc-countdown-tone: var(--oc-primary);
12
+ --oc-countdown-left: 1;
13
+ display: inline-flex;
14
+ flex-wrap: wrap;
15
+ align-items: baseline;
16
+ gap: 0.25rem 0.5rem;
17
+ color: var(--oc-foreground);
18
+ }
19
+ .oc-countdown-label { color: var(--oc-muted-foreground); font-size: 0.875rem; font-weight: 600; }
20
+ .oc-countdown-time { font-size: 1.125rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
21
+ .oc-countdown[data-state="low"] { --oc-countdown-tone: var(--oc-warning); }
22
+ .oc-countdown[data-state="done"] { --oc-countdown-tone: var(--oc-destructive); }
23
+ .oc-countdown:is([data-state="low"], [data-state="done"]) .oc-countdown-time { color: light-dark(oklch(from var(--oc-countdown-tone) min(l, 0.5) c h), var(--oc-countdown-tone)); }
24
+
25
+ /* Pill: a small tinted label, for a header or a card. */
26
+ .oc-countdown--pill {
27
+ align-items: center;
28
+ padding: 0.25rem 0.75rem;
29
+ border: 1px solid color-mix(in oklch, var(--oc-countdown-tone) 40%, transparent);
30
+ border-radius: 999px;
31
+ background: color-mix(in oklch, var(--oc-countdown-tone) 10%, var(--oc-background));
32
+ }
33
+ .oc-countdown--pill .oc-countdown-label { font-size: 0.75rem; }
34
+ .oc-countdown--pill .oc-countdown-time { font-size: 0.9375rem; }
35
+
36
+ /* Display: large digits in the middle, for a screen people look at from a distance. */
37
+ .oc-countdown--display {
38
+ display: inline-grid;
39
+ justify-items: center;
40
+ gap: 0.25rem;
41
+ text-align: center;
42
+ }
43
+ .oc-countdown--display .oc-countdown-time { font-size: clamp(2.5rem, 8vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; }
44
+
45
+ /* Bar: a line under the time that shrinks from full to empty (--oc-countdown-left). */
46
+ .oc-countdown--bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; }
47
+ .oc-countdown--bar.oc-countdown--display { grid-template-columns: minmax(0, 1fr); }
48
+ .oc-countdown--bar::after {
49
+ content: "";
50
+ grid-column: 1 / -1;
51
+ justify-self: stretch;
52
+ block-size: 0.375rem;
53
+ border-radius: 999px;
54
+ background:
55
+ linear-gradient(var(--oc-countdown-tone), var(--oc-countdown-tone)) no-repeat 0 0 / calc(var(--oc-countdown-left) * 100%) 100%,
56
+ var(--oc-muted);
57
+ transition: background-size 0.3s linear;
58
+ }
59
+ .oc-countdown--bar:dir(rtl)::after { background-position: 100% 0, 0 0; }
60
+
61
+ @media (prefers-reduced-motion: reduce) {
62
+ .oc-countdown--bar::after { transition: none; }
63
+ }
64
+ @media (forced-colors: active) {
65
+ .oc-countdown--bar::after { background: linear-gradient(CanvasText, CanvasText) no-repeat 0 0 / calc(var(--oc-countdown-left) * 100%) 100%; border: 1px solid CanvasText; }
66
+ }
@@ -3,9 +3,12 @@
3
3
 
4
4
  /* Footer: count on the left, rows-per-page in the middle, pager on the right. */
5
5
  .oc-data-table-footer {
6
- display: grid;
7
- grid-template-columns: 1fr auto 1fr;
6
+ /* Flex with wrap: the three parts share one row when they fit (the pager never breaks over two rows while there is
7
+ room), otherwise the pager moves to its own row as a whole. */
8
+ display: flex;
9
+ flex-wrap: wrap;
8
10
  align-items: center;
11
+ justify-content: space-between;
9
12
  gap: 0.75rem;
10
13
  }
11
14
  .oc-data-table-summary { margin: 0; font-size: 0.8125rem; color: var(--oc-muted-foreground); }
@@ -33,6 +36,6 @@
33
36
  .oc-data-table-ellipsis { padding-inline: 0.25rem; color: var(--oc-muted-foreground); }
34
37
 
35
38
  @media (max-width: 40rem) {
36
- .oc-data-table-footer { grid-template-columns: 1fr; }
39
+ .oc-data-table-footer { flex-direction: column; align-items: flex-start; }
37
40
  .oc-data-table-pager { justify-content: flex-start; }
38
41
  }
@@ -0,0 +1,47 @@
1
+ /* File: packages/ui/src/parts/app-data-table-server.css | Map: loading (aria-busy) -> skeleton rows -> column chooser -> Livewire extras */
2
+ /* Server-driven list table (0.17.0): the rows come from the app per page (data-oc-server="true"). While a page loads the
3
+ root has aria-busy="true" and the body shows skeleton rows (tr.oc-data-table-skeleton) with the height of a real row,
4
+ so the table does not jump. The column chooser is a plain dropdown with a checkbox per column (data-oc-visible-col). */
5
+
6
+ .oc-data-table[aria-busy="true"] .oc-data-table-pager,
7
+ .oc-data-table[aria-busy="true"] .oc-data-table-summary { opacity: 0.6; }
8
+ .oc-data-table[aria-busy="true"] .oc-data-table-empty { display: none; }
9
+
10
+ /* Skeleton rows: one bar per cell, not selectable, no hover tint. */
11
+ .oc-data-table-skeleton > td { pointer-events: none; }
12
+ .oc-data-table-skeleton:hover > td { background: transparent; }
13
+ .oc-data-table-skeleton-bar {
14
+ display: block;
15
+ inline-size: 70%;
16
+ max-inline-size: 12rem;
17
+ block-size: 0.75rem;
18
+ margin-block: 0.3rem;
19
+ }
20
+ .oc-data-table-skeleton > td:nth-child(3n + 2) .oc-data-table-skeleton-bar { inline-size: 45%; }
21
+ .oc-data-table-skeleton > td:nth-child(3n) .oc-data-table-skeleton-bar { inline-size: 85%; }
22
+ .oc-data-table-skeleton > td[data-numeric] .oc-data-table-skeleton-bar { margin-inline-start: auto; inline-size: 3.5rem; }
23
+ .oc-data-table-skeleton-box { display: block; inline-size: 1rem; block-size: 1rem; border-radius: 4px; }
24
+ @media (prefers-reduced-motion: reduce) {
25
+ .oc-data-table-skeleton .oc-skeleton { animation: none; }
26
+ }
27
+
28
+ /* Column chooser (free): a dropdown with a checkbox per column; the app renders only the checked columns. */
29
+ .oc-data-table-colpick { min-inline-size: 12rem; }
30
+ .oc-data-table-colpick-title {
31
+ margin: 0;
32
+ padding: 0.375rem 0.625rem 0.25rem;
33
+ font-size: 0.75rem;
34
+ font-weight: 600;
35
+ color: var(--oc-muted-foreground);
36
+ }
37
+ .oc-data-table-colpick .oc-dropdown-item { cursor: pointer; }
38
+ .oc-data-table-colpick .oc-dropdown-item:has(input:disabled) { cursor: default; opacity: 0.6; }
39
+ .oc-data-table-colpick .oc-dropdown-item > input { margin: 0; accent-color: var(--oc-primary); }
40
+
41
+ /* Livewire table (.oc-block-datatable): the toolbar holds the trash pills and the column chooser next to the search. */
42
+ .oc-block-datatable .oc-table-toolbar { flex-wrap: wrap; gap: 0.5rem; }
43
+
44
+ /* Livewire skeleton: a second tbody that only shows while wire:loading sets aria-busy on the section. */
45
+ .oc-data-table-skeleton-body { display: none; }
46
+ .oc-block-datatable[aria-busy="true"] .oc-data-table-skeleton-body { display: table-row-group; }
47
+ .oc-block-datatable[aria-busy="true"] .oc-block-datatable-rows { display: none; }
@@ -89,9 +89,23 @@
89
89
  inset-inline-end: 0;
90
90
  z-index: 2;
91
91
  background: var(--oc-card);
92
- box-shadow: -1px 0 0 var(--oc-border);
92
+ /* A line plus a short soft edge: columns that scroll under it read as "more to the side", not as cut-off text. */
93
+ box-shadow: -1px 0 0 var(--oc-border), -10px 0 8px -8px oklch(from var(--oc-foreground) l c h / 0.14);
93
94
  }
94
95
  .oc-data-table .oc-table thead th[data-oc-col="actions"] { z-index: 3; background: var(--oc-card); }
96
+ /* Scroll hint: where scroll-driven animations work, the soft edge is clearly visible only while columns are hidden
97
+ under the actions column (a table that fits, or one scrolled to the end, keeps just the line). */
98
+ @supports (animation-timeline: scroll()) {
99
+ .oc-data-table .oc-table :is(th, td)[data-oc-col="actions"] {
100
+ box-shadow: -1px 0 0 var(--oc-border);
101
+ animation: oc-data-table-edge linear both;
102
+ animation-timeline: scroll(nearest inline);
103
+ }
104
+ @keyframes oc-data-table-edge {
105
+ 0%, 96% { box-shadow: -1px 0 0 var(--oc-border), -16px 0 14px -10px light-dark(oklch(from var(--oc-foreground) l c h / 0.3), oklch(0% 0 0deg / 0.7)); }
106
+ 100% { box-shadow: -1px 0 0 var(--oc-border); }
107
+ }
108
+ }
95
109
  .oc-data-table .oc-table tbody tr:is(:nth-child(even of :not([hidden])), :hover) > td[data-oc-col="actions"] { background: inherit; }
96
110
 
97
111
  /* Trash and archive rows stay readable but quieter than active rows. */
@@ -142,3 +156,15 @@
142
156
  @media (prefers-reduced-motion: reduce) {
143
157
  .oc-data-table .oc-table tbody tr { transition: none; }
144
158
  }
159
+
160
+ /* Print (0.17.0): only the table. The toolbar, tabs, filters, selection bar, pager, checkbox, grip and action columns
161
+ stay off the paper, the scroll area grows, and a row never breaks over two pages. Use pagination={false} (all rows)
162
+ for a report. */
163
+ @media print {
164
+ .oc-data-table :is(.oc-data-table-toolbar, .oc-data-table-tabs, .oc-data-table-filters, .oc-data-table-bulk, .oc-data-table-per-page, .oc-data-table-pager, .oc-data-table-grid),
165
+ .oc-data-table :is(th, td):is([data-oc-col="select"], [data-oc-col="order"], [data-oc-col="actions"]) { display: none !important; }
166
+ .oc-data-table--grid .oc-data-table-scroll { display: block !important; }
167
+ .oc-data-table-scroll { overflow: visible !important; max-block-size: none !important; }
168
+ .oc-data-table .oc-table tr { break-inside: avoid; }
169
+ .oc-data-table .oc-table thead { display: table-header-group; }
170
+ }
@@ -0,0 +1,9 @@
1
+ /* File: packages/ui/src/parts/app-header-settings.css
2
+ Map: group (language menu + theme button + more) -> sizes in the group
3
+ Header settings (0.17.0): the language and the theme of an app header as one small group of round ghost buttons, each
4
+ with its name in a tooltip under it (.oc-tooltip--bottom). Works in a glass header too: the buttons stay transparent.
5
+ <div class="oc-header-settings" role="group" aria-label="Settings"> language-select--icon + theme toggle </div> */
6
+
7
+ .oc-header-settings { display: inline-flex; align-items: center; gap: 0.25rem; }
8
+ .oc-header-settings > :is(.oc-btn--icon, .oc-language-select--icon) { inline-size: 2.25rem; block-size: 2.25rem; }
9
+ .oc-header-settings > .oc-btn--icon > :is(svg, iconify-icon) { inline-size: 1.15rem; block-size: 1.15rem; font-size: 1.15rem; }
@@ -78,6 +78,18 @@
78
78
  .oc-card--accent[data-active="false"] { border-style: dashed; }
79
79
  .oc-card--accent[data-active="false"] .oc-card-band { background: var(--oc-surface); }
80
80
 
81
+ /* .oc-card-grid--bands (0.17.0): the cards in the grid share their rows (subgrid). The bands of cards side by side are
82
+ as high as the highest band, with a longer translation or larger text too, so the content below starts on one line;
83
+ no height to guess with --oc-card-band-min-h. Works for every card with a band, content and an optional footer. */
84
+ .oc-card-grid--bands > .oc-card {
85
+ display: grid;
86
+ grid-row: span 2;
87
+ grid-template-rows: subgrid;
88
+ row-gap: 0; /* the gap of the grid stays between the cards, not between band and content */
89
+ }
90
+ .oc-card-grid--bands > .oc-card:has(> .oc-card-footer) { grid-row: span 3; }
91
+ .oc-card-grid--bands > .oc-card > .oc-card-band { --oc-card-band-min-h: 0; }
92
+
81
93
  /* Code plate: a QR code or barcode on its own white plate, always light (scans in any theme and on paper), with an
82
94
  optional caption ON the plate, so the label is on a photo or a print too. data-mode / data-tone colors the caption. */
83
95
  .oc-code-plate {
@@ -0,0 +1,152 @@
1
+ /* File: packages/ui/src/parts/app-module-color.css | Map: tokens (data-module names) -> scope (focus ring) -> button -> badge -> tabs
2
+ -> launcher -> form section -> sidebar row -> floating button (.oc-btn--float) */
3
+ /* Module colour (0.17.0): give a part of an app its own accent. data-module="<name>" on any ancestor sets
4
+ --oc-module (solid accent), --oc-module-soft (tint for backgrounds) and --oc-module-fg (text on the solid accent).
5
+ Ten generic names: blue, green, purple, gold, cyan, pink, red, orange, teal, slate. An unknown name sets no colour,
6
+ so an app can set --oc-module itself (style="--oc-module: ..." on the same element). Every consumer reads
7
+ var(--oc-module, var(--oc-primary)), so without a module everything keeps the primary colour.
8
+ Light mode: dark accents with white text; dark mode: light accents with dark text (AA 4.5:1 both ways). */
9
+
10
+ [data-module] {
11
+ --oc-module-soft: color-mix(in oklab, var(--oc-module, var(--oc-primary)) 12%, transparent);
12
+ /* Focus rings of fields, buttons, tabs and rows inside the scope follow the module. */
13
+ --oc-ring: var(--oc-module, var(--oc-primary));
14
+ }
15
+
16
+ [data-module="blue"],
17
+ [data-module="green"],
18
+ [data-module="purple"],
19
+ [data-module="gold"],
20
+ [data-module="cyan"],
21
+ [data-module="pink"],
22
+ [data-module="red"],
23
+ [data-module="orange"],
24
+ [data-module="teal"],
25
+ [data-module="slate"] {
26
+ --oc-module-fg: light-dark(var(--color-white-50), var(--color-shallowblue-95));
27
+ }
28
+
29
+ /* The blue palette lies far outside sRGB: its chroma is capped, so tints and borders mixed from it stay clean. */
30
+ [data-module="blue"] { --oc-module: light-dark(oklch(from var(--color-blue-40) l min(c, 0.2) h), oklch(from var(--color-blue-2) l min(c, 0.12) h)); }
31
+ [data-module="green"] { --oc-module: light-dark(var(--color-green-60), var(--color-green-10)); }
32
+ [data-module="purple"] { --oc-module: light-dark(var(--color-indigo-20), var(--color-indigo-2)); }
33
+ [data-module="gold"] { --oc-module: light-dark(color-mix(in oklab, var(--color-orange-95) 80%, var(--color-green-95)), var(--color-gold-70)); }
34
+ [data-module="cyan"] { --oc-module: light-dark(var(--color-teal-70), var(--color-cyan-90)); }
35
+ [data-module="pink"] { --oc-module: light-dark(color-mix(in oklab, var(--color-magenta-95), var(--color-pink-95)), color-mix(in oklab, var(--color-magenta-60), var(--color-pink-80))); }
36
+ [data-module="red"] { --oc-module: light-dark(var(--color-red-90), var(--color-red-30)); }
37
+ [data-module="orange"] { --oc-module: light-dark(color-mix(in oklab, var(--color-red-90) 35%, var(--color-orange-95)), color-mix(in oklab, var(--color-red-30) 35%, var(--color-orange-60))); }
38
+ [data-module="teal"] { --oc-module: light-dark(color-mix(in oklab, var(--color-teal-70), var(--color-green-70)), color-mix(in oklab, var(--color-teal-10), var(--color-green-10))); }
39
+ [data-module="slate"] { --oc-module: light-dark(var(--color-stormblue-30), var(--color-stormblue-2)); }
40
+
41
+ /* Primary (default) button: flat module colour. Variants (secondary, outline, ghost ...) keep their own look. */
42
+ .oc-btn:where([data-module], [data-module] *):not(:where(
43
+ .oc-btn--secondary, .oc-btn--outline, .oc-btn--ghost, .oc-btn--link, .oc-btn--destructive, .oc-btn--success,
44
+ .oc-btn--gradient, .oc-btn--glass, .oc-btn--neon, .oc-btn--plain,
45
+ .oc-btn--soft-primary, .oc-btn--soft-success, .oc-btn--soft-warning, .oc-btn--soft-destructive, .oc-btn--soft-info
46
+ )) {
47
+ background: var(--oc-module, var(--oc-primary));
48
+ color: var(--oc-module-fg, var(--oc-primary-foreground));
49
+ }
50
+ .oc-btn--link:where([data-module], [data-module] *) { color: var(--oc-module, var(--oc-primary)); }
51
+ .oc-btn--soft-primary:where([data-module], [data-module] *) { --oc-btn-tone: var(--oc-module, var(--oc-primary)); }
52
+
53
+ /* Badge: only a badge that carries data-module itself (solid) or variant="module" (soft tint, module text). */
54
+ .oc-badge[data-module]:not(:where(
55
+ .oc-badge--secondary, .oc-badge--outline, .oc-badge--success, .oc-badge--warning, .oc-badge--destructive, .oc-badge--info, .oc-badge--module
56
+ )) {
57
+ background: var(--oc-module, var(--oc-primary));
58
+ color: var(--oc-module-fg, var(--oc-primary-foreground));
59
+ }
60
+ .oc-badge--module {
61
+ background: var(--oc-module-soft, color-mix(in oklab, var(--oc-module, var(--oc-primary)) 12%, transparent));
62
+ color: var(--oc-module, var(--oc-primary));
63
+ border-color: color-mix(in oklab, var(--oc-module, var(--oc-primary)) 35%, transparent);
64
+ }
65
+
66
+ /* Active tab: the line (or the pill text) in the module colour. */
67
+ .oc-tab-trigger:where([data-module] *):is(.is-active, [aria-selected="true"]),
68
+ .oc-tabset:where([data-module], [data-module] *) .oc-tab-trigger:has(input:checked) {
69
+ border-bottom-color: var(--oc-module, var(--oc-primary));
70
+ }
71
+ .oc-tab-list--vertical .oc-tab-trigger:where([data-module] *):is(.is-active, [aria-selected="true"]),
72
+ .oc-tabset:where([data-module], [data-module] *) .oc-tab-list--vertical .oc-tab-trigger:has(input:checked) {
73
+ border-bottom-color: transparent;
74
+ border-right-color: var(--oc-module, var(--oc-primary));
75
+ }
76
+ .oc-tab-list--pill .oc-tab-trigger:where([data-module] *):is(.is-active, [aria-selected="true"]),
77
+ .oc-tabset:where([data-module], [data-module] *) .oc-tab-list--pill .oc-tab-trigger:has(input:checked) {
78
+ color: var(--oc-module, var(--oc-primary));
79
+ }
80
+
81
+ /* Launcher card: hover/current border, tint and icon tile. */
82
+ .oc-launcher:where([data-module], [data-module] *):hover,
83
+ .oc-launcher:where([data-module], [data-module] *):is([aria-current="true"], .is-active) {
84
+ border-color: var(--oc-module, var(--oc-primary));
85
+ }
86
+ .oc-launcher:where([data-module], [data-module] *):is([aria-current="true"], .is-active) {
87
+ background: color-mix(in oklab, var(--oc-module, var(--oc-primary)) 6%, var(--oc-card));
88
+ }
89
+ .oc-launcher:where([data-module], [data-module] *) .oc-launcher-icon {
90
+ color: var(--oc-module, var(--oc-primary));
91
+ background: var(--oc-module-soft);
92
+ }
93
+
94
+ /* Form section: the icon tile (an invalid section keeps its red or orange tile). */
95
+ .oc-form-section:where([data-module], [data-module] *) .oc-form-section__icon {
96
+ color: var(--oc-module, var(--oc-primary));
97
+ background: var(--oc-module-soft);
98
+ }
99
+
100
+ /* Sidebar: the current row in a soft module tint (the dark sidebar keeps its own look). */
101
+ .oc-sidebar-menu-button:where([data-module] *):is([aria-current="page"], .is-active) {
102
+ background: var(--oc-module-soft);
103
+ color: var(--oc-module, var(--oc-primary));
104
+ }
105
+
106
+ /* Floating button (0.17.0): small icons (hearts by default) rise behind the label, fade out and drift a little.
107
+ Markup: <button class="oc-btn oc-btn--float"><span class="oc-btn-float" aria-hidden="true"><i></i> x5</span>Donate</button>.
108
+ Another webicon: data-float-icon="mdi:star" (built in) or --oc-btn-float-icon: url("data:image/svg+xml,...") (the wrappers
109
+ set it for any registered webicon). Only transform and opacity animate; no animation with prefers-reduced-motion. */
110
+ .oc-btn--float {
111
+ --oc-btn-float-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.27 2 8.5C2 5.41 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3C19.58 3 22 5.41 22 8.5c0 3.77-3.4 6.86-8.55 11.54z'/%3E%3C/svg%3E");
112
+ position: relative;
113
+ isolation: isolate;
114
+ overflow: hidden;
115
+ }
116
+ .oc-btn--float[data-float-icon="mdi:star"] {
117
+ --oc-btn-float-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.62L12 2L9.19 8.62L2 9.24l5.45 4.73L5.82 21z'/%3E%3C/svg%3E");
118
+ }
119
+ .oc-btn-float {
120
+ position: absolute;
121
+ inset: 0;
122
+ z-index: -1;
123
+ pointer-events: none;
124
+ }
125
+ .oc-btn-float > i {
126
+ position: absolute;
127
+ inset-block-end: -0.75em;
128
+ inset-inline-start: var(--oc-btn-float-x, 50%);
129
+ inline-size: var(--oc-btn-float-size, 0.75em);
130
+ block-size: var(--oc-btn-float-size, 0.75em);
131
+ /* A lighter (or in dark mode darker) tint of the button: the label colour at low strength, so the text stays readable. */
132
+ background: var(--oc-btn-float-color, color-mix(in oklab, currentColor 38%, transparent));
133
+ -webkit-mask: var(--oc-btn-float-icon) center / contain no-repeat;
134
+ mask: var(--oc-btn-float-icon) center / contain no-repeat;
135
+ opacity: 0;
136
+ animation: oc-btn-float-rise var(--oc-btn-float-duration, 3.2s) var(--oc-btn-float-delay, 0s) ease-out infinite;
137
+ }
138
+ .oc-btn-float > i:nth-child(1) { --oc-btn-float-x: 12%; --oc-btn-float-delay: 0s; --oc-btn-float-drift: 0.35em; }
139
+ .oc-btn-float > i:nth-child(2) { --oc-btn-float-x: 32%; --oc-btn-float-delay: 1.3s; --oc-btn-float-drift: -0.3em; --oc-btn-float-size: 0.6em; }
140
+ .oc-btn-float > i:nth-child(3) { --oc-btn-float-x: 52%; --oc-btn-float-delay: 0.6s; --oc-btn-float-drift: 0.25em; --oc-btn-float-size: 0.85em; }
141
+ .oc-btn-float > i:nth-child(4) { --oc-btn-float-x: 72%; --oc-btn-float-delay: 2s; --oc-btn-float-drift: -0.4em; --oc-btn-float-size: 0.65em; }
142
+ .oc-btn-float > i:nth-child(5) { --oc-btn-float-x: 88%; --oc-btn-float-delay: 2.6s; --oc-btn-float-drift: 0.3em; }
143
+
144
+ @keyframes oc-btn-float-rise {
145
+ 0% { opacity: 0; transform: translate(-50%, 0) rotate(-10deg) scale(0.7); }
146
+ 20% { opacity: 1; }
147
+ 100% { opacity: 0; transform: translate(calc(-50% + var(--oc-btn-float-drift, 0.3em)), -3.25em) rotate(12deg) scale(1); }
148
+ }
149
+
150
+ @media (prefers-reduced-motion: reduce) {
151
+ .oc-btn-float > i { animation: none; opacity: 0; }
152
+ }
@@ -69,6 +69,11 @@
69
69
  .oc-name-card__title { flex: 1 1 0; } /* takes the free space and shrinks first (ellipsis), so nothing else wraps */
70
70
  .oc-name-card__body { padding-inline-start: 0.75rem; }
71
71
  }
72
+ /* Very narrow (a phone, nested cards): the amount moves to its own line under the name, so the name keeps room. */
73
+ @container (max-width: 22rem) {
74
+ .oc-name-card__amount { order: 8; flex-basis: 100%; padding-inline-start: 1.5rem; margin-block-start: -0.25rem; font-size: 0.875rem; }
75
+ .oc-name-card__actions { margin-inline-start: 0; }
76
+ }
72
77
 
73
78
  @media (prefers-reduced-motion: reduce) {
74
79
  .oc-name-card__head::before { transition: none; }
@@ -13,7 +13,7 @@
13
13
 
14
14
  /* Optional back link row (use .oc-back-link inside, or any link). */
15
15
  .oc-page-header-back { display: flex; }
16
- .oc-page-header-back .oc-back-link { margin-inline-start: -0.75rem; }
16
+ /* The back link is a framed chip: its edge lines up with the title (no negative margin, that was for a bare link). */
17
17
 
18
18
  /* Main row: text block + actions. Stacks by default. */
19
19
  .oc-page-header-main { display: flex; flex-direction: column; gap: 0.75rem; }
@@ -0,0 +1,13 @@
1
+ /* File: packages/ui/src/parts/app-recovery-codes-extras.css
2
+ Map: warning with icon -> button icons -> copied feedback (icon swap)
3
+ Recovery codes additions (0.17.0). The base .oc-recovery-codes lives in components.css.
4
+ The warning can start with an icon (mdi:alert-outline); the buttons carry icons (copy, download, print). After
5
+ copying, the copy button shows the copied label (and mdi:check); .oc-recovery-codes-status announces it. */
6
+
7
+ .oc-recovery-codes-warning { display: flex; align-items: flex-start; gap: 0.375rem; }
8
+ .oc-recovery-codes-warning > svg { flex: none; inline-size: 1.25em; block-size: 1.25em; margin-block-start: -0.05em; color: var(--oc-warning); }
9
+ .oc-recovery-codes-actions .oc-btn { gap: 0.375rem; }
10
+ .oc-recovery-codes-actions .oc-btn > svg { inline-size: 1.1em; block-size: 1.1em; flex: none; }
11
+ .oc-recovery-codes-actions .oc-btn.is-copied { color: var(--oc-success); }
12
+ .oc-recovery-codes-actions .oc-btn:not(.is-copied) > .oc-recovery-codes-icon-copied,
13
+ .oc-recovery-codes-actions .oc-btn.is-copied > .oc-recovery-codes-icon-copy { display: none; }