userPFP/source/template.css
2023-11-04 15:22:07 +01:00

20 lines
629 B
CSS

/* AVATAR-TEMPLATE-BEGIN */
/* Custom avatar for {id} */
[style*="{id}"],
[src^="https://cdn.discordapp.com/avatars/{id}"] {
content: url({img});
object-fit: scale-down;
aspect-ratio: 1;
background-image: none !important;
}
/* AVATAR-TEMPLATE-END */
/* BADGE-TEMPLATE-BEGIN */
/* Custom badge for {id} */
:is([class^=userPopoutInner], [class^=header_], [class^=userInfo_], [class^=none_]):has([src^="https://cdn.discordapp.com/avatars/{id}"]) :is([class^=profileBadges_], [class^=badgeList_]):before {
content: "";
width: 22px;
height: 22px;
background: url({img}) center / 100% 100%;
}
/* BADGE-TEMPLATE-END */