#A more tabular approach? I'm not sure, I
1 messages · Page 1 of 1 (latest)
remove the [class*="form_"] * {border-radius: inherit;} then its back to normal
i don't see any difference after deleting this
ah, wait.. i see it now
[class*="form_"] *:not(.buttons_ce5b56){border-radius: inherit;} this one removes the border-radius for the emojis
nice
uhh
caused by
.container__5c7e7, [class*="base_"], .container_b2ce9c {
margin: 10px 0;
border-radius: 16px;
}```
you can kind of fix it with
.container__5c7e7, [class*="base_"], .container_b2ce9c {
border-radius: 16px;
}```
but no margins :(
oh lord
yeah the margin thing fucks so many stuff up
why does everyone blur their servers.
Ah I just wanted to add a border to the message bar, I'll fix it later, till that you can use a solution here
any idea why its not padding the channel tab?
with discussions open also doenst pad the center one
my theme basically does what you're trying to do:
im too lazy to create a standalone snippet from my code but you're welcome to look through: https://github.com/refact0r/midnight-discord/blob/master/midnight.css
I fixed that, you can get the new code from the original message
Fixed the memeber list as well
Oops my bad
(I never really go to a vc so i didn't know)
I'll exclude that later, thanks for letting me know!
These also become smaller in the emoji picker
you should be more specific when making selectors
and why is there 2 :not() here [class*="base_"]:not(.base__92a12):not(.base__76a71),?
fixed
that was a side effect, fixed
that just makes it longer, now using :is with :not
hope you're happy too
nice thx 🤌
why are u using :is with :not just use :not alone you dont need anything else???
also please start using specific selectors
I was previously doing that
I do, for the ones which require it
every class requires it unless the class itself is already only used on only 1 element
I've learnt from my mistakes
i can guarantee you this class is used by more than 1 or even couple elements
exactly why i am doing that
It is
I don't understand what you're trying to say
im sorry but i dont think you understand english
Sorry my bad
yes, but "wrapper" itself is contained in many classes
that specific wrapper with that id is used for all mentions
the id itself doesnt mean anything, it can still be used by multiple elements
its just the name of the class
Yes the text after wrapper_ is what makes it special to mentions
no.
Okay
So what are you trying to tell me to use?
I would like to know so that I can avoid my mistakes
Im generally curious
on servers?
so just mentions in chat?
yes
well for example you should use classes that are definitely only gonna be used for the thing you're targeting, the mention element has a class channelMention that's definitely not gonna be used by another element, but something like wrapper_f46140 isn't exclusively for mentions it's probably used by another element
It is not.
I've looked
yes but its still a generic name
stuff like this happened because I was not careful enough before
and also if you used the other class you wouldnt need a comment for it
Yeah but discord itself uses that specific class to apply the original border radius
look into the css
so? you dont care about that just override it
And I don't see any reason for me to favour one class over the other
its gonna go back to normal if you remove the rule
channelMentions can also probably be used for other elements
such as replies
(im guessing)
why would discord use their generic class names for doing this specific task?
well I'm just speculating
thanks for your insights, I will improve myself
i've looked at the classes and you should probably use this selector .message__80c10 [class*=mention]
i havent looked thoroughly but this should be good enough
but in this case if you know the wrapper class isnt used anywhere else in the chat you could use this .message__80c10 .wrapper_f46140
and this is what i mean by "specific selectors"
use a parent class to make sure you only target that class inside of where you want
Alright I got you,
In my defence all the major stuff (margins) were to elements which were directly under a layer which was under the appmount class which was under the body tag
so I didn't have to use it for the majority of it.
Okay then
@rotund wadi Is there a way to fix this?
It causes buttons to have this werid effect on them
Yes I'll fix it when I wake up (its ~5am)
oh btw i fixed it a long time ago, so should be fixed
how come these arent rounded for me?