From 52507d0b41a3dfdb9131f8ebdd444c455acad541 Mon Sep 17 00:00:00 2001 From: Ayo Date: Sat, 24 Jun 2023 10:17:54 +0200 Subject: [PATCH] style: code block --- src/components/Post.astro | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/Post.astro b/src/components/Post.astro index 4b73ea1..6726ddb 100644 --- a/src/components/Post.astro +++ b/src/components/Post.astro @@ -52,8 +52,6 @@ const datePublished = } } - - content { p, table, ul, img { margin: 1em 0 !important; @@ -72,5 +70,10 @@ const datePublished = pre { white-space: pre-wrap; } + pre:has(code) { + padding: 1em; + background: #f6f8fa; + border-radius: 5px; + } } \ No newline at end of file