mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 23:57:22 +02:00
fix(v1): apply negative margin to docs heading only (#2028)
This commit is contained in:
parent
a2c929824f
commit
0984dfcde5
2 changed files with 9 additions and 9 deletions
|
@ -97,7 +97,7 @@ class DocsLayout extends React.Component {
|
|||
collapsible={this.props.config.docsSideNavCollapsible}
|
||||
metadata={metadata}
|
||||
/>
|
||||
<Container className="mainContainer">
|
||||
<Container className="mainContainer docsContainer">
|
||||
<DocComponent
|
||||
metadata={metadata}
|
||||
content={content}
|
||||
|
|
|
@ -653,12 +653,12 @@ blockquote {
|
|||
padding: 0;
|
||||
}
|
||||
|
||||
.mainContainer .wrapper .post .postHeader:before,
|
||||
.mainContainer .wrapper .post .postHeaderTitle:before {
|
||||
content: "";
|
||||
.docsContainer .wrapper .post .postHeader:before,
|
||||
.docsContainer .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 */
|
||||
margin-top: -90px; /* negative fixed header height and empty space below it */
|
||||
visibility: hidden;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
@ -726,12 +726,12 @@ blockquote {
|
|||
}
|
||||
|
||||
@media only screen and (max-width: 1023px) {
|
||||
.mainContainer .wrapper .post .postHeader:before,
|
||||
.mainContainer .wrapper .post .postHeaderTitle:before {
|
||||
content: "";
|
||||
.docsContainer .wrapper .post .postHeader:before,
|
||||
.docsContainer .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 */
|
||||
margin-top: -200px; /* negative fixed header height and empty space below it */
|
||||
visibility: hidden;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue