feat: icon

This commit is contained in:
hypercross 2026-03-01 16:02:07 +08:00
parent 63b8c5d8d2
commit e8ce7b7216
1 changed files with 14 additions and 0 deletions

View File

@ -1,6 +1,20 @@
@import "tailwindcss"; @import "tailwindcss";
@plugin "@tailwindcss/typography"; @plugin "@tailwindcss/typography";
/* icon */
icon{
@apply inline-block;
width: 1em;
height: 1em;
--icon-src: '';
background: var(--icon-src);
background-size: contain;
background-position: center;
background-repeat: no-repeat;
}
/* prose */
@utility prose { @utility prose {
@apply prose-h2:first:mt-0 prose-h3:first:mt-0 prose-h4:first:mt-0 prose-h5:first:mt-0; @apply prose-h2:first:mt-0 prose-h3:first:mt-0 prose-h4:first:mt-0 prose-h5:first:mt-0;
code{ code{