summaryrefslogtreecommitdiff
path: root/django/contrib/admin
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-12-07 05:04:07 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-12-07 05:04:07 +0000
commit4ed33777beee2f01bdc7e6093f8f80175bf35cb2 (patch)
tree24d58621074caad82ee5d86f44dbefdc75284584 /django/contrib/admin
parentcef2ffd7e1f209f0955948143a5cc981b5af4f9f (diff)
Fixed #926 -- Fixed spacing in admin index template/CSS to handle wider words
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1562 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/contrib/admin')
-rw-r--r--django/contrib/admin/media/css/global.css8
-rw-r--r--django/contrib/admin/templates/admin/index.html8
2 files changed, 9 insertions, 7 deletions
diff --git a/django/contrib/admin/media/css/global.css b/django/contrib/admin/media/css/global.css
index 453998c363..4cb51016cd 100644
--- a/django/contrib/admin/media/css/global.css
+++ b/django/contrib/admin/media/css/global.css
@@ -117,15 +117,17 @@ table thead th.descending a { background:url(../img/admin/arrow-up.gif) right .4
.module h3 { margin-top:.6em; }
#content-related .module h2 { background:#eee url(../img/admin/nav-bg.gif) bottom left repeat-x; color:#666; }
#content-main .verbose .actionlist { float:right; font-size:10px; width:17em; position:relative; top:-1.6em; margin:0 8px; }
-.dashboard .module table { width:100%; }
-/* RECENT ACTIONS MODULE */
+/* DASHBOARD */
+.dashboard .module table th { width:100%; }
+.dashboard .module table td { white-space:nowrap; }
+.dashboard .module table td a { display:block; padding-right:.6em; }
+/* RECENT ACTIONS MODULE */
.module ul.actionlist { margin-left:0; }
ul.actionlist li { list-style-type:none; }
/* FORM DEFAULTS */
-
input, textarea, select { margin:2px 0; padding:2px 3px; vertical-align:middle; border:1px solid #ccc; font-family:"Lucida Grande", Verdana, Arial, sans-serif; font-weight:normal; font-size:11px; }
textarea { vertical-align:top !important; }
input[type=checkbox], input[type=radio] { border:none; }
diff --git a/django/contrib/admin/templates/admin/index.html b/django/contrib/admin/templates/admin/index.html
index 03ae272909..aabd4eecca 100644
--- a/django/contrib/admin/templates/admin/index.html
+++ b/django/contrib/admin/templates/admin/index.html
@@ -24,15 +24,15 @@
{% endif %}
{% if model.perms.add %}
- <td class="x50"><a href="{{ model.admin_url }}add/" class="addlink">{% trans 'Add' %}</a></td>
+ <td><a href="{{ model.admin_url }}add/" class="addlink">{% trans 'Add' %}</a></td>
{% else %}
- <td class="x50">&nbsp;</td>
+ <td>&nbsp;</td>
{% endif %}
{% if model.perms.change %}
- <td class="x75"><a href="{{ model.admin_url }}" class="changelink">{% trans 'Change' %}</a></td>
+ <td><a href="{{ model.admin_url }}" class="changelink">{% trans 'Change' %}</a></td>
{% else %}
- <td class="x75">&nbsp;</td>
+ <td>&nbsp;</td>
{% endif %}
</tr>
{% endfor %}