Changed usrpfp.theme.css to userpfp.theme.css

Added fix for voice chat speaking rings to userpfp.theme.css
Changed template to test performance and allow future optimization [EXPERIMENTAL]
This commit is contained in:
coolesding 2023-10-25 15:32:02 +02:00 committed by GitHub
parent 1219e3e74c
commit 0f5f069a53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 7 deletions

View file

@ -1,7 +1,7 @@
/* AVATAR-TEMPLATE-BEGIN */
/* Custom avatar for {id} */
[style*="https://cdn.discordapp.com/avatars/{id}"],
[src*="{id}"] {
div:is([style*="{id}"]),
img:is([src^="https://cdn.discordapp.com/avatars/{id}"]) {
content: url({img});
object-fit: scale-down;
aspect-ratio: 1;
@ -11,13 +11,10 @@
/* BADGE-TEMPLATE-BEGIN */
/* Custom badge for {id} */
.userProfileInner-1ngKnf:has(.avatar-31d8He:is([src^="https://cdn.discordapp.com/avatars/{id}"]))>.topSection-13QKHs>header>.header-S26rhB>.headerTop-1PNKck>.container-1gYwHN:before,
.userPopoutInner-nv9Y92:has(.avatar-31d8He:is([src^="https://cdn.discordapp.com/avatars/{id}"]))>.container-1gYwHN:before,
.userInfo-regn9W:has([src^="https://cdn.discordapp.com/avatars/{id}"])>.wrapper-3Un6-K+div>.container-1gYwHN:before,
.userPopoutInner-nv9Y92:has(.imageUploaderInner-IIRaFr:is([style*="{id}"]))>.container-1gYwHN:before {
:is([class^=userPopoutInner], [class^=header_], [class^=userInfo_], [class^=none_]):has(img[src^="https://cdn.discordapp.com/avatars/{id}"]) div:is([class^=profileBadges_], [class^=badgeList_]):before {
content: "";
width: 22px;
height: 22px;
background: url({img}) center / 100% 100%;
}
/* BADGE-TEMPLATE-END */
/* BADGE-TEMPLATE-END */

View file

@ -7,3 +7,9 @@
/* Avatar Import */
@import url("https://userpfp.github.io/UserPFP/import.css");
[class^=userAvatar_] {
border: 3px solid transparent;
}
:not([class^=avatarStack_])>[class*=avatarSpeaking_] {
border: 3px solid var(--green-360) !important;
}