#Swap clan tag and role icon
1 messages · Page 1 of 1 (latest)
Possible that I missed something
Pls notify me if you notice anything off and I will attempt to fix it
- Fixed OP tag in forum posts
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
huh I didn't know that was a baseline CSS feature, I just know it from Sass
yeah it is apparently https://developer.mozilla.org/en-US/docs/Web/CSS/Nesting_selector
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...
I do most of my actual work in Tailwind, but I'll definitely keep this in mind
is it possible to make it do that with the new member icon too?
could u send this so i can copy it pls would appreciate it
hoping that ur version is a bit less laggy
/* 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
it's practically the same, just slightly cleaner to write and read. It shouldn't make the performance better... nor do I see how either of the two would affect the performance at all
You can manually change the order as you like, I thought it was best like this but it's easy to change it or even show/hide individual elements with those selectors
not sure why but ur version was making my dc laggier compared to the cleaner one
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 ¯_(ツ)_/¯
how??
ok