mirror of
https://github.com/dongdigua/dongdigua.github.io
synced 2024-11-23 15:33:09 +08:00
experimental darkmode support
This commit is contained in:
parent
5bcea970e2
commit
292687fa57
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;
|
||||
}
|
||||
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