summaryrefslogtreecommitdiff
path: root/hosts/ahmed/torrenting/portal/index.css
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2024-05-19 22:33:44 +0200
committerLinnnus <[email protected]>2024-05-19 22:33:44 +0200
commit5dda6edf012f4d1c80f25ee0862d166d96880091 (patch)
tree4f907223f9788b6c00b3904beafc8ffad976d845 /hosts/ahmed/torrenting/portal/index.css
parent4b562df53a296e1e745581c414d5e5a1c88a9bf3 (diff)
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/
Diffstat (limited to 'hosts/ahmed/torrenting/portal/index.css')
-rw-r--r--hosts/ahmed/torrenting/portal/index.css6
1 files changed, 6 insertions, 0 deletions
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;
+ }
+}