Make grid cards work on mobile

This commit is contained in:
Emi Simpson 2021-11-08 17:19:21 -05:00
parent e5187e4e1f
commit 4ceb5f77c1
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: A12F2C2FFDC3D847

View file

@ -84,6 +84,25 @@ header {
background-color: #ff964a;
grid-area: 3/3/5/4;
}
@media (max-width: 1160px) {
#cards {
grid-template-columns: repeat(2, 350px);
gap: 50px;
justify-content: center;
}
.card:nth-child(3) {
grid-area: 3/1/6/2;
}
}
@media (max-width: 800px) {
#cards {
grid-template-columns: 350px;
row-gap: 50px
}
#cards .card {
grid-area: initial;
}
}
/* Card Specific Details */
.card:nth-child(1) > h2 {