Skip to content

Commit

Permalink
Merge pull request #268 from LNischala/main
Browse files Browse the repository at this point in the history
Improved hover effect of add to cart button
  • Loading branch information
swaraj-das authored Oct 11, 2024
2 parents 988e1e3 + b795ce5 commit a77ce68
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -356,26 +356,44 @@ button {
padding: 12px 14px;
}

button img {
width: 30px;
/* button img {
width: 18px;
display: none;
}
button:hover img {
display: block;
} */

#buy-btn img{
width: 30px;
display: none;
}

#buy-btn:hover img{
display: block;
}

#cart-btn img{
width: 18px;
display: none;
}

#cart-btn:hover img{
display: block;
}

#cart-btn:hover
{
width: 160px;
width: 140px;
display: flex;
align-items: center;
justify-content: space-between;

}
#buy-btn:hover
{
width: 160px;
width: 140px;
display: flex;
align-items: center;
justify-content: space-between;
Expand Down

0 comments on commit a77ce68

Please sign in to comment.