1
0
mirror of https://github.com/mbirth/tcl_update_db.git synced 2024-12-27 04:54:08 +00:00

Small CSS changes.

This commit is contained in:
Markus Birth 2017-12-16 20:17:11 +01:00
parent 1edabd5b74
commit 9f6e0b7136
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A
2 changed files with 12 additions and 3 deletions

View File

@ -1,11 +1,20 @@
body {
font-family: sans-serif;
}
table td+td { table td+td {
border-left: 1px dashed green; border-left: 1px dashed silver;
text-align: center;
} }
td { td {
font-family: monospace; font-family: monospace;
} }
td.ref {
font-weight: bold;
}
td.empty { td.empty {
color: silver; color: silver;
} }

View File

@ -31,13 +31,13 @@ foreach ($allVars as $family => $models) {
$allVersions = $db->getAllVersionsForModel($model); $allVersions = $db->getAllVersionsForModel($model);
echo '<table><tbody>'; echo '<table><tbody>';
foreach ($variants as $ref => $name) { foreach ($variants as $ref => $name) {
echo '<tr><td>' . $ref . '</td>'; echo '<tr><td class="ref">' . $ref . '</td>';
$refVersions = $db->getAllVersionsForRef($ref); $refVersions = $db->getAllVersionsForRef($ref);
foreach ($allVersions as $v) { foreach ($allVersions as $v) {
if (in_array($v, $refVersions, true)) { if (in_array($v, $refVersions, true)) {
echo '<td>' . $v . '</td>'; echo '<td>' . $v . '</td>';
} else { } else {
echo '<td class="empty">------</td>'; echo '<td class="empty">- - -</td>';
} }
} }
echo '</tr>' . PHP_EOL; echo '</tr>' . PHP_EOL;