mirror of
https://github.com/dongdigua/dongdigua.github.io
synced 2024-11-27 08:40:53 +08:00
experimental darkmode support
This commit is contained in:
parent
5bcea970e2
commit
f82825ae5b
21
css/dark.css
Normal file
21
css/dark.css
Normal file
@ -0,0 +1,21 @@
|
||||
/* minimal darkmode
|
||||
this sucks. but I don't want to edit main.css shit */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
* {
|
||||
background-color: #1e1e2e !important;
|
||||
color: #cdd6f4 !important;
|
||||
}
|
||||
h1, h2, h3, h4 {
|
||||
color: #b4befe !important;
|
||||
}
|
||||
img {
|
||||
filter: grayscale(50%);
|
||||
}
|
||||
a {
|
||||
color: #89b4fa !important;
|
||||
}
|
||||
pre, pre span, code {
|
||||
color: #a6e3a1 !important;
|
||||
}
|
||||
}
|
||||
|
@ -44,7 +44,7 @@
|
||||
:publishing-function org-html-publish-to-html
|
||||
:preserve-breaks t
|
||||
|
||||
:html-head "<link rel='stylesheet' href='css/main.css' /><link rel='stylesheet' href='css/org.small.css' />"
|
||||
:html-head "<link rel='stylesheet' href='css/main.css' /><link rel='stylesheet' href='css/org.small.css' /><link rel='stylesheet' href='css/dark.css' />"
|
||||
;; :html-head-include-default-style nil
|
||||
:html-link-home "https://dongdigua.github.io"
|
||||
:html-link-up "./../posts"
|
||||
|
Loading…
Reference in New Issue
Block a user