Update follower cards to have better responsive design (#4198)
* change a follower's name to be very long * Add more media query and make the entire row match the tallest card * fix lint in followerCollection file * make media queries easier to read
This commit is contained in:
@@ -3,17 +3,14 @@
|
||||
.followers {
|
||||
width: 100%;
|
||||
padding: 5px;
|
||||
margin: 0 auto;
|
||||
min-height: 20vh;
|
||||
|
||||
.followerRow {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
@media (width <= 900px) {
|
||||
.followerRow {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
gap: 16px 0;
|
||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||
grid-auto-rows: min-content;
|
||||
}
|
||||
|
||||
@include screen(mobile) {
|
||||
@@ -22,6 +19,24 @@
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
@media (640px <= width < 960px) {
|
||||
.followerRow {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@media (960px <= width < 1280px) {
|
||||
.followerRow {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@media (width >= 1280px) {
|
||||
.followerRow {
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.noFollowers {
|
||||
|
||||
Reference in New Issue
Block a user