From 047650cbff44dc6631ef7829a86839802487b4f8 Mon Sep 17 00:00:00 2001 From: David Hamp-Gonsalves Date: Sun, 29 Sep 2019 08:08:51 -0300 Subject: support dark color preference --- layouts/partials/styles.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/layouts/partials/styles.html b/layouts/partials/styles.html index 0efc928..b9c175d 100644 --- a/layouts/partials/styles.html +++ b/layouts/partials/styles.html @@ -357,4 +357,26 @@ font-size:12px; } } + + @media (prefers-color-scheme: dark) { + *, #nav h1 a { + color: #FDFDFD; + } + + body { + background: #121212; + } + + pre, code { + background-color: #262626; + } + + #sub-header, time { + color: #BABABA; + } + + hr { + background: #EBEBEB; + } + } -- cgit v1.2.3