Add dark mode user preference with CSS media query

This commit is contained in:
Byron Torres 2020-11-02 06:15:58 +00:00 committed by Drew DeVault
parent adfe6e92c5
commit 1074d434d2

23
main.go
View file

@ -286,6 +286,29 @@ dl dt {
dl dt:not(:first-child) {
margin-top: 0.5rem;
}
@media(prefers-color-scheme:dark) {
html {
background-color: #111;
color: #eee;
}
blockquote {
background-color: #000;
}
pre {
background-color: #222;
}
a {
color: #0087BD;
}
a:visited {
color: #333399;
}
}
`
type GemtextContext struct {