#Replace your emoji button

1 messages ยท Page 1 of 1 (latest)

earnest mountain
#

this is my first css snippet so please tell me if there's any issues with it

viscid valley
#

very cooo

earnest mountain
#

thank you :3

earnest mountain
fresh moat
#

i appreciate the exploding cat

bitter trout
#

nice!

quiet frigate
#

perfectionn

short badger
#

I love this, but I found a small bug if someone's also using the EmojiReplace theme, where the grey emoji button would still have the regular emoji as background, fixed it by adding an empty grey emoji at its place instead

.sprite__294b3.spriteGreyscale__750f4 {
    mask-image: url(https://cdn.discordapp.com/emojis/1024751291504791654.png) !important;
    mask-size: 24px !important;
    background-image: url(https://cdn.discordapp.com/emojis/1224729618917883914.webp) !important; /* fix emojireplacer */
}```
earnest mountain
#

thanks for telling me :3

short badger
#

Yeah I had to re-add them because the other theme would just replace it

clever burrow
#

hope ya dont mind but I made it semi-future proof and any emoji even non 1:1 should work shyyshy

:root{
  --customEmojiIconURL: url(https://cdn.discordapp.com/emojis/1217110775601172591.gif?size=240&quality=lossless);
  --customEmojiIconMask: url(https://cdn.discordapp.com/emojis/1217110775601172591.gif?size=240&quality=lossless);
}
/* Custom Emoji Button */
[class*=emojiButton] [class*=spriteColored]{
  background: var(--customEmojiIconURL) center/contain no-repeat;
}

[class*=emojiButton] [class*=spriteGreyscale]{
  mask: var(--customEmojiIconMask) center/contain no-repeat;
}

with viggy as a default!

short badger
unreal finch
#

oo viggy

clever burrow
winter whale
#

updated classes, this should now work.

/* Custom Emoji Button */
.sprite_d91a75.spriteColored_d91a75 {
    background-image: url(https://cdn.discordapp.com/emojis/1024751291504791654.gif?size=128&quality=lossless);
    background-size: 24px;
}

.sprite_d91a75.spriteGreyscale_d91a75 {
    mask-image: url(https://cdn.discordapp.com/emojis/1024751291504791654.png?size=128&quality=lossless);
    mask-size: 24px;
}```
earnest mountain
#

thanks

midnight pagoda
winter whale
midnight pagoda
winter whale
#

since it will provide the updated classes

midnight pagoda
#

ooooh understood, thanks!

ornate fiber
#

wanted to ask for an updated version, but the site did it, thank you

/* Custom Emoji Button */
.sprite__04eed.spriteColored__04eed {
    background-image: url(https://cdn.discordapp.com/emojis/1024751291504791654.gif?size=128&quality=lossless);
    background-size: 24px;
}

.sprite__04eed.spriteGreyscale__04eed {
    mask-image: url(https://cdn.discordapp.com/emojis/1024751291504791654.png?size=128&quality=lossless);
    mask-size: 24px;
}```
ornate fiber
#

the visual refresh broke it again

clever burrow
#

forces it to center to the element

midnight pagoda
#

nvm, managed to do it myself

clever burrow
midnight pagoda
#

yeah, somehow I was expecting for it to be more complex so it was not my first thought lmao

earnest mountain
#

i didnt realize people were still using this!

#

im back briefly to update the snippets that have new messages

#

so this one included