From 5dda6edf012f4d1c80f25ee0862d166d96880091 Mon Sep 17 00:00:00 2001 From: Linnnus Date: Sun, 19 May 2024 22:33:44 +0200 Subject: torrenting: Add dark mode to portal The white background is pretty eye-soaring at night. This patch fixes this issue by using a CSS query parameter to set darker styles when dark mode is enabled. See: https://css-tricks.com/dark-modes-with-css/ --- hosts/ahmed/torrenting/portal/index.css | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'hosts/ahmed/torrenting') diff --git a/hosts/ahmed/torrenting/portal/index.css b/hosts/ahmed/torrenting/portal/index.css index 8132a1f..455ec8f 100644 --- a/hosts/ahmed/torrenting/portal/index.css +++ b/hosts/ahmed/torrenting/portal/index.css @@ -66,3 +66,9 @@ body { font-weight: bold; } +@media (prefers-color-scheme: dark) { + body { + background-color: #343434; + color: white; + } +} -- cgit v1.2.3