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 9ddd57d
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 0 auto;
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) {
max-width: 50%;
padding: 0 $spacing-2 $spacing-3 $spacing-2;
}

@media only screen and (min-width: $bp-md) {
max-width: 33.33%;
}
}
}

0 comments on commit 9ddd57d

Please sign in to comment.