Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.

Commit 0963614

Browse files
Stephen BarlowStephen Barlow
andauthored
Tweak the spacing between certain headers (#154)
Co-authored-by: Stephen Barlow <[email protected]>
1 parent 8b9c267 commit 0963614

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

packages/gatsby-theme-apollo-docs/src/components/page-content.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ const InnerWrapper = styled.div({
2121
width: 0,
2222
'.api-ref': {
2323
h4: {
24-
marginTop: 50,
2524
code: {
2625
fontSize: '1.1em'
2726
}
@@ -59,9 +58,17 @@ const BodyContent = styled.div({
5958
}
6059
},
6160
'*:not(style) +': {
62-
[['h2', 'h3', 'h4']]: {
63-
marginTop: -16,
61+
[['h2', 'h3', 'h4', 'h5']]: {
6462
paddingTop: HEADER_HEIGHT
63+
},
64+
[['h2']]: {
65+
marginTop: -25,
66+
},
67+
[['h3']]: {
68+
marginTop: -30,
69+
},
70+
[['h4', 'h5']]: {
71+
marginTop: -40,
6572
}
6673
},
6774
img: {

0 commit comments

Comments
 (0)