From 966d3562d484ddea7f9c4d08e03c255d48e5c85e Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Sun, 12 Dec 2010 22:55:10 +0000 Subject: [PATCH] Fixed #13649 -- Extended admin stylesheets to also cover disabled buttons in the admin. Thanks, Sebastian Noack. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14880 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/admin/media/css/base.css | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/django/contrib/admin/media/css/base.css b/django/contrib/admin/media/css/base.css index 9c1f71f810..57d6bfaba3 100644 --- a/django/contrib/admin/media/css/base.css +++ b/django/contrib/admin/media/css/base.css @@ -376,6 +376,12 @@ input[type=text], input[type=password], textarea, select, .vTextField { background-position: top; } +.button[disabled], input[type=submit][disabled], input[type=button][disabled] { + background-image: url(../img/admin/nav-bg.gif); + background-position: bottom; + opacity: 0.4; +} + .button.default, input[type=submit].default, .submit-row input.default { border: 2px solid #5b80b2; background: #7CA0C7 url(../img/admin/default-bg.gif) bottom repeat-x; @@ -389,6 +395,13 @@ input[type=text], input[type=password], textarea, select, .vTextField { background-position: top; } +.button[disabled].default, input[type=submit][disabled].default, input[type=button][disabled].default { + background-image: url(../img/admin/default-bg.gif); + background-position: bottom; + opacity: 0.4; +} + + /* MODULES */ .module {