style: selected color && background-color

This commit is contained in:
JOYCEQL
2024-12-05 16:35:23 +08:00
committed by qingchen
parent 99a0ac5755
commit 32ae10be88
2 changed files with 9 additions and 2 deletions
+8
View File
@@ -109,6 +109,14 @@
body {
@apply bg-background text-foreground;
}
::selection {
@apply text-primary-foreground bg-primary;
}
::-moz-selection {
@apply text-primary-foreground bg-primary;
}
}
/* List styles */
@@ -404,8 +404,7 @@ const RichTextEditor = ({ content, onChange }: RichTextEditorProps) => {
"dark:prose-blockquote:text-neutral-300",
"dark:prose-blockquote:border-neutral-700",
"dark:prose-ul:text-neutral-300",
"dark:prose-ol:text-neutral-300",
"dark:[&_*::selection]:bg-neutral-700/50"
"dark:prose-ol:text-neutral-300"
)
}
},