From 612c38711d25b2e42a52cb6f74a35c89e12423f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Mart=C3=ADnez=20Portela?= Date: Thu, 21 Jul 2022 23:30:47 +0200 Subject: [PATCH] Add basic dark-mode style. --- static/style.css | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/static/style.css b/static/style.css index 2ba09d7..a1ab463 100644 --- a/static/style.css +++ b/static/style.css @@ -1,3 +1,4 @@ +/* Default theme */ /* Node styling */ .node { max-width: min(650px, 100ex); @@ -88,3 +89,21 @@ article.post { max-width: min(650px, 100ex); margin: 0 auto; } + +/* Dark mode. */ +@media (prefers-color-scheme: dark) { + html { + background-color: #0f110e; + color: #fafafe; + } + h2 a { + color: #fafafe; + } + a { + color: #aaf; + } + h1,h2,h3,h4,h5,h6 { + margin-top: 0; + color: #adbac7; + } +}