Skip to content

Commit

Permalink
Refactor post description styling
Browse files Browse the repository at this point in the history
  • Loading branch information
zackbraksa committed Dec 17, 2024
1 parent 72ba953 commit d4cfeb2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/posts/[slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const { Content } = await post.render();
<h1 class="text-lg">
{post.data.title} - {formatDate(post.data.publishedAt)}
</h1>
<p class="italic">{post.data.description}</p>
<p>{post.data.description}</p>
</header>

<Content />
Expand Down
8 changes: 8 additions & 0 deletions src/styles/post.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@
@apply leading-7;
}

.post header p {
@apply italic text-slate-600;
}

.post code {
@apply rounded-sm bg-neutral-800 px-1 py-[2px] text-orange-500;
}

.post h1 {
@apply mt-8 text-3xl text-slate-400;
}

.post h2 {
@apply mt-6 text-3xl text-neutral-100;
}
Expand Down

0 comments on commit d4cfeb2

Please sign in to comment.