100-project-100-days-website/100_projects/27-fill-element-background-from-other/style.css
2023-03-20 17:14:04 +03:00
Ask

52 lines
918 B
CSS

{7633b379a23cf42232724f344117cdf959c9f050 true 918 style.css 0xc001ec93b0}

* {
box-sizing: border-box;
padding: 0;
margin: 0;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.product {
width: 325px;
margin: 20px auto;
box-shadow: 0 0 30px #ddd;
padding: 20px;
text-align: center;
overflow: hidden;
border-radius: 5px;
}
.product .number {
background-color: #DB7093;
color: #fff;
width: 60px;
height: 60px;
border-radius: 50%;
margin: auto;
display: flex;
justify-content: center;
align-items: center;
font-weight: bold;
font-size: 26px;
transition: 1.5s;
border: 1px solid #fff;
}
.product h3 {
margin: 15px 0;
font-size: 26px;
transition: 0.6s;
}
.product p {
line-height: 1.6;
transition: 0.6s;
font-size: 18px;
}
.product:hover .number {
box-shadow: 0 0 0 500px #DB7093;
}
.product:hover h3,
.product:hover p {
color: white;
}