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
2024-06-30 23:23:25 +05:00

74 lines
966 B
CSS

@font-face {
font-weight: 100 900;
src: url("/fonts/Figtree-VariableFont_wght.ttf") format("truetype");
font-family: "Figtree";
}
*,
*::before,
*::after {
box-sizing: border-box;
}
* {
margin: 0;
}
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
}
body {
background-color: #f4d04e;
font-family: "Figtree";
}
.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;
}