From 5b123f2c33edf34c4d514c24c0eb5e46cdf3b553 Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Fri, 26 Jul 2024 18:02:50 +0800 Subject: [PATCH] fix(markdown.scss): replace :first-of-type with :first-child for consistent styling of first elements --- src/renderer/src/assets/styles/markdown.scss | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/renderer/src/assets/styles/markdown.scss b/src/renderer/src/assets/styles/markdown.scss index eb067a19..ba1ae58e 100644 --- a/src/renderer/src/assets/styles/markdown.scss +++ b/src/renderer/src/assets/styles/markdown.scss @@ -8,16 +8,16 @@ margin-bottom: 5px; } - p:first-of-type { + p:first-child { margin-top: 0; } - h1:first-of-type, - h2:first-of-type, - h3:first-of-type, - h4:first-of-type, - h5:first-of-type, - h6:first-of-type { + h1:first-child, + h2:first-child, + h3:first-child, + h4:first-child, + h5:first-child, + h6:first-child { margin-top: 0; }