From bb292e031ca7b74de63bb75ec56e1f424cb929bd Mon Sep 17 00:00:00 2001 From: TotalCaesar659 <14265316+TotalCaesar659@users.noreply.github.com> Date: Thu, 1 Oct 2020 18:58:50 +0300 Subject: [PATCH] Add Dark Mode support --- extension/data/options/index.css | 13 +++++++++++++ extension/data/popup/index.css | 12 ++++++++++++ 2 files changed, 25 insertions(+) diff --git a/extension/data/options/index.css b/extension/data/options/index.css index 890d673..e137c8f 100644 --- a/extension/data/options/index.css +++ b/extension/data/options/index.css @@ -107,3 +107,16 @@ textarea { padding: 10px; margin: 15px 0; } + +@media (prefers-color-scheme: dark) { + body, + textarea, + .note { + background-color: #313131; + color: #bfbfbf; + } + .admin { + background-color: #545709; + color: #bfbfbf; + } +} diff --git a/extension/data/popup/index.css b/extension/data/popup/index.css index d052d70..5dc89a8 100644 --- a/extension/data/popup/index.css +++ b/extension/data/popup/index.css @@ -249,3 +249,15 @@ body[data-android="true"] [data-cmd="window"] { .hide { visibility: hidden; } + +@media (prefers-color-scheme: dark) { + body, + th, + select, + input, + #view, + table { + background-color: #313131; + color: #bfbfbf; + } +}