@nukipa/post-content 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/styles.css +47 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nukipa/post-content",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Framework-agnostic processor for Nukipa CMS post bodies — markdown + component markers + citations → HTML + interactive island descriptors.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Nukipa Labs",
|
package/styles.css
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Material Icons — pulled at the top so the @font-face rule wins the
|
|
3
|
+
* cascade before any of our `.material-icons` selectors below. The
|
|
4
|
+
* renderer emits glyph names verbatim (`help_outline`, `expand_more`,
|
|
5
|
+
* `arrow_forward`, `chevron_left`, `chevron_right`, plus whatever
|
|
6
|
+
* stage icons the post author picked); without this font those names
|
|
7
|
+
* render as literal text. To self-host (offline, privacy, or perf
|
|
8
|
+
* reasons): drop this @import, host the same font + matching CSS at
|
|
9
|
+
* the host, and the rest of this stylesheet keeps working unchanged.
|
|
10
|
+
*/
|
|
11
|
+
@import url("https://fonts.googleapis.com/icon?family=Material+Icons");
|
|
12
|
+
|
|
1
13
|
/*
|
|
2
14
|
* Nukipa post-content default stylesheet.
|
|
3
15
|
*
|
|
@@ -255,11 +267,25 @@
|
|
|
255
267
|
font-style: italic;
|
|
256
268
|
}
|
|
257
269
|
|
|
258
|
-
/* ───── Process —
|
|
259
|
-
|
|
270
|
+
/* ───── Process — auto-fit grid of stages ─────────────────────────────
|
|
271
|
+
The renderer interleaves <div class="bp-process__stage"> and
|
|
272
|
+
<div class="bp-process__connector"> in document order. Laying that
|
|
273
|
+
out as wrapping flex put orphan connector arrows at the start of
|
|
274
|
+
wrapped rows (the connector that "belongs" between stage 4 and
|
|
275
|
+
stage 5 ended up alone on row 2). The grid below tracks columns
|
|
276
|
+
by stage width — connectors are hidden because they only encode
|
|
277
|
+
left-to-right adjacency, which is meaningless once the grid wraps
|
|
278
|
+
into multiple rows. */
|
|
279
|
+
.bp-process {
|
|
280
|
+
display: grid;
|
|
281
|
+
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
282
|
+
align-items: start;
|
|
283
|
+
justify-items: center;
|
|
284
|
+
gap: 1rem 0.5rem;
|
|
285
|
+
}
|
|
260
286
|
.bp-process__stage {
|
|
261
287
|
display: flex; flex-direction: column; align-items: center; text-align: center;
|
|
262
|
-
|
|
288
|
+
min-width: 0; padding: 1rem 0.75rem;
|
|
263
289
|
}
|
|
264
290
|
.bp-process__icon {
|
|
265
291
|
width: 3rem; height: 3rem; border-radius: 50%;
|
|
@@ -273,11 +299,7 @@
|
|
|
273
299
|
.bp-process__num { font-weight: 700; font-size: 1rem; }
|
|
274
300
|
.bp-process__title { font-weight: 600; font-size: 1rem; margin-bottom: 0.25rem; }
|
|
275
301
|
.bp-process__desc { font-size: 0.875rem; color: var(--color-text-muted, #51646A); line-height: 1.5; }
|
|
276
|
-
.bp-process__connector {
|
|
277
|
-
display: flex; align-items: center; padding-top: 1.25rem;
|
|
278
|
-
color: var(--color-text-muted, #51646A);
|
|
279
|
-
}
|
|
280
|
-
.bp-process__connector .material-icons { font-size: 1.5rem; }
|
|
302
|
+
.bp-process__connector { display: none; }
|
|
281
303
|
|
|
282
304
|
/* ───── Comparison ─────────────────────────────────────────────────── */
|
|
283
305
|
.bp-comparison {
|
|
@@ -286,8 +308,23 @@
|
|
|
286
308
|
overflow-x: auto;
|
|
287
309
|
-webkit-overflow-scrolling: touch;
|
|
288
310
|
}
|
|
289
|
-
.bp-comparison table {
|
|
290
|
-
|
|
311
|
+
.bp-comparison table {
|
|
312
|
+
margin: 0; width: max-content; min-width: 100%;
|
|
313
|
+
border-collapse: collapse;
|
|
314
|
+
}
|
|
315
|
+
.bp-comparison th, .bp-comparison td {
|
|
316
|
+
min-width: 100px;
|
|
317
|
+
padding: 0.625rem 0.875rem;
|
|
318
|
+
border-bottom: 1px solid var(--color-border, #E5DFDC);
|
|
319
|
+
}
|
|
320
|
+
.bp-comparison thead th {
|
|
321
|
+
background: var(--color-surface, #F0EBEB);
|
|
322
|
+
font-weight: 600;
|
|
323
|
+
text-align: left;
|
|
324
|
+
border-bottom-width: 2px;
|
|
325
|
+
}
|
|
326
|
+
.bp-comparison tbody tr:last-child th, .bp-comparison tbody tr:last-child td { border-bottom: none; }
|
|
327
|
+
.bp-comparison tbody tr:hover td, .bp-comparison tbody tr:hover th { background: color-mix(in srgb, var(--color-surface, #F0EBEB) 60%, transparent); }
|
|
291
328
|
.bp-comparison__cell { text-align: center; }
|
|
292
329
|
|
|
293
330
|
/* ───── Cite chip — superscript footnote link ──────────────────────── */
|