1
Fork 0
This repository has been archived on 2024-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
blog-preview-card/styles.css

75 lines
966 B
CSS
Raw Normal View History

2024-06-30 15:35:44 +00:00
@font-face {
font-weight: 100 900;
src: url("/fonts/Figtree-VariableFont_wght.ttf") format("truetype");
font-family: "Figtree";
}
2024-06-30 18:23:25 +00:00
*,
*::before,
*::after {
box-sizing: border-box;
}
* {
margin: 0;
}
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
}
2024-06-30 15:35:44 +00:00
body {
2024-06-30 18:23:25 +00:00
background-color: #f4d04e;
2024-06-30 15:35:44 +00:00
font-family: "Figtree";
}
2024-06-30 18:23:25 +00:00
.container {
padding: 24px;
min-height: 100dvh;
}
.card {
display: flex;
flex-direction: column;
gap: 24px;
filter: drop-shadow(8px 8px black);
border: 1px black solid;
border-radius: 20px;
background-color: white;
padding: 24px;
.image {
border-radius: 10px;
max-width: fit-content;
height: fit-content;
overflow: hidden;
img {
width: auto;
height: 200px;
object-fit: cover;
}
}
.content {
display: flex;
flex-direction: column;
gap: 12px;
}
}
.center {
display: flex;
justify-content: center;
align-items: center;
}