From b0efcdb6de663f09b633136430d69e6f020f4a12 Mon Sep 17 00:00:00 2001 From: habere-et-dispertire Date: Thu, 9 Dec 2021 22:55:05 +0000 Subject: [PATCH] Dark/Light mode Uses the invertible colours of [Solarized](https://en.wikipedia.org/wiki/Solarized ) by *Ethan Schoonover* Should address [Issue 13, Website Dark Mode Option?)[https://github.com/ash/raku-course/issues/13] --- assets/course.css | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/assets/course.css b/assets/course.css index eb36e1c3b..45bce25f7 100644 --- a/assets/course.css +++ b/assets/course.css @@ -1,3 +1,18 @@ +@media (prefers-color-scheme: dark) { + body { + background-color : #002b36; + color : #fdf6e3; + font-weight : lighter; + } +} + +@media (prefers-color-scheme: light) { + body { + background-color : #fdf6e3; + color : #002b36; + } +} + ul li { list-style-type: none; }