1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-12-22 17:23:22 +01:00

layout tweak

This commit is contained in:
Matthias Kretschmann 2018-09-12 18:00:51 +02:00
parent 450c4a41ab
commit 66043ee4a9
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 5 additions and 4 deletions

View File

@ -47,7 +47,7 @@ export const IndexQuery = graphql`
slug
img {
childImageSharp {
fluid(maxWidth: 990, quality: 85) {
fluid(maxWidth: 980, quality: 85) {
...GatsbyImageSharpFluid_withWebp
}
}

View File

@ -5,15 +5,16 @@
display: flex;
justify-content: space-between;
flex-wrap: wrap;
max-width: $projectImageMaxWidth;
max-width: calc(#{$projectImageMaxWidth} + #{$spacer * 2});
margin: 0 auto;
padding: $spacer $spacer * 2;
}
}
.project {
flex: 0 0 calc(50% - #{$spacer * 2});
flex: 0 0 calc(50% - #{$spacer});
text-align: center;
margin-bottom: $spacer * 4;
margin-bottom: $spacer * 2;
position: relative;
&:last-child {