Skip to content

Commit

Permalink
App mobile view
Browse files Browse the repository at this point in the history
* Customize grid style of products components
  • Loading branch information
mohamedTaiebBsf committed Feb 23, 2022
1 parent a3cf9d8 commit 53df05f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/components/products/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,25 @@ const Container = styled.div`
display: grid;
grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
grid-gap: 1.25rem;
@media (max-width: 37.5rem) {
grid-template-columns: repeat(2, 1fr) !important;
}
@media (max-width: 27.5rem) {
grid-template-columns: 1fr !important;
}
@media (max-width: 72.5rem) {
grid-template-columns: repeat(3, 1fr);
}
@media (min-width: 90rem) {
grid-template-columns: repeat(4, minmax(18.75rem, 1fr));
}
@media (min-width: 112.5rem) {
grid-template-columns: repeat(5, minmax(18.75rem, 1fr));
}
`;

const ModalTitle = styled.h3`
Expand Down

0 comments on commit 53df05f

Please sign in to comment.