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

127 lines
1.6 KiB
CSS
Raw Permalink 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;
}
2024-07-03 14:56:44 +00:00
img {
2024-06-30 18:23:25 +00:00
display: block;
max-width: 100%;
}
2024-06-30 15:35:44 +00:00
body {
2024-07-03 14:56:44 +00:00
display: flex;
justify-content: center;
align-items: center;
2024-06-30 18:23:25 +00:00
2024-07-03 14:56:44 +00:00
background-color: #f4d04e;
2024-06-30 18:23:25 +00:00
padding: 24px;
min-height: 100dvh;
2024-07-03 14:56:44 +00:00
font-family: "Figtree";
2024-06-30 18:23:25 +00:00
}
.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;
2024-06-30 19:09:15 +00:00
max-width: 24rem;
2024-07-03 14:56:44 +00:00
}
.image-container {
display: flex;
justify-content: center;
align-items: center;
border-radius: 10px;
overflow: hidden;
img {
height: 200px;
object-fit: cover;
}
}
2024-06-30 18:23:25 +00:00
2024-07-03 14:56:44 +00:00
.content {
display: flex;
flex-direction: column;
gap: 12px;
}
.learning {
border-radius: 4px;
background-color: #f4d04e;
padding: 4px 12px;
width: fit-content;
font-weight: 800;
font-size: 14px;
line-height: 1.5;
}
.date {
font-weight: 500;
font-size: 14px;
line-height: 1.5;
}
2024-06-30 18:23:25 +00:00
2024-07-03 14:56:44 +00:00
.heading {
font-weight: 800;
font-size: 24px;
line-height: 1.5;
}
.description {
color: #7f7f7f;
font-weight: 500;
font-size: 16px;
line-height: 1.5;
}
@media (max-width: 576px) {
.learning {
font-size: 12px;
2024-06-30 18:23:25 +00:00
}
2024-07-03 14:56:44 +00:00
.date {
font-size: 12px;
2024-06-30 19:09:15 +00:00
}
2024-07-03 14:56:44 +00:00
& h1 {
font-size: 20px;
}
2024-06-30 19:09:15 +00:00
2024-07-03 14:56:44 +00:00
.description {
font-size: 14px;
2024-06-30 18:23:25 +00:00
}
}
2024-07-03 14:56:44 +00:00
.author {
2024-06-30 18:23:25 +00:00
display: flex;
align-items: center;
2024-07-03 14:56:44 +00:00
gap: 12px;
p {
font-weight: 800;
font-size: 14px;
line-height: 1.5;
}
2024-06-30 18:23:25 +00:00
}