frontendmentor/product-preview-card-component-main/styles.css

126 lines
1.9 KiB
CSS
Raw Normal View History

2025-01-02 22:43:50 -05:00
:root {
margin: 0;
padding: 0;
background-color: hsl(30, 38%, 92%);
2025-01-03 17:59:38 -05:00
font-size: 18px;
2025-01-02 22:43:50 -05:00
}
html,
body {
margin: 0;
display: flex;
flex-direction: column;
min-height: 100vh;
font-family: "Montserrat", serif;
}
.container {
display: flex;
flex-direction: column;
padding: 2.5em 2em 0 2em;
}
.content {
display: flex;
flex-direction: column;
background-color: hsl(0, 0%, 100%);
padding: 2em;
border-radius: 0 0 0.5em 0.5em;
}
.content h3,
p {
font-size: 1.5em;
color: hsl(228, 12%, 48%);
}
.content h3 {
letter-spacing: 0.2em;
}
.content p {
line-height: 1.6em;
text-align: left;
font-weight: 500;
font-size: 1.6em;
word-wrap: break-word;
}
.content h1 {
font-size: 3.5em;
font-weight: 700;
font-family: "Fraunces", serif;
margin: 0;
padding: 0;
}
.hero-img {
border-radius: 0.5em 0.5em 0 0;
2025-01-03 17:59:38 -05:00
max-width: 100%;
height: auto;
2025-01-02 22:43:50 -05:00
}
.price {
display: flex;
align-items: center;
gap: 20px;
}
.price h2,
span {
padding: 0;
margin: 0;
}
.price h2 {
font-size: 3.5em;
font-family: "Fraunces", serif;
color: hsl(158, 36%, 37%);
}
.price span {
font-size: 1.5em;
}
.btn {
padding: 0.8em;
margin-top: 1em;
font-size: 1.5em;
font-family: "Montserrat", serif;
font-weight: 700;
color: hsl(0, 0%, 100%);
background-color: hsl(158, 36%, 37%);
border-radius: 0.5em;
border: none;
cursor: pointer;
}
.attribution {
flex: 1;
display: flex;
align-items: end;
align-self: center;
margin-bottom: 1em;
}
.material-symbols-outlined {
vertical-align: middle;
margin-right: 10px;
}
2025-01-03 17:59:38 -05:00
@media only screen and (min-width: 800px) {
2025-01-02 22:43:50 -05:00
.container {
display: flex;
flex-direction: row;
justify-content: center;
2025-01-03 17:59:38 -05:00
width: 60vw;
align-self: center;
2025-01-02 22:43:50 -05:00
}
.content {
2025-01-03 17:59:38 -05:00
width: 50%;
border-radius: 0 0.5em 0.5em 0;
}
.hero-img {
width: 50%;
border-radius: 0.5rem 0 0 0.5em;
object-fit: cover;
2025-01-02 22:43:50 -05:00
}
}