From c04f47a93d69b1457196a9393f61caee354e5fa8 Mon Sep 17 00:00:00 2001
From: jonasled <jonas@jonasled.de>
Date: Tue, 25 Feb 2020 18:02:26 +0100
Subject: [PATCH] darkmode for api

---
 templates/apiDocs.html | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/templates/apiDocs.html b/templates/apiDocs.html
index 27eabbb..2df341b 100644
--- a/templates/apiDocs.html
+++ b/templates/apiDocs.html
@@ -13,6 +13,35 @@
         smaller {
             font-size: 13px;
         }
+        @media (prefers-color-scheme: dark) {
+            body{
+                background-color: #151d28;
+                color: #b3b3b3;
+            }
+
+            table th {
+                color: #b3b3b3;
+            }
+            table tr:nth-child(even) {
+                background-color: #1a2332;
+                color: #b3b3b3;
+            }
+            table tr:nth-child(odd) {
+                background-color: #10151f;
+                color: #b3b3b3;
+            }
+            input{
+                background: #151c29;
+                border: solid;
+                border-color: #10151f;
+                color: #b3b3b3;
+            }
+            button{
+                background: #151c29;
+                color: #b3b3b3;
+                border: solid #10151f; 
+            }
+        }
     </style>
     <title>API docs</title>
 </head>
-- 
GitLab