From: Ben Beltran Date: Mon, 3 Jun 2019 20:53:19 +0000 (+0200) Subject: Add dark mode support X-Git-Url: https://git.r.bdr.sh/rbdr/r.bdr.sh/commitdiff_plain/bb31ec9cf703bb4dce781f11e0f84256a38e55f6?hp=-c Add dark mode support --- bb31ec9cf703bb4dce781f11e0f84256a38e55f6 diff --git a/jekyll/css/application.css b/jekyll/css/application.css index 5150064..df94fa6 100644 --- a/jekyll/css/application.css +++ b/jekyll/css/application.css @@ -6,16 +6,10 @@ body { -webkit-font-smoothing: none; } -h1 a { +h1 a, h1 a:visited { color: black; } -h1 a:visited { - color: black; -} - -em {color:#99a3a4} - .main-container { margin: 20px 0; } @@ -59,3 +53,23 @@ img, video { max-width: 100vw; } + +/* Dark mode overrides */ +@media (prefers-color-scheme: dark) { + body { + background-color: white; + color: white; + } + + h1 a, h1 a:visited { + color: white; + } + + a { + color: #53FFFF; + } + + a:visited { + color: #FF55FF; + } +}