From 63b8c5d8d2299eb4fcac644bd912ef4d2ed7dace Mon Sep 17 00:00:00 2001 From: hypercross Date: Sun, 1 Mar 2026 15:52:35 +0800 Subject: [PATCH] refactor: styline --- src/styles.css | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/styles.css b/src/styles.css index 009a45b..7ef1b9d 100644 --- a/src/styles.css +++ b/src/styles.css @@ -1,8 +1,26 @@ @import "tailwindcss"; @plugin "@tailwindcss/typography"; -.prose { +@utility prose { @apply prose-h2:first:mt-0 prose-h3:first:mt-0 prose-h4:first:mt-0 prose-h5:first:mt-0; + code{ + background: #0001; + @apply rounded; + padding: .2em .4em; + margin: 0 .2em; + &::before, + &::after { + content: none; + } + } + blockquote { + p { + &:first-of-type::before, + &:last-of-type::after { + content: none; + } + } + } } /*alert*/