Skip to content

Commit

Permalink
Switch blog post grid to flexbox for IE11 support
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelcarter committed Mar 14, 2021
1 parent 7eb9c27 commit 133d982
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions src/assets/styles/_writings.scss
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
ul.writings {
display: grid;
grid-template-columns: 1fr;
column-gap: $spacing-1;
row-gap: $spacing-2;
display: flex;
flex-wrap: wrap;
padding: 0;

@media only screen and (min-width: $bp-sm) {
grid-template-columns: 1fr 1fr;
column-gap: $spacing-3;
row-gap: $spacing-3;
padding: 0 $spacing-3;
@media only screen and (min-width: $layout-width-semi-wide) {
padding: 0;
}

@media only screen and (min-width: $bp-md) {
grid-template-columns: 1fr 1fr 1fr;
}
li {
flex: 0 1 100%;
margin: 0;
padding: 0 0 $spacing-2 0;

@media only screen and (min-width: $layout-width-semi-wide) {
padding: 0;
@media only screen and (min-width: $bp-sm) {
flex: 0 1 50%;
padding: 0 $spacing-2 $spacing-3 $spacing-2;
}

@media only screen and (min-width: $bp-md) {
flex: 0 1 33.3%;
}
}
}

0 comments on commit 133d982

Please sign in to comment.