Skip to content

Commit

Permalink
[ext/reverse_search_links] apply style directly to the link, no matte…
Browse files Browse the repository at this point in the history
…r where it is positioned
  • Loading branch information
shish committed Sep 6, 2023
1 parent 1244f4a commit 84ce151
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions ext/reverse_search_links/style.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#Reverse_Image_Searchmain a,
#Reverse_Image_Searchleft a {
.reverse_image_link {
padding: 0 5px;
}
2 changes: 1 addition & 1 deletion ext/reverse_search_links/theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function reverse_search_block(Page $page, Image $image)
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>";
}
}

Expand Down

0 comments on commit 84ce151

Please sign in to comment.