From e8ce7b7216d5b6f1c93f49a94911600e2ae02ba2 Mon Sep 17 00:00:00 2001 From: hypercross Date: Sun, 1 Mar 2026 16:02:07 +0800 Subject: [PATCH] feat: icon --- src/styles.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/styles.css b/src/styles.css index 7ef1b9d..7bfd18e 100644 --- a/src/styles.css +++ b/src/styles.css @@ -1,6 +1,20 @@ @import "tailwindcss"; @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 { @apply prose-h2:first:mt-0 prose-h3:first:mt-0 prose-h4:first:mt-0 prose-h5:first:mt-0; code{