From eab67450b3ef4db99b9fed258063d88656daac4a Mon Sep 17 00:00:00 2001 From: Cheuk Ting Ho Date: Sat, 21 Oct 2023 19:09:22 +0100 Subject: [PATCH] Fixed #34913 -- Added borders on high contrast mode in the admin. --- django/contrib/admin/static/admin/css/base.css | 12 ++++++++++++ .../contrib/admin/static/admin/css/changelists.css | 6 ++++++ 2 files changed, 18 insertions(+) diff --git a/django/contrib/admin/static/admin/css/base.css b/django/contrib/admin/static/admin/css/base.css index 60ab3c7768..fb27dcc4c0 100644 --- a/django/contrib/admin/static/admin/css/base.css +++ b/django/contrib/admin/static/admin/css/base.css @@ -878,6 +878,12 @@ a.deletelink:focus, a.deletelink:hover { margin-right: -300px; } +@media (forced-colors: active) { + #content-related { + border: 1px solid; + } +} + #footer { clear: both; padding: 10px; @@ -928,6 +934,12 @@ a.deletelink:focus, a.deletelink:hover { text-decoration: underline; } +@media (forced-colors: active) { + #header { + border-bottom: 1px solid; + } +} + #branding { display: flex; } diff --git a/django/contrib/admin/static/admin/css/changelists.css b/django/contrib/admin/static/admin/css/changelists.css index 573c3896bc..72229082c4 100644 --- a/django/contrib/admin/static/admin/css/changelists.css +++ b/django/contrib/admin/static/admin/css/changelists.css @@ -139,6 +139,12 @@ margin: 0 0 0 30px; } +@media (forced-colors: active) { + #changelist-filter { + border: 1px solid; + } +} + #changelist-filter h2 { font-size: 0.875rem; text-transform: uppercase;