mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 07:33:07 +08:00
feat: add callout support (#655)
* feat: toggle .dark class on theme change * feat: add callouts with rehype-callouts plugin * docs: update blog posts with callouts
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
@import "tailwindcss";
|
||||
@import "./theme.css";
|
||||
@import "./typography.css";
|
||||
@import "rehype-callouts/theme/obsidian";
|
||||
|
||||
@custom-variant dark (&:where([data-theme=dark], [data-theme=dark] *));
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
@apply border-s-accent/80 wrap-break-word opacity-80;
|
||||
}
|
||||
|
||||
details {
|
||||
details:not(.callout) {
|
||||
@apply text-foreground inline-block cursor-pointer select-none [&_p]:hidden [&_ul]:my-0!;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user