Skip to content

Commit

Permalink
Merge pull request #215 from lkhrs/issue214
Browse files Browse the repository at this point in the history
Remove unnecessary ::backdrop selector from :root
  • Loading branch information
lkhrs authored Oct 28, 2024
2 parents 0d4b9f8 + 35d0532 commit 179db79
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions simple.css
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -25,8 +24,7 @@

/* Dark theme */
@media (prefers-color-scheme: dark) {
:root,
::backdrop {
:root {
color-scheme: dark;
--bg: #212121;
--accent-bg: #2b2b2b;
Expand Down Expand Up @@ -671,6 +669,7 @@ progress:indeterminate::-moz-progress-bar {
}

dialog {
background-color: var(--bg);
max-width: 40rem;
margin: auto;
}
Expand Down

0 comments on commit 179db79

Please sign in to comment.