From 0ebb91b25e856e101f5729cbb5ffe4871cc984bb Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Tue, 23 May 2023 18:55:07 -0500 Subject: add dark mode --- ifconfig.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'ifconfig.php') diff --git a/ifconfig.php b/ifconfig.php index 04e1c18..065d4db 100644 --- a/ifconfig.php +++ b/ifconfig.php @@ -72,10 +72,13 @@ elseif (isset($query) && (($query=="text") || ($query=="all"))) { } .small, .small > a { font-size: 9pt; - color: #777; text-align: center; text-decoration: none; } + @media (prefers-color-scheme: dark) { + body { background-color: #000; color: #ccc; } + a, a:visited { color: #0f0; } + } @@ -106,8 +109,8 @@ elseif (isset($query) && (($query=="text") || ($query=="all"))) { $date = date("Y"); echo << -

Copyright © {$date} {$site_owner_name}.
- Source Code

+

Copyright © {$date} {$site_owner_name}. +
Source Code

EOD; -- cgit v1.2.3-70-g09d2