Skip to content

Commit

Permalink
chore: change to section styles
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jun 3, 2020
1 parent 56eb6bb commit 9e82c4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/templates/ReferenceTemplate.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { useState } from 'react';
import cx from 'classnames';
import { graphql } from 'gatsby';
import PropTypes from 'prop-types';
import ReactMarkdown from 'react-markdown';
Expand Down Expand Up @@ -42,10 +43,10 @@ const ReferenceTemplate = ({ data }) => {

{componentData && componentData.__docs__ && (
<>
<div className={styles.description}>
<section className={cx(styles.section, styles.description)}>
<ReactMarkdown source={componentData.__docs__.text} />
</div>
<section className={styles.examples}>
</section>
<section className={styles.section}>
<h2>Examples</h2>
<div>
{examples.map((example, i) => (
Expand Down
4 changes: 2 additions & 2 deletions src/templates/ReferenceTemplate.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@
}
}

.examples {
margin-top: 2rem;
.section:not(:last-child) {
margin-bottom: 2rem;
}

0 comments on commit 9e82c4e

Please sign in to comment.