diff options
author | AlexYzhov <AlexYzhov@163.com> | 2021-08-19 20:52:16 +0300 |
---|---|---|
committer | AlexYzhov <AlexYzhov@163.com> | 2021-08-19 21:03:21 +0300 |
commit | 60d50a90f2e4d1d3f909808dd32cc5b5541a4ef4 (patch) | |
tree | fc650e0dd5d364214a18f3e9c130a7dea6f2d301 /static | |
parent | 44e9ea17c3c4ca60f847b3e99a0f916eff5dcadf (diff) |
add darkmode support
css theme will now change at OS level automatically
Diffstat (limited to 'static')
-rw-r--r-- | static/css/darkmode.css | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/static/css/darkmode.css b/static/css/darkmode.css new file mode 100644 index 0000000..fee713a --- /dev/null +++ b/static/css/darkmode.css @@ -0,0 +1,35 @@ +@media (prefers-color-scheme: dark) { + html, body { + color: #dcdcdc; + background-color: #292929; + } + + html *:not(input) { + color: #dcdcdc !important; + } + + a[ping]:link, + :link:not(cite) { + color: #8db2e5 !important; + } + + html a:visited { + color: #d248ea !important; + } + + html cite, + html cite a:link, + html cite a:visited { + color: #92de92 !important; + } + + /* inline styles */ + [style*='background: #'], [style*='background:#'], + [style*='background: rgb'], [style*='background:rgb'], + [style*='background: var('], [style*='background:var('], + [style*='background-color: #'], [style*='background-color:#'], + [style*='background-color: rgb'], [style*='background-color:rgb'], + [style*='background-color: var('], [style*='background-color:var('] { + background-color: #292929 !important; + } +} |