add auto theme

switches between white and dark, based on browser's theme
This commit is contained in:
bopol
2021-01-27 17:39:12 +01:00
parent 1f296ec3aa
commit 9ee2deb460
10 changed files with 19 additions and 9 deletions
+2
View File
@@ -1,3 +1,5 @@
if(user_preferences.theme === 'auto')
link(rel="stylesheet", type="text/css", href="/css/dark.css", media="(prefers-color-scheme: dark)")
if(user_preferences.theme === 'dark')
link(rel="stylesheet", type="text/css", href="/css/dark.css")
if(user_preferences.theme === 'sepia')