From 1355a48ab490365679209427b738690bd70438a4 Mon Sep 17 00:00:00 2001
From: Richie Bendall
Date: Fri, 22 Oct 2021 15:55:53 +1300
Subject: [PATCH] Support dark colour scheme for website
Signed-off-by: Richie Bendall
---
index.html | 2 +-
main.css | 15 +++++++++++++++
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/index.html b/index.html
index 44af041ea..674e38516 100644
--- a/index.html
+++ b/index.html
@@ -38,7 +38,7 @@ A modern, HTML5-ready alternative to CSS resets
Read more about normalize.css »
-
+
diff --git a/main.css b/main.css
index 41a08f3ca..1331a15ea 100644
--- a/main.css
+++ b/main.css
@@ -204,3 +204,18 @@ p {
margin: 0 1em 0.5em;
}
}
+
+@media screen and (prefers-color-scheme: dark) {
+ html {
+ background: #333;
+ color: #fff;
+ }
+
+ .site-box, .share-bar {
+ background: #222;
+ }
+
+ .share-github {
+ filter: invert(1);
+ }
+}