@tomehq/theme 0.3.3 → 0.3.4
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/CHANGELOG.md +6 -0
- package/dist/{chunk-MSXVVBDW.js → chunk-QYINBNMJ.js} +4 -1
- package/dist/entry.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/Shell.tsx +1 -1
- package/src/entry.tsx +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1054,7 +1054,7 @@ function Shell({
|
|
|
1054
1054
|
const PageComponent = pageComponent;
|
|
1055
1055
|
const bannerLink = config2.banner?.link;
|
|
1056
1056
|
const bannerIsInternal = bannerLink ? bannerLink.startsWith("#") || basePath2 && bannerLink.startsWith(basePath2 + "/") : false;
|
|
1057
|
-
return /* @__PURE__ */ jsxs2("div", { dir, className: "tome-grain", style: { ...cssVars, color: "var(--tx)", background: "var(--bg)", fontFamily: "var(--font-body)",
|
|
1057
|
+
return /* @__PURE__ */ jsxs2("div", { dir, className: "tome-grain", style: { ...cssVars, color: "var(--tx)", background: "var(--bg)", fontFamily: "var(--font-body)", height: "100vh", overflow: "hidden" }, children: [
|
|
1058
1058
|
config2.banner?.text && !bannerDismissed && /* @__PURE__ */ jsxs2("div", { style: {
|
|
1059
1059
|
display: "flex",
|
|
1060
1060
|
alignItems: "center",
|
|
@@ -2052,6 +2052,9 @@ var MDX_COMPONENTS = {
|
|
|
2052
2052
|
var contentStyles = `
|
|
2053
2053
|
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,700&family=Fira+Code:wght@400;500;600&display=swap');
|
|
2054
2054
|
|
|
2055
|
+
html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; }
|
|
2056
|
+
#tome-root { height: 100%; overflow: hidden; }
|
|
2057
|
+
|
|
2055
2058
|
.tome-content h1 { display: none; }
|
|
2056
2059
|
.tome-content h2 { font-family: var(--font-body); font-size: 1.35em; font-weight: 600; margin-top: 2em; margin-bottom: 0.5em; display: flex; align-items: center; gap: 10px; letter-spacing: 0.01em; }
|
|
2057
2060
|
.tome-content h2::before { content: "#"; font-family: var(--font-heading); font-size: 1.2em; font-weight: 300; font-style: italic; color: var(--ac); opacity: 0.5; }
|
package/dist/entry.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
package/src/Shell.tsx
CHANGED
|
@@ -669,7 +669,7 @@ export function Shell({
|
|
|
669
669
|
const bannerIsInternal = bannerLink ? (bannerLink.startsWith("#") || (basePath && bannerLink.startsWith(basePath + "/"))) : false;
|
|
670
670
|
|
|
671
671
|
return (
|
|
672
|
-
<div dir={dir} className="tome-grain" style={{ ...cssVars as React.CSSProperties, color: "var(--tx)", background: "var(--bg)", fontFamily: "var(--font-body)",
|
|
672
|
+
<div dir={dir} className="tome-grain" style={{ ...cssVars as React.CSSProperties, color: "var(--tx)", background: "var(--bg)", fontFamily: "var(--font-body)", height: "100vh", overflow: "hidden" }}>
|
|
673
673
|
{/* Banner */}
|
|
674
674
|
{config.banner?.text && !bannerDismissed && (
|
|
675
675
|
<div style={{
|
package/src/entry.tsx
CHANGED
|
@@ -60,6 +60,9 @@ const MDX_COMPONENTS: Record<string, React.ComponentType<any>> = {
|
|
|
60
60
|
const contentStyles = `
|
|
61
61
|
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,700&family=Fira+Code:wght@400;500;600&display=swap');
|
|
62
62
|
|
|
63
|
+
html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; }
|
|
64
|
+
#tome-root { height: 100%; overflow: hidden; }
|
|
65
|
+
|
|
63
66
|
.tome-content h1 { display: none; }
|
|
64
67
|
.tome-content h2 { font-family: var(--font-body); font-size: 1.35em; font-weight: 600; margin-top: 2em; margin-bottom: 0.5em; display: flex; align-items: center; gap: 10px; letter-spacing: 0.01em; }
|
|
65
68
|
.tome-content h2::before { content: "#"; font-family: var(--font-heading); font-size: 1.2em; font-weight: 300; font-style: italic; color: var(--ac); opacity: 0.5; }
|