Skip to content

Commit

Permalink
chore: add spacing for examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jun 3, 2020
1 parent 1f724b8 commit 56eb6bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/templates/ReferenceTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@ const ReferenceTemplate = ({ data }) => {
<div className={styles.description}>
<ReactMarkdown source={componentData.__docs__.text} />
</div>
<section>
<section className={styles.examples}>
<h2>Examples</h2>
<section>
<div>
{examples.map((example, i) => (
<ComponentExample
key={i}
className={styles.componentExample}
example={example}
/>
))}
</section>
</div>
</section>
</>
)}
Expand Down
4 changes: 4 additions & 0 deletions src/templates/ReferenceTemplate.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,7 @@
margin: 0;
}
}

.examples {
margin-top: 2rem;
}

0 comments on commit 56eb6bb

Please sign in to comment.