From cfe5b8820a1a8f4059432a5ec814ac42c4a0b1c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Fri, 13 Sep 2024 21:46:22 +0200 Subject: [PATCH] pl-fe: improve status content styles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- packages/pl-fe/src/styles/markup.scss | 30 ++++++++++++++++++--------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/packages/pl-fe/src/styles/markup.scss b/packages/pl-fe/src/styles/markup.scss index a180078eb..112f6d5de 100644 --- a/packages/pl-fe/src/styles/markup.scss +++ b/packages/pl-fe/src/styles/markup.scss @@ -14,18 +14,16 @@ } hr { - @apply mb-4; - - &:last-child { - @apply mb-0; + &:not(:last-child) { + @apply mb-4; } } p { - @apply mb-4 whitespace-pre-wrap; + @apply whitespace-pre-wrap; - &:last-child { - @apply mb-0; + &:not(:last-child) { + @apply mb-4; } } @@ -43,7 +41,11 @@ ul, ol { - @apply pl-10 mb-4; + @apply pl-10; + + &:not(:last-child) { + @apply mb-4; + } } ul { @@ -55,7 +57,11 @@ } blockquote { - @apply py-1 pl-4 mb-4 border-l-4 border-solid border-gray-400 text-gray-500 dark:text-gray-400; + @apply py-1 pl-4 border-l-4 border-solid border-gray-400 text-gray-500 dark:text-gray-400; + + &:not(:last-child) { + @apply mb-4; + } } table { @@ -87,7 +93,11 @@ /* Code block */ pre { - @apply py-2 px-3 mb-4 leading-6 overflow-x-auto rounded-md break-all; + @apply py-2 px-3 leading-6 overflow-x-auto rounded-md break-all; + + &:not(:last-child) { + @apply mb-4; + } } pre:last-child {