Skip to content

Commit

Permalink
Avoid setting color-scheme on :root, we're only a guest on pages (#1923)
Browse files Browse the repository at this point in the history
Fixes #1922.
  • Loading branch information
matthiask authored May 27, 2024
1 parent e7541ab commit 4808add
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions debug_toolbar/static/debug_toolbar/css/toolbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
monospace, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
"Noto Color Emoji";

color-scheme: light;
--djdt-font-color: black;
--djdt-background-color: white;
--djdt-panel-content-background-color: #eee;
Expand All @@ -35,7 +34,6 @@

@media (prefers-color-scheme: dark) {
:root {
color-scheme: dark;
--djdt-font-color: #8393a7;
--djdt-background-color: #1e293bff;
--djdt-panel-content-background-color: #0f1729ff;
Expand All @@ -58,7 +56,6 @@
}

#djDebug[data-theme="dark"] {
color-scheme: dark;
--djdt-font-color: #8393a7;
--djdt-background-color: #1e293bff;
--djdt-panel-content-background-color: #0f1729ff;
Expand Down
2 changes: 2 additions & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Change log
Pending
-------

* Removed some CSS which wasn't carefully limited to the toolbar's elements.


4.4.1 (2024-05-26)
------------------
Expand Down

0 comments on commit 4808add

Please sign in to comment.