diff options
author | Gökmen Görgen <gkmngrgn@gmail.com> | 2019-07-28 02:42:12 +0300 |
---|---|---|
committer | Gökmen Görgen <gkmngrgn@gmail.com> | 2019-07-28 02:42:12 +0300 |
commit | 423c02a273d8e58bdb5283cf339daaa54b20f31e (patch) | |
tree | ed64c4eef5de62b1cf1223d7c6162251d0594dd7 | |
parent | 20cb25829a24563b57f338ecec6253db8ac3b492 (diff) |
dark mode support.
-rw-r--r-- | static/css/main.css | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/static/css/main.css b/static/css/main.css index 913b502..13d76a7 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -18,15 +18,15 @@ a:hover { /* Partial: Colors */ .text-patreon { - color: #F96854 !important; + color: #f96854 !important; } .text-ko-fi { - color: #DF5000 !important; + color: #df5000 !important; } .text-bmc { - color: #FF813F !important; + color: #ff813f !important; } /* Partial: Header */ @@ -131,12 +131,12 @@ a:hover { .content .markdown > ol, .content .markdown > dl, .content .markdown > blockquote { - margin-left: 1.5rem; /* equal to mx-md-4 in bootstrap */ + margin-left: 1.5rem; /* equal to mx-md-4 in bootstrap */ margin-right: 1.5rem; } .content .markdown p + p { - text-indent: 1.5rem; + text-indent: 1.5rem; } .content .markdown code, @@ -277,3 +277,22 @@ a:hover { margin-right: 0; } } + +@media (prefers-color-scheme: dark) { + body { + background-color: #1a1a1a; + color: #efefef; + } + + .content .markdown { + color: #e0e0e0; + } + + .header h1.name { + color: #efefef; + } + + .header ul.nav li a { + color: #eaeaea; + } +} |