From 51de294d774b0f95a50d1feeb01614a8537cec6e Mon Sep 17 00:00:00 2001 From: "Mohammed Y. Alnajdi" Date: Fri, 20 May 2022 12:32:55 +0300 Subject: [PATCH] [4.1.x] Fixed #33727 -- Fixed color contrasts in admin header. Backport of 78bf1565c37d0eef2ff9dd72a2cead0b772b2444 from main --- django/contrib/admin/static/admin/css/base.css | 7 +++++-- django/contrib/admin/static/admin/css/responsive.css | 1 - 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/django/contrib/admin/static/admin/css/base.css b/django/contrib/admin/static/admin/css/base.css index 22010b7fa9..1ff93e245f 100644 --- a/django/contrib/admin/static/admin/css/base.css +++ b/django/contrib/admin/static/admin/css/base.css @@ -946,8 +946,11 @@ a.deletelink:focus, a.deletelink:hover { #user-tools a:focus, #user-tools a:hover, #logout-form button:active, #logout-form button:hover { text-decoration: none; - border-bottom-color: var(--primary); - color: var(--primary); + border-bottom: 0; +} + +#logout-form button:active, #logout-form button:hover { + margin-bottom: 1px; } /* SIDEBAR */ diff --git a/django/contrib/admin/static/admin/css/responsive.css b/django/contrib/admin/static/admin/css/responsive.css index 223dba0dd5..9a4615d09e 100644 --- a/django/contrib/admin/static/admin/css/responsive.css +++ b/django/contrib/admin/static/admin/css/responsive.css @@ -45,7 +45,6 @@ input[type="submit"], button { #branding h1 { margin: 0 0 8px; - font-size: 1.25rem; line-height: 1.2; }