Base: Support dark mode in directory page

This commit is contained in:
Jamie Mansfield 2024-07-07 16:40:53 +01:00 committed by Andreas Kling
parent 21c5373456
commit 45fabea0c2
Notes: sideshowbarker 2024-07-17 00:25:35 +09:00

View file

@ -4,6 +4,17 @@
<meta charset="UTF-8">
<title>Index of %path%</title>
<style>
/* FIXME: We should be able to remove the HTML style when "color-scheme" is supported */
@media (prefers-color-scheme: dark) {
html {
background-color: rgb(20, 20, 20);
color: rgb(235, 235, 235);
}
a {
color: cornflowerblue;
}
}
header {
margin-bottom: 10px;
}