From 2468802869abf197a207306fbc17cee8e24eb769 Mon Sep 17 00:00:00 2001 From: remi Date: Fri, 27 May 2022 22:29:11 +0200 Subject: [PATCH] darkmode --- h2i.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/h2i.html b/h2i.html index ffd0c2c..df1a84b 100644 --- a/h2i.html +++ b/h2i.html @@ -88,6 +88,13 @@ a:hover { text-decoration: underline; } + + /* darkmode */ + @media (prefers-color-scheme: dark) { + :root { + --bg: #000000; + } + } @@ -126,7 +133,7 @@ //if darkmode if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) { tcolor.value = '#ffffff'; - bcolor.value = '#000000'; + // bcolor.value = '#000000'; update(); }