@birdycom/omniaui 0.12.6 → 0.14.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/bin/lib/copy-js.mjs +5 -1
- package/dist/components.css +1194 -45
- package/dist/components.min.css +1 -1
- package/dist/contact-form.d.ts +5 -0
- package/dist/contact-form.js +138 -0
- package/dist/fly.d.ts +4 -0
- package/dist/fly.js +80 -0
- package/dist/form-extras.d.ts +3 -1
- package/dist/form-extras.js +21 -3
- package/dist/oc-theme.css +3 -1
- package/dist/particles.d.ts +14 -0
- package/dist/particles.js +133 -0
- package/dist/parts/app-accordion-accent.css +18 -1
- package/dist/parts/app-callout.css +20 -0
- package/dist/parts/app-group.css +36 -0
- package/dist/parts/app-result.css +39 -0
- package/dist/parts/data-graph.css +132 -0
- package/dist/parts/data-meter-row.css +56 -3
- package/dist/parts/data-reading.css +26 -0
- package/dist/parts/forms-form.css +76 -0
- package/dist/parts/forms-language-select.css +18 -0
- package/dist/parts/media-lightbox.css +4 -0
- package/dist/parts/nav-menu-static.css +50 -0
- package/dist/parts/site-backgrounds.css +68 -0
- package/dist/parts/site-base.css +33 -0
- package/dist/parts/site-brand-mark.css +56 -0
- package/dist/parts/site-cards.css +184 -0
- package/dist/parts/site-fly.css +40 -0
- package/dist/parts/site-layout.css +69 -0
- package/dist/parts/site-neon.css +33 -0
- package/dist/parts/site-panel.css +29 -0
- package/dist/parts/site-prose.css +12 -0
- package/dist/parts/utility-hover.css +44 -0
- package/dist/showcase.css +83 -19
- package/manifest.json +136 -0
- package/package.json +5 -2
- package/snippets/accordion-accent.html +22 -0
- package/snippets/backgrounds.html +18 -0
- package/snippets/brand-mark.html +41 -0
- package/snippets/callout.html +17 -0
- package/snippets/feature-card.html +52 -0
- package/snippets/fly-in.html +30 -0
- package/snippets/graph.html +41 -0
- package/snippets/group.html +34 -0
- package/snippets/hover-effects.html +19 -0
- package/snippets/icon-list.html +28 -0
- package/snippets/language-select.html +11 -0
- package/snippets/lazy.html +7 -7
- package/snippets/menu-static.html +36 -0
- package/snippets/meter-row.html +22 -0
- package/snippets/name-card.html +4 -4
- package/snippets/neon.html +18 -0
- package/snippets/page-sections.html +50 -0
- package/snippets/panel.html +18 -0
- package/snippets/particle-field.html +14 -0
- package/snippets/reading.html +25 -0
- package/snippets/result.html +31 -0
- package/snippets/ribbon.html +8 -8
- package/snippets/shot-grid.html +27 -0
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/* File: packages/ui/src/parts/site-cards.css */
|
|
2
|
+
/* Map: feature card -> link card -> icon list (+ points) -> accent list + note -> badge row + accent tagline
|
|
3
|
+
-> screenshot grid -> browser frame glow + mark */
|
|
4
|
+
/* Cards and lists for the pages of a company site: services and features (icon tile + title + text), cards that are
|
|
5
|
+
links, a list of icon rows in frames (or as points with a title), a list with markers in the accent color, a small
|
|
6
|
+
note, a row of badges, a tagline in the accent color, a grid of screenshots that open in the lightbox, and a browser
|
|
7
|
+
frame with a glow in the accent color and a product mark on it. */
|
|
8
|
+
|
|
9
|
+
/* Feature / service card: tile, title, text; a quiet hover. In an .oc-card-grid (--oc-card-min sets the column width). */
|
|
10
|
+
.oc-feature-card {
|
|
11
|
+
padding: 1.6rem;
|
|
12
|
+
border: 1px solid var(--oc-border);
|
|
13
|
+
border-radius: var(--oc-radius-lg, 1.25rem);
|
|
14
|
+
background: var(--oc-surface);
|
|
15
|
+
transition: border-color 0.3s, background 0.3s;
|
|
16
|
+
}
|
|
17
|
+
.oc-feature-card:hover {
|
|
18
|
+
border-color: var(--oc-border-strong);
|
|
19
|
+
background: var(--oc-surface-strong);
|
|
20
|
+
}
|
|
21
|
+
.oc-feature-card > .oc-icon-tile { margin-block-end: 1.1rem; }
|
|
22
|
+
.oc-feature-card__title {
|
|
23
|
+
margin: 0 0 0.6rem;
|
|
24
|
+
font-family: var(--oc-font-display, inherit);
|
|
25
|
+
font-size: 1.2rem;
|
|
26
|
+
line-height: 1.25;
|
|
27
|
+
}
|
|
28
|
+
.oc-feature-card__text {
|
|
29
|
+
margin: 0;
|
|
30
|
+
color: var(--oc-muted-foreground);
|
|
31
|
+
font-size: 0.95rem;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Card that is a link (an agent, a tool, a document): tile, title, text and a "more" line; hover in the accent color. */
|
|
35
|
+
.oc-link-card {
|
|
36
|
+
display: grid;
|
|
37
|
+
align-content: start;
|
|
38
|
+
gap: 0.4rem;
|
|
39
|
+
padding: 1.25rem;
|
|
40
|
+
border: 1px solid var(--oc-border);
|
|
41
|
+
border-radius: var(--oc-radius-lg, 1.25rem);
|
|
42
|
+
background: var(--oc-surface);
|
|
43
|
+
color: var(--oc-foreground);
|
|
44
|
+
text-decoration: none;
|
|
45
|
+
transition: border-color 0.3s, background 0.3s;
|
|
46
|
+
}
|
|
47
|
+
/* --oc-link-card-hover: the hover color alone (without an accent preset, so the tile keeps its own color). */
|
|
48
|
+
.oc-link-card:hover {
|
|
49
|
+
border-color: oklch(from var(--oc-link-card-hover, var(--oc-accent-from)) l c h / 0.5);
|
|
50
|
+
background: var(--oc-surface-strong);
|
|
51
|
+
}
|
|
52
|
+
.oc-link-card:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: 2px; }
|
|
53
|
+
.oc-link-card > .oc-icon-tile { margin-block-end: 0.4rem; }
|
|
54
|
+
.oc-link-card__title { font-family: var(--oc-font-display, inherit); font-weight: 700; }
|
|
55
|
+
.oc-link-card__text { color: var(--oc-muted-foreground); font-size: 0.93rem; }
|
|
56
|
+
.oc-link-card__more {
|
|
57
|
+
display: inline-flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
gap: 0.35rem;
|
|
60
|
+
margin-block-start: 0.4rem;
|
|
61
|
+
font-size: 0.9rem;
|
|
62
|
+
font-weight: 600;
|
|
63
|
+
}
|
|
64
|
+
.oc-link-card__more::after { content: "→"; transition: translate 0.25s var(--oc-ease-out, ease); }
|
|
65
|
+
.oc-link-card:hover .oc-link-card__more::after { translate: 4px 0; }
|
|
66
|
+
|
|
67
|
+
/* Icon list: rows with an icon in a frame. --points: an icon tile next to a title and a text, without frames. */
|
|
68
|
+
.oc-icon-list {
|
|
69
|
+
display: grid;
|
|
70
|
+
gap: 0.75rem;
|
|
71
|
+
margin: 0;
|
|
72
|
+
padding: 0;
|
|
73
|
+
list-style: none;
|
|
74
|
+
}
|
|
75
|
+
.oc-icon-list > li {
|
|
76
|
+
display: flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
gap: 0.75rem;
|
|
79
|
+
padding: 0.85rem 1rem;
|
|
80
|
+
border: 1px solid var(--oc-border);
|
|
81
|
+
border-radius: var(--oc-radius-md, 0.75rem);
|
|
82
|
+
background: var(--oc-surface);
|
|
83
|
+
}
|
|
84
|
+
.oc-icon-list > li > :is(svg, iconify-icon, .oc-icon) {
|
|
85
|
+
flex: none;
|
|
86
|
+
inline-size: 1.25rem;
|
|
87
|
+
block-size: 1.25rem;
|
|
88
|
+
font-size: 1.25rem;
|
|
89
|
+
color: var(--oc-primary);
|
|
90
|
+
}
|
|
91
|
+
.oc-icon-list--points { gap: 1rem; }
|
|
92
|
+
.oc-icon-list--points > li {
|
|
93
|
+
display: grid;
|
|
94
|
+
grid-template-columns: auto 1fr;
|
|
95
|
+
align-items: start;
|
|
96
|
+
gap: 0.25rem 0.9rem;
|
|
97
|
+
padding: 0;
|
|
98
|
+
border: 0;
|
|
99
|
+
background: none;
|
|
100
|
+
}
|
|
101
|
+
.oc-icon-list--points > li > .oc-icon-tile { grid-row: span 2; }
|
|
102
|
+
.oc-icon-list__title { font-family: var(--oc-font-display, inherit); font-weight: 700; }
|
|
103
|
+
.oc-icon-list__text { color: var(--oc-muted-foreground); font-size: 0.95rem; }
|
|
104
|
+
|
|
105
|
+
/* List with markers in the accent color, and a small note under a block. */
|
|
106
|
+
.oc-list--accent {
|
|
107
|
+
display: grid;
|
|
108
|
+
gap: 0.6rem;
|
|
109
|
+
margin: 0;
|
|
110
|
+
padding-inline-start: 1.1rem;
|
|
111
|
+
list-style: disc;
|
|
112
|
+
color: var(--oc-muted-foreground);
|
|
113
|
+
font-size: 0.95rem;
|
|
114
|
+
}
|
|
115
|
+
.oc-list--accent > li::marker { color: var(--oc-accent-from, var(--oc-primary)); }
|
|
116
|
+
.oc-note {
|
|
117
|
+
margin: 1.25rem 0 0;
|
|
118
|
+
color: var(--oc-muted-foreground);
|
|
119
|
+
font-size: 0.85rem;
|
|
120
|
+
}
|
|
121
|
+
.oc-note--md {
|
|
122
|
+
max-inline-size: 60rem;
|
|
123
|
+
/* The size of the running text around it (the body size of the page). */
|
|
124
|
+
font-size: inherit;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* Row of badges or pills above a title, and a tagline in the accent color (lighter, so it reads on a dark page). */
|
|
128
|
+
.oc-badge-row {
|
|
129
|
+
display: flex;
|
|
130
|
+
flex-wrap: wrap;
|
|
131
|
+
gap: 0.5rem;
|
|
132
|
+
margin-block-end: 1.25rem;
|
|
133
|
+
}
|
|
134
|
+
.oc-tagline--accent {
|
|
135
|
+
margin: 0 0 1rem;
|
|
136
|
+
color: light-dark(var(--oc-accent-from), color-mix(in oklch, var(--oc-accent-from) 55%, white));
|
|
137
|
+
font-size: clamp(1.2rem, 2.5vw, 1.6rem);
|
|
138
|
+
font-weight: 600;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* Screenshot grid: figures with the whole image visible (contain, 16:10 on the card color) and a caption;
|
|
142
|
+
a link or a button around the image opens the lightbox
|
|
143
|
+
(<button command="show-modal" commandfor="<lightbox id>">). A <picture> (animated WebP with a still image) works the same. */
|
|
144
|
+
.oc-shot-grid {
|
|
145
|
+
display: grid;
|
|
146
|
+
grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--oc-shot-min, 18rem)), 1fr));
|
|
147
|
+
gap: 1.25rem;
|
|
148
|
+
}
|
|
149
|
+
.oc-shot {
|
|
150
|
+
margin: 0;
|
|
151
|
+
border: 1px solid var(--oc-border);
|
|
152
|
+
border-radius: var(--oc-radius-lg, 1.25rem);
|
|
153
|
+
overflow: hidden;
|
|
154
|
+
background: var(--oc-surface);
|
|
155
|
+
}
|
|
156
|
+
.oc-shot > :is(a, button) { display: block; inline-size: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
|
|
157
|
+
.oc-shot > :is(a, button):focus-visible { outline: 2px solid var(--oc-ring); outline-offset: -2px; }
|
|
158
|
+
.oc-shot :is(picture) { display: block; }
|
|
159
|
+
.oc-shot img {
|
|
160
|
+
display: block;
|
|
161
|
+
inline-size: 100%;
|
|
162
|
+
aspect-ratio: var(--oc-shot-ratio, 16 / 10);
|
|
163
|
+
object-fit: contain;
|
|
164
|
+
background: var(--oc-card);
|
|
165
|
+
}
|
|
166
|
+
.oc-shot > figcaption {
|
|
167
|
+
padding: 0.8rem 1rem;
|
|
168
|
+
color: var(--oc-muted-foreground);
|
|
169
|
+
font-size: 0.88rem;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* Browser frame with a shadow in the accent color and a product mark on the bottom end corner. */
|
|
173
|
+
.oc-browser-frame--glow {
|
|
174
|
+
position: relative;
|
|
175
|
+
box-shadow: 0 40px 90px -40px color-mix(in srgb, var(--oc-accent-from) 70%, transparent);
|
|
176
|
+
}
|
|
177
|
+
.oc-browser-frame--glow :is(.oc-browser-frame__view, .oc-browser-frame__body) img { transition: scale 0.6s var(--oc-ease-out, ease); }
|
|
178
|
+
.oc-browser-frame--glow:hover :is(.oc-browser-frame__view, .oc-browser-frame__body) img { scale: 1.02; }
|
|
179
|
+
.oc-browser-frame__mark {
|
|
180
|
+
position: absolute;
|
|
181
|
+
inset-block-end: 1rem;
|
|
182
|
+
inset-inline-end: 1rem;
|
|
183
|
+
filter: drop-shadow(0 10px 20px oklch(0 0 0 / 0.6));
|
|
184
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* File: packages/ui/src/parts/site-fly.css */
|
|
2
|
+
/* Map: fly in (only with fly.js) -> visible -> reduced motion -> product card badge -> code window tokens */
|
|
3
|
+
/* Cards that fly in when they scroll into view: they start from the middle of their row (--oc-fly-x, set by fly.js),
|
|
4
|
+
70px lower, smaller and tilted, and land in their place. Without fly.js (html.oc-fly-ready is missing) or with
|
|
5
|
+
"reduce motion" everything simply stands in its place. Options: --oc-fly-step (offset per column), --oc-fly-stagger
|
|
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. */
|
|
8
|
+
|
|
9
|
+
.oc-fly-ready .oc-reveal--fly {
|
|
10
|
+
/* --oc-fly-delay: set per card by fly.js from --oc-fly-stagger (delay per column). */
|
|
11
|
+
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),
|
|
14
|
+
border-color 0.35s;
|
|
15
|
+
}
|
|
16
|
+
.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
|
|
17
|
+
opacity: 0;
|
|
18
|
+
transform: perspective(900px) translate3d(var(--oc-fly-x, 0), 70px, 0) scale(0.9) rotateX(14deg);
|
|
19
|
+
}
|
|
20
|
+
@media (prefers-reduced-motion: reduce) {
|
|
21
|
+
.oc-fly-ready .oc-reveal--fly:not(.is-visible) { opacity: 1; transform: none; }
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* "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> */
|
|
25
|
+
.oc-product-card__badge {
|
|
26
|
+
margin-inline-start: 0.4rem;
|
|
27
|
+
vertical-align: middle;
|
|
28
|
+
font-family: var(--oc-font-sans);
|
|
29
|
+
font-size: 0.7rem;
|
|
30
|
+
letter-spacing: 0.04em;
|
|
31
|
+
text-transform: uppercase;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Short syntax classes for hand-written code in an .oc-code-window: keyword, string, constant, function, muted.
|
|
35
|
+
They take the colors of the window (--oc-syntax-*), so they follow light and dark mode and a theme can change them. */
|
|
36
|
+
.oc-code-window .oc-tok-k { color: var(--oc-syntax-keyword); }
|
|
37
|
+
.oc-code-window .oc-tok-s { color: var(--oc-syntax-string); }
|
|
38
|
+
.oc-code-window .oc-tok-c { color: var(--oc-syntax-constant); }
|
|
39
|
+
.oc-code-window .oc-tok-f { color: var(--oc-syntax-function); }
|
|
40
|
+
.oc-code-window .oc-tok-m { color: var(--oc-syntax-comment); }
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* File: packages/ui/src/parts/site-layout.css */
|
|
2
|
+
/* Map: page hero -> section head / more -> action row -> group title -> band -> meta line */
|
|
3
|
+
/* Page building blocks for a marketing or company site, on top of the showcase classes (.oc-section-pad, .oc-display):
|
|
4
|
+
the larger header of an inner page, a section head and a "see more" row, a row of buttons, a group title with a count,
|
|
5
|
+
a full-width band (for a stat strip) and a meta line (version · date). */
|
|
6
|
+
|
|
7
|
+
/* Inner page header: more room on top, less below, and a larger display title. */
|
|
8
|
+
.oc-section-pad--page { padding-block: clamp(4rem, 10vw, 7rem) clamp(2rem, 5vw, 3rem); }
|
|
9
|
+
.oc-display--page {
|
|
10
|
+
margin-block-end: 1.25rem;
|
|
11
|
+
font-size: clamp(2.5rem, 6.5vw, 4.75rem);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* Head of a section (eyebrow, title, lead) and the row with a "see all" link under the section. */
|
|
15
|
+
.oc-section-head {
|
|
16
|
+
max-inline-size: 46rem;
|
|
17
|
+
margin-block-end: 3rem;
|
|
18
|
+
}
|
|
19
|
+
.oc-section-head--center {
|
|
20
|
+
margin-inline: auto;
|
|
21
|
+
text-align: center;
|
|
22
|
+
}
|
|
23
|
+
.oc-section-more { margin-block-start: 2.5rem; }
|
|
24
|
+
|
|
25
|
+
/* Row of buttons under a text: wraps on a narrow screen. */
|
|
26
|
+
.oc-actions {
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-wrap: wrap;
|
|
29
|
+
gap: 0.75rem;
|
|
30
|
+
margin-block-start: 2rem;
|
|
31
|
+
}
|
|
32
|
+
.oc-actions--center { justify-content: center; }
|
|
33
|
+
.oc-actions--end { justify-content: flex-end; }
|
|
34
|
+
.oc-actions--tight { margin-block-start: 1rem; }
|
|
35
|
+
|
|
36
|
+
/* Title of a group of cards with the number of items in a pill: <h3 class="oc-group-title">Apps <span class="oc-group-title__count">8</span></h3> */
|
|
37
|
+
.oc-group-title {
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
gap: 0.75rem;
|
|
41
|
+
margin: 0 0 1.5rem;
|
|
42
|
+
font-size: 1.4rem;
|
|
43
|
+
}
|
|
44
|
+
.oc-group-title__count {
|
|
45
|
+
padding: 0.1rem 0.6rem;
|
|
46
|
+
border-radius: 999px;
|
|
47
|
+
background: var(--oc-surface-strong);
|
|
48
|
+
color: var(--oc-muted-foreground);
|
|
49
|
+
font-size: 0.85rem;
|
|
50
|
+
font-weight: 500;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Band over the full width of the page with a line above and below; the content stays in its .oc-container.
|
|
54
|
+
Put a .oc-stat-strip--plain in it for a row of key figures. */
|
|
55
|
+
.oc-band {
|
|
56
|
+
border-block: 1px solid var(--oc-border);
|
|
57
|
+
background: var(--oc-band-bg, var(--oc-surface));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* Meta line under a page title: version · date, author. */
|
|
61
|
+
.oc-meta {
|
|
62
|
+
margin: 0 0 1rem;
|
|
63
|
+
color: var(--oc-subtle-foreground, var(--oc-muted-foreground));
|
|
64
|
+
font-size: 0.9rem;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Muted and subtle text from the theme tokens, for running text inside a panel, a spotlight or a split. */
|
|
68
|
+
.oc-text-muted { color: var(--oc-muted-foreground); }
|
|
69
|
+
.oc-text-subtle { color: var(--oc-subtle-foreground, var(--oc-muted-foreground)); }
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* File: packages/ui/src/parts/site-neon.css | Map: glowing border (animated) -> neon button -> reduced motion */
|
|
2
|
+
/* Neon: a border that slowly glows from one accent color to the other, and a button with a neon gradient.
|
|
3
|
+
Colors: --oc-accent-from and --oc-accent-to (brand-1 and brand-2, or an .oc-accent--* preset).
|
|
4
|
+
.oc-glow-border goes on anything with a border: <form class="oc-glass oc-glow-border">, an .oc-card, a panel. */
|
|
5
|
+
|
|
6
|
+
.oc-glow-border {
|
|
7
|
+
border-color: var(--oc-accent-from);
|
|
8
|
+
box-shadow: 0 0 10px oklch(from var(--oc-accent-from) l c h / 0.35), var(--oc-glow-extra, 0 0 transparent);
|
|
9
|
+
animation: oc-glow-border var(--oc-glow-border-duration, 3s) ease-in-out infinite;
|
|
10
|
+
}
|
|
11
|
+
/* Glass keeps its light top edge and drop shadow under the glow. */
|
|
12
|
+
.oc-glass.oc-glow-border { --oc-glow-extra: var(--oc-glass-shadow), inset 0 1px 0 var(--oc-glass-edge-hi); }
|
|
13
|
+
@keyframes oc-glow-border {
|
|
14
|
+
0%, 100% { border-color: var(--oc-accent-from); box-shadow: 0 0 10px oklch(from var(--oc-accent-from) l c h / 0.35), var(--oc-glow-extra, 0 0 transparent); }
|
|
15
|
+
50% { border-color: var(--oc-accent-to); box-shadow: 0 0 20px oklch(from var(--oc-accent-to) l c h / 0.35), var(--oc-glow-extra, 0 0 transparent); }
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* Neon button: gradient from one accent to the other, with a glow. --oc-btn-neon-ink sets the text color. */
|
|
19
|
+
.oc-btn--neon {
|
|
20
|
+
font-weight: 700;
|
|
21
|
+
letter-spacing: 0.08em;
|
|
22
|
+
color: var(--oc-btn-neon-ink, light-dark(var(--color-white-50), var(--color-black-40)));
|
|
23
|
+
background: linear-gradient(135deg, var(--oc-accent-from), var(--oc-accent-to)) border-box;
|
|
24
|
+
border-color: transparent;
|
|
25
|
+
box-shadow: 0 0 24px oklch(from var(--oc-accent-from) l c h / 0.4);
|
|
26
|
+
transition: filter var(--oc-transition-fast), box-shadow var(--oc-transition-fast);
|
|
27
|
+
}
|
|
28
|
+
.oc-btn--neon:hover:not(:disabled) { filter: brightness(1.08); box-shadow: 0 0 32px oklch(from var(--oc-accent-from) l c h / 0.55); opacity: 1; }
|
|
29
|
+
.oc-btn--neon:disabled { color: var(--oc-muted-foreground); background: var(--oc-muted); box-shadow: none; }
|
|
30
|
+
|
|
31
|
+
@media (prefers-reduced-motion: reduce) {
|
|
32
|
+
.oc-glow-border { animation: none; }
|
|
33
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* File: packages/ui/src/parts/site-panel.css */
|
|
2
|
+
/* Map: panel -> glow (start / end / both) */
|
|
3
|
+
/* A framed panel on the page (a form, a call to action, a feature with a list): card background, strong border, large
|
|
4
|
+
radius, and room above it when a link jumps to it (#form). --glow adds a soft radial light in a corner:
|
|
5
|
+
--oc-panel-glow-color (brand 1) and --oc-panel-glow-at (top left); --glow-end puts it top right, --glow-both adds a
|
|
6
|
+
second light (brand 3) bottom right. */
|
|
7
|
+
|
|
8
|
+
.oc-panel {
|
|
9
|
+
--oc-panel-glow-color: var(--oc-brand-1);
|
|
10
|
+
--oc-panel-glow-at: 0% 0%;
|
|
11
|
+
position: relative;
|
|
12
|
+
padding: var(--oc-panel-padding, clamp(1.5rem, 4vw, 2.5rem));
|
|
13
|
+
border: 1px solid var(--oc-border-strong);
|
|
14
|
+
border-radius: calc(var(--oc-radius-lg, 1.25rem) * 1.2);
|
|
15
|
+
background: var(--oc-card);
|
|
16
|
+
scroll-margin-top: var(--oc-scroll-offset, 6rem);
|
|
17
|
+
}
|
|
18
|
+
.oc-panel--glow {
|
|
19
|
+
background:
|
|
20
|
+
radial-gradient(30rem circle at var(--oc-panel-glow-at), oklch(from var(--oc-panel-glow-color) l c h / 0.12), transparent 60%),
|
|
21
|
+
var(--oc-card);
|
|
22
|
+
}
|
|
23
|
+
.oc-panel--glow-end { --oc-panel-glow-at: 100% 0%; }
|
|
24
|
+
.oc-panel--glow-both {
|
|
25
|
+
background:
|
|
26
|
+
radial-gradient(40rem circle at 0% 0%, oklch(from var(--oc-brand-1) l c h / 0.18), transparent 55%),
|
|
27
|
+
radial-gradient(40rem circle at 100% 100%, oklch(from var(--oc-brand-3) l c h / 0.2), transparent 55%),
|
|
28
|
+
var(--oc-card);
|
|
29
|
+
}
|
|
@@ -134,3 +134,15 @@
|
|
|
134
134
|
@media (prefers-reduced-motion: reduce) {
|
|
135
135
|
.oc-prose :where(a) { transition: none; }
|
|
136
136
|
}
|
|
137
|
+
|
|
138
|
+
/* ---- Legal text (terms, privacy, cookies): narrower, muted body text in a slightly larger size, headings and strong
|
|
139
|
+
in the foreground, disc lists with a gap, links in brand 1. A table in an .oc-table-wrap scrolls on a phone. ---- */
|
|
140
|
+
.oc-prose--legal { max-inline-size: 46rem; color: var(--oc-muted-foreground); font-size: 1.0625rem; }
|
|
141
|
+
.oc-prose--legal :where(h2) { margin-block-start: 2.5rem; font-size: 1.35rem; color: var(--oc-foreground); }
|
|
142
|
+
.oc-prose--legal :where(h3) { margin-block-start: 1.5rem; font-size: 1.05rem; color: var(--oc-foreground); }
|
|
143
|
+
.oc-prose--legal :where(strong, b) { color: var(--oc-foreground); }
|
|
144
|
+
.oc-prose--legal :where(ul) { display: grid; gap: 0.4rem; padding-inline-start: 1.25rem; list-style: disc; }
|
|
145
|
+
.oc-prose--legal :where(ul > li) { margin-block-start: 0; }
|
|
146
|
+
.oc-prose--legal :where(a) { color: var(--oc-brand-1); font-weight: inherit; text-decoration-color: currentColor; text-underline-offset: 3px; }
|
|
147
|
+
.oc-prose--legal :where(a:hover) { color: var(--oc-foreground); }
|
|
148
|
+
.oc-prose--legal :where(table) { font-size: 0.93rem; }
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* File: packages/ui/src/parts/utility-hover.css */
|
|
2
|
+
/* Map: smooth timing -> lift / grow / glow / none -> steady hover area -> reduced motion */
|
|
3
|
+
/* Hover effect of a card, chosen with one class on the card (any card: .oc-card, product, feature, link, price, project …):
|
|
4
|
+
.oc-hover-lift moves up (--oc-hover-lift, 6px) with a soft shadow; what a product card does by default
|
|
5
|
+
.oc-hover-grow grows a little in place (--oc-hover-scale, 1.02)
|
|
6
|
+
.oc-hover-glow stays in place, with a glow in the accent color
|
|
7
|
+
.oc-hover-none no movement (also turns off the default lift of a product or price card)
|
|
8
|
+
They share one smooth curve: --oc-hover-duration (0.45s) and --oc-hover-ease. This file loads after the cards, so the class wins. */
|
|
9
|
+
|
|
10
|
+
:is(.oc-hover-lift, .oc-hover-grow, .oc-hover-glow, .oc-product-card) {
|
|
11
|
+
transition:
|
|
12
|
+
translate var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1)),
|
|
13
|
+
scale var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1)),
|
|
14
|
+
box-shadow var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1)),
|
|
15
|
+
border-color 0.35s,
|
|
16
|
+
background-color 0.35s,
|
|
17
|
+
--oc-glow 0.35s;
|
|
18
|
+
}
|
|
19
|
+
.oc-product-card:hover { translate: 0 calc(-1 * var(--oc-hover-lift, 6px)); }
|
|
20
|
+
.oc-hover-lift:hover {
|
|
21
|
+
translate: 0 calc(-1 * var(--oc-hover-lift, 6px));
|
|
22
|
+
box-shadow: 0 1.25rem 2.5rem -1.25rem oklch(from var(--color-black-60) l c h / 0.35);
|
|
23
|
+
}
|
|
24
|
+
.oc-hover-grow:hover { translate: none; scale: var(--oc-hover-scale, 1.02); }
|
|
25
|
+
.oc-hover-glow:hover {
|
|
26
|
+
translate: none;
|
|
27
|
+
box-shadow:
|
|
28
|
+
0 0 0 1px oklch(from var(--oc-accent-from, var(--oc-primary)) l c h / 0.4),
|
|
29
|
+
0 0.75rem 2.5rem -0.75rem oklch(from var(--oc-accent-from, var(--oc-primary)) l c h / 0.5);
|
|
30
|
+
}
|
|
31
|
+
.oc-hover-none:hover { translate: none; scale: none; }
|
|
32
|
+
|
|
33
|
+
/* While a card moves up, the strip it leaves keeps the hover, so a mouse at the bottom edge does not make it bounce. */
|
|
34
|
+
:where(.oc-hover-lift) { position: relative; }
|
|
35
|
+
:is(.oc-hover-lift, .oc-product-card:not([class*="oc-hover-"])):hover::before {
|
|
36
|
+
content: "";
|
|
37
|
+
position: absolute;
|
|
38
|
+
inset: 0 0 calc(-1 * var(--oc-hover-lift, 6px) - 2px);
|
|
39
|
+
z-index: -1;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@media (prefers-reduced-motion: reduce) {
|
|
43
|
+
:is(.oc-hover-lift, .oc-hover-grow, .oc-product-card):hover { translate: none; scale: none; }
|
|
44
|
+
}
|
package/dist/showcase.css
CHANGED
|
@@ -54,7 +54,8 @@
|
|
|
54
54
|
/* border-box: the gradient also runs under the transparent 1px border of .oc-btn; from the padding box it would
|
|
55
55
|
repeat in that border and show a thin stripe of the other end's color on both sides. */
|
|
56
56
|
background: linear-gradient(100deg, var(--oc-accent-from), var(--oc-accent-to)) border-box;
|
|
57
|
-
|
|
57
|
+
/* --oc-btn-gradient-ink: dark text on a light accent (set it with the accent). */
|
|
58
|
+
color: var(--oc-btn-gradient-ink, var(--color-white-50));
|
|
58
59
|
box-shadow: 0 10px 30px -10px var(--oc-accent-to);
|
|
59
60
|
transition: transform 0.2s var(--oc-ease-out), box-shadow 0.2s;
|
|
60
61
|
}
|
|
@@ -81,7 +82,8 @@
|
|
|
81
82
|
|
|
82
83
|
/* Backdrop: slowly drifting color blobs + fine grid behind the page.
|
|
83
84
|
<div class="oc-backdrop" aria-hidden="true"><i class="oc-backdrop__blob"></i><i class="oc-backdrop__grid"></i></div>
|
|
84
|
-
.oc-backdrop--local keeps it inside a positioned section instead of the viewport.
|
|
85
|
+
.oc-backdrop--local keeps it inside a positioned section instead of the viewport.
|
|
86
|
+
A theme sets the colors: --oc-backdrop-1, -2, -3 (the blobs), --oc-backdrop-3-opacity and --oc-backdrop-grid (the lines). */
|
|
85
87
|
.oc-backdrop {
|
|
86
88
|
position: fixed;
|
|
87
89
|
inset: 0;
|
|
@@ -102,24 +104,27 @@
|
|
|
102
104
|
opacity: var(--oc-backdrop-opacity, 0.35);
|
|
103
105
|
animation: oc-drift 24s ease-in-out infinite alternate;
|
|
104
106
|
}
|
|
105
|
-
.oc-backdrop::before { background: var(--color-blue-40); inset-block-start: -18rem; inset-inline-start: -12rem; }
|
|
106
|
-
.oc-backdrop::after { background: var(--color-purple-30); inset-block-start: 10rem; inset-inline-end: -16rem; animation-delay: -8s; }
|
|
107
|
-
.oc-backdrop > .oc-backdrop__blob { background: var(--color-teal-40); inset-block-end: -20rem; inset-inline-start: 30%; animation-delay: -16s; opacity: calc(var(--oc-backdrop-opacity, 0.35) * 0.6); }
|
|
107
|
+
.oc-backdrop::before { background: var(--oc-backdrop-1, var(--color-blue-40)); inset-block-start: -18rem; inset-inline-start: -12rem; }
|
|
108
|
+
.oc-backdrop::after { background: var(--oc-backdrop-2, var(--color-purple-30)); inset-block-start: 10rem; inset-inline-end: -16rem; animation-delay: -8s; }
|
|
109
|
+
.oc-backdrop > .oc-backdrop__blob { background: var(--oc-backdrop-3, var(--color-teal-40)); inset-block-end: -20rem; inset-inline-start: 30%; animation-delay: -16s; opacity: var(--oc-backdrop-3-opacity, calc(var(--oc-backdrop-opacity, 0.35) * 0.6)); }
|
|
108
110
|
.oc-backdrop > .oc-backdrop__grid {
|
|
109
111
|
position: absolute;
|
|
110
112
|
inset: 0;
|
|
111
113
|
background-image:
|
|
112
|
-
linear-gradient(oklch(from var(--oc-foreground) l c h / 0.05) 1px, transparent 1px),
|
|
113
|
-
linear-gradient(90deg, oklch(from var(--oc-foreground) l c h / 0.05) 1px, transparent 1px);
|
|
114
|
+
linear-gradient(var(--oc-backdrop-grid, oklch(from var(--oc-foreground) l c h / 0.05)) 1px, transparent 1px),
|
|
115
|
+
linear-gradient(90deg, var(--oc-backdrop-grid, oklch(from var(--oc-foreground) l c h / 0.05)) 1px, transparent 1px);
|
|
114
116
|
background-size: 64px 64px;
|
|
115
117
|
mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 70%);
|
|
116
118
|
}
|
|
117
119
|
@keyframes oc-drift { to { transform: translate(6rem, 4rem) scale(1.15); } }
|
|
118
120
|
|
|
119
121
|
/* Container, section spacing and display headings */
|
|
120
|
-
|
|
122
|
+
/* --oc-container is the width, --oc-container-gutter the room on each side on a narrower screen (1.25rem). */
|
|
123
|
+
.oc-container { inline-size: min(100% - 2 * var(--oc-container-gutter, 1.25rem), var(--oc-container, 1200px)); margin-inline: auto; }
|
|
121
124
|
.oc-section-pad { padding-block: clamp(4rem, 9vw, 7rem); }
|
|
122
125
|
.oc-section-pad--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
|
|
126
|
+
/* The hero of a home page: a little less room on top and below than a section. */
|
|
127
|
+
.oc-section-pad--hero { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 6vw, 5rem); }
|
|
123
128
|
.oc-display {
|
|
124
129
|
margin: 0 0 1.5rem;
|
|
125
130
|
font-size: clamp(2.6rem, 5.6vw, 4.6rem);
|
|
@@ -129,8 +134,30 @@
|
|
|
129
134
|
text-wrap: balance;
|
|
130
135
|
}
|
|
131
136
|
.oc-display--md { font-size: clamp(1.9rem, 4vw, 3rem); }
|
|
137
|
+
.oc-display--sm { font-size: clamp(1.5rem, 3vw, 2.1rem); }
|
|
132
138
|
.oc-lead { margin: 0 0 1rem; color: var(--oc-muted-foreground); font-size: 1.15rem; line-height: 1.65; max-inline-size: 42rem; text-wrap: pretty; }
|
|
133
|
-
|
|
139
|
+
/* Larger and narrower, for a home hero. */
|
|
140
|
+
.oc-lead--lg { font-size: 1.2rem; max-inline-size: 36rem; }
|
|
141
|
+
/* Plain: the lead size in the text color and the full width (the intro of a product page). */
|
|
142
|
+
.oc-lead--plain { color: var(--oc-foreground); max-inline-size: none; }
|
|
143
|
+
.oc-split { display: grid; grid-template-columns: var(--oc-split-cols, repeat(auto-fit, minmax(min(100%, 24rem), 1fr))); gap: var(--oc-split-gap, 3rem); align-items: center; }
|
|
144
|
+
/* Ratio presets (one column up to 960px): --lead makes the text column wider, --media the image column.
|
|
145
|
+
Your own ratio: set --oc-split-cols in a class (and to 1fr in a media query for small screens). */
|
|
146
|
+
.oc-split--lead { --oc-split-cols: 1.25fr 1fr; }
|
|
147
|
+
.oc-split--media { --oc-split-cols: 1fr 1.15fr; }
|
|
148
|
+
.oc-split__media { display: grid; place-items: center; }
|
|
149
|
+
/* Columns aligned at the top (a fact list next to a long text). */
|
|
150
|
+
.oc-split--top { align-items: start; }
|
|
151
|
+
/* --oc-split-cols-wide: your own ratio that only applies above 960px, so the split still stacks on a phone. */
|
|
152
|
+
@media (min-width: 961px) {
|
|
153
|
+
.oc-split { grid-template-columns: var(--oc-split-cols-wide, var(--oc-split-cols, repeat(auto-fit, minmax(min(100%, 24rem), 1fr)))); }
|
|
154
|
+
}
|
|
155
|
+
@media (max-width: 960px) {
|
|
156
|
+
.oc-split--lead, .oc-split--media { --oc-split-cols: 1fr; }
|
|
157
|
+
/* The image (a product mark, a screenshot) comes first on a small screen, aligned at the start, and an xl tile shrinks. */
|
|
158
|
+
.oc-split__media { order: -1; justify-items: start; }
|
|
159
|
+
.oc-split__media .oc-icon-tile--xl { --oc-tile-size: 7rem; }
|
|
160
|
+
}
|
|
134
161
|
|
|
135
162
|
/* Code window: editor frame with traffic lights and a file name. It follows the page theme: a light frame and light
|
|
136
163
|
syntax colors in light mode, the Omnia Dark editor colors in dark mode. --dark keeps it dark on a light page (the
|
|
@@ -218,7 +245,12 @@
|
|
|
218
245
|
@keyframes oc-float { 50% { translate: 0 -12px; } }
|
|
219
246
|
|
|
220
247
|
/* Product / feature card with hover lift and accent glow */
|
|
221
|
-
.oc-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--oc-card-min, 17rem)), 1fr)); gap: 1.25rem; }
|
|
248
|
+
.oc-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--oc-card-min, 17rem)), 1fr)); gap: var(--oc-card-gap, 1.25rem); }
|
|
249
|
+
/* Wide cards (projects, case studies): from 32rem, three in a row on a wide screen. */
|
|
250
|
+
.oc-card-grid--wide { --oc-card-min: 32rem; --oc-card-gap: 1.5rem; }
|
|
251
|
+
/* --fit: the cards stretch over the full width when there are fewer than fit in a row (auto-fit instead of auto-fill). */
|
|
252
|
+
.oc-card-grid--fit { grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--oc-card-min, 17rem)), 1fr)); }
|
|
253
|
+
@media (min-width: 1280px) { .oc-card-grid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
|
|
222
254
|
.oc-product-card {
|
|
223
255
|
position: relative;
|
|
224
256
|
display: flex;
|
|
@@ -232,7 +264,7 @@
|
|
|
232
264
|
var(--oc-surface);
|
|
233
265
|
color: var(--oc-foreground);
|
|
234
266
|
text-decoration: none;
|
|
235
|
-
transition:
|
|
267
|
+
transition: translate 0.35s var(--oc-ease-out), border-color 0.35s, --oc-glow 0.35s;
|
|
236
268
|
}
|
|
237
269
|
@property --oc-glow {
|
|
238
270
|
syntax: "<number>";
|
|
@@ -241,7 +273,8 @@
|
|
|
241
273
|
}
|
|
242
274
|
.oc-product-card:hover {
|
|
243
275
|
--oc-glow: 0.22;
|
|
244
|
-
|
|
276
|
+
/* The lift uses translate; a fly-in (.oc-reveal--fly) animates the transform, so both keep working. */
|
|
277
|
+
translate: 0 calc(-1 * var(--oc-hover-lift, 6px));
|
|
245
278
|
border-color: oklch(from var(--oc-accent-from) l c h / 0.55);
|
|
246
279
|
}
|
|
247
280
|
.oc-product-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-block-end: 0.75rem; }
|
|
@@ -297,9 +330,17 @@
|
|
|
297
330
|
}
|
|
298
331
|
.oc-stat-strip__item { padding: 2rem 1.5rem; border-inline-start: 1px solid var(--oc-border); }
|
|
299
332
|
.oc-stat-strip__item:first-child { border-inline-start: 0; }
|
|
300
|
-
.oc-stat-strip__value { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; line-height: 1.1; }
|
|
333
|
+
.oc-stat-strip__value { font-family: var(--oc-font-display, inherit); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; line-height: 1.1; }
|
|
301
334
|
.oc-stat-strip__suffix { color: var(--oc-brand-1); }
|
|
302
335
|
.oc-stat-strip__label { display: block; color: var(--oc-muted-foreground); font-size: 0.92rem; }
|
|
336
|
+
/* Plain: no lines and no background of its own, for a strip inside an .oc-band (full width) or a card. */
|
|
337
|
+
.oc-stat-strip--plain { border-block: 0; background: none; }
|
|
338
|
+
/* Four figures on a narrower screen: two rows of two instead of three and one. */
|
|
339
|
+
@media (max-width: 960px) {
|
|
340
|
+
.oc-stat-strip:has(> .oc-stat-strip__item:nth-child(4):last-child) { grid-template-columns: 1fr 1fr; }
|
|
341
|
+
.oc-stat-strip:has(> .oc-stat-strip__item:nth-child(4):last-child) > .oc-stat-strip__item:nth-child(3) { border-inline-start: 0; }
|
|
342
|
+
.oc-stat-strip:has(> .oc-stat-strip__item:nth-child(4):last-child) > .oc-stat-strip__item:nth-child(n + 3) { border-block-start: 1px solid var(--oc-border); }
|
|
343
|
+
}
|
|
303
344
|
|
|
304
345
|
/* Spotlight: large highlighted panel with copy + module list */
|
|
305
346
|
.oc-spotlight {
|
|
@@ -317,8 +358,12 @@
|
|
|
317
358
|
}
|
|
318
359
|
.oc-spotlight__title { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0 0.5rem; font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.1; }
|
|
319
360
|
.oc-spotlight__tagline { color: light-dark(var(--oc-accent-from), oklch(from var(--oc-accent-from) max(l, 0.72) c h)); font-size: 1.2rem; font-weight: 600; }
|
|
361
|
+
/* --oc-spotlight-cols: your own ratio above 960px (copy | modules); on a smaller screen the spotlight stacks. */
|
|
362
|
+
@media (min-width: 961px) {
|
|
363
|
+
.oc-spotlight { grid-template-columns: var(--oc-spotlight-cols, repeat(auto-fit, minmax(min(100%, 22rem), 1fr))); }
|
|
364
|
+
}
|
|
320
365
|
.oc-spotlight__modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
|
|
321
|
-
.oc-spotlight__modules > li { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem; border: 1px solid var(--oc-border); border-radius: var(--oc-radius-md); background: var(--oc-surface); font-size: 0.95rem; }
|
|
366
|
+
.oc-spotlight__modules > li { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem; border: 1px solid var(--oc-border); border-radius: var(--oc-radius-md); background: var(--oc-spotlight-module-bg, var(--oc-surface)); font-size: 0.95rem; }
|
|
322
367
|
|
|
323
368
|
/* Steps: numbered process with a gradient tick (numbers come from a CSS counter) */
|
|
324
369
|
.oc-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; counter-reset: oc-step; }
|
|
@@ -351,6 +396,9 @@
|
|
|
351
396
|
/* Tag list (tech stack) and check list */
|
|
352
397
|
.oc-tag-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
|
|
353
398
|
.oc-tag-list > li { padding: 0.55rem 1.1rem; border: 1px solid oklch(from var(--oc-accent-from) l c h / 0.35); border-radius: 999px; background: oklch(from var(--oc-accent-from) l c h / 0.1); font-family: var(--oc-font-mono); font-size: 0.88rem; }
|
|
399
|
+
/* Neutral chips (no accent color) and large chips in the display font, e.g. a strip of brand names. */
|
|
400
|
+
.oc-tag-list--neutral > li { border-color: var(--oc-border); background: var(--oc-surface); color: var(--oc-foreground); }
|
|
401
|
+
.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; }
|
|
354
402
|
.oc-check-list { display: grid; gap: 0.5rem; margin: 1.1rem 0 0; padding: 0; list-style: none; font-size: 0.93rem; }
|
|
355
403
|
.oc-check-list > li { display: flex; gap: 0.5rem; align-items: baseline; }
|
|
356
404
|
.oc-check-list > li::before { content: "✓"; color: var(--oc-brand-1); font-weight: 700; }
|
|
@@ -385,6 +433,8 @@
|
|
|
385
433
|
.oc-site-header__nav a:not(.oc-btn):hover,
|
|
386
434
|
.oc-site-header__nav a[aria-current="page"] { color: var(--oc-foreground); }
|
|
387
435
|
.oc-site-header__toggle { display: none; padding: 0.5rem 0.7rem; border: 1px solid var(--oc-border); border-radius: var(--oc-radius-md); background: var(--oc-surface); color: var(--oc-foreground); cursor: pointer; }
|
|
436
|
+
/* The icon in the menu button is a block, so the button is as tall as a line of text (no inline gap under it). */
|
|
437
|
+
.oc-site-header__toggle :is(svg, img, iconify-icon, .oc-icon) { display: block; }
|
|
388
438
|
@media (min-width: 861px) {
|
|
389
439
|
/* Desktop: the popover nav is always visible in the header bar. */
|
|
390
440
|
.oc-site-header__nav[popover] { display: flex; }
|
|
@@ -409,6 +459,8 @@
|
|
|
409
459
|
backdrop-filter: blur(16px);
|
|
410
460
|
}
|
|
411
461
|
.oc-site-header__nav[popover] a:not(.oc-btn) { padding: 0.75rem 0; font-size: 1.1rem; }
|
|
462
|
+
/* The call to action (.oc-site-header__cta, a button) gets room above it in the open menu. */
|
|
463
|
+
.oc-site-header__cta { margin-block-start: 0.75rem; }
|
|
412
464
|
}
|
|
413
465
|
|
|
414
466
|
/* Site footer: brand column + link columns + bottom bar */
|
|
@@ -416,21 +468,33 @@
|
|
|
416
468
|
margin-block-start: 4rem;
|
|
417
469
|
padding-block-start: 4rem;
|
|
418
470
|
border-block-start: 1px solid var(--oc-border);
|
|
419
|
-
background: linear-gradient(to bottom, transparent, var(--oc-surface-strong));
|
|
471
|
+
background: var(--oc-footer-bg, linear-gradient(to bottom, transparent, var(--oc-surface-strong)));
|
|
420
472
|
color: var(--oc-muted-foreground);
|
|
421
473
|
font-size: 0.95rem;
|
|
474
|
+
container-type: inline-size;
|
|
422
475
|
}
|
|
423
|
-
|
|
476
|
+
/* Columns: --oc-footer-cols (about + 3 link columns). Footer narrower than 66rem (about a 1060px screen):
|
|
477
|
+
--oc-footer-cols-md columns (3) with the about column over the full width; narrower than 54rem: two columns.
|
|
478
|
+
Container queries on the footer, so a footer in a narrow column or a preview follows its own width. */
|
|
479
|
+
.oc-site-footer__grid { display: grid; grid-template-columns: var(--oc-footer-cols, 1.6fr repeat(3, 1fr)); gap: 2.5rem; }
|
|
424
480
|
.oc-site-footer__about p { margin-block: 1rem 0; max-inline-size: 22rem; }
|
|
425
481
|
.oc-site-footer__title { margin: 0 0 1rem; color: var(--oc-foreground); font-size: 0.95rem; font-weight: 700; }
|
|
426
482
|
.oc-site-footer__list { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; padding: 0; list-style: none; font-style: normal; }
|
|
427
483
|
.oc-site-footer a { color: inherit; text-decoration: none; }
|
|
428
484
|
.oc-site-footer a:hover { color: var(--oc-foreground); }
|
|
429
|
-
.oc-site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-block-start: 3rem; padding-block: 1.5rem; border-block-start: 1px solid var(--oc-border); font-size: 0.85rem; }
|
|
430
|
-
|
|
431
|
-
|
|
485
|
+
.oc-site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-block-start: 3rem; padding-block: 1.5rem; border-block-start: 1px solid var(--oc-border); color: var(--oc-footer-bottom-color, inherit); font-size: 0.85rem; }
|
|
486
|
+
/* A second title further down in a column (e.g. "Tools" under the projects). */
|
|
487
|
+
.oc-site-footer__subtitle { margin-block-start: 1.75rem; }
|
|
488
|
+
/* Legal links in the bottom bar (Terms · Privacy · Cookies) and the build number after them. */
|
|
489
|
+
.oc-site-footer__legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0; padding: 0; list-style: none; }
|
|
490
|
+
.oc-site-footer__build { opacity: 0.7; font-variant-numeric: tabular-nums; }
|
|
491
|
+
@container (max-width: 66rem) {
|
|
492
|
+
.oc-site-footer__grid { grid-template-columns: repeat(var(--oc-footer-cols-md, 3), minmax(0, 1fr)); }
|
|
432
493
|
.oc-site-footer__about { grid-column: 1 / -1; }
|
|
433
494
|
}
|
|
495
|
+
@container (max-width: 54rem) {
|
|
496
|
+
.oc-site-footer__grid { grid-template-columns: 1fr 1fr; }
|
|
497
|
+
}
|
|
434
498
|
|
|
435
499
|
/* Reveal on scroll: elements slide in when they enter the viewport (scroll-driven, no JS; visible without support) */
|
|
436
500
|
@supports (animation-timeline: view()) {
|