Skip to content

Commit

Permalink
chore: styles for descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
zstix committed Jun 2, 2020
1 parent 097c47e commit 6a188b9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/templates/ReferenceTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ const ReferenceTemplate = ({ data }) => {
<h1>{component}</h1>

{componentData && componentData.__docs__ && (
<ReactMarkdown source={componentData.__docs__.text} />
<div className={styles.description}>
<ReactMarkdown source={componentData.__docs__.text} />
</div>
)}
</main>
</Container>
Expand Down
14 changes: 14 additions & 0 deletions src/templates/ReferenceTemplate.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,17 @@
.sidebar {
grid-area: sidebar;
}

.description {
border-top: 1px solid var(--color-neutrals-200);
margin-top: 0.5rem;
padding-top: 0.5rem;

ul {
padding-top: 0.5rem;
}

li {
margin: 0;
}
}

0 comments on commit 6a188b9

Please sign in to comment.