style: fix text selection color in Firefox dark mode

This commit is contained in:
David Dal Busco
2024-09-14 11:56:34 +02:00
parent 207969a919
commit e7164da082

View File

@@ -50,7 +50,8 @@
*/ */
} }
[data-theme='dark'], .dark { [data-theme="dark"],
.dark {
--background: 5 5 5; --background: 5 5 5;
--foreground: 0 0% 98%; --foreground: 0 0% 98%;
@@ -95,3 +96,13 @@
@apply bg-background text-foreground; @apply bg-background text-foreground;
} }
} }
::selection {
color: hsl(var(--primary-foreground));
background: hsl(var(--primary));
}
::-moz-selection {
color: hsl(var(--primary-foreground));
background: hsl(var(--primary));
}