From 8b47bb74e8145b8d55f3c91a50948945fabe39ab Mon Sep 17 00:00:00 2001 From: marlon-erler Date: Thu, 25 Jul 2024 14:24:15 +0200 Subject: [PATCH] make subtle background pitch black on mobile PWA dark mode --- dist/index.css | 5 +++++ src/colors.css | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/dist/index.css b/dist/index.css index 35bfc4e9..954a0a24 100644 --- a/dist/index.css +++ b/dist/index.css @@ -151,6 +151,11 @@ main { [color]:not([color=standard]).subtle-background { --luma: var(--subtle-luma-dark); } + @media (display-mode: standalone) { + [color]:not([color=standard]).subtle-background { + --luma: 0%; + } + } } [color=coral] { --hue: 20; diff --git a/src/colors.css b/src/colors.css index b24e9a83..4587d5fe 100644 --- a/src/colors.css +++ b/src/colors.css @@ -96,6 +96,12 @@ [color]:not([color="standard"]).subtle-background { --luma: var(--subtle-luma-dark); } + + @media (display-mode: standalone) { + [color]:not([color="standard"]).subtle-background { + --luma: 0%; + } + } } /* definitions */