refactor: styline

This commit is contained in:
hypercross 2026-03-01 15:52:35 +08:00
parent 047bbf1cc5
commit 63b8c5d8d2
1 changed files with 19 additions and 1 deletions

View File

@ -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*/