Skip to content

Commit

Permalink
Update v1.0.20221020
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilkware committed Nov 22, 2023
1 parent d2ac45a commit 536ed1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/VisualisationHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ protected function BuildWidget(array $waste, string $skin, array $custom)
$tbc = ($skin == 'light') ? '#D7D6D6' : '#4A4B4D';
$wic = '';
foreach ($custom as $color) {
$wic .= ' .icon--' . $color['Type'] . ' { fill: #' . dechex($color['Color']) . ';}' . PHP_EOL;
$wic .= ' .icon--' . $color['Type'] . ' { fill: #' . sprintf("%06X", $color['Color']) . ';}' . PHP_EOL;
}

$html = '
Expand All @@ -150,7 +150,7 @@ protected function BuildWidget(array $waste, string $skin, array $custom)
.hidden { display: none; }
table.wwx { border-collapse: collapse; width: 100% }
.wwx th, .wwx td { vertical-align: middle; text-align: left; padding: 10px; }
.wwx tr { border-bottom: 2px solid ' . $tbc . '; }
.wwx tr { border-bottom: 1px solid ' . $tbc . '; }
.tr4 tr > :nth-child(4) { text-align:right; }
.badge { background-color: #00CDAB; font-weight: bold; font-size: 80%; border-radius: 10em; min-width: 1.5em; padding: 0.5em; text-align: center; }
@media screen and (min-width: 384px) {
Expand Down

0 comments on commit 536ed1a

Please sign in to comment.