Skip to content

Commit

Permalink
#34 First styles for post body and tags widget
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Nunes committed Jul 30, 2018
1 parent be7ed6f commit 4f6ec59
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/templates/WorkSingle.js
Expand Up @@ -27,7 +27,7 @@ export default class WorkSingle extends Component {
<div className={styles.backdrop} />
</div>
<div
className={`section-wrapper ${styles.body}`}
className={`section-wrapper ${styles.postBody}`}
dangerouslySetInnerHTML={{
__html: data.markdownRemark.html,
}}
Expand Down
18 changes: 17 additions & 1 deletion src/templates/WorkSingle.module.css
Expand Up @@ -14,4 +14,20 @@
width: 100%;
height: 100%;
background: color(var(--blue) alpha(0.28));
}
}

.postBody {
& h1 {
font-size: 3rem;
color: color(var(--text) tint(20%));
text-transform: none;
border-bottom: none;
padding-bottom: 1rem;
margin-top: 1rem;
margin-bottom: 1rem;
}

& h2 {
font-size: 2.5rem;
}
}
5 changes: 5 additions & 0 deletions static/admin/config.yml
Expand Up @@ -25,6 +25,11 @@ collections:
widget: list
fields:
- {label: Image, name: image, widget: image}
- label: Tags
name: tags
widget: list
fields:
- {label: Tag, name: tag, widget: string}
- {label: Body, name: body, widget: markdown}

- label: "Content"
Expand Down

0 comments on commit 4f6ec59

Please sign in to comment.