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 | |
| parent | 69af4d09bae7782f733e01b19cf69fa6f36d7165 (diff) | |
Fixed #33182 -- Moved admin dark mode vars to separate stylesheet and template block.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 14 | ||||
| -rw-r--r-- | docs/releases/4.1.txt | 3 |
2 files changed, 12 insertions, 5 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 ===================== diff --git a/docs/releases/4.1.txt b/docs/releases/4.1.txt index 0c133f24f1..1eba2b0539 100644 --- a/docs/releases/4.1.txt +++ b/docs/releases/4.1.txt @@ -32,7 +32,8 @@ Minor features :mod:`django.contrib.admin` ~~~~~~~~~~~~~~~~~~~~~~~~~~~ -* ... +* The admin :ref:`dark mode CSS variables <admin-theming>` are now applied in a + separate stylesheet and template block. :mod:`django.contrib.admindocs` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
