czon 0.6.4 → 0.6.5
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/ssg/ContentPage.js +1 -1
- package/dist/ssg/style.js +0 -9
- package/package.json +1 -1
package/dist/ssg/ContentPage.js
CHANGED
|
@@ -51,7 +51,7 @@ const ContentPage = props => {
|
|
|
51
51
|
react_1.default.createElement(PageLayout_1.PageLayout, { header: react_1.default.createElement(CZONHeader_1.CZONHeader, { ctx: props.ctx, lang: props.lang, file: props.file }), navigator: react_1.default.createElement("nav", { className: "sidebar hidden md:block" },
|
|
52
52
|
react_1.default.createElement(Navigator_1.Navigator, { ctx: props.ctx, file: props.file, lang: props.lang })), rightSidebar: react_1.default.createElement("aside", null,
|
|
53
53
|
react_1.default.createElement("h2", { className: "text-2xl font-semibold mb-2" }, "Table of Contents"),
|
|
54
|
-
props.content.headings.map(heading => (react_1.default.createElement("a", { key: heading.id, href: `#${heading.id}`, className: `block ps-${heading.depth * 4} mb-2` }, heading.text)))), main: react_1.default.createElement("main", { className: "content" },
|
|
54
|
+
props.content.headings.map(heading => (react_1.default.createElement("a", { key: heading.id, href: `#${heading.id}`, className: `block ps-${heading.depth * 4} mb-2` }, heading.text)))), main: react_1.default.createElement("main", { className: "content max-w-4xl mx-auto my-8 px-4" },
|
|
55
55
|
react_1.default.createElement(ContentMeta_1.ContentMeta, { ctx: props.ctx, file: props.file, lang: props.lang }),
|
|
56
56
|
react_1.default.createElement("div", { className: "border-b mb-4 pb-2 xl:hidden" },
|
|
57
57
|
react_1.default.createElement("h2", { className: "text-2xl font-semibold mb-2" }, "Table of Contents"),
|
package/dist/ssg/style.js
CHANGED
|
@@ -70,7 +70,6 @@ html:not(.dark) body {
|
|
|
70
70
|
|
|
71
71
|
.sidebar-right {
|
|
72
72
|
background: var(--sidebar-bg);
|
|
73
|
-
border-left: 1px solid var(--border-color);
|
|
74
73
|
padding: 2rem 1rem;
|
|
75
74
|
}
|
|
76
75
|
|
|
@@ -129,14 +128,6 @@ html:not(.dark) body {
|
|
|
129
128
|
color: var(--text-primary);
|
|
130
129
|
}
|
|
131
130
|
|
|
132
|
-
.content {
|
|
133
|
-
flex: 1;
|
|
134
|
-
padding: 3rem 2rem;
|
|
135
|
-
max-width: 1200px;
|
|
136
|
-
width: 100%;
|
|
137
|
-
box-sizing: border-box;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
131
|
.content-header {
|
|
141
132
|
margin-bottom: 2rem;
|
|
142
133
|
padding-bottom: 1rem;
|