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