diff --git a/packages/docusaurus-1.x/lib/core/Doc.js b/packages/docusaurus-1.x/lib/core/Doc.js
index 0400b9301f92..eba99f4471bc 100644
--- a/packages/docusaurus-1.x/lib/core/Doc.js
+++ b/packages/docusaurus-1.x/lib/core/Doc.js
@@ -238,7 +238,9 @@ class Doc extends React.Component {
{editLink}
{!this.props.hideTitle && (
- {this.props.title}
+
+ {this.props.title}
+
)}
diff --git a/packages/docusaurus-1.x/lib/static/css/main.css b/packages/docusaurus-1.x/lib/static/css/main.css
index e808532f145f..ba0733df1266 100644
--- a/packages/docusaurus-1.x/lib/static/css/main.css
+++ b/packages/docusaurus-1.x/lib/static/css/main.css
@@ -653,6 +653,16 @@ blockquote {
padding: 0;
}
+.mainContainer .wrapper .post .postHeader:before,
+.mainContainer .wrapper .post .postHeaderTitle:before {
+ content: "";
+ display: block;
+ height: 90px; /* fixed header height and empty space below it */
+ margin-top: -90px; /* negative fixed header height and empty space below it */
+ visibility: hidden;
+ pointer-events: none;
+}
+
.mainContainer .wrapper .post .postSocialPlugins {
padding-top: 1em;
}
@@ -714,6 +724,18 @@ blockquote {
width: 100%;
}
}
+
+@media only screen and (max-width: 1023px) {
+ .mainContainer .wrapper .post .postHeader:before,
+ .mainContainer .wrapper .post .postHeaderTitle:before {
+ content: "";
+ display: block;
+ height: 200px; /* fixed header height and empty space below it */
+ margin-top: -200px; /* negative fixed header height and empty space below it */
+ visibility: hidden;
+ pointer-events: none;
+ }
+}
/* End of Main Container */
/* Navbar */