diff options
| author | Rida Zouga <96395950+ZougaRida@users.noreply.github.com> | 2026-02-22 13:59:36 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-22 14:59:36 +0100 |
| commit | 4ae60f7838698677a0e45b11308615ebe5bb0b56 (patch) | |
| tree | 61bdf6abaaf7507a62b9d8e47fc1f28311c4db37 /djangoproject | |
| parent | 1e775667e0d6fcce12ac36a700e459e30e0a1fe3 (diff) | |
Fix color scheme issues on dark mode theme, and auto theme along with prefers-media-querry: dark (#2491)
Diffstat (limited to 'djangoproject')
| -rw-r--r-- | djangoproject/scss/_dark-mode.scss | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/djangoproject/scss/_dark-mode.scss b/djangoproject/scss/_dark-mode.scss index 6da713f5..1382a1f1 100644 --- a/djangoproject/scss/_dark-mode.scss +++ b/djangoproject/scss/_dark-mode.scss @@ -64,6 +64,7 @@ html[data-theme="light"], @media (prefers-color-scheme: dark) { html:not([data-theme="light"]) { + color-scheme: dark; --body-fg: #C1CAD2; --body-bg: #{$black}; --logo-bg: #{$logo-bg-dark}; @@ -162,6 +163,7 @@ html[data-theme="light"], } html[data-theme="dark"] { + color-scheme: dark; --body-fg: #C1CAD2; --body-bg: #{$black}; --logo-bg: #{$logo-bg-dark}; |
