Skip to content

Commit

Permalink
Fix broken layout issue with the safari browser
Browse files Browse the repository at this point in the history
  • Loading branch information
girishpanchal30 committed Oct 1, 2024
1 parent 5983dd0 commit d36920b
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions assets/js/src/about/scss/_product-cards.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.product-cards {
display: grid;
gap: 30px;

grid-template-columns: repeat(3,minmax(0,1fr));
@media (--tablet) {
grid-template-columns: 1fr 1fr;
}
Expand All @@ -13,9 +13,12 @@

.product-card {
background: #fff;
display: grid;
border: var(--border);

display: flex;
flex-direction: column;
*{
box-sizing: border-box;
}
h2 {
font-size: 21px;
margin: 0;
Expand All @@ -29,11 +32,13 @@
.header {
padding: 20px 15px 0;
display: flex;
width: 100%;
align-items: center;
}

.body {
padding: 20px 15px;
width: 100%;
}

img {
Expand All @@ -48,8 +53,10 @@
display: flex;
align-items: center;
padding: 15px;
width: 100%;
margin-top: auto;
align-self: flex-end;
justify-content: space-between;
justify-content: space-between;

p {
margin: 8px 0;
Expand Down

0 comments on commit d36920b

Please sign in to comment.