From bcf24e7ed065fc032c21a7eb788bc255e40f6fb2 Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Tue, 31 Dec 2024 09:06:03 +0100 Subject: [PATCH] [Static] Add theming to error pages --- static/errors/errors.html | 12 ++++++++++++ static/errors/unavailable.html | 11 +++++++++++ 2 files changed, 23 insertions(+) diff --git a/static/errors/errors.html b/static/errors/errors.html index 993f2b0..5ed3593 100644 --- a/static/errors/errors.html +++ b/static/errors/errors.html @@ -20,6 +20,18 @@ flex-direction: column; } + + @media ( prefers-color-scheme: dark ) { + body { + background-color: rgb(20, 20, 20); + color: white; + } + + .error { + color: white; + } + } + .material-symbols-outlined { font-variation-settings: 'FILL' 0, diff --git a/static/errors/unavailable.html b/static/errors/unavailable.html index 931bfac..29abb18 100644 --- a/static/errors/unavailable.html +++ b/static/errors/unavailable.html @@ -20,6 +20,17 @@ flex-direction: column; } + @media ( prefers-color-scheme: dark ) { + body { + background-color: rgb(20, 20, 20); + color: white; + } + + .error { + color: white; + } + } + .material-symbols-outlined { font-variation-settings: 'FILL' 0,