Blog: make post listings mobile responsive
This commit is contained in:
parent
f4d8a83d24
commit
bcd362995b
1 changed files with 10 additions and 3 deletions
|
@ -5,10 +5,17 @@
|
|||
* The parent <main> must have a class called ".post-listing"
|
||||
*
|
||||
*/
|
||||
@media (min-width: 980px) {
|
||||
main.post-listing {
|
||||
width: 960px;
|
||||
margin: auto;
|
||||
}
|
||||
}
|
||||
@media not (min-width: 980px) {
|
||||
main.post-listing {
|
||||
margin: 30px;
|
||||
}
|
||||
}
|
||||
main.post-listing ul {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
|
Loading…
Reference in a new issue