Merge pull request #262 from Allen-1998/fix/layout
fix: homepage icon grid layout
This commit is contained in:
@@ -8,9 +8,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.grid {
|
.grid {
|
||||||
display: flex;
|
display: grid;
|
||||||
flex-flow: row wrap;
|
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
|
||||||
justify-content: space-between;
|
|
||||||
max-width: 1120px;
|
max-width: 1120px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
@@ -263,6 +262,10 @@ figcaption > p {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 536px) {
|
@media screen and (max-width: 536px) {
|
||||||
|
.grid {
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
|
||||||
|
}
|
||||||
|
|
||||||
.grid-item {
|
.grid-item {
|
||||||
width: 108px;
|
width: 108px;
|
||||||
height: unset;
|
height: unset;
|
||||||
|
|||||||
Reference in New Issue
Block a user