Add basic dark-mode style.

This commit is contained in:
Sergio Martínez Portela 2022-07-21 23:30:47 +02:00
parent 85e254d75c
commit 612c38711d

View File

@ -1,3 +1,4 @@
/* Default theme */
/* Node styling */ /* Node styling */
.node { .node {
max-width: min(650px, 100ex); max-width: min(650px, 100ex);
@ -88,3 +89,21 @@ article.post {
max-width: min(650px, 100ex); max-width: min(650px, 100ex);
margin: 0 auto; margin: 0 auto;
} }
/* Dark mode. */
@media (prefers-color-scheme: dark) {
html {
background-color: #0f110e;
color: #fafafe;
}
h2 a {
color: #fafafe;
}
a {
color: #aaf;
}
h1,h2,h3,h4,h5,h6 {
margin-top: 0;
color: #adbac7;
}
}