Skip to content

Commit

Permalink
#34 Fix styles for WorkSingle
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmnunes committed Aug 25, 2018
1 parent aec6fb8 commit 58cdb43
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gatsby-config.js
Expand Up @@ -21,8 +21,8 @@ module.exports = {
// It's important to specify the maxWidth (in pixels) of
// the content container as this plugin uses this as the
// base for generating different widths of each image.
maxWidth: 590,
wrapperStyle: 'margin: 15px -30px !important',
maxWidth: 700,
// wrapperStyle: 'margin: 15px -30px !important',
},
},
],
Expand Down
9 changes: 9 additions & 0 deletions src/assets/styles/global.css
Expand Up @@ -206,6 +206,11 @@ input:required {
margin: 0 auto;
}

:global(.workSingle-wrapper) {
max-width: 700px;
margin: 0 30px;
}

:global(.flex-grid) {
display: block;
}
Expand Down Expand Up @@ -241,6 +246,10 @@ input:required {
}

@media (--smaller-viewport) {
:global(.workSingle-wrapper) {
margin: 0 auto;
}

:global(.flex-grid) {
display: flex;
}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/WorkSingle.js
Expand Up @@ -31,7 +31,7 @@ export default class WorkSingle extends Component {
/>
<div className={styles.backdrop} />
</div>
<div className="section-wrapper">
<div className="workSingle-wrapper">
<div className={styles.tags}>
{data.markdownRemark.frontmatter.tags.map(({ tag }) => (
<span className={styles.tag} key={tag}>{tag}</span>
Expand All @@ -51,7 +51,7 @@ export default class WorkSingle extends Component {
</div>
</div>
<div
className={`section-wrapper ${styles.postBody}`}
className={`workSingle-wrapper ${styles.postBody}`}
dangerouslySetInnerHTML={{
__html: data.markdownRemark.html,
}}
Expand Down

0 comments on commit 58cdb43

Please sign in to comment.