From 77892a8289495f4f1d06a8b0b15c1914efa60a5c Mon Sep 17 00:00:00 2001 From: FTCHD <144691102+FTCHD@users.noreply.github.com> Date: Sat, 21 Feb 2026 03:06:08 +0300 Subject: [PATCH] http: dark mode for browser --- lib/http/templates/index.html | 58 +++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/lib/http/templates/index.html b/lib/http/templates/index.html index 3a4417dd4..5978cb0ff 100644 --- a/lib/http/templates/index.html +++ b/lib/http/templates/index.html @@ -187,6 +187,64 @@ footer { max-width: 100px; } } +@media (prefers-color-scheme: dark) { + body { + background-color: #18181B; + color: #F4F4F5; + color-scheme: dark; + } + a { + color: #99C7FB; + } + a:hover, + h1 a:hover { + color: #CCE3FD; + } + header { + background-color: #27272A; + } + h1 { + color: #A1A1AA; + } + h1 a { + color: #FAFAFA; + } + .meta { + border-bottom: 1px solid #52525B; + } + #filter { + background-color: #27272A; + border: 1px solid #71717A; + color: #F4F4F5; + } + #filter::placeholder { + color: #A1A1AA; + } + tr { + border-bottom: 1px dashed #3F3F46; + } + tbody tr:hover { + background-color: #3F3F46; + } + th a { + color: #FAFAFA; + } + a svg { + color: #D4D4D8; + } + a:hover svg { + color: #CCE3FD; + } + a svg use, + a svg path:not([fill]), + a svg path[fill="#000"], + a svg path[fill="#000000"], + a svg [stroke="#000"], + a svg [stroke="#000000"] { + fill: currentColor; + stroke: currentColor; + } +} td .zip { opacity: 0; margin-left: 6px;