mirror of
https://github.com/pi-hole/web.git
synced 2026-02-15 07:25:39 +00:00
Imports the light theme if prefers-color-scheme is not dark (light, no-preference, not set) Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
7 lines
379 B
CSS
7 lines
379 B
CSS
/* Code courtesy of https://blog.jim-nielsen.com/2019/conditional-syntax-highlighting-in-dark-mode-with-css-imports/ */
|
|
|
|
/* Import light mode if color-scheme is different than dark (even not set) */
|
|
@import "default-light.css" screen and not (prefers-color-scheme: dark);
|
|
/* Import dark mode when applicable */
|
|
@import "default-dark.css" screen and (prefers-color-scheme: dark);
|