@nukipa/post-content 0.2.1 → 0.2.2

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 (2) hide show
  1. package/package.json +1 -1
  2. package/styles.css +40 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nukipa/post-content",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
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,14 +1,45 @@
1
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.
2
+ * Material Icons — declared inline so it works regardless of where
3
+ * this stylesheet lands in the bundle.
4
+ *
5
+ * We used to `@import url("https://fonts.googleapis.com/icon?family=Material+Icons")`,
6
+ * but the CSS spec requires every `@import` rule to appear BEFORE
7
+ * any other rule in the document; modern bundlers (Next.js/webpack,
8
+ * Vite) concatenate consumer styles (Tailwind, next/font, globals.css)
9
+ * ahead of package CSS, pushing the @import past other rules where
10
+ * browsers silently ignore it.
11
+ *
12
+ * The renderer emits glyph names verbatim (`help_outline`,
13
+ * `expand_more`, `arrow_forward`, `chevron_left`, `chevron_right`,
14
+ * plus whatever stage icons the post author picked); without the
15
+ * font those names render as literal text. The src URL is Google's
16
+ * gstatic CDN — old versions stay accessible indefinitely, so the
17
+ * pinned `v143` is durable. To self-host: replace the @font-face
18
+ * src with your own woff2 URL and keep the `.material-icons` rules
19
+ * below as-is.
10
20
  */
11
- @import url("https://fonts.googleapis.com/icon?family=Material+Icons");
21
+ @font-face {
22
+ font-family: "Material Icons";
23
+ font-style: normal;
24
+ font-weight: 400;
25
+ src: url("https://fonts.gstatic.com/s/materialicons/v143/flUhRq6tzZclQEJ-Vdg-IuiaDsNZ.woff2") format("woff2");
26
+ font-display: swap;
27
+ }
28
+ .material-icons {
29
+ font-family: "Material Icons";
30
+ font-weight: normal;
31
+ font-style: normal;
32
+ font-size: 24px;
33
+ line-height: 1;
34
+ letter-spacing: normal;
35
+ text-transform: none;
36
+ display: inline-block;
37
+ white-space: nowrap;
38
+ word-wrap: normal;
39
+ direction: ltr;
40
+ -webkit-font-feature-settings: "liga";
41
+ -webkit-font-smoothing: antialiased;
42
+ }
12
43
 
13
44
  /*
14
45
  * Nukipa post-content default stylesheet.