Skip to content

Commit

Permalink
feat: add spacing under each component example
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jun 2, 2020
1 parent b2ef503 commit 8d8dd83
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/templates/ReferenceTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ const ReferenceTemplate = ({ data }) => {
<h2>Examples</h2>
<section>
{examples.map((example, i) => (
<ComponentExample key={i} example={example} />
<ComponentExample
key={i}
className={styles.componentExample}
example={example}
/>
))}
</section>
</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 @@ -17,3 +17,7 @@
.sidebar {
grid-area: sidebar;
}

.componentExample:not(:last-child) {
margin-bottom: 2rem;
}

0 comments on commit 8d8dd83

Please sign in to comment.