From 257dfce6c87ebf11c429e65cd4eff30d852a14de Mon Sep 17 00:00:00 2001 From: Matthias Kestenholz Date: Thu, 14 Jan 2021 14:06:02 +0100 Subject: [PATCH] Refs #31259 -- Improved some color contrasts for admin dark theme. --- django/contrib/admin/static/admin/css/base.css | 5 +++++ django/contrib/admin/static/admin/css/nav_sidebar.css | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/django/contrib/admin/static/admin/css/base.css b/django/contrib/admin/static/admin/css/base.css index 224c787460..b3a9988f0d 100644 --- a/django/contrib/admin/static/admin/css/base.css +++ b/django/contrib/admin/static/admin/css/base.css @@ -76,6 +76,11 @@ --hairline-color: #272727; --border-color: #353535; + --error-fg: #e35f5f; + --message-success-bg: #006b1b; + --message-warning-bg: #583305; + --message-error-bg: #570808; + --darkened-bg: #212121; --selected-bg: #1b1b1b; --selected-row: #00363a; diff --git a/django/contrib/admin/static/admin/css/nav_sidebar.css b/django/contrib/admin/static/admin/css/nav_sidebar.css index a13d3b6fc9..3d3a7b4a69 100644 --- a/django/contrib/admin/static/admin/css/nav_sidebar.css +++ b/django/contrib/admin/static/admin/css/nav_sidebar.css @@ -91,7 +91,7 @@ #nav-sidebar .current-app .section:link, #nav-sidebar .current-app .section:visited { - color: var(--selected-row); + color: var(--header-color); font-weight: bold; }