Merge branch 'dark' into 'master'

Support dark theme using prefers-color-scheme

See merge request tslocum/gmitohtml!1
This commit is contained in:
Trevor Slocum 2020-11-25 16:18:11 +00:00
commit 208beca154

View file

@ -393,5 +393,29 @@ template {
[hidden] { [hidden] {
display: none; display: none;
} }
@media (prefers-color-scheme: dark) {
body {
color: white;
background-color: black;
}
h1, h2, h3, h4, h5, h6 {
color: white;
}
a {
color: #8d94ff;
}
a:hover {
color: white;
}
input {
background-color: black;
color: white;
border-color: gray;
border-width: 0.3em;
border-style: solid;
padding: 0.5em;
}
}
`, fs) `, fs)
} }