From 9c4aa194caa48c20af93b02f0cf111a689857393 Mon Sep 17 00:00:00 2001 From: xuanzhi33 <37460139+xuanzhi33@users.noreply.github.com> Date: Sat, 13 Jan 2024 19:38:12 +0800 Subject: [PATCH] perf: Add dark mode support to go.html (#1878) --- static/go.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/static/go.html b/static/go.html index c8881307f..fcea7110d 100644 --- a/static/go.html +++ b/static/go.html @@ -45,6 +45,19 @@ text-decoration: none; } + body { + transition: background-color 0.5s; + } + + @media (prefers-color-scheme: dark) { + * { + color: #f9fafb; + } + body { + background: #111827; + } + } + .blink { position: fixed; height: 100%;