summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYonle <yonle@lecturify.net>2024-02-24 00:48:21 +0700
committerYonle <yonle@lecturify.net>2024-02-24 00:48:21 +0700
commitd42aaa19e418ee89f25e9e33f8ab7d304fff0386 (patch)
treeaf0c23df0a6c7285bd5057501a5683179d442558
parent5a2ab086aeecac79559035fae85d162cf8a99def (diff)
default css: also darken <input> and <textarea>
Signed-off-by: Yonle <yonle@lecturify.net>
-rw-r--r--doc/style.css2
-rw-r--r--utils.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/style.css b/doc/style.css
index b1f2163..a133db6 100644
--- a/doc/style.css
+++ b/doc/style.css
@@ -26,7 +26,7 @@ pre { overflow-x: scroll; }
.snac-footer { margin-top: 2em; font-size: 75% }
.snac-poll-result { margin-left: auto; margin-right: auto; }
@media (prefers-color-scheme: dark) {
- body { background-color: #000; color: #fff; }
+ body, input, textarea { background-color: #000; color: #fff; }
a { color: #7799dd }
a:visited { color: #aa99dd }
}
diff --git a/utils.c b/utils.c
index 69d3e29..d8cebdc 100644
--- a/utils.c
+++ b/utils.c
@@ -66,7 +66,7 @@ static const char *default_css =
".snac-footer { margin-top: 2em; font-size: 75% }\n"
".snac-poll-result { margin-left: auto; margin-right: auto; }\n"
"@media (prefers-color-scheme: dark) { \n"
- " body { background-color: #000; color: #fff; }\n"
+ " body, input, textarea { background-color: #000; color: #fff; }\n"
" a { color: #7799dd }\n"
" a:visited { color: #aa99dd }\n"
"}\n"