From ede7a0926cfcb9a1aeecb3793ec0c0b91ecf678a Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Wed, 30 Aug 2023 16:32:17 +0200 Subject: [PATCH] fix tag counter bg color + force white text color --- app/class/Colors.php | 2 +- app/view/templates/homeopt.php | 4 ++-- assets/css/home.css | 5 +++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/class/Colors.php b/app/class/Colors.php index 2bf27345..4d95a469 100644 --- a/app/class/Colors.php +++ b/app/class/Colors.php @@ -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; } diff --git a/app/view/templates/homeopt.php b/app/view/templates/homeopt.php index 7a262215..8748a263 100644 --- a/app/view/templates/homeopt.php +++ b/app/view/templates/homeopt.php @@ -56,7 +56,7 @@ -
+
Tag
tagnot() ? "checked" : '' ?>> @@ -189,7 +189,7 @@ invert() ? 'checked' : '' ?>>
-
+
diff --git a/assets/css/home.css b/assets/css/home.css index 30dfe3fb..bae05f98 100644 --- a/assets/css/home.css +++ b/assets/css/home.css @@ -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;