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

github.com/niklasbuschmann/contrast-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Buschmann <niklasbuschmann@users.noreply.github.com>2019-08-02 15:14:37 +0300
committerNiklas Buschmann <niklasbuschmann@users.noreply.github.com>2019-08-02 15:14:37 +0300
commit07376d41c3156dbed802e754c6996b53b095842b (patch)
tree2d2f94ce18883bdc206d83825a910d3250bc3dd6
parent7ec2137652444c5eb13bc2b9bb82fa3bd18513d1 (diff)
fix dark mode
-rw-r--r--static/css/theme.css8
1 files changed, 7 insertions, 1 deletions
diff --git a/static/css/theme.css b/static/css/theme.css
index 6c67968..c31acee 100644
--- a/static/css/theme.css
+++ b/static/css/theme.css
@@ -1,3 +1,10 @@
+@media (prefers-color-scheme: light) {
+ html {
+ background: #fff;
+ color: #282828;
+ }
+}
+
@media (prefers-color-scheme: dark) {
html {
background: #282828;
@@ -11,7 +18,6 @@ body {
font-size: calc(0.8rem + 0.25vw);
font-weight: 400;
line-height: 1.65;
- color: #282828;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}