Skip to content

Commit

Permalink
Grid responsiveness
Browse files Browse the repository at this point in the history
Signed-off-by: Antoine THEBAUD <[email protected]>
  • Loading branch information
Antoine THEBAUD committed Nov 4, 2024
1 parent 7c86824 commit cb66a1a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,22 @@

.grid.cards.image-grid {
grid-template-columns: repeat(4, 1fr); /* Four columns for the image grid */
}

@media (max-width: 1024px) {
.grid.cards.image-grid {
grid-template-columns: repeat(3, 1fr); /* Three columns on smaller screens */
}
}

@media (max-width: 768px) {
.grid.cards.image-grid {
grid-template-columns: repeat(2, 1fr); /* Two columns on tablets */
}
}

@media (max-width: 480px) {
.grid.cards.image-grid {
grid-template-columns: 1fr; /* Single column on mobile */
}
}

0 comments on commit cb66a1a

Please sign in to comment.