From 93ebdb17d870527be64ce6e63ad31fe11dc235d9 Mon Sep 17 00:00:00 2001 From: Luke Harris Date: Mon, 28 Oct 2024 16:50:15 -0500 Subject: [PATCH 1/2] Remove unnecessary ::backdrop selector from :root Fixes #214 --- simple.css | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/simple.css b/simple.css index e001e40..ca1630c 100644 --- a/simple.css +++ b/simple.css @@ -1,6 +1,5 @@ /* Global variables. */ -:root, -::backdrop { +:root { /* Set sans-serif & mono fonts */ --sans-font: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir, "Nimbus Sans L", Roboto, "Noto Sans", "Segoe UI", Arial, Helvetica, @@ -25,8 +24,7 @@ /* Dark theme */ @media (prefers-color-scheme: dark) { - :root, - ::backdrop { + :root { color-scheme: dark; --bg: #212121; --accent-bg: #2b2b2b; From 35d0532a54c2ab3420376ed8fff7d91823e8c7ee Mon Sep 17 00:00:00 2001 From: Luke Harris Date: Mon, 28 Oct 2024 16:51:38 -0500 Subject: [PATCH 2/2] Set a background color on dialog to fix gray background issue in Firefox --- simple.css | 1 + 1 file changed, 1 insertion(+) diff --git a/simple.css b/simple.css index ca1630c..8364d59 100644 --- a/simple.css +++ b/simple.css @@ -669,6 +669,7 @@ progress:indeterminate::-moz-progress-bar { } dialog { + background-color: var(--bg); max-width: 40rem; margin: auto; }