Skip to content

Commit

Permalink
fix: not-prose p tag inconsistent style (#126)
Browse files Browse the repository at this point in the history
* fix: not-prose p tag should reset styles

* chore: compile CSS
  • Loading branch information
imfing authored Oct 3, 2023
1 parent 924d850 commit 55ff819
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/css/compiled/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1505,6 +1505,10 @@ video {
.content p:first-child {
margin-top: 0px;
}
.content .not-prose p {
margin-top: 0px;
line-height: 1.5;
}
.content a {
--tw-text-opacity: 1;
color: hsl(var(--primary-hue) 100% 45% / var(--tw-text-opacity));
Expand Down
3 changes: 3 additions & 0 deletions assets/css/typography.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
p {
@apply mt-6 leading-7 first:mt-0;
}
.not-prose p {
@apply mt-0 leading-normal;
}
a {
@apply text-primary-600 underline decoration-from-font [text-underline-position:from-font];
}
Expand Down

0 comments on commit 55ff819

Please sign in to comment.