#Swap clan tag and role icon

1 messages · Page 1 of 1 (latest)

sly garnet
#

Possible that I missed something PepeDent Pls notify me if you notice anything off and I will attempt to fix it

#
  • Fixed OP tag in forum posts
unborn garden
#

wow what the fuck thats how they look by default??

#

oh GOD

unborn garden
#

btw, this is the exact same thing but a bit cleaner looking

#

yknow isnt there some way to increment values in css,,,

#

meh not worth it

sly garnet
unborn garden
#

idk if it is baseline

#

but it works in vencord custom css :)

sly garnet
#
MDN Web Docs

The CSS & nesting selector explicitly states the relationship between parent and child rules when using CSS nesting. It makes the nested child rule selectors relative to the parent element. Without the & nesting selector, the child rule selector selects child elements. The child rule selectors have the same specificity weight as if they were wit...

unborn garden
#

oh wow

#

thats massively useful

sly garnet
#

I do most of my actual work in Tailwind, but I'll definitely keep this in mind

random crown
#

is it possible to make it do that with the new member icon too?

stark sorrel
#

hoping that ur version is a bit less laggy

stark sorrel
#
/* Swap Clan Tag and Role Icons */
[class^="headerText"] {
    display: inline-flex;
    & > span:has([class^="roleicon"]){
        order: 2;
    }
    & > span:has([class^="chipletContainerInner"]){
        order: 3;
    }
    & > span[style="display: none;"]{
        order: 4;
    }
    & > .vc-message-decorations-wrapper {
        order: 5;
    }
    & > span:has(> [class^="newMemberBadge"]){
        order: 6;
    }
    & > span:is([class^="botTag"]){
        order: 7;
    }
}```
#

seems to be better

#

theres no need for 1

#

if u use 1 then this happens

sly garnet
sly garnet
stark sorrel
sly garnet
#

it's applying the same exact styles, maybe taking it out of flexbox and inlining it some other way would increase perf a little bit, but the output is basically the same

#

at least some form of it works for you, better than having to stare at the elements in their original order ¯_(ツ)_/¯

stark sorrel
#

just change the number

random crown
#

ok