From b19e47746417f96f61444e72b5d3bf896cb6d505 Mon Sep 17 00:00:00 2001 From: Wojciech Kwolek Date: Sun, 17 Mar 2024 22:54:37 +0100 Subject: [PATCH] dark mode --- public/style.css | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/public/style.css b/public/style.css index a508d26..138ef11 100644 --- a/public/style.css +++ b/public/style.css @@ -1,6 +1,7 @@ html { -webkit-text-size-adjust: 100%; padding-bottom: 4em; + font-size: 18px; } body { @@ -73,7 +74,7 @@ h3 + ul { } #viewer-friend:not(:checked) ~ #switcharoo #onlyfriends { - display: none; + display: none; } #viewer-recruiter:checked ~ #switcharoo { @@ -107,4 +108,22 @@ h3 + ul { #nocss { display: none; -} \ No newline at end of file +} + +@media (prefers-color-scheme: dark) { + body { + background-color: #121212; + color: #f0f0f0; + } + a { + color: cyan; + } + a:visited { + color: pink; + } + + .no-a-visited a:visited, + .cleanlinks a:visited { + color: cyan; + } +}