Skip to content

Commit

Permalink
✨ chore: Add media queries for responsiveness
Browse files Browse the repository at this point in the history
- Adjusted card dimensions for tablet and mobile screens
- Preserved hover effects and adjusted image proportions
- Ensured content visibility and alignment on smaller screens
  • Loading branch information
walterowisk committed Dec 19, 2024
1 parent ac6b2c7 commit a9efa60
Showing 1 changed file with 90 additions and 0 deletions.
90 changes: 90 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,94 @@ body {
padding-left: 12px;
padding-right: 12px;
}

.card {
width: 250px;
height: 300px;
}

.card:hover {
width: 500px;
}

.card .circle::before {
width: 300px;
height: 300px;
}

.card:hover .circle::before {
width: 100%;
height: 100%;
}

.card .circle .logo {
width: 200px;
}

.card .product_img {
height: 250px;
}

.card:hover .product_img {
height: 450px;
}

.card .content {
width: 60%;
left: 10%;
}

.card:hover .content {
left: 10px;
}

.card .content h2 {
font-size: 2em;
}
}

@media screen and (max-width: 480px) {
.card {
width: 200px;
height: 250px;
}

.card:hover {
width: 400px;
}

.card .circle::before {
width: 250px;
height: 250px;
}

.card:hover .circle::before {
width: 100%;
height: 100%;
}

.card .circle .logo {
width: 150px;
}

.card .product_img {
height: 200px;
}

.card:hover .product_img {
height: 350px;
}

.card .content {
width: 70%;
left: 5%;
}

.card:hover .content {
left: 5px;
}

.card .content h2 {
font-size: 1.5em;
}
}

0 comments on commit a9efa60

Please sign in to comment.