@birdycom/omniaui 0.14.3 → 0.15.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.
- package/dist/components.css +120 -37
- package/dist/components.min.css +1 -1
- package/dist/fly.js +47 -8
- package/dist/parts/app-titlebar.css +1 -1
- package/dist/parts/media-glass-liquid.css +19 -5
- package/dist/parts/media-glass.css +21 -11
- package/dist/parts/site-cards.css +1 -1
- package/dist/parts/site-fly.css +16 -8
- package/dist/parts/site-header-progress.css +29 -0
- package/dist/parts/site-link-arrow.css +2 -2
- package/dist/parts/site-next-teaser.css +2 -2
- package/dist/parts/site-price-card.css +2 -2
- package/dist/parts/site-project-card.css +1 -1
- package/dist/showcase.css +3 -3
- package/package.json +2 -2
- package/snippets/theme-switch.html +7 -0
package/dist/fly.js
CHANGED
|
@@ -3,10 +3,15 @@
|
|
|
3
3
|
// Cards that fly in (.oc-reveal--fly): each card starts from the middle of its row (--oc-fly-x) and flies to its place
|
|
4
4
|
// when it scrolls into view (.is-visible). Adds .oc-fly-ready on <html> first, so without this script, or with
|
|
5
5
|
// "reduce motion", nothing is hidden.
|
|
6
|
-
// Options (CSS custom properties on a card or a parent, and
|
|
6
|
+
// Options (CSS custom properties on a card or a parent, and attributes):
|
|
7
7
|
// --oc-fly-step: 45px start offset per column from the middle of the row (instead of the full distance)
|
|
8
8
|
// --oc-fly-stagger: 90ms delay per column, so a row lands from left to right
|
|
9
9
|
// data-oc-fly-repeat the cards fly out again when they leave the view (both scroll directions)
|
|
10
|
+
// data-oc-fly-random each card comes (and goes) on its own: a new random delay and start offset every time,
|
|
11
|
+
// instead of row by row. The value is the longest delay in ms (default 700).
|
|
12
|
+
// data-oc-fly-trigger how far the card must scroll into view before it flies in: % of the view from the bottom
|
|
13
|
+
// (default 10; 25 = a quarter of the screen higher, so you scroll a bit further first).
|
|
14
|
+
// Timing in CSS (parts/site-fly.css): --oc-fly-duration, --oc-fly-fade, --oc-fly-ease, --oc-fly-rise, --oc-fly-blur.
|
|
10
15
|
|
|
11
16
|
/** Index of the card in its row (cards with the same top in the same parent) and the number of cards in that row. */
|
|
12
17
|
function rowOf(card) {
|
|
@@ -32,6 +37,17 @@ function num(value, unitS = false) {
|
|
|
32
37
|
return unitS && /\ds$/.test(v) ? n * 1000 : n;
|
|
33
38
|
}
|
|
34
39
|
|
|
40
|
+
/**
|
|
41
|
+
* data-oc-fly-random: a new random delay (0 to the value of the attribute, default 700ms) and a random start offset
|
|
42
|
+
* (left or right, up to two steps or 90px), so the cards of one row do not move together.
|
|
43
|
+
*/
|
|
44
|
+
function shuffle(card, holder, step) {
|
|
45
|
+
const max = num(holder.getAttribute("data-oc-fly-random")) || 700;
|
|
46
|
+
const reach = Math.max(step * 2, 90);
|
|
47
|
+
card.style.setProperty("--oc-fly-delay", `${Math.round(Math.random() * max)}ms`);
|
|
48
|
+
card.style.setProperty("--oc-fly-x", `${Math.round((Math.random() * 2 - 1) * reach)}px`);
|
|
49
|
+
}
|
|
50
|
+
|
|
35
51
|
/** Let every .oc-reveal--fly under scope fly in once it comes into view. Returns a function that stops watching. */
|
|
36
52
|
export function initFly(scope = document) {
|
|
37
53
|
const doc = scope.ownerDocument || scope;
|
|
@@ -48,21 +64,44 @@ export function initFly(scope = document) {
|
|
|
48
64
|
card.style.setProperty("--oc-fly-x", `${flyOffset(card, num(style.getPropertyValue("--oc-fly-step")), index, count)}px`);
|
|
49
65
|
const stagger = num(style.getPropertyValue("--oc-fly-stagger"), true);
|
|
50
66
|
if (stagger) card.style.setProperty("--oc-fly-delay", `${index * stagger}ms`);
|
|
67
|
+
const random = card.closest("[data-oc-fly-random]");
|
|
68
|
+
if (random) shuffle(card, random, num(style.getPropertyValue("--oc-fly-step")));
|
|
51
69
|
}
|
|
52
70
|
doc.documentElement.classList.add("oc-fly-ready");
|
|
53
|
-
const
|
|
71
|
+
const timers = new WeakMap();
|
|
72
|
+
const onEntries = (entries, io) => {
|
|
54
73
|
for (const entry of entries) {
|
|
55
74
|
const repeat = entry.target.closest("[data-oc-fly-repeat]");
|
|
75
|
+
const random = entry.target.closest("[data-oc-fly-random]");
|
|
76
|
+
// Random: a new delay and offset on every turn, also when the card flies out again.
|
|
77
|
+
if (random && (entry.isIntersecting || repeat)) {
|
|
78
|
+
shuffle(entry.target, random, num(win.getComputedStyle(entry.target).getPropertyValue("--oc-fly-step")));
|
|
79
|
+
}
|
|
80
|
+
const card = entry.target;
|
|
81
|
+
win.clearTimeout(timers.get(card));
|
|
56
82
|
if (entry.isIntersecting) {
|
|
57
|
-
|
|
58
|
-
|
|
83
|
+
// .is-flying keeps the fly timing until the card stands still; then its own transition (hover) is back.
|
|
84
|
+
card.classList.add("is-visible", "is-flying");
|
|
85
|
+
const style = win.getComputedStyle(card);
|
|
86
|
+
const time = num(style.getPropertyValue("--oc-fly-delay"), true)
|
|
87
|
+
+ Math.max(num(style.getPropertyValue("--oc-fly-duration"), true) || 900, num(style.getPropertyValue("--oc-fly-fade"), true) || 600);
|
|
88
|
+
timers.set(card, win.setTimeout(() => card.classList.remove("is-flying"), time + 80));
|
|
89
|
+
if (!repeat) io.unobserve(card);
|
|
59
90
|
} else if (repeat) {
|
|
60
|
-
|
|
91
|
+
card.classList.remove("is-visible", "is-flying");
|
|
61
92
|
}
|
|
62
93
|
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
94
|
+
};
|
|
95
|
+
// One observer per trigger line (data-oc-fly-trigger = % of the view from the bottom, default 10).
|
|
96
|
+
const observers = new Map();
|
|
97
|
+
for (const card of cards) {
|
|
98
|
+
const trigger = Math.min(90, Math.max(0, num(card.closest("[data-oc-fly-trigger]")?.getAttribute("data-oc-fly-trigger") ?? "10")));
|
|
99
|
+
if (!observers.has(trigger)) {
|
|
100
|
+
observers.set(trigger, new win.IntersectionObserver(onEntries, { rootMargin: `0px 0px -${trigger}% 0px`, threshold: 0.12 }));
|
|
101
|
+
}
|
|
102
|
+
observers.get(trigger).observe(card);
|
|
103
|
+
}
|
|
104
|
+
return () => observers.forEach((io) => io.disconnect());
|
|
66
105
|
}
|
|
67
106
|
|
|
68
107
|
// Starts on its own as /js/oc-fly.js (`npx omniaui copy-js`), with ?auto in the URL or data-oc-auto on the tag.
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
text-overflow: ellipsis;
|
|
49
49
|
white-space: nowrap;
|
|
50
50
|
}
|
|
51
|
-
.oc-titlebar__subtitle::before { content: "
|
|
51
|
+
.oc-titlebar__subtitle::before { content: "\0000b7"; margin-inline-end: 8px; }
|
|
52
52
|
/* Window buttons sit in the top right corner (as on a desktop window), not centred on the title line. */
|
|
53
53
|
.oc-titlebar__actions { display: flex; flex: none; align-self: flex-start; align-items: flex-start; margin-inline-start: auto; }
|
|
54
54
|
|
|
@@ -13,17 +13,30 @@
|
|
|
13
13
|
--oc-liquid-blur: 5px;
|
|
14
14
|
position: relative;
|
|
15
15
|
isolation: isolate;
|
|
16
|
-
background:
|
|
16
|
+
background: none;
|
|
17
17
|
border: 1px solid var(--oc-liquid-edge);
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
box-shadow: 0 10px 30px -10px oklch(0% 0 0deg / 0.35);
|
|
19
|
+
}
|
|
20
|
+
/* The lens itself sits on ::after behind the content (not on the element: backdrop-filter there would trap a
|
|
21
|
+
position: fixed tooltip inside). Light enters at the top left and leaves at the bottom right; a soft glow runs
|
|
22
|
+
along the inner edge, so the sheet reads as a thick, clear lens rather than frosted plastic. */
|
|
23
|
+
.oc-glass.oc-glass--liquid::after,
|
|
24
|
+
.oc-glass--liquid::after,
|
|
25
|
+
.oc-glass-bar::after,
|
|
26
|
+
.oc-site-header--glass .oc-site-header__inner::after {
|
|
27
|
+
content: "";
|
|
28
|
+
position: absolute;
|
|
29
|
+
inset: 0;
|
|
30
|
+
z-index: -1;
|
|
31
|
+
border-radius: inherit;
|
|
32
|
+
background: var(--oc-liquid-tint);
|
|
20
33
|
box-shadow:
|
|
21
|
-
0 10px 30px -10px oklch(0% 0 0deg / 0.35),
|
|
22
34
|
inset 2px 2px 1px -2px oklch(100% 0 0deg / 0.95),
|
|
23
35
|
inset -2px -2px 1px -2px oklch(100% 0 0deg / 0.7),
|
|
24
36
|
inset 0 0 10px 1px oklch(100% 0 0deg / 0.22),
|
|
25
37
|
inset 0 -8px 16px -12px oklch(100% 0 0deg / 0.35);
|
|
26
38
|
backdrop-filter: blur(var(--oc-liquid-blur)) saturate(1.9) brightness(1.1) contrast(1.05);
|
|
39
|
+
pointer-events: none;
|
|
27
40
|
}
|
|
28
41
|
/* Specular rim: bright on the top-left and bottom-right edge, only on the border ring. */
|
|
29
42
|
.oc-glass--liquid::before,
|
|
@@ -89,7 +102,8 @@
|
|
|
89
102
|
|
|
90
103
|
/* Less transparency asked for, or no backdrop-filter: a solid bar that still reads as one. */
|
|
91
104
|
@media (prefers-reduced-transparency: reduce) {
|
|
92
|
-
.oc-glass--liquid, .oc-glass-bar { --oc-liquid-tint: var(--oc-card);
|
|
105
|
+
.oc-glass--liquid, .oc-glass-bar { --oc-liquid-tint: var(--oc-card); }
|
|
106
|
+
.oc-glass--liquid::after, .oc-glass-bar::after { backdrop-filter: none; }
|
|
93
107
|
}
|
|
94
108
|
@supports not (backdrop-filter: blur(1px)) {
|
|
95
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)); }
|
|
@@ -19,19 +19,32 @@
|
|
|
19
19
|
--oc-glass-panel-radius: 14px;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
/* Sheet: the outer glass surface (a widget, a floating panel, a dialog over a photo).
|
|
22
|
+
/* Sheet: the outer glass surface (a widget, a floating panel, a dialog over a photo).
|
|
23
|
+
The blur and tint sit on a ::after layer behind the content, not on the sheet itself: an element with
|
|
24
|
+
backdrop-filter becomes the containing block of position: fixed children, so a tooltip inside would be trapped
|
|
25
|
+
on the sheet instead of next to its anchor. */
|
|
23
26
|
.oc-glass {
|
|
24
27
|
position: relative;
|
|
28
|
+
isolation: isolate;
|
|
25
29
|
color: var(--oc-foreground);
|
|
26
|
-
background: var(--oc-glass-sheet);
|
|
27
30
|
border: 1px solid var(--oc-glass-edge);
|
|
28
31
|
border-radius: var(--oc-glass-radius);
|
|
29
|
-
box-shadow: var(--oc-glass-shadow)
|
|
30
|
-
backdrop-filter: blur(var(--oc-glass-blur)) saturate(1.5);
|
|
32
|
+
box-shadow: var(--oc-glass-shadow);
|
|
31
33
|
/* OmniaUI cards inside become glass panels too. */
|
|
32
34
|
--oc-card-background: var(--oc-glass-panel);
|
|
33
35
|
--oc-card-border: var(--oc-glass-edge);
|
|
34
36
|
}
|
|
37
|
+
.oc-glass::after {
|
|
38
|
+
content: "";
|
|
39
|
+
position: absolute;
|
|
40
|
+
inset: 0;
|
|
41
|
+
z-index: -1;
|
|
42
|
+
border-radius: inherit;
|
|
43
|
+
background: var(--oc-glass-sheet);
|
|
44
|
+
box-shadow: inset 0 1px 0 var(--oc-glass-edge-hi);
|
|
45
|
+
backdrop-filter: blur(var(--oc-glass-blur)) saturate(1.5);
|
|
46
|
+
pointer-events: none;
|
|
47
|
+
}
|
|
35
48
|
|
|
36
49
|
/* Panel: a lighter layer inside a sheet (a group of settings, a meter, a list). */
|
|
37
50
|
.oc-glass-panel {
|
|
@@ -47,15 +60,12 @@
|
|
|
47
60
|
}
|
|
48
61
|
|
|
49
62
|
/* Strong: more opaque, for text-heavy panels or a hovered row. */
|
|
50
|
-
.oc-glass--strong,
|
|
63
|
+
.oc-glass--strong::after,
|
|
51
64
|
.oc-glass-panel--strong { background: var(--oc-glass-panel-strong); }
|
|
52
65
|
|
|
53
66
|
/* Flat: a frameless desktop window where the OS draws the blur (acrylic, vibrancy): no own blur, no drop shadow. */
|
|
54
|
-
.oc-glass--flat {
|
|
55
|
-
|
|
56
|
-
box-shadow: inset 0 1px 0 var(--oc-glass-edge-hi);
|
|
57
|
-
backdrop-filter: none;
|
|
58
|
-
}
|
|
67
|
+
.oc-glass--flat { border-radius: 8px; box-shadow: none; }
|
|
68
|
+
.oc-glass--flat::after { backdrop-filter: none; }
|
|
59
69
|
|
|
60
70
|
/* Hairline divider in glass (sections, header). */
|
|
61
71
|
.oc-glass-divider { block-size: 1px; margin: 0; border: 0; background: var(--oc-glass-hairline); }
|
|
@@ -67,5 +77,5 @@
|
|
|
67
77
|
--oc-glass-panel: var(--oc-card);
|
|
68
78
|
--oc-glass-panel-strong: var(--oc-muted);
|
|
69
79
|
}
|
|
70
|
-
.oc-glass { backdrop-filter: none; }
|
|
80
|
+
.oc-glass::after { backdrop-filter: none; }
|
|
71
81
|
}
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
font-size: 0.9rem;
|
|
62
62
|
font-weight: 600;
|
|
63
63
|
}
|
|
64
|
-
.oc-link-card__more::after { content: "
|
|
64
|
+
.oc-link-card__more::after { content: "\002192"; transition: translate 0.25s var(--oc-ease-out, ease); }
|
|
65
65
|
.oc-link-card:hover .oc-link-card__more::after { translate: 4px 0; }
|
|
66
66
|
|
|
67
67
|
/* Icon list: rows with an icon in a frame. --points: an icon tile next to a title and a text, without frames. */
|
package/dist/parts/site-fly.css
CHANGED
|
@@ -4,21 +4,29 @@
|
|
|
4
4
|
70px lower, smaller and tilted, and land in their place. Without fly.js (html.oc-fly-ready is missing) or with
|
|
5
5
|
"reduce motion" everything simply stands in its place. Options: --oc-fly-step (offset per column), --oc-fly-stagger
|
|
6
6
|
(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
|
|
7
|
-
transform of the fly-in. Also: a "New" badge in a product card name and short syntax classes for a code window.
|
|
7
|
+
transform of the fly-in. Also: a "New" badge in a product card name and short syntax classes for a code window.
|
|
8
|
+
Timing (on the grid or a card): --oc-fly-duration (movement, 0.9s), --oc-fly-fade (opacity, 0.6s), --oc-fly-ease,
|
|
9
|
+
--oc-fly-rise (start lower, 70px) and --oc-fly-blur (start blurred, 0px). Later trigger: data-oc-fly-trigger (fly.js). */
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
/* The fly timing only while hidden (flying out) and while landing (.is-flying, set by fly.js until the card stands
|
|
12
|
+
still). After that the card's own transition (hover lift, spotlight tilt) is back, so hover stays quick.
|
|
13
|
+
html.oc-fly-ready: stronger than a card's own transition rule (e.g. the spotlight card of Pro), which comes later. */
|
|
14
|
+
html.oc-fly-ready .oc-reveal--fly:not(.is-visible),
|
|
15
|
+
html.oc-fly-ready .oc-reveal--fly.is-flying {
|
|
16
|
+
/* --oc-fly-delay: set per card by fly.js from --oc-fly-stagger (delay per column) or data-oc-fly-random. */
|
|
11
17
|
transition:
|
|
12
|
-
opacity 0.6s var(--oc-ease-out, ease) var(--oc-fly-delay, 0s),
|
|
13
|
-
transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--oc-fly-delay, 0s),
|
|
18
|
+
opacity var(--oc-fly-fade, 0.6s) var(--oc-ease-out, ease) var(--oc-fly-delay, 0s),
|
|
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
|
+
filter var(--oc-fly-fade, 0.6s) var(--oc-ease-out, ease) var(--oc-fly-delay, 0s),
|
|
14
21
|
border-color 0.35s;
|
|
15
22
|
}
|
|
16
|
-
.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
23
|
+
html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
17
24
|
opacity: 0;
|
|
18
|
-
|
|
25
|
+
filter: blur(var(--oc-fly-blur, 0px));
|
|
26
|
+
transform: perspective(900px) translate3d(var(--oc-fly-x, 0), var(--oc-fly-rise, 70px), 0) scale(0.9) rotateX(14deg);
|
|
19
27
|
}
|
|
20
28
|
@media (prefers-reduced-motion: reduce) {
|
|
21
|
-
.oc-fly-ready .oc-reveal--fly:not(.is-visible) { opacity: 1; transform: none; }
|
|
29
|
+
html.oc-fly-ready .oc-reveal--fly:not(.is-visible) { opacity: 1; filter: none; transform: none; }
|
|
22
30
|
}
|
|
23
31
|
|
|
24
32
|
/* "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> */
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* File: packages/ui/src/parts/site-header-progress.css */
|
|
2
|
+
/* Map: thin line at the bottom of the site header -> fills with the scroll position of the page (no JS) -> fallback */
|
|
3
|
+
/* Reading progress in the site header: put <span class="oc-site-header__progress" aria-hidden="true"></span> inside
|
|
4
|
+
.oc-site-header (sticky, so it is the containing block). A thin gradient line at the bottom of the header fills from
|
|
5
|
+
left to right while you scroll the page: a scroll-driven animation, no JS. Browsers without scroll-driven animations
|
|
6
|
+
simply do not show it. Options: --oc-header-progress-height (3px) and --oc-header-progress-color (brand gradient). */
|
|
7
|
+
|
|
8
|
+
.oc-site-header__progress {
|
|
9
|
+
display: none;
|
|
10
|
+
position: absolute;
|
|
11
|
+
inset-inline: 0;
|
|
12
|
+
inset-block-end: -1px;
|
|
13
|
+
block-size: var(--oc-header-progress-height, 3px);
|
|
14
|
+
background: var(--oc-header-progress-color, linear-gradient(90deg, var(--oc-brand-1), var(--oc-brand-2), var(--oc-brand-3)));
|
|
15
|
+
border-radius: 0 999px 999px 0;
|
|
16
|
+
transform: scaleX(0);
|
|
17
|
+
transform-origin: 0 50%;
|
|
18
|
+
pointer-events: none;
|
|
19
|
+
}
|
|
20
|
+
@supports (animation-timeline: scroll()) {
|
|
21
|
+
.oc-site-header__progress {
|
|
22
|
+
display: block;
|
|
23
|
+
animation: oc-header-progress linear both;
|
|
24
|
+
animation-timeline: scroll(root);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
@keyframes oc-header-progress {
|
|
28
|
+
to { transform: scaleX(1); }
|
|
29
|
+
}
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
|
|
13
13
|
/* Back link: the arrow points left, sits before the text and moves left on hover. */
|
|
14
14
|
.oc-link-arrow--back::after { content: none; }
|
|
15
|
-
.oc-link-arrow--back::before { content: "
|
|
15
|
+
.oc-link-arrow--back::before { content: "\002190"; transition: translate 0.2s var(--oc-ease-out); }
|
|
16
16
|
.oc-link-arrow--back:is(:hover, :focus-visible)::before { translate: -4px 0; }
|
|
17
17
|
|
|
18
18
|
/* External link: diagonal arrow that moves up-right. */
|
|
19
|
-
.oc-link-arrow--external::after { content: "
|
|
19
|
+
.oc-link-arrow--external::after { content: "\002197"; }
|
|
20
20
|
.oc-link-arrow--external:is(:hover, :focus-visible)::after { translate: 3px -3px; }
|
|
21
21
|
|
|
22
22
|
/* Colors: accent of the element, or muted text that turns to the foreground color on hover. */
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
color: var(--oc-muted-foreground);
|
|
47
47
|
}
|
|
48
48
|
.oc-next-teaser__tagline::after {
|
|
49
|
-
content: "
|
|
49
|
+
content: "\002192";
|
|
50
50
|
color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
51
51
|
transition: translate 0.25s var(--oc-ease-out);
|
|
52
52
|
}
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
/* Previous: the arrow points left and sits before the tagline. */
|
|
55
55
|
.oc-next-teaser--prev .oc-next-teaser__tagline::after { content: none; }
|
|
56
56
|
.oc-next-teaser--prev .oc-next-teaser__tagline::before {
|
|
57
|
-
content: "
|
|
57
|
+
content: "\002190";
|
|
58
58
|
color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h));
|
|
59
59
|
transition: translate 0.25s var(--oc-ease-out);
|
|
60
60
|
}
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
font-size: 0.92rem;
|
|
70
70
|
}
|
|
71
71
|
.oc-price-card__feature { display: flex; align-items: baseline; gap: 0.55rem; }
|
|
72
|
-
.oc-price-card__feature::before { content: "
|
|
72
|
+
.oc-price-card__feature::before { content: "\002713"; flex-shrink: 0; color: var(--oc-success); font-weight: 700; }
|
|
73
73
|
.oc-price-card__feature--excluded { color: var(--oc-muted-foreground); }
|
|
74
|
-
.oc-price-card__feature--excluded::before { content: "
|
|
74
|
+
.oc-price-card__feature--excluded::before { content: "\002715"; color: var(--oc-muted-foreground); font-weight: 400; }
|
|
75
75
|
|
|
76
76
|
.oc-price-card__cta { inline-size: 100%; }
|
|
77
77
|
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
font-size: 0.9rem;
|
|
94
94
|
font-weight: 600;
|
|
95
95
|
}
|
|
96
|
-
.oc-project-card__more::after { content: "
|
|
96
|
+
.oc-project-card__more::after { content: "\002192"; transition: translate 0.25s var(--oc-ease-out); }
|
|
97
97
|
|
|
98
98
|
/* Hover / focus: lift, accent border, zoom the shot a little, move the arrow. */
|
|
99
99
|
.oc-project-card:is(a, [tabindex]):hover {
|
package/dist/showcase.css
CHANGED
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
font-weight: 600;
|
|
78
78
|
text-decoration: none;
|
|
79
79
|
}
|
|
80
|
-
.oc-link-arrow::after { content: "
|
|
80
|
+
.oc-link-arrow::after { content: "\002192"; transition: translate 0.2s var(--oc-ease-out); }
|
|
81
81
|
.oc-link-arrow:hover::after { translate: 4px 0; }
|
|
82
82
|
|
|
83
83
|
/* Backdrop: slowly drifting color blobs + fine grid behind the page.
|
|
@@ -282,7 +282,7 @@
|
|
|
282
282
|
.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; }
|
|
283
283
|
.oc-product-card__summary { margin: 0; color: var(--oc-muted-foreground); font-size: 0.95rem; flex-grow: 1; }
|
|
284
284
|
.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; }
|
|
285
|
-
.oc-product-card__more::after { content: "
|
|
285
|
+
.oc-product-card__more::after { content: "\002192"; transition: translate 0.25s var(--oc-ease-out); }
|
|
286
286
|
.oc-product-card:hover .oc-product-card__more::after { translate: 5px 0; }
|
|
287
287
|
|
|
288
288
|
/* Pill badge (neutral) and accent pill + pulsing status dot */
|
|
@@ -416,7 +416,7 @@
|
|
|
416
416
|
.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; }
|
|
417
417
|
.oc-check-list { display: grid; gap: 0.5rem; margin: 1.1rem 0 0; padding: 0; list-style: none; font-size: 0.93rem; }
|
|
418
418
|
.oc-check-list > li { display: flex; gap: 0.5rem; align-items: baseline; }
|
|
419
|
-
.oc-check-list > li::before { content: "
|
|
419
|
+
.oc-check-list > li::before { content: "\002713"; color: var(--oc-brand-1); font-weight: 700; }
|
|
420
420
|
|
|
421
421
|
/* Site header: sticky; turns into glass after scrolling (scroll-driven animation, no JS).
|
|
422
422
|
Mobile menu: <button popovertarget="site-nav"> + <nav id="site-nav" popover> — no JS either. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@birdycom/omniaui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "OmniaUI components: CSS-first UI built on native HTML (dialog, popover, details) with light-dark() theming — no JavaScript required. Includes the omniaui CLI (add/list).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"omniaui": "./bin/omniaui.mjs"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
|
-
"@birdycom/omniacss": "^0.
|
|
68
|
+
"@birdycom/omniacss": "^0.15.0"
|
|
69
69
|
},
|
|
70
70
|
"peerDependenciesMeta": {
|
|
71
71
|
"@birdycom/omniacss": {
|
|
@@ -4,3 +4,10 @@
|
|
|
4
4
|
<label><input type="radio" name="oc-theme" value="light"> Light</label>
|
|
5
5
|
<label><input type="radio" name="oc-theme" value="dark"> Dark</label>
|
|
6
6
|
</fieldset>
|
|
7
|
+
|
|
8
|
+
<!-- With icons only (the text stays for screen readers): -->
|
|
9
|
+
<fieldset class="oc-theme-switch oc-theme-switch--icons" aria-label="Color theme">
|
|
10
|
+
<label title="System"><input type="radio" name="oc-theme" value="system" checked><iconify-icon icon="mdi:monitor" aria-hidden="true"></iconify-icon><span class="oc-theme-switch__text">System</span></label>
|
|
11
|
+
<label title="Light"><input type="radio" name="oc-theme" value="light"><iconify-icon icon="mdi:white-balance-sunny" aria-hidden="true"></iconify-icon><span class="oc-theme-switch__text">Light</span></label>
|
|
12
|
+
<label title="Dark"><input type="radio" name="oc-theme" value="dark"><iconify-icon icon="mdi:weather-night" aria-hidden="true"></iconify-icon><span class="oc-theme-switch__text">Dark</span></label>
|
|
13
|
+
</fieldset>
|