Skip to content

Commit

Permalink
fix tag counter bg color
Browse files Browse the repository at this point in the history
+ force white text color
  • Loading branch information
vincent-peugnet committed Aug 30, 2023
1 parent 52a2a2a commit ede7a09
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/class/Colors.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function tocss(array $tagcolor): string
{
$css = "";
foreach ($tagcolor as $tag => $color) {
$css .= "\ntr td a.tag_$tag { background-color: $color; }";
$css .= "\n.tag_$tag { background-color: $color; }";
}
return $css;
}
Expand Down
4 changes: 2 additions & 2 deletions app/view/templates/homeopt.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@



<fieldset data-default="<?= $opt->isdefault('tagfilter') && $opt->tagcompare() != 'EMPTY' ? '1' : '0' ?>">
<fieldset class="tag" data-default="<?= $opt->isdefault('tagfilter') && $opt->tagcompare() != 'EMPTY' ? '1' : '0' ?>">
<legend>Tag</legend>
<div>
<input type="hidden" name="tagnot" value="0" <?= !$opt->tagnot() ? "checked" : '' ?>>
Expand Down Expand Up @@ -189,7 +189,7 @@
<input type="checkbox" name="invert" value="1" id="invert" <?= $opt->invert() ? 'checked' : '' ?>>

<label for="invert">invert</label></br>
</div>
</div>


</fieldset>
Expand Down
5 changes: 5 additions & 0 deletions assets/css/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,13 @@ nav span.counter {
height: 17px;
display: inline-block;
text-align: center;
font-size: smaller;
}

fieldset.tag .counter, td a.tag {
color: white !important;
}


table td a.tag, table a.author {
border-radius: 10px;
Expand Down

0 comments on commit ede7a09

Please sign in to comment.