1
0
mirror of https://github.com/mbirth/tcl_update_db.git synced 2024-12-26 04:24:07 +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 {
border-left: 1px dashed green;
border-left: 1px dashed silver;
text-align: center;
}
td {
font-family: monospace;
}
td.ref {
font-weight: bold;
}
td.empty {
color: silver;
}

View File

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