summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-02-03 07:36:17 +0100
committerdefault <nobody@localhost>2024-02-03 07:36:17 +0100
commitceda5bab31c4eb06aa528c6e3cce8928ce987acb (patch)
treec88f14e90704d3e1261d5dffbd4d1e6e36c298e4 /utils.c
parent29f2160b58123fdde08318b069198d2e0bdf0ac6 (diff)
Also add dark mode CSS to utils.c.
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils.c b/utils.c
index 0d02659..58d34c6 100644
--- a/utils.c
+++ b/utils.c
@@ -62,6 +62,11 @@ static const char *default_css =
".snac-btn-unlimit { float: right; margin-left: 0.5em }\n"
".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"
+ " a { color: #7799dd }\n"
+ " a:visited { color: #aa99dd }\n"
+ "}\n"
;
const char *snac_blurb =