@brillout/docpress 0.6.10 → 0.6.11
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/components/HorizontalLine.tsx +2 -1
- package/css/heading.css +23 -1
- package/package.json +2 -2
- package/types/Config.ts +1 -0
|
@@ -10,7 +10,8 @@ function HorizontalLine({ primary }: { primary?: true }) {
|
|
|
10
10
|
display: 'inline-block',
|
|
11
11
|
margin: 0,
|
|
12
12
|
border: 0,
|
|
13
|
-
|
|
13
|
+
// Same as `.doc-page h2::after`
|
|
14
|
+
borderTop: '1px solid #eaeaea',
|
|
14
15
|
maxWidth: 500,
|
|
15
16
|
width: '80%',
|
|
16
17
|
}}
|
package/css/heading.css
CHANGED
|
@@ -1,9 +1,26 @@
|
|
|
1
|
+
.doc-page h1 {
|
|
2
|
+
margin-top: 20px;
|
|
3
|
+
margin-bottom: 20px;
|
|
4
|
+
}
|
|
5
|
+
|
|
1
6
|
.doc-page h2,
|
|
2
7
|
.doc-page h3 {
|
|
3
8
|
margin-bottom: 16px;
|
|
4
9
|
}
|
|
5
10
|
.doc-page h2 {
|
|
6
|
-
margin-top:
|
|
11
|
+
margin-top: 100px;
|
|
12
|
+
}
|
|
13
|
+
.doc-page h2::after {
|
|
14
|
+
content: '';
|
|
15
|
+
display: block;
|
|
16
|
+
position: absolute;
|
|
17
|
+
height: 1px;
|
|
18
|
+
top: -45px;
|
|
19
|
+
/* Same as <HorizontalLine> */
|
|
20
|
+
background-color: #eaeaea;
|
|
21
|
+
--width: min(80%, 500px);
|
|
22
|
+
width: var(--width);
|
|
23
|
+
left: calc((100% - var(--width)) / 2);
|
|
7
24
|
}
|
|
8
25
|
.doc-page h3 {
|
|
9
26
|
margin-top: 40px;
|
|
@@ -14,6 +31,11 @@
|
|
|
14
31
|
.doc-page h2 + h3 {
|
|
15
32
|
margin-top: 0;
|
|
16
33
|
}
|
|
34
|
+
.doc-page h1 + h2:after,
|
|
35
|
+
.doc-page h1 + h3:after,
|
|
36
|
+
.doc-page h2 + h3:after {
|
|
37
|
+
display: none !important;
|
|
38
|
+
}
|
|
17
39
|
|
|
18
40
|
.doc-page h4 {
|
|
19
41
|
margin-top: 32px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brillout/docpress",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"// Build vite.config.ts and +config.ts": "",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@brillout/release-me": "^0.
|
|
73
|
+
"@brillout/release-me": "^0.3.8",
|
|
74
74
|
"@types/node": "^15.12.1",
|
|
75
75
|
"@types/react": "^17.0.44",
|
|
76
76
|
"@types/react-dom": "^17.0.6",
|
package/types/Config.ts
CHANGED
|
@@ -35,6 +35,7 @@ type Config = {
|
|
|
35
35
|
navHeaderMobileWrapperStyle?: React.CSSProperties
|
|
36
36
|
navHeader: React.ReactNode
|
|
37
37
|
navHeaderWrapperStyle?: React.CSSProperties
|
|
38
|
+
/** Sets `<meta name="description" content="${tagline}" />` */
|
|
38
39
|
tagline: string
|
|
39
40
|
websiteUrl: string
|
|
40
41
|
bannerUrl?: string
|