[ext/reverse_search_links] apply style directly to the link, no matter where it is positioned

This commit is contained in:
Shish 2023-09-06 12:16:22 +01:00 committed by Shish
parent 38af9eb0c4
commit f0e8bd9ee1
2 changed files with 2 additions and 3 deletions

View file

@ -1,4 +1,3 @@
#Reverse_Image_Searchmain a,
#Reverse_Image_Searchleft a {
.reverse_image_link {
padding: 0 5px;
}

View file

@ -25,7 +25,7 @@ class ReverseSearchLinksTheme extends Themelet
foreach($links as $name => $link) {
if (in_array($name, $enabled_services)) {
$icon_link = make_link("/ext/reverse_search_links/icons/" . strtolower($name) . ".ico");
$html .= "<a href='$link' rel='nofollow'><img title='Search with $name' src='$icon_link' alt='$name icon'></a>";
$html .= "<a href='$link' class='reverse_image_link' rel='nofollow'><img title='Search with $name' src='$icon_link' alt='$name icon'></a>";
}
}