Style benchmark output

This commit is contained in:
Thomas Gelf 2014-03-07 17:03:18 +00:00
parent 13f827a0ef
commit 3286dfe202
2 changed files with 11 additions and 2 deletions

View File

@ -165,8 +165,7 @@ class Benchmark
$data = self::prepareDataForRendering($what);
// TODO: Move formatting to CSS file
$style = 'font-family: monospace; font-size: 1.5em; width: 100%';
$html = '<table style="' . $style . '">' . "\n" . '<tr>';
$html = '<table class="benchmark">' . "\n" . '<tr>';
foreach ($data->columns as & $col) {
$html .= sprintf(
'<td align="%s">%s</td>',

View File

@ -137,3 +137,13 @@ table.objectlist {
}
}
table.benchmark {
margin: 1em 1% 1em 1%;
font-family: monospace;
font-size: 1em;
width: 96%;
}
.dashboard table.benchmark {
font-size: 0.9em;
}