[FrameworkBundle] fixed exception styles

This commit is contained in:
Fabien Potencier 2010-09-08 13:54:02 +02:00
parent 15d840060b
commit 15fa905bd4
2 changed files with 3 additions and 2 deletions

View File

@ -19,12 +19,13 @@ build: 56
.sf-exceptionreset ul li { padding-bottom: 5px }
.sf-exceptionreset ol { padding: 10px 0 }
.sf-exceptionreset ol li { list-style: decimal; margin-left: 20px; padding: 2px }
.sf-exceptionreset ol ol li { list-style-position: inside; margin-left: 0 }
.sf-exceptionreset ol ol li { list-style-position: inside; margin-left: 0; white-space: nowrap }
.sf-exceptionreset li .selected { background-color: #ffd; padding: 4px 3px }
.sf-exceptionreset p.error { padding: 10px; background-color: #f00; font-weight: bold; text-align: center; -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; }
.sf-exceptionreset p.error a { color: #fff }
.sf-exceptionreset .block { padding: 20px 25px; margin-bottom: 10px; border: 1px solid #ddd; background-color: #fff; text-align:left; -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; width: 770px; box-shadow: 0 1px 2px rgba(0,0,0,0.15); -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.15); -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.sf-exceptionreset .traces { display: none; margin-top: 10px }
.sf-exceptionreset .trace { overflow: auto; width: 746px; }
.sf-exceptionreset #message { margin-top: 30px; margin-bottom: 10px; padding: 20px 25px; text-align:left; -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; width: 770px; background-color: #c8e8f3; border: 1px solid #ddd; background-image: -moz-linear-gradient(-90deg, #fff, #c8e8f3); background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fff), to(#c8e8f3)); box-shadow: 0 1px 2px rgba(0,0,0,0.15); -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.15); -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.sf-exceptionreset #content { border: 1px solid #ddd; margin-top: 10px; padding: 7px; overflow: auto; }
.sf-exceptionreset a.file_link { text-decoration: none; }

View File

@ -4,7 +4,7 @@
<?php if ($trace['file'] && $trace['line']): ?>
in <em><?php echo $view->get('code')->formatFile($trace['file'], $trace['line']) ?></em>
<a href="#" onclick="toggle('trace_<?php echo $prefix.'_'.$i ?>'); return false;">&raquo;</a><br />
<div id="trace_<?php echo $prefix.'_'.$i ?>" style="display: <?php echo 0 === $i ? 'block' : 'none' ?>">
<div id="trace_<?php echo $prefix.'_'.$i ?>" class="trace" style="display: <?php echo 0 === $i ? 'block' : 'none' ?>">
<?php echo $view->get('code')->fileExcerpt($trace['file'], $trace['line']) ?>
</div>
<?php endif; ?>