Skip to content

Commit

Permalink
feat: recent-page-update
Browse files Browse the repository at this point in the history
  • Loading branch information
maik791277 authored and jsapro committed Jan 15, 2024
1 parent 44aa48f commit 6842398
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/pages/recipe-list/receipt-list.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
width: calc(100% - 128px * 2);
display: flex;
flex-direction: column;
padding: 48px 0;

@media screen and (width <= 768px) {
width: calc(100% - 50px * 2);
}
}

.recipelist__container {
Expand All @@ -21,4 +26,22 @@
columns: 20px;
grid-template-columns: repeat(3, calc(100% / 3 - 40px));
grid-auto-rows: 380px;

@media screen and (width <= 1100px) {
grid-template-columns: repeat(2, calc(50% - 20px));
}

@media screen and (width <= 768px) {
grid-auto-rows: 150px;
justify-items: center;
grid-template-columns: repeat(3, calc(30% - 20px));
}

@media screen and (width <= 500px) {
grid-template-columns: repeat(2, calc(50% - 20px));
}

@media screen and (width <= 350px) {
grid-template-columns: 1fr;
}
}

0 comments on commit 6842398

Please sign in to comment.