@substrate-platform/site 0.2.0-canary.0 → 0.2.0-canary.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.
- package/dist/layout.js +1 -1
- package/dist/layout.js.map +1 -1
- package/package.json +1 -1
- package/src/globals.css +14 -0
package/dist/layout.js
CHANGED
|
@@ -35,6 +35,6 @@ export function SubstrateLayout({ children, fontClass = '', lang = 'en', htmlCla
|
|
|
35
35
|
export function SubstrateFooter({ enabled = true } = {}) {
|
|
36
36
|
if (!enabled)
|
|
37
37
|
return null;
|
|
38
|
-
return (_jsx("footer", { className: "mx-auto max-w-5xl px-6 pb-
|
|
38
|
+
return (_jsx("footer", { className: "mx-auto max-w-5xl px-6 pb-4 pt-4 text-center", children: _jsxs("p", { className: "text-[0.6875rem]", style: { color: 'var(--substrate-text-tertiary)', opacity: 0.35 }, children: ["Powered by", ' ', _jsx("a", { href: SUBSTRATE_REPOSITORY, target: "_blank", rel: "noopener noreferrer", className: "underline transition-opacity hover:opacity-80", children: "Substrate" })] }) }));
|
|
39
39
|
}
|
|
40
40
|
//# sourceMappingURL=layout.js.map
|
package/dist/layout.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../src/layout.tsx"],"names":[],"mappings":";AAyDA,uEAAuE;AAEvE;;;;;;GAMG;AACH,MAAM,oBAAoB,GAAG,0CAA0C,CAAC;AAExE,uEAAuE;AAEvE,MAAM,UAAU,eAAe,CAAC,EAC9B,QAAQ,EACR,SAAS,GAAG,EAAE,EACd,IAAI,GAAG,IAAI,EACX,aAAa,GAAG,MAAM,EACtB,MAAM,GAAG,IAAI,EACb,SAAS,GACY;IACrB,0DAA0D;IAC1D,MAAM,OAAO,GAAG,SAAS,EAAE,OAAO,IAAI,MAAM,CAAC;IAE7C,OAAO,CACL,eAAM,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,aAAa,IAAI,SAAS,EA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EAAE,KAAK,EAAE,gCAAgC,EAAE,OAAO,EAAE,IAAI,EAAE,2BACpF,GAAG,EACd,YACE,IAAI,EAAE,oBAAoB,EAC1B,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,EACzB,SAAS,EAAC,+CAA+C,0BAGvD,IACF,GACG,CACV,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
package/src/globals.css
CHANGED
|
@@ -57,6 +57,20 @@
|
|
|
57
57
|
* consumer's CSS, where the PostCSS environment can resolve it correctly.
|
|
58
58
|
*/
|
|
59
59
|
|
|
60
|
+
/* ── Tailwind v4 content detection ──────────────────────────────────
|
|
61
|
+
*
|
|
62
|
+
* Platform components (SubstrateLayout, SubstrateFooter, shells, etc.)
|
|
63
|
+
* use Tailwind utility class names in their compiled dist output.
|
|
64
|
+
* By default Tailwind v4 ignores node_modules — so consumers would
|
|
65
|
+
* get unstyled components. These @source directives register the
|
|
66
|
+
* platform packages' dist directories for class name scanning.
|
|
67
|
+
*
|
|
68
|
+
* Paths are relative to this stylesheet, which is resolved from the
|
|
69
|
+
* consumer's node_modules via @import "@substrate-platform/site/globals.css".
|
|
70
|
+
*/
|
|
71
|
+
@source "../node_modules/@substrate-platform/site/dist";
|
|
72
|
+
@source "../node_modules/@substrate-platform/ui/dist";
|
|
73
|
+
|
|
60
74
|
/* ── Tailwind v4 theme bridge ───────────────────────────────────────
|
|
61
75
|
*
|
|
62
76
|
* Maps the platform's --substrate-* design tokens into Tailwind v4's
|