From 7d81b70d77884e297a648577608ff33f0659c727 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 2 Jan 2020 08:54:48 -0500 Subject: [PATCH] add support for dark mode preferences --- style-dark.css | 26 ++++++++++++++++++++++++++ style.css => style-light.css | 4 ++++ top.php | 3 ++- 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 style-dark.css rename style.css => style-light.css (85%) diff --git a/style-dark.css b/style-dark.css new file mode 100644 index 0000000..fe37b06 --- /dev/null +++ b/style-dark.css @@ -0,0 +1,26 @@ +/* + * The dark style when user prefers that in their browser/OS. + */ + +body { + color: #cc88ff; + background-color: #111; +} +.inverted { + color: white; + background-color: #9200ff; +} + +a { + color: #cc88ff; +} +a:visited { + color: #bb77ff; +} +a:active { + color: #FF0000; +} + +.inverted a { + color: white; +} diff --git a/style.css b/style-light.css similarity index 85% rename from style.css rename to style-light.css index a77bb79..3a93df5 100644 --- a/style.css +++ b/style-light.css @@ -1,3 +1,7 @@ +/* + * The default (light) style. + */ + body { color: #440077; background-color: white; diff --git a/top.php b/top.php index 33b1f5e..87c4ff1 100644 --- a/top.php +++ b/top.php @@ -4,7 +4,8 @@ - + + -- 2.39.2