userPFP/source/template.css
coolesding 5d24429e7a
stupid experimental optimisation
"wait i remember that the background image value isnt needed on all of them, right? and since internally putting a comma just makes a new rule, what if i make a seperate rule for the elements that need the background removed, so it isnt applied on all of them"

she said, saving such a marginal amount of performance that you wouldnt even notice it on a fucking intel 8086
2024-05-20 02:49:50 +02:00

12 lines
441 B
CSS

/* AVATAR-TEMPLATE-BEGIN */
/*{id} is userid in data.json and {img} is the image link, usually gif*/
.avatar__08316[src^="https://cdn.discordapp.com/avatars/{id}"]
,.avatar__991e2[src^="https://cdn.discordapp.com/avatars/{id}"]
,.avatar__777a6[src^="https://cdn.discordapp.com/avatars/{id}"] {
content: url({img})
}
.userAvatar_f45224[style*="{id}"] {
content: url({img});
background-image: none !important
}
/* AVATAR-TEMPLATE-END */