portfolio_leptos/style/post.css

108 lines
2.2 KiB
CSS
Raw Normal View History

2023-11-26 20:43:17 +01:00
@layer components {
.posts, .post {
2024-01-07 23:00:54 +01:00
@apply min-h-screen;
2023-11-26 20:43:17 +01:00
2023-11-26 21:36:28 +01:00
& h1 {
2024-01-07 23:00:54 +01:00
@apply text-4xl;
2023-11-26 21:36:28 +01:00
}
& h2 {
2024-01-07 23:00:54 +01:00
@apply text-3xl;
2023-11-26 21:36:28 +01:00
}
& h3 {
2024-01-07 23:00:54 +01:00
@apply text-2xl;
2023-11-26 21:36:28 +01:00
}
& h4 {
2024-01-07 23:00:54 +01:00
@apply text-xl;
2023-11-26 21:36:28 +01:00
}
& h5 {
2024-01-07 23:00:54 +01:00
@apply text-lg;
2023-11-26 21:36:28 +01:00
}
& h6 {
2024-01-07 23:00:54 +01:00
@apply text-base;
}
& 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 {
2024-01-07 23:00:54 +01:00
@apply list-disc list-inside ml-5;
}
& ol li {
2024-01-07 23:00:54 +01:00
@apply list-decimal list-inside ml-5;
}
& a {
@apply text-primary;
2023-11-26 20:43:17 +01:00
}
2024-01-07 00:23:25 +01:00
& blockquote {
2024-01-07 23:00:54 +01:00
@apply border-l-4 border-primary/50 dark:border-dark_primary/50 pl-3 my-3 bg-primary/5 dark:bg-dark_primary/5;
2024-01-07 00:23:25 +01:00
}
& .tags_list {
@apply flex flex-row flex-wrap gap-2;
}
2024-01-07 23:00:54 +01:00
& code {
@apply bg-primary/10 dark:bg-dark_primary/10 rounded-md p-1;
}
/* Fix useless padding */
& pre code {
@apply p-0;
}
2024-01-12 18:49:41 +01:00
.metadata {
& > .icon_container, & > .tags_list {
@apply my-1;
}
}
2023-11-26 20:43:17 +01:00
}
.posts {
& > .posts__cards {
2024-01-07 23:00:54 +01:00
@apply grid grid-cols-1 gap-5 md:grid-cols-2;
@apply mx-auto max-w-3xl;
2023-11-26 20:43:17 +01:00
2024-01-07 00:23:25 +01:00
& > div {
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;
2023-12-09 22:16:05 +01:00
& > .warning {
@apply absolute top-0 right-0 bg-warning text-on_warning dark:bg-dark_warning dark:text-dark_on_warning rounded-bl-md p-3;
}
2023-11-26 20:43:17 +01:00
& > img {
@apply w-full h-48 object-cover;
}
& > div {
2024-01-12 18:49:41 +01:00
@apply p-5;
2023-11-26 20:43:17 +01:00
}
}
}
}
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
}