about summary refs log tree commit diff stats
path: root/pages
diff options
context:
space:
mode:
authorSimon Brazell <simon@brazell.com.au>2020-05-19 23:11:18 +1000
committerGitHub <noreply@github.com>2020-05-19 23:11:18 +1000
commit348faf91bfcecc7fe2a24c8d38ecc40e5671c8a1 (patch)
treebac9a108cc0e577dfbe8c13edc958e344cd41f9c /pages
parentFix typo / spelling mistakes in privacy policy (diff)
parentAdd Light Mode (diff)
downloadlibredirect-348faf91bfcecc7fe2a24c8d38ecc40e5671c8a1.zip
Merge pull request #46 from TotalCaesar659/dark-mode
Add Dark/Light Mode support
Diffstat (limited to 'pages')
-rw-r--r--pages/styles.css14
1 files changed, 14 insertions, 0 deletions
diff --git a/pages/styles.css b/pages/styles.css
index 1e9a764c..256128a4 100644
--- a/pages/styles.css
+++ b/pages/styles.css
@@ -273,3 +273,17 @@ li {
   cursor: pointer;
   border-radius: 50%;
 }
+
+@media (prefers-color-scheme: dark) {
+body, body.popup, header, h1, input, a#more-options.button, div#general.tabcontent, div#advanced.tabcontent, select, div#whitelist.tabcontent, button#general-tab.tablinks.active, button#advanced-tab.tablinks.active, button#whitelist-tab.tablinks.active {
+  background-color: #313131;
+  color: #bfbfbf;
+}
+}
+
+@media (prefers-color-scheme: light) {
+body, body.popup, header, h1, input, a#more-options.button, div#general.tabcontent, div#advanced.tabcontent, select, div#whitelist.tabcontent, button#general-tab.tablinks.active, button#advanced-tab.tablinks.active, button#whitelist-tab.tablinks.active {
+  background-color: #ffffff;
+  color: #000000;
+}
+}