Revert "7 segments"

This reverts commit 6258874114cd69d737d21e722d113ac41aa4d4b5.
This commit is contained in:
Adrien MALINGREY 2025-05-06 17:54:34 +02:00
parent 6258874114
commit ea88991a9d
2 changed files with 6 additions and 9 deletions

View File

@ -60,8 +60,7 @@ echo ("-->");*/
<h2>Interfaces</h2> <h2>Interfaces</h2>
<?php <?php
foreach ($stack as $member_id => $lines) { foreach ($stack as $member_id => $lines) {
$member_7_segments = mb_convert_encoding("&#x" . dechex(0x1FBF0 + $member_id) . ";", 'UTF-8', 'HTML-ENTITIES'); echo "<div class='member'>\n<span class='member-id'>$member_id</span>\n<table class='interfaces'>\n<tbody>\n";
echo "<div class='member'>\n<span class='member-id'>$member_7_segments</span>\n<table class='interfaces'>\n<tbody>\n";
foreach ($lines as $interfaces) { foreach ($lines as $interfaces) {
ksort($interfaces); ksort($interfaces);
echo "<tr>\n"; echo "<tr>\n";

View File

@ -104,26 +104,24 @@ main {
.member { .member {
display: flex; display: flex;
align-items: baseline; align-items: center;
border: 6px outset #476079; border: 6px outset #476079;
border-radius: 4px; border-radius: 4px;
background-color: #34495e; background-color: #34495e;
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
print-color-adjust: exact; print-color-adjust: exact;
justify-content: flex-start;
} }
.member-id { .member-id {
background: #666; background: #888;
align-content: center; align-content: center;
color: lightgreen; color: lightgreen;
text-shadow: 0 1px 3px #fff5; text-shadow: 0 1px 3px #fffb;
font-weight: bold; font-weight: bold;
border: 2px inset black; border: 2px inset black;
font-family: monospace; font-family: monospace;
margin: 0 0.5em; margin: 1em 0.5em;
padding: 0 0.3em; padding: 0.12em 0.4em;
font-size: 1.4em;
} }
.interfaces { .interfaces {