1
0
Fork 0

Using CSS for custom emojis

This commit is contained in:
Michael 2018-11-08 07:42:19 +00:00
parent cd2c7f782f
commit 077a96fb28
2 changed files with 7 additions and 1 deletions

View file

@ -50,7 +50,8 @@ class Processor
public static function replaceEmojis($emojis, $body)
{
foreach ($emojis as $emoji) {
$body = str_replace($emoji['name'], '[img=16x16]' . $emoji['href'] . '[/img]', $body);
$replace = '[class=emoji mastodon][img=' . $emoji['href'] . ']' . $emoji['name'] . '[/img][/class]';
$body = str_replace($emoji['name'], $replace, $body);
}
return $body;
}

View file

@ -602,3 +602,8 @@ img.invalid-src:after { vertical-align: top;}
#register-explicid-content {
font-weight: bold;
}
span.emoji.mastodon img {
height: 1.2em;
vertical-align: middle;
}