From 1200ba4e9610f30a3263210a087343a4c10be46f Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Fri, 27 May 2022 17:22:41 +0200 Subject: Added dark mode --- template/_meta.html | 2 +- template/style.css | 18 +++++++++++++++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/template/_meta.html b/template/_meta.html index e9a931f..6310d49 100755 --- a/template/_meta.html +++ b/template/_meta.html @@ -5,7 +5,7 @@ - + diff --git a/template/style.css b/template/style.css index 0bb2718..126c7b3 100755 --- a/template/style.css +++ b/template/style.css @@ -398,9 +398,21 @@ audio { @media (prefers-color-scheme: light) { } -@media (prefers-color-scheme: dark) { } +@media (prefers-color-scheme: dark) { + body { + background: #222; + color: #fff; + } + time { + color: #fff; + } -@media (prefers-color-scheme: light) { } + a { + color: #fff !important; + } -@media (prefers-color-scheme: dark) { } + code { + color: #222 !important; + } +} -- cgit v1.2.3