small performance upgrades
This commit is contained in:
parent
5b6ed2ca4d
commit
e7e7e60e26
1 changed files with 4 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
/* AVATAR-TEMPLATE-BEGIN */
|
/* AVATAR-TEMPLATE-BEGIN */
|
||||||
/* Custom avatar for {id} */
|
/* Custom avatar for {id} */
|
||||||
div:is([style*="{id}"]),
|
[style*="{id}"],
|
||||||
img:is([src^="https://cdn.discordapp.com/avatars/{id}"]) {
|
[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;
|
||||||
|
|
@ -11,7 +11,7 @@ img:is([src^="https://cdn.discordapp.com/avatars/{id}"]) {
|
||||||
|
|
||||||
/* BADGE-TEMPLATE-BEGIN */
|
/* BADGE-TEMPLATE-BEGIN */
|
||||||
/* Custom badge for {id} */
|
/* Custom badge for {id} */
|
||||||
: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 {
|
:is([class^=userPopoutInner], [class^=header_], [class^=userInfo_], [class^=none_]):has([src^="https://cdn.discordapp.com/avatars/{id}"]) :is([class^=profileBadges_], [class^=badgeList_]):before {
|
||||||
content: "";
|
content: "";
|
||||||
width: 22px;
|
width: 22px;
|
||||||
height: 22px;
|
height: 22px;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue