From 56db98f23eaedb4356d50a6bc62c6a13c8db8ede Mon Sep 17 00:00:00 2001 From: JasterV <49537445+JasterV@users.noreply.github.com> Date: Mon, 2 Jun 2025 21:00:14 +0200 Subject: [PATCH] Update post layout --- src/layouts/PostLayout.astro | 22 +++++----------------- src/styles/global.scss | 6 +----- 2 files changed, 6 insertions(+), 22 deletions(-) diff --git a/src/layouts/PostLayout.astro b/src/layouts/PostLayout.astro index 923daa4..e16521b 100644 --- a/src/layouts/PostLayout.astro +++ b/src/layouts/PostLayout.astro @@ -46,24 +46,12 @@ const { title, pubDate, image } = Astro.props; color: var(--text-color-light); } + /* Revert the changes made by the global styles */ + /* So markdown can be spaced as the markdown processor says */ .post-content { - h1, - h2, - h3, - h4 { - margin-top: 2rem; - } - - p { - margin-top: 0.5rem; - } - - li { - margin-top: 0.5rem; - } - - li > p { - display: contents; + * { + margin: revert; + padding: revert; } } diff --git a/src/styles/global.scss b/src/styles/global.scss index 7ed7857..2b303f7 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -165,11 +165,7 @@ a { } ul { - list-style: square inside none; -} - -ol { - list-style-position: inside; + list-style: square; } a {