diff options
| author | Matteo Vitali <trottomv@gmail.com> | 2021-10-03 08:33:51 +0200 |
|---|---|---|
| committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2021-10-27 10:34:01 +0200 |
| commit | 3f1f8b93760eee2f26eb84ddc4054f0c6b319da5 (patch) | |
| tree | c2c0a291ba0d41021a0003faa78dccbc1f0c9656 /docs/ref | |
| parent | 69af4d09bae7782f733e01b19cf69fa6f36d7165 (diff) | |
Fixed #33182 -- Moved admin dark mode vars to separate stylesheet and template block.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index 91f55628fd..fcc9227fad 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -2848,13 +2848,19 @@ override to your project: </style> {% endblock %} -A dark theme is defined, and applied respecting the `prefers-color-scheme`_ -media query. +The list of CSS variables are defined at +:file:`django/contrib/admin/static/admin/css/base.css`. + +Dark mode variables, respecting the `prefers-color-scheme`_ media query, are +defined at :file:`django/contrib/admin/static/admin/css/dark_mode.css`. This is +linked to the document in ``{% block dark-mode-vars %}``. .. _prefers-color-scheme: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme -The list of CSS variables are defined at -:file:`django/contrib/admin/static/admin/css/base.css`. +.. versionchanged:: 4.1 + + The dark mode variables were moved to a separate stylesheet and template + block. ``AdminSite`` objects ===================== |
