From dfcde78161866ad2c2c863c0a8c48480c3228f84 Mon Sep 17 00:00:00 2001 From: Idan Gazit Date: Thu, 9 Jun 2011 15:39:12 +0000 Subject: [PATCH] Fixes #16186 -- remove inline CSS in contrib.admin Thanks to bsimons for the report and the patches from cscheng, nvandijk! git-svn-id: http://code.djangoproject.com/svn/django/trunk@16346 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/admin/media/css/base.css | 1 + django/contrib/admin/media/css/forms.css | 4 ++++ django/contrib/admin/templates/admin/change_list_results.html | 2 +- django/contrib/admin/templates/admin/submit_line.html | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/django/contrib/admin/media/css/base.css b/django/contrib/admin/media/css/base.css index 0b9e8b366b..6d1b673b90 100644 --- a/django/contrib/admin/media/css/base.css +++ b/django/contrib/admin/media/css/base.css @@ -350,6 +350,7 @@ table thead th.sorted a span.clear { } #sorting-popup-div { + display: none; position: absolute; background-color: white; border: 1px solid #ddd; diff --git a/django/contrib/admin/media/css/forms.css b/django/contrib/admin/media/css/forms.css index 35d0ed796d..5149732719 100644 --- a/django/contrib/admin/media/css/forms.css +++ b/django/contrib/admin/media/css/forms.css @@ -167,6 +167,10 @@ fieldset.monospace textarea { overflow: hidden; } +body.popup .submit-row { + overflow: auto; +} + .submit-row input { margin: 0 0 0 5px; } diff --git a/django/contrib/admin/templates/admin/change_list_results.html b/django/contrib/admin/templates/admin/change_list_results.html index 6c1c399562..738ff28190 100644 --- a/django/contrib/admin/templates/admin/change_list_results.html +++ b/django/contrib/admin/templates/admin/change_list_results.html @@ -36,7 +36,7 @@ {# Sorting popup: #} -