Skip to content

Commit

Permalink
fix: fix heading style in posts/<page-num> layouts
Browse files Browse the repository at this point in the history
Heading styles not applying properly in Main.astro layout. Fix this problem by applying id selector.
  • Loading branch information
satnaing committed Nov 3, 2022
1 parent c1df953 commit 5eeea66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/layouts/Main.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ const { pageTitle, pageDesc } = Astro.props;
</main>

<style>
main {
#main-content {
@apply max-w-3xl mx-auto px-4 pb-12 w-full;
}
h1 {
#main-content h1 {
@apply font-semibold text-2xl sm:text-3xl;
}
p {
#main-content p {
@apply mt-2 mb-6 italic;
}
</style>

0 comments on commit 5eeea66

Please sign in to comment.