Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
fileserver: Browse listing supports dark mode (#4066)
* Add dark color scheme media query * Theme search box, make everything less contrasting * Further contrast tweaks
rai committed
Mar 19, 2021 at 18:41 UTC
a48c6205b79c80ec28eb791d144275da8669dc6e
1 file changed
+49
modules/caddyhttp/fileserver/browsetpl.go
+49
@@ -226,6 +226,55 @@ footer {
226
max-width: 100px;
227
}
228
}
229
+
230
+@media (prefers-color-scheme: dark) {
231
+ body {
232
+ background-color: #101010;
233
+ color: #dddddd;
234
+ }
235
+
236
+ header {
237
+ background-color: #151515;
238
+ }
239
+
240
+ tbody tr:hover {
241
+ background-color: #252525;
242
+ }
243
+
244
+ header a,
245
+ th a {
246
+ color: #dddddd;
247
+ }
248
+
249
+ a {
250
+ color: #5796d1;
251
+ text-decoration: none;
252
+ }
253
+
254
+ a:hover,
255
+ h1 a:hover {
256
+ color: #62b2fd;
257
+ }
258
+
259
+ tr {
260
+ border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
261
+ }
262
+
263
+ #up-arrow,
264
+ #down-arrow {
265
+ fill: #dddddd;
266
+ }
267
+
268
+ #filter {
269
+ background-color: #151515;
270
+ color: #ffffff;
271
+ border: 1px solid #212121;
272
+ }
273
+
274
+ .meta {
275
+ border-bottom: 1px solid #212121
276
+ }
277
+}
278
</style>
279
</head>
280
<body onload='initFilter()'>