Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/davidhampgonsalves/hugo-black-and-light-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Hamp-Gonsalves <davidhampgonsalves@gmail.com>2019-09-29 14:08:51 +0300
committerDavid Hamp-Gonsalves <davidhampgonsalves@gmail.com>2019-09-29 14:08:51 +0300
commit047650cbff44dc6631ef7829a86839802487b4f8 (patch)
treec58be88d3decbc1c7d4c7346635e14526b6e7d55
parent4168cd6deeb54e47ce2115b58a7b3ba149233165 (diff)
support dark color preference
-rw-r--r--layouts/partials/styles.html22
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>