Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #15021 -- Corrected CSS for the layout of stack traces on the s…

…erver error page. Thanks to EmilStenstrom for the patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15294 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 3d7afd5d2b64546cdcfd812d2cecb61795e788f0 1 parent ef3d7bd
Russell Keith-Magee authored January 24, 2011

Showing 1 changed file with 5 additions and 3 deletions. Show diff stats Hide diff stats

  1. 8  django/views/debug.py
8  django/views/debug.py
@@ -329,6 +329,7 @@ def empty_urlconf(request):
329 329
     h2 span { font-size:80%; color:#666; font-weight:normal; }
330 330
     h3 { margin:1em 0 .5em 0; }
331 331
     h4 { margin:0 0 .5em 0; font-weight: normal; }
  332
+    code, pre { font-size: 100%; }
332 333
     table { border:1px solid #ccc; border-collapse: collapse; width:100%; background:white; }
333 334
     tbody td, tbody th { vertical-align:top; padding:2px 3px; }
334 335
     thead th { padding:1px 6px 1px 3px; background:#fefefe; text-align:left; font-weight:normal; font-size:11px; border:1px solid #ddd; }
@@ -340,12 +341,13 @@ def empty_urlconf(request):
340 341
     table.source th { color:#666; }
341 342
     table.source td { font-family:monospace; white-space:pre; border-bottom:1px solid #eee; }
342 343
     ul.traceback { list-style-type:none; }
343  
-    ul.traceback li.frame { margin-bottom:1em; }
344  
-    div.context { margin: 10px 0; }
  344
+    ul.traceback li.frame { padding-bottom:1em; }
  345
+    div.context { padding:10px 0; overflow:hidden; }
345 346
     div.context ol { padding-left:30px; margin:0 10px; list-style-position: inside; }
346 347
     div.context ol li { font-family:monospace; white-space:pre; color:#666; cursor:pointer; }
  348
+    div.context ol li pre { display:inline; }
347 349
     div.context ol.context-line li { color:black; background-color:#ccc; }
348  
-    div.context ol.context-line li span { float: right; }
  350
+    div.context ol.context-line li span { position:absolute; right:32px; }
349 351
     div.commands { margin-left: 40px; }
350 352
     div.commands a { color:black; text-decoration:none; }
351 353
     #summary { background: #ffc; }

0 notes on commit 3d7afd5

Please sign in to comment.
Something went wrong with that request. Please try again.