aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2023-05-23 18:55:07 -0500
committerChristian Cleberg <hello@cleberg.net>2023-05-23 18:55:07 -0500
commit0ebb91b25e856e101f5729cbb5ffe4871cc984bb (patch)
treed61bdcf8603767224d469d5aa7c7472b006754b9
parent1053846f95f8cbcc14517e85a90848b70c2ddeac (diff)
downloadifconfig.php-0ebb91b25e856e101f5729cbb5ffe4871cc984bb.tar.gz
ifconfig.php-0ebb91b25e856e101f5729cbb5ffe4871cc984bb.tar.bz2
ifconfig.php-0ebb91b25e856e101f5729cbb5ffe4871cc984bb.zip
add dark mode
-rw-r--r--ifconfig.php9
1 files changed, 6 insertions, 3 deletions
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; }
+ }
</style>
</head>
<body>
@@ -106,8 +109,8 @@ elseif (isset($query) && (($query=="text") || ($query=="all"))) {
$date = date("Y");
echo <<<EOD
<br>
- <p class="small">Copyright &copy; {$date} <a href="{$site_owner_url}">{$site_owner_name}</a>.<br/>
- <a target="_blank" rel="noreferrer" href="{$source_repository}">Source Code</a></p>
+ <p><small>Copyright &copy; {$date} <a href="{$site_owner_url}">{$site_owner_name}</a>.
+ <br><a target="_blank" rel="noreferrer" href="{$source_repository}">Source Code</a></small></p>
</body>
</html>
EOD;