From 55ff819daeab4eecfcf785d6edfa00e49691e890 Mon Sep 17 00:00:00 2001 From: Xin Date: Tue, 3 Oct 2023 09:12:30 +0100 Subject: [PATCH] fix: not-prose p tag inconsistent style (#126) * fix: not-prose p tag should reset styles * chore: compile CSS --- assets/css/compiled/main.css | 4 ++++ assets/css/typography.css | 3 +++ 2 files changed, 7 insertions(+) diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index 3a82f32e..cdeae78c 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -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)); diff --git a/assets/css/typography.css b/assets/css/typography.css index e4192fd3..b302c800 100644 --- a/assets/css/typography.css +++ b/assets/css/typography.css @@ -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]; }