Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 34 additions & 25 deletions e-commerce-app/src/components/ProductCard/ProductCard.module.scss
Original file line number Diff line number Diff line change
@@ -1,28 +1,37 @@
.card {
display: flex;
width: 200px;
flex-direction: column;
align-items: center;
justify-content: space-between;
padding: 1rem;
border: 2px green double;

&__text {
height: 100%;
display: flex;
width: 200px;
flex-direction: column;
align-items: center;
flex-wrap: wrap;
}
&__title {
width: 100%;
text-align: center;
color: cadetblue;
font-weight: 900;
}
&__price {
padding-top: 1rem;
width: 50%;
font-weight: 700;
text-align: center;
}
}
justify-content: space-between;
padding: 1rem;
border: 2px green double;
transition: box-shadow .3s ease-in-out;
cursor: pointer;

&:hover {
box-shadow: 8px 10px 5px 2px #14763033;
transition: box-shadow .3s ease-in-out;
}

&__text {
height: 100%;
display: flex;
align-items: center;
flex-wrap: wrap;
}

&__title {
width: 100%;
text-align: center;
color: cadetblue;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It iS NeCEsSaRy tO USe vArIAbLeS FoR cOLoRs

#28 (comment)

font-weight: 900;
}

&__price {
padding-top: 1rem;
width: 50%;
font-weight: 700;
text-align: center;
}
}