]> OzVa Git service - ozva-cloud/commitdiff
feat: add basic dark theme (#29)
authorJoe Koop <joe@joekoop.com>
Thu, 9 Jun 2022 14:16:43 +0000 (09:16 -0500)
committerGitHub <noreply@github.com>
Thu, 9 Jun 2022 14:16:43 +0000 (22:16 +0800)
assets/index.css

index 8340d85719d20df7e2682188c8b125c13ad11ab0..9a0fe000507bb6075a6c78543a3ae990333bb306 100644 (file)
@@ -173,3 +173,39 @@ body {
 .uploader {
   padding-right: 1em;
 }
+
+/* dark theme */
+@media (prefers-color-scheme: dark) {
+  body {
+    background-color: #000;
+  }
+
+  html,
+  .breadcrumb>b,
+  .searchbar #search {
+    color: #fff;
+  }
+
+  .uploaders-table th,
+  .paths-table th {
+    color: #ddd;
+  }
+
+  svg,
+  .path svg {
+    fill: #d0e6ff;
+  }
+
+  .searchbar {
+    background-color: #111;
+    border-color: #fff6;
+  }
+
+  .searchbar svg {
+    fill: #fff6;
+  }
+
+  .path a {
+    color: #3191ff;
+  }
+} 
\ No newline at end of file