-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch blog post grid to flexbox for IE11 support
- Loading branch information
1 parent
7eb9c27
commit 133d982
Showing
1 changed file
with
16 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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%; | ||
} | ||
} | ||
} |