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;