tiny performance up, modern format

This commit is contained in:
coolesding 2024-03-10 13:09:21 +01:00 committed by GitHub
parent 83dc54773d
commit 6b858685f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,12 +1,9 @@
/* AVATAR-TEMPLATE-BEGIN */ /*{id} is userid in data.json and {img} is the image link, usually gif*/
/* Custom avatar for {id} */ .userAvatar_c4f005[style*="{id}"]
.userAvatar_c4f005:is([style*="{id}"]), ,.avatar__08316[src^="https://cdn.discordapp.com/avatars/{id}"]
.avatar__08316:is([src^="https://cdn.discordapp.com/avatars/{id}"]), ,.avatar__991e2[src^="https://cdn.discordapp.com/avatars/{id}"] {
.avatar__991e2:is([src^="https://cdn.discordapp.com/avatars/{id}"])
{
content: url({img}); content: url({img});
object-fit: scale-down; object-fit: scale-down;
aspect-ratio: 1; aspect-ratio: 1;
background-image: none !important; background-image: none !important;
} }
/* AVATAR-TEMPLATE-END */