Skip to content

Commit 8ed2a0d

Browse files
committed
Add dark mode support for default index file
1 parent dff4074 commit 8ed2a0d

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

etc/index.html

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,58 @@
8787
th.sorted-desc::after {
8888
content: " ▼";
8989
}
90+
91+
@media (prefers-color-scheme: dark) {
92+
body {
93+
background-color: #1a1a1a;
94+
color: #e0e0e0;
95+
}
96+
97+
h1 {
98+
color: #f5f5f5;
99+
}
100+
101+
.warning {
102+
background-color: #3d2f00;
103+
color: #ffd700;
104+
border: 1px solid #5a4a00;
105+
}
106+
107+
table {
108+
background-color: #2d2d2d;
109+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
110+
}
111+
112+
th {
113+
background-color: #252525;
114+
border-bottom: 2px solid #404040;
115+
color: #f5f5f5;
116+
}
117+
118+
th:hover {
119+
background-color: #333333;
120+
}
121+
122+
tr:nth-child(even) {
123+
background-color: #262626;
124+
}
125+
126+
a {
127+
color: #5eb3ff;
128+
}
129+
130+
a:hover {
131+
color: #7dc4ff;
132+
}
133+
134+
td:nth-child(2) {
135+
color: #b0b0b0;
136+
}
137+
138+
td:nth-child(3) {
139+
color: #b0b0b0;
140+
}
141+
}
90142
</style>
91143
</head>
92144

0 commit comments

Comments
 (0)