diff options
author | David Hamp-Gonsalves <davidhampgonsalves@gmail.com> | 2019-09-29 14:08:51 +0300 |
---|---|---|
committer | David Hamp-Gonsalves <davidhampgonsalves@gmail.com> | 2019-09-29 14:08:51 +0300 |
commit | 047650cbff44dc6631ef7829a86839802487b4f8 (patch) | |
tree | c58be88d3decbc1c7d4c7346635e14526b6e7d55 | |
parent | 4168cd6deeb54e47ce2115b58a7b3ba149233165 (diff) |
support dark color preference
-rw-r--r-- | layouts/partials/styles.html | 22 |
1 files changed, 22 insertions, 0 deletions
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; + } + } </style> |