0.8.3-beta firefox dark mode bug fix

This commit is contained in:
Tim-Paik 2021-08-23 15:27:48 +08:00
parent e407395080
commit 8db0f82d08
3 changed files with 28 additions and 12 deletions

2
Cargo.lock generated
View File

@ -2488,7 +2488,7 @@ checksum = "acdb075a845574a1fa5f09fd77e43f7747599301ea3417a9fbffdeedfc1f4a29"
[[package]]
name = "web"
version = "0.8.2-beta"
version = "0.8.3-beta"
dependencies = [
"actix-files",
"actix-http",

View File

@ -3,7 +3,7 @@ authors = ["Tim_Paik <timpaikc@outlook.com>"]
description = "simple http server written in rust"
edition = "2018"
name = "web"
version = "0.8.2-beta"
version = "0.8.3-beta"
[dependencies]
actix-files = "0.5"

View File

@ -18,6 +18,7 @@
#header,
#meta,
#listing {
font-family: sans-serif;
padding: 0;
margin: 0;
border-spacing: 0;
@ -131,22 +132,37 @@
}
@media (prefers-color-scheme: dark) {
html {
color: #444444;
filter: invert(1);
html,
body,
#header,
#meta,
#listing {
color: #cacaca;
background: #000000;
}
#listing a span {
filter: invert(1);
#header nav span a {
color: #cacaca;
}
#header {
padding: 1.5rem 5% 1rem;
background-color: #0e0e0e;
}
#listing table {
border-top: 1px dashed #999999;
}
#listing th,
#listing td {
border-bottom: 1px dashed #999999;
}
#listing .goup svg,
#listing .file svg {
fill: #444444;
}
#listing .dir svg {
filter: invert(1);
fill: #cacaca;
}
#header a,