portfolio_leptos/style/post.css

77 lines
1.5 KiB
CSS
Raw Normal View History

2023-11-26 20:43:17 +01:00
@layer components {
.posts, .post {
@apply bg-surface dark:bg-dark_surface text-on_surface dark:text-dark_on_surface;
2023-12-09 19:08:27 +01:00
@apply min-h-screen p-5;
2023-11-26 20:43:17 +01:00
2023-11-26 21:36:28 +01:00
& h1 {
@apply text-5xl;
2023-11-26 21:36:28 +01:00
}
& h2 {
@apply text-4xl;
2023-11-26 21:36:28 +01:00
}
& h3 {
@apply text-3xl;
2023-11-26 21:36:28 +01:00
}
& h4 {
@apply text-2xl;
2023-11-26 21:36:28 +01:00
}
& h5 {
@apply text-xl;
2023-11-26 21:36:28 +01:00
}
& h6 {
@apply text-lg;
}
& h1, & h2, & h3, & h4, & h5, & h6 {
2023-12-09 16:49:05 +01:00
@apply my-3 font-bold;
}
& p {
@apply text-base my-2;
}
& ul li {
@apply list-disc list-inside;
}
& ol li {
@apply list-decimal list-inside;
2023-11-26 20:43:17 +01:00
}
}
.posts {
& > .posts__cards {
@apply grid grid-cols-1 gap-5 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5 m-5;
2023-11-26 21:36:28 +01:00
& > a {
2023-11-26 20:43:17 +01:00
@apply rounded-xl overflow-hidden relative;
@apply bg-primary/10 dark:bg-dark_primary/10;
@apply shadow-md shadow-primary/5 dark:shadow-dark_primary/5;
& > img {
@apply w-full h-48 object-cover;
}
& > div {
@apply p-5 flex flex-col gap-3;
}
}
}
}
2023-11-26 21:36:28 +01:00
.post {
& > div {
@apply mx-auto max-w-3xl;
2023-12-09 16:49:05 +01:00
@apply flex flex-col;
2023-11-26 21:36:28 +01:00
}
& pre > code {
@apply rounded-md my-2;
}
}
2023-11-26 20:43:17 +01:00
}