Skip to content

Commit bceab41

Browse files
author
Stephen Barlow
authored
Merge pull request apollographql#158 from apollographql/mermaid-bottom-margin
Give Mermaid SVG blocks same bottom margin as other blocks.
2 parents 16038fd + e35c5c8 commit bceab41

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/gatsby-theme-apollo-core/src/styles.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ body {
1212

1313
@default-margin: 1.45rem;
1414

15-
h1, h2, h3, h4, h5, h6, p, ul, ol, img.screenshot {
15+
h1, h2, h3, h4, h5, h6, p, ul, ol, img, div.mermaid {
1616
margin: 0;
1717
margin-bottom: @default-margin;
1818
}

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ const BodyContent = styled.div({
7373
},
7474
img: {
7575
display: 'block',
76-
maxWidth: '100%',
77-
margin: '0 auto'
76+
maxWidth: '100%'
7877
},
7978
'.mermaid svg': {
8079
maxWidth: '100%'

0 commit comments

Comments
 (0)