#🎨-theme-development

1 messages · Page 43 of 1

granite oracle
#

im using it for settings

clear siren
#

I just forgor syntax

granite oracle
#

iirc vencord doesnt have theme settings, but i might be wrong

silver mural
#

Oh, oop

#

Thanks

pure cairn
#

Iirc it was in the pipeline, but I'm unsure if and when it might be added

#

But that would be cool

chilly jewel
#

right click the “play again” title and select “hide”

#

no need for css

vestal field
#

no updates in 3 months :(

pure cairn
#

Even the plugin requests are getting ignored

chilly jewel
#

aren’t plugin requests closed?

pure cairn
#

They are

#

But there's some of them that might actually be useful

#

Ngl I would code my requests myself but I know nothing about JS blobcatcozy

pure cairn
#

Even better!

lost plume
#

TS is just JS with types

pure cairn
#

no wonder it's called type script

supple tartan
#

so I finally found the css code that was destroying my performance. It wasn't the amount of snippets, nor the selectors, but just this piece of shit code in my custom theme:

/* USER PANEL */
/* 1st div of the users bar */
/* In channels */
/*div[class*="container_"]:has(> aside[class*="membersWrap_"]),*/
/* In threads (full view) and DM groups */
/*div[class*="content_"] > div[class*="membersWrap_"] */
.container_cbd271:not(:has(membersWrap_cbd271)) {
    margin: 0px 0px 0px 5px;
    border-radius: 8px;
    margin-top: -48px;
    min-width: 240px;
    height: calc(100% + 48px);
}
:root:not(:has(.container_cbd271)) .membersWrap_cbd271 {
    margin: 0px 0px 0px 5px;
    border-radius: 8px;
    margin-top: -48px;
    min-width: 240px;
    height: calc(100% + 48px);
}

/* CHANNEL DESCRIPTION */
/* Channel description sized to match the main chat */
/*div[class^="subtitleContainer_"]*/
.subtitleContainer_a7d72e {
    width: calc(100% - 12px);
}
/* With user list */
/*div[class^="chat_"]:has([class^="membersWrap_"]) div[class^="subtitleContainer_"]*/
.chat_a7d72e:has(.membersWrap_cbd271) .subtitleContainer_a7d72e {
    width: calc(100% - 257px);
}
/* With user list in Forums or Server Guide */
/*div[class^="chat_"]:has([class^="membersWrap_"]) div[class^="subtitleContainer_"]*/
.chat_a7d72e:has(.membersWrap_cbd271) .subtitleContainer_a7d72e:has(.forumOrHome_ff5f90) {
    width: calc(100% - 245px);
}
/* With user profile in DM */
/*div[class^="chat_"]:has([class^="userPanelOuter_"]) div[class^="subtitleContainer_"]*/
.chat_a7d72e:has(.inner_c69a7b.panel_c69a7b) .subtitleContainer_a7d72e {
    width: calc(100% - 357px);
}
/* With search panel */
/*div[class^="chat_"]:has([class^="searchResultsWrap_"]) div[class^="subtitleContainer_"]*/
.chat_a7d72e:has(.searchResultsWrap_c2b47d) .subtitleContainer_a7d72e {
    width: calc(100% - 437px);
}

Could someone tell me why it affects so much? Or if there is a way to fix it? This code is quite important for my theme

pure cairn
#

That's a lot of :has

iron smelt
iron smelt
#

plus yeah if you put them on root it also going to be problematic

supple tartan
#

oka, so I can change the root thing to a more specific selector, tbh idk why I used root, but how can I replace the :has without losing the functionality?

iron smelt
#

who ghosted pinged me

hot kite
#

Idk

crimson skiff
vestal field
#

i bet that once bd gets theme settings then that pr will be more of a priority

crimson skiff
#

but like to be fair, every PR i see hasnt been reviewed

pure cairn
#

Timedones 😔

echo frost
#

i don't think it's dones 😔

mortal mantle
#

visual refresh broke everything ofc

loud parrot
pure cairn
#

good job Discord

ashen sable
#

Restore old reaction size
Made this for myself. Don't have access to #🎨-css-snippets so posting this here. CC0 licensed.

.reaction_ec6b19 .reactionLarge {
    width: 1rem;
    height: 1rem;
}

.largeReactionBtn_ec6b19 {
    width: 1rem;
    height: 1rem;
}

.largeIcon_ec6b19 {
    width: 1rem;
    height: 1rem;
}

.largeReactionBtn_ec6b19.forceShowLook_ec6b19 {
    padding: .25rem .375rem;
}
#

(I could've just unset all that but I have a feeling this is going to change soon so I wanted to have the old values to work with)

chilly jewel
#

there is a dedicated ticket category for that

ashen sable
#

gonna do that, thanks

echo frost
#

Is it possible to add a transparent animated gif ||(gif used not quite literally here since gifs aren't transparent)|| with just css
(e.g. snowflakes)

plain kelp
#

Sure? Set a bg on ::after on :root or something

echo frost
#

yeah but idk where to find an image for that

#

or if a video works

#

maybe not worded the best way

plain kelp
#

And gifs do support transparency, but only binary such

echo frost
#

oh what

#

oh wait this is a gif

plain kelp
#

A very important one

echo frost
#

yes

#

cane

#

ok just need a gif

#

a good gif*

#

The css btw
can't find a very good gif though, and idrk how to make one myself

#app-mount::after {
  content: '';
  width: 100%;
  height: 100%;
  z-index: 1000;
  position: absolute;
  pointer-events: none;
  background-image: url(https://www.animationsoftware7.com/img/agifs/snow02.gif);
  background-size: cover;
}```
burnt maple
#

my channel list collapse when not hovered CSS from #🎨-css-snippets got borked in the update, anyone got a snippet that still works? ill make one myself if need be

crimson skiff
#

then make one

ashen sable
#

feel free to submit it under your own name using attribute selector

umbral dawn
#

does anyone know where the hell i can change this obnoxious blue i keep seeing everywhere in my theme? ive dealt with it for far too long but i cant find a quick way to sort through my css to find it.

stark epoch
#

Alright discord updated and suddenly moving the mute buttons broke

#

ugh i hate these container names because theyre just dumb and now i cant find just the buttons before id just use

[class*="panels_"] [class*="avatarWrapper_"] + div {
    position: fixed;
    height: 30px;
    /* border: var(--borders); */
    left: 250px;
    bottom: 220;
    align-items: left;
    margin-left: 0;
  }```
#

but that pushes the mute buttons to the right and they just vanish

bleak gust
stark epoch
#

I dont know but it pissed me off seeing it

#

luckily they use the same colour i use for my darkmode anyway so unless its a non transparent gif i dont see it

oak plover
#

the background was added to account for the fact that you can't see the white star when the stuff behind it is white

echo frost
bleak gust
#

no

#

that is stock

#

i just noticed it

#

cursed

#

when removal with a theme husk

echo frost
#

yeah
it was annoying me and I was going to remove it

#

not I forgot

#

but*

echo frost
crimson skiff
#

i honestly thought it was OpenDyslexic, but idk

bleak gust
#

idk did you find it preinstalled on a samsung device?

rocky iris
#

discord but bad (ngl)

autumn bobcat
autumn bobcat
#

but you using different font

#

this W in different font in full

#

and number 9

#

the 9 real one isnt supposed to be like that

rocky iris
#

wym the letter 9

#

like the discord current font?

#

or that font im using

autumn bobcat
#

the letter 9 looks like 9 in g

#

i mean

#

g shaped 9

chilly jewel
#

it’s a css variable

umbral dawn
#

or do i have to manually add it

chilly jewel
#

search --accent

#

*search

umbral dawn
#

we also have this

chilly jewel
#

huh

umbral dawn
#

those are the only bits i can find of --accent being defined

chilly jewel
umbral dawn
#

kk thx for the help btw

burnt maple
umbral dawn
#

tried already

burnt maple
#

worth a shot

umbral dawn
#

ok i found its this stupid line:

  --accent-hsl: var(--accent-hue),calc(var(--accent-saturation) * var(--saturation-factor)),var(--accent-lightness);
#

thing is none of the variables i edit change teh color

#

and --saturation-factor does not exist

#

it seems fully intent on staying that stupid blue

#

ive tried using rbg, hex and hsl

#

setting it to anything other than those vars makes it invis

#

ok update hsla was never needed

#
  --accent-hsl: 334,54%,57%;
#

something as simple as that works

#

now time to find a good color for this

umbral dawn
rigid gorge
#

does anyone know by chance what the Theme class is to change the colour of DM Channels? I find them a bit to gray-ish and want to make them a bit brighter

echo frost
echo frost
#

did you find it?

#

if not I can help in a bit when I'm on computer

rigid gorge
#

so, it doesn't come up with anything like that

#

Basically what I want to change specifically is the colour of the text

echo frost
#

oh text color would be color: var(...)

rigid gorge
#

yeah, it's not showing that in my Devtools

echo frost
#

but also the variable it uses will probably affect other things as well

echo frost
#

but only for dms?

echo frost
rigid gorge
echo frost
#

well you can change this variable in :root for read dms (hovered and unread are different colors), but it will also affect a lot of other stuff so ig you don't want that

rigid gorge
#

yeah..

#

like, this is way to gray

echo frost
#

do you want the friends nitro and shop tabs to also be changed

#

if you do, it's just ```css
[data-list-id^=private-channels-uid_] {
--channels-default: red;
}

rigid gorge
#

honestly, I been considering getting rid of those tabs in general. already got rid of the Nitro, Library and Shop tab

#

Friends can be accessed elsewhere

#

and Message Requests I do not read anyways hehe

echo frost
#

if you don't want it to affect those tabs, this should work

[data-list-id^=private-channels-uid_] [class*=dm_] {
  --channels-default: red;
}
rigid gorge
echo frost
#

wait what

rigid gorge
#

QuickCSS ignores it completely due to my theme, so I added it to my theme file and it only changes the "playing <insert whatever>" or the custom status to red

#

it does not change the text itself

echo frost
#

ah theme conflict then

#

can you send your theme

rigid gorge
echo frost
#

i don't think that will fix it in this case
because the variable is getting set because they said it's applying to the status
so i think it's that their theme is using a different variable/hardcoding the color for dm titles

rigid gorge
#

@echo frost would you be okay with a screenshot of the color variables instead?

echo frost
#

uh

#

possibly

#

is your theme custom or is it a theme i can find somewhere else

rigid gorge
#

fully custom for someone, problem is, it's NSFW tinted, so I can't just share it into the chat without removing certain parts of it 🤣

#

these are all the colour options within the theme

echo frost
#

it's based on clearvision?

rigid gorge
#

I took small bits of clearvision

#

it's a mega mix and match of different themes and CSS snippets

#

thing is, I can change the server channel colour, the default text colour of text messages

iron smelt
#

eww clearvision

rigid gorge
#

I don't think the colour of the user list in DMs is changed or touched anywhere in the theme file from what I can see

rigid gorge
#

ah, fixed it 🤣

#

that's my fault

echo frost
#

oh

rigid gorge
#

imma sit in the corner of stupidity now

echo frost
#

What was the problem?

#

did you forget to save or something?

rigid gorge
#

Accidentally having another theme open that is higher prio then the theme I am modifying..

#

oops

#

I think that is an indicator to go to bed ROFL

echo frost
#

lol

rigid gorge
#

thanks for the help though, I appreciate it pheart

rigid gorge
#

also

#

for future reference for anyone else

#
[class*="nameAndDecorators_ec8679"] > div > [class="overflow_a82120"] {
    color: white !important
}

this will change the member name colour in your DMs list

echo frost
#

use .class if you're going to include their id

#

also that'll override read/hover colors

#

and i don't think !important is needed unless it's for a theme conflict

rigid gorge
#

only changed the name colour

echo frost
#

oops i meant unread

#

the name color is different for read, unread, and hovered

rocky iris
#

what happened to my discord?

echo frost
#

does pressing try again fix it?

#

sometimes it's just your internet

#

but if your internet is fine and restarting discord doesn't fix it, then check https://discordstatus.com/

#

doesn't look like there's any problems rn though

#

(also this isn't the best channel to ask about this in)

rocky iris
#

how good is my theme?

dusk frost
#

can somebody tell me how to make the sidebar_a4d4d9 smaller or chat_a7d72e bigger

#

i tried using width: but doesn't work

#

okay i think i found out the problem

dusk frost
#

i want to remove this gray area, i've tried moving .chatContent to the left and z-indexing it to be onfront, but it doesn't work

#

does anyone know what that gray area is?

#

it's not part of .privateChannels

dusk frost
#

okay so i fixed that

hazy frigate
#

anything to send this thing into the next dimension?

echo frost
#

display: none

#

does the button not do anything for you either?

echo frost
hazy frigate
#

thank you

iron smelt
tight fable
#

Apologies for the ping but were you able to figure this out
I’m reworking my theme and my former right align isn’t workin no mo

i've had it worked before but discord seems to have changed something unfortunately

rough pond
#

using theme attributes is is possible to right align self messages in compact mode

#

i tried using [data-author-id*="117126234588184582"] but it didnt work :<

chilly jewel
rough pond
#

im trying to target myself to flex align them to the right instead of left and thought that would target my user

#

i have [data-author-username=".voidbbg"] actually how would i left align my messages

#

ok i have stuff duck taped together

#
[data-author-username=".voidbbg"][class*=messageListItem_] {
    padding-left: 15px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    justify-content: flex-start;
}

[data-author-username=".voidbbg"] .username_f9f2ca {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.375rem;
    color: var(--header-primary);
    display: flex;
    vertical-align: baseline;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    flex-direction: row-reverse;
    flex-wrap: wrap;
}

but long messages get cut off, any ideas on a fix?

echo frost
#

cap the max-width?

rough pond
#

i cant seem to figure that part out

sturdy stratus
tight fable
#

i fw it heavy

tight fable
sturdy stratus
rough pond
#

do you mind sharing how you got it working? my ver still has bugs

tight fable
# rough pond do you mind sharing how you got it working? my ver still has bugs

I can’t quite explain it but i changed ^=messageListItem to *=messageListItem and it was all said n done

Here is the repo
https://github.com/its-x3non/DiscordSnippets/tree/main/CSS Addons/Right Align Self Messages

I don’t take all the credit of course as it isn’t really my own code, I just modified it to work with vencord.
Plus it’s made with my midnight theme in mind so i’m unsure what it’ll look like in others

There might be bugs n stuff that look odd but I’m too lazy to find them so I just tend to fix them whenever I see them

GitHub

Contribute to its-x3non/DiscordSnippets development by creating an account on GitHub.

echo frost
#

^= matches class starting with the value *= is matching the value anywhere in class
so for example if you want to match message_ here, use ^= if you want to match cozy_ use *=

#

@tight fable ^

tight fable
#

ooh oke

echo frost
tight fable
#

tyty

sturdy stratus
#

there is a problem i'm facing

#

i want to create a box that if a person sends an image it shows the nick name and the image inside the box, but i can't manage to do that

#

what happens when i select

#app-mount .message_d5deea.cozyMessage_d5deea:has(.header_f9f2ca):has(.container_b558d0 div)

is this

#

the box includes the icon, now how can i select instead both the header_f9f2ca and the container_b558d0 but not its parent

#

or how can i make a bbox that surrounds them both in another way

echo frost
#

you don't need that #app-mount btw

sturdy stratus
echo frost
#

Yeah, i'm not really sure what you mean though

sturdy stratus
echo frost
sturdy stratus
#

yes and wrap them in a single box

echo frost
#

or header and container div

#

idk what you mean by wrap them in a box

sturdy stratus
#

a visual box

#

background color

echo frost
#

You can use :is() to select both header and container
.message_d5deea.cozyMessage_d5deea :is(.header_f9f2ca, .container_b558d0)

sturdy stratus
#

its not selecting them as a single element

#

its just applying whatever u apply to both elements

echo frost
#

yeah

#

they're not a single element

sturdy stratus
#

thats the problem

#

so how do i wrap them in a single box

echo frost
#

What are you trying to do?

sturdy stratus
#

when a user sends an image its both his nick name and the image

#

i want them to appear as if they're a single box

#

i've managed to do something bbut its still lousy

#

using the :before

echo frost
#

you want to do it with all messages though right?

sturdy stratus
#

with normal messages it works since both the header and the message text under contents_f9f2ca

#

but if its nick name and image the image isn't under contents

echo frost
#

can you send me your css for normal messages

#

test:

sturdy stratus
#
#app-mount .message_d5deea.cozyMessage_d5deea .contents_f9f2ca:has(.messageContent_f9f2ca span) {  /* any message with a header gets a box always, worst case scenario only the header is boxed (can happen when sending an image as your first message) */
           background-color: rgba(255, 255, 255, 0.8);
           padding: 7px 9px 7px 16px;
           border-radius: 4px;
           box-shadow: 1px 1px 4px 1px rgba(104, 104, 104, 0.2);
           max-width: max-content;
           margin-bottom: 1px;
       }
echo frost
sturdy stratus
#

thats for messages

echo frost
#

Is this doing what you want?

.message_d5deea.cozyMessage_d5deea :is(
  .contents_f9f2ca:has(.messageContent_f9f2ca span),
  [id^=message-accessories]
) {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 7px 9px 7px 16px;
  border-radius: 4px;
  box-shadow: 1px 1px 4px 1px rgba(104, 104, 104, 0.2);
  max-width: max-content;
  margin-bottom: 1px;
}
sturdy stratus
#

no

#

doesn't box them together

echo frost
#

it does for me

sturdy stratus
#

the message of yours has text

#

do it with this one

echo frost
#

oops

#

closest i can get it is like this with the current approach

sturdy stratus
#

i got it to work its just lousy

#

with the before

#

i can't get a clean solution

echo frost
sturdy stratus
#

honestly no

echo frost
#

ah

sturdy stratus
#

it looks like 2 messages

#

can't find a clean solution lol

echo frost
#

Yeah. I don't think there is one

#

Do you want the avatar to be in the box

sturdy stratus
#

nope

echo frost
#

potential approach:

.message_d5deea.cozyMessage_d5deea {
  background-color: rgba(255, 255, 255, 0.8);
  padding-left: 10px;
  margin-left: 60px;
  border-radius: 4px;
  box-shadow: 1px 1px 4px 1px rgba(104, 104, 104, 0.2);
  max-width: max-content;
  margin-bottom: 1px;
}
.contents_f9f2ca > img {
  position: absolute;
  translate: -65px;
}
#

But I need to go to bed now, so can't work on it anymore

sturdy stratus
#

thats fine, i really appreciate the help

#

thank you very much

sturdy stratus
#

i'm working on something that involves your suggestion obsidian, i like that approach

quartz ice
#

Hey ive been messing around with theme editing and im wondering if any of you guys know how to get rid of these ugly highlights on embeds. I would be fine with them being a grey or black or something.

#

oh i should have been more clear. I want to change the red background highlight on the entire embed

#

but the green titles aren't amazing either, i suppose i could change that too 😆

#

Should i put these wherever under the theme .css?

#

i did this, but it doesn't seem to work

#

yeah i closed and reopened discord. ill try that!

#

no dice :/

#

should i be using some other editor?

#

it seems to work perfectly when i disable the theme and use the quickcss editor. It doesnt work if i enable the theme even if i use the quickcss editor.

#

there's something about the theme overwriting it. even with the !important

#

Ill try process of elimination with the code.

quartz ice
#

I deleted everything outside of the import url and it doesn't seem to affect the embed color.

I cant access the import url it 404s. I may just try to replicate the aspects of the theme i like, which is mainly the ability to collapse the channel bar and go super compact.

#

I have absolutely no idea where to start on that front 😆

leaden light
#

hello guys... after the resent update one part of my themes is not working.. or not appear to be working. I tried using the website that changes the classes but it didn't fix it ... I'm using the following code, and what it does it actully makes the channels section wider. Maybe there is a class missing (?) or I don't know.

.sidebar_a4d4d9,
.bannerImg_fd6364,
.bannerImage_fd6364 {
  width: 320px;
}```
echo frost
leaden light
plain kelp
#

Probably to increase specificity

#

Since that's what the sentence directly above says

rough pond
crimson skiff
echo frost
# leaden light Yes it worked... Thank you very much! And how about the #app-mount? What is that...

To increase specificity
https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity#id_column
id selectors give 1-0-0 specificity which is more than discord's css has

MDN Web Docs

Specificity is the algorithm used by browsers to determine the CSS declaration that is the most relevant to an element, which in turn, determines the property value to apply to the element. The specificity algorithm calculates the weight of a CSS selector to determine which rule from competing CSS declarations gets applied to an element.

echo frost
plain kelp
#

"Fuckin'" works just as well as "please"

echo frost
#

when extra important coming to css :(

#

i wish i could just do !!important or something

sturdy stratus
#

obsidian, i've succeed

echo frost
sturdy stratus
#

i've started by using your idea to cover the entire message and then adjusted every option

echo frost
#

i meant can you send the css?
i'm kinda interested

sturdy stratus
#

its not 100% complete yet, but about to be...

#

close to it

#

actually i can post it as code

sturdy stratus
#

good night, if u need something or want to comment on it you can ping me

#

i could keep this as a debug version and bulk the similar entities in the release version

rocky iris
#

who want this font?

pure cairn
#

I think I'd rather have Wingdings

sour beacon
rocky iris
#

thats the name of the font

#

do you want the font pack? @sour beacon

sour beacon
rocky iris
rocky iris
#

done

sour beacon
#

ty for the font

#

now why does it doesn't have other symbols??

sour beacon
#

the w in that font isn't supposed to be like that

#

tf

#

that w is in half

rocky iris
#

this W is in full btw

sour beacon
#

yoooo this is cool

mortal mantle
#

Looks like Samsung funny font blobcatcozy

agile vortex
tidal heron
#

would anyone like to help me figure out a piece of code since im not a dev and im just searching thru a css file changing values until i figure out which value is the correct one. dm me or ping me if u would like to help me and ill send u the file and tell u what im trying to figure out

pure cairn
#

Why not just sending the css here and ask?

mortal mantle
#

Don't ask to ask venniecozycat

tidal heron
#

like 5k lines long so i thought sending it in dms mightbe been easier

#

thats the file anyway

#

and this is all the quick css i used to fix/make better i also changed channel bar width to fix the user modal

--cyan-channelbar-width: 300px;
/* Hide Discovery */
@import url("https://raw.githubusercontent.com/KrstlSkll69/vc-snippets/main/OtherStuff/hideGlobalDiscovery.css");

/* Member List Hover */
[class^=membersWrap] {
  min-width: 0;
  >[class^=members_] {
    transition: width 0.25s ease;
    &:not(:hover) {
      width:60px;
    }
  }
}

/* remove gift and apps button */
button[aria-label|="Send a gift"]{
    display:none;
}
button[aria-label|="Apps"]{
    display:none;
}

/* remove stuff no one uses */
a[href="https://support.discord.com"], /* help button */
.nowPlayingColumn_f5023f, /* active now sidebar */
.newChannel_f99b92, /* the "NEW" text thats next to channels */
.iconWrapper_af9215:has([d^="M12 22C12.4883"]), /* User Profile Button*/
.buttons_ce5b56 > .button_afdfd9 /* send gift button */
{ 
  display: none;
}

/* Channel/DM List Width */
:root {
    --width: 305px;
}
div[class^="sidebar_"]:has(nav) {
    min-width: var(--width) !important;
    max-width: var(--width);

/* Scroll Bar (only works with vencord quick css not OpenAsar) */
/* *{   
    scrollbar-width: unset !important;
    scrollbar-color: unset !important;
} */

/* Hide Active Now (only works with vencord quick css not OpenAsar) */
/* [class*="nowPlayingColumn_"] {
  display: none;
} */
#

u can take a guess at the part im tryna fix by this image

#

looks like this after a quick reload

pure cairn
#

I see many things gone wrong

tidal heron
#

mainly the bottom left im talking about

tidal heron
#

as long as i can make that bottom left part just match the radius of the add server button i should be fine at least thats my thought process

pure cairn
#

The snippet that changes memberlist width on hover, I believe that also resizes the chat, right?

tidal heron
#

thats what it looks like with hover

pure cairn
#

So the text is affected as it has to wrap differently

pure cairn
#

Because of the resizing that occurs every time you hover

tidal heron
#

its just coz i use it on a vertical monitor so that member hover is pretty useful to me

pure cairn
#

The version I have uses a translate(x) instead of width

#

So the chat area width stays the same and the memberlist just covers it a bit when you hover the area

tidal heron
#

oo that sounds better tbh

#

if you could pass that along to me id greatly appreciate it

pure cairn
#

Sure, I'd just have to adapt it to your theme a bit as it's currently kinda customised for the one I'm using

tidal heron
#

oh its all good if u dont want to im fine with using it how it is i dont wanna greatly bother u

pure cairn
#

It also makes membercount numbers disappear when the memberlist is not hovered

#

So you don't get the weird numbers at the top right all the time

tidal heron
#

thats rlly nice

tidal heron
#

i just went on the github and grabbed all the source code (and all this information is probably useless lol)

pure cairn
# pure cairn Sure, I'd just have to adapt it to your theme a bit as it's currently kinda cust...
:root {
  --hover-animation-speed: 0.25s;
}

.container_cbd271 [class^="membersWrap_"] {
  justify-content: unset;
  min-width: unset;
  width: 60px;
  right: 0;

  & [class^="members_"] {
    transition: transform var(--hover-animation-speed);
  }

  & [class^="membersGroup_"] {
    cursor: default;
    transform: translateX(45px);
    transition: transform var(--hover-animation-speed);
    overflow: visible;

    &::after {
      content: "";
      width: 32px;
      height: 3px;
      border-radius: var(--avatar-radius);
      background-color: var(--text-normal);
      position: absolute;
      left: -38px;
      top: 29px;
      margin-left: 8px;
    }
  }
}

[class^="membersWrap_"],
.container_cbd271 {
  &:hover [class^="members_"] {
    transform: translateX(-179px);
  }

  &:hover [class^="membersGroup_"] {
    transform: translateX(-3px);
  }
}

[class^=memberInner_] {
  position: relative;
  left: -14px;
}

/* Membercount Tweaks */
.vc-membercount-widget {
  display: flex;
}

[class^="membersWrap_"],
.container_cbd271 {
  &:not(:hover) {

    & .vc-membercount-online,
    & .vc-membercount-total {
      display: none;
    }
  }
}```
#

a warning, it's currently kinda bugged in threads and forum posts

#

I'm probably missing some selectors for that so they're currently not supported yet (sorry about that)

tidal heron
#

question can quick css just be put on the main file or does it have to be in the Vencord/OpenAsar quick css (sorry if its a sutpid question lol)

pure cairn
#

uhhhh

#

I don't use OpenAsar

#

so I don't really know

tidal heron
#

its the same thing as the vencord one

pure cairn
#

I just put snippets in my quickcss or themes folder

pure cairn
tidal heron
#

all my quick css is in here atm

#

but the 2 uncommented ones on the vencord ones dont work in OpenAsar for some reason

pure cairn
#

I see errors in there

tidal heron
#

yep

pure cairn
#

what even is [aria-label|="Apps"] ?

tidal heron
#

no idea

pure cairn
#

remove the |

tidal heron
pure cairn
#

interesting

#

but I don't think it's needed there

tidal heron
pure cairn
tidal heron
#

its pretty much always that

pure cairn
#

oh

#

it doesn't like nesting

#

but it still works

tidal heron
#

everything apart from the stuff in vencords quick css works

pure cairn
#

I think it's running an old version of Monaco (the text editor even Vencord uses) which used to give these issues

tidal heron
#

ah

pure cairn
#

the code still works

#

but it's flagged as an error

pure cairn
tidal heron
#

ive edited the member hover ever so slightly so i cant see usernames at all pepesmile

tidal heron
pure cairn
#

so good job

pure cairn
tidal heron
#

uno momento

#

the demon has reappeared fk

pure cairn
#

be sure to place imports at the top of the code

tidal heron
#

yep

#

i realised

#

life would be great if i could keep discovery but get rid of that gradient thats behind it

pure cairn
#

btw I too have the same issues due to the latest update, so I can't really give you a quick fix right now

pure cairn
pure cairn
tidal heron
#

i have no issue with the user area thankfully at least when i use the quick css

#

however...

#

this is fkd up

#

but its because the settings window isnt made for vertical monitors so its all just squished

pure cairn
#

.guilds_a4d4d9::before is the pseudo I was talking about, so

.guilds_a4d4d9::before {
  display: none;
}```
should get rid of it easily if you want to keep the discovery button
#

or you could set its background: transparent, it does the same thing

tidal heron
#

do i just paste that into quick css or into the theme css?

pure cairn
#

I mean, it's the same

#

quickcss just updates faster without having to reload

#

since your theme file is pretty long

tidal heron
#

either im an idiot or im an idiot

pure cairn
#

well

#

it looks like your theme has a custom color at the bottom, so removing the ::before pseudo is making it worse

tidal heron
#

im gonna annoy u and say can u explain further coz i have no idea what ur talking about lol

pure cairn
#

sure, one sec

#

the .guilds_a4d4d9::before we removed was making the 2 background colors behind the "add server" and "discovery" buttons match

#

now, what did you want to do exactly?

#

completely remove the black thing behind the buttons?

#

or just remove the slight blur caused by the discovery button?

tidal heron
#

ok so 1 of 2 things either remove that weird gradient behind the discovery button or just remove the discovery button whilst fixing the box that the buttons are contained in so it isnt going below the visible screen?

pure cairn
#

gotcha, let me just check your theme file

tidal heron
#

thanks

pure cairn
#

jesus why is this theme lagging my pc so much lmao

tidal heron
#

tell me about it

#

i just sucked it up

#

as long as im not clicking things every 2 seconds im fine

#

and OpenAsar helps with the performance a good chunk

pure cairn
#

ok so

#

with the same snippet that hides the discovery tab, I'm not having any issues with the box going below the screen

#

unless you mean having it that wraps around the bottom part of the button as well

tidal heron
#

yea that bottom part exists below the visible screen as per this image

tidal heron
#

like u can see that it randomly pushes the chat area upwards

#

and u just have to Ctrl + R to fix it

#

id tell you how to make it push the chat area upwards but i have no idea how it happens

pure cairn
#
.tutorialContainer_c96c45::before {
  height: calc(100% + 15px) !important;
}```
#

try putting this in your quickcss

tidal heron
#

that works perfectly

pure cairn
tidal heron
#

so its a common-ish thing?

pure cairn
#

found it

tidal heron
#

mines not exactly like that

pure cairn
#

but it never happened to me so idk about it

pure cairn
#

I kinda eyeballed the height, but it should be the same as the top part

tidal heron
#

yea give or take it is but it doesnt need to be perfect

pure cairn
pure cairn
tidal heron
#

guess we will find out

#

if something happens ill let u know

#

oh actually do u know how to make the settings menu wider

pure cairn
#

perchance

#
.layer_d4b6c5:has(>.standardSidebarView_c25c6d) > .standardSidebarView_c25c6d {
  max-width: change to a % higher than 70;
}```
#

it's going to mess things up, as the theme is based off the 70% max-width value

#

but it should widen the settings menu

#

(and probably some other menus if they use the same selector)

tidal heron
#

do i need to change any values coz it doesnt seem to have changed anything

pure cairn
#

what did you put?

tidal heron
#

nvm im an idiot lol

pure cairn
tidal heron
pure cairn
#

everything good now?

tidal heron
#

yep perfect now thanks so much

pure cairn
#

np

half crystal
crimson skiff
echo frost
#

the horizontal server list would make it so much harder

crimson skiff
#

because the buttons are moved away from the channel top bar, so that has space, the members list has space, you arent taking as much space on the server list as the pinned discovery icon would while being more useful than the discovery icon

autumn bobcat
#

bruh this stupid update is making me upset today

crimson skiff
# half crystal i killed god to do this!

ive gotten a rough position of the toolbar, not sure how he attached the menu icon tho

.toolbar_fc4f04 {
    position: fixed;
    right: 0;
    top: 0;
    margin: 16px 13px;
}
crimson skiff
#

never mind, position fixed is scuffed

half crystal
rapid holly
#

someone have a good macOS based theme?

#

legit dont find any

echo frost
#

wdym macos based

#

one with the traffic lights?

half crystal
# half crystal I uhh stole the closing top buttons and made severe modifications to it. The css...

note that this is designed for system24 theme and i have not tested it on stock. i may adapt this for stock and release in #🎨-css-snippets

  [class^="title_"] {
    max-height: 0px !important;
      min-height: 0px !important;
      height: 0px !important;
      padding: 0px;
      border: 0px;
    
      &::after {
        display: none;
      }
    
      div:not([class^="topic_"]) {
        overflow: visible !important;
      }
    
      [class^="children_"]::after {
        display: none;
      }
    }
    
    [class^="titleWrapper_"],
    [class^="title_"] [class^="divider_"] {
      display: none;
    }
    
    [class^="topic_"] {
      position: absolute;
      top: calc(100vh - 144px);
      left: calc(100% - 244px - 200px - 30px);
      width: 200px;
      overflow: hidden !important;
      background-color: var(--bg-0);
    }
    
    [class^="toolbar_"] {
      position: absolute;
      top: -46px;
      left: calc(100% - 12px);
      height: 32px;
      background-color: red;
      width: 0px;
    
      &::before {
        position: absolute;
        top: -2px;
      }
    
      &:hover::before {
        padding: 12px;
        padding-left: 444px !important;
      }
    }
    
    [class^="footer_"] {
      height: 56px;
      transition: height 150ms ease 0s;
    }
    
    html:has([class^="toolbar_"]:hover) [class^="footer_"] {
      height: 444px !important;
      max-height: 444px !important;
      min-height: 444px !important;
    }
    
    [class^="footer_"] {
      border-radius: 8px;
    }
    
    [class^="footer_"] [class^="listItem_"] {
      display: none;
    }
    
    [class^="unreadMentionsIndicatorBottom_"] {
      transition: padding-bottom 150ms ease 0s;
    }
    
    html:has([class^="toolbar_"]:hover) [class^="unreadMentionsIndicatorBottom_"] {
      padding-bottom: 420px !important;
    }
    
    [class^="children_"]:has(div>[class^="avatar_"]) {
      display: none;
    }
#

there you go @echo frost

half crystal
echo frost
#

I think i need the horizontal server list for it to work

echo frost
#

YEAH

#

oops caps

mystic grove
#

I noticed that there is a setting "Show Voice Users". If you enable it, these two buttons disappear if there are people in the voice channel. I fixed and changed it. Does it look good?

wooden stag
#

how would I hide an element based on it's next sibling

plain kelp
#

:has(+ something)

wooden stag
sturdy stratus
#

how can i change the transparancy of the emojis in the quick emojis selection

#

of the emojis themselves

#

managed to do it... using opacity

sturdy stratus
#

i want to target the popup:

#

can't manage to find that element

iron smelt
sturdy stratus
#

f8 break?

sturdy stratus
iron smelt
sturdy stratus
iron smelt
#

@sturdy stratus use something like to freeze discord so you select that element

sturdy stratus
#

even after doing f8 and stopping it and then selecting i can't manage to select it

#

and its not anywhere to be found in the message either

#

that popup

#

nice, i've found it

#

.layer_cd0de5 .tooltip_b6c360 .tooltipContent_b6c360

echo frost
#

using this actually seems to work for most things

[class*=disabledPointerEvents_] {
  pointer-events: all !important;
}

obviously would only want it active when trying to find stuff like these

crimson skiff
#

why not just

div {
  pointer-events: all !important
}

blobcatcozy

echo frost
#

I tried * and it made things in front block it

and yeah, just tried and div has the same problem

sturdy stratus
#

this seems to work as well

#

i searched it by hand though

echo frost
#

yeah that's what i've always done
usually with ctrl+f

sturdy stratus
#

but on second thought ctrl+f would be better

#

i usually dont use ctrl+f

sturdy stratus
#

how to search by aria-label?

plain kelp
#

Same as any other attribute selector

sturdy stratus
#

figured thanks

crimson skiff
glacial citrus
crimson skiff
# echo frost very possibly what's the css

created a modmail, no response yet on whether it is accepted or not

:root {
    /*--channeltextarea-background: var(--backgroundColor01) /* use if your theme overwrites this*/
}
[class^=chatContent] > [class^=form] {
    margin-top: -20px; /* if no bar */
    /* added the extra `_` because it can target typingDots */
    [class^=typing_] {
        /* moves to above chat bar */
        top: 0;
        transform: translateY(-100%);
        /* the `slow mode is enabled` thing */
        [class^=cooldownWrapper] {
            background-color: var(--channeltextarea-background);
            border-radius: 5px 5px 0px 0px;
            padding: 2.5px 7.5px 2.5px 7.5px;
            /* remove line if you removed app launcher */
            transform: translateX(-52px);
        }
        /* the `<x> is typing` thing */
        [class^=typingDots] {
            background-color: var(--channeltextarea-background);
            border-radius: 5px 5px 0px 0px;
            padding-right: 7.5px; /* equal spacing */
        }
    }
    > [class^=channelTextArea] {
        margin-bottom: calc(var(--custom-chat-input-margin-bottom)/2);
        /* sometimes bar breaks, force-set the radius */
        border-radius: 8px;
        /* the default theme shows up, make it disappear */
        [class^=stackedBars] {
          background: transsparent
        }
    }
}
[class^=chatContent] > [class^=form]:has(> [class^=typing]) {
    margin-top: 0; /* adds space above chat bar */
    /* check if the `<x> is typing` exists and change border radius */
    &:has([class^=typingDots] > svg) [class^=scrollableContainer] {
        border-top-left-radius: 0px
    }
    /* check if the `slowmode is enabled` exists and change border radius */
    &:has([class^=cooldownWrapper]) [class^=scrollableContainer] {
        border-top-right-radius: 0px;
    }
}
#

i think a lot if it can be done improving it, but it is kinda good enough ngl

echo frost
#

better than a lot of the css snippets in there

crimson skiff
#

those are minor tweaks though

#

setting the correct border radius was painful as well, because the chat bar's wrapper also has a border radius that is used when i have nocturnal (the theme i use) enabled, so i had to support it with a hard-coded theme (the comment which said "sometimes bar breaks, force-set the radius")

#

my first iteration had a lot of > selectors because i felt it would break if the DOM included the starting class name (like the .typing-xxxxxx and .typingDots-xxxxxx where if i use [class^=typing], it would select both)

mortal mantle
#

But separated them into individual pills

#

My implementation is horrible though, could use some of your code instead blobcatcozy

crimson skiff
#

i just found out that the you are viewing older messages exists

#

the bar shouldnt be under the pills but rather be part of it

#

(need to set box shadow to none, forgot and i have to go slep now)

mortal mantle
#

i currently have something like this

sturdy stratus
#

for anyone interested on disabling pointer events (and hiding an element), i've combined some stuff i've tried and come up with this:


            pointer-events: none;
            opacity: 0;

            padding: 0px 0px 0px 0px;
            
            width: 0px;
            height: 0px;
#

seems to work

#

note that sometimes it fails and you have to do more situational stuff

pure cairn
#

is display: none; overrated?

plain kelp
#

Yep, patches is better

pure cairn
#

you can't just make a plugin for ever- oh wait, yes you can

sturdy stratus
sturdy stratus
#

most of the times i suggest using just:

pointer-events: none;
opacity: 0;
#

reason is that turning the display off for an item can effect the arrangement of the other items

#

but if pointer events seem to not work or that it doesn't effect other elements, display off/my solution are better

#

i guess pointer events + opacity is the best solution if it works

#

display off is just very unpredictable

#

so as the solution i suggested at first^ best to try first pointer events and opacity only

pure cairn
sturdy stratus
#

let me just find one lol

sturdy stratus
#

#app-mount .message_d5deea.cozyMessage_d5deea .operations_baf0d6

pure cairn
#

I phrased it badly

#

I meant "I never experienced that as an issue"

sturdy stratus
#

oh

#

well, it depends on the position of the element...

#

let me arrange the pictures since its a mess though

#

i've experienced it as an issue few times so, just beware i guess...

#

hence why i didn't think of display: none, because i dont use it...

loud pebble
#

(referred from #🏥-vencord-support-🏥)
ok here's my predicament, the custom font i'm using (JetBrainsMono Nerd Font) seems to always be resolving to the bold version. here is the relevant part of the config (i say relevant because without this bit everything goes back to default re: fonts, including font weight):

:root {
  /* Font change */
  --font: "JetBrainsMono NF";
  --font-primary: var(--font);
  --font-display: var(--font);
  --font-header:  var(--font);
  --webkit-font-smoothing: antialiased;
  --moz-os-x-font-smoothing: grayscale;
}

this behavior happens regardless of whether anything else is in my css.
i've also attached a screenshot showing that it's grabbing the bold variant instead of regular. setting font-weight doesn't do anything. any ideas?

crimson skiff
# mortal mantle

looks interesting, but i decided to sneak in the view older messages between the chat bar and slowmode/x is typing thing because it looks odd as another 'tab' in the center that may be overwritten by 'x is typing' (z-index: 9999 doesnt fix it)

frigid sundial
#

how to fix this "jump to present" not fully fill the bar due to hiding app launcher?

frigid sundial
#

tried remove the snippet (both) and still the same. its due to the app launcher ig

pure cairn
frigid sundial
pure cairn
#

np

crimson skiff
sturdy stratus
#

how can i detect if there's a text written in a comment

#

for example if just sending a file or an image there's no text

#

message-content and checking if it has span seems to work, bbut is there a more accurate way

#

a more specific way to check if message-content has actual text in it

clear siren
#

something like [id^="message-content-"]:empty should work

#

combine that into your selectors depending on what you want to achieve like [class*=cozyMessage_]:has([id^="message-content-"]:empty) { background:red !important; }

crimson skiff
#

i remember a message here showing a snippet that allows you to control the width of the channel bar, where is it

pure cairn
#

^

crimson skiff
pure cairn
#

Np

mortal mantle
#

moved this thing back to the top

#

its a pain maintaining it

#

and overlapping with typing indicators

manic bay
#

Can someone explain to me how to use the f8 plugin

plain kelp
#

Open devtools and press f8

chilly jewel
manic bay
#

It was literal

#

O

#

Well, thank you to both of you

stuck plinth
#

this font is very small relative to the size of the container it's in (I believe it's all the same height as what e.g. a lowercase "a" would be) but I'd like it to take up all the space it has available. if I make the text bigger it increases the size of the container it's in, which I don't want. how can I do this? or do I need to edit the font itself?

clear siren
stuck plinth
#

same with line height actually

clear siren
#

well most font-sizes are inherited/calculated from html/body

#

as for line-heights some elements force their own for whatever reasons

stuck plinth
clear siren
#

but assuming you haven't messed with font-sizes with css yet, most elements will scale accordigly if you change the font-size of html and/or body, and you can also change line-height there but it will not effect every element (or actually might since most elements also use relative units for line-height)

stuck plinth
clear siren
#

changes size of everything for me once I disable another css that I use to force fontsizes

stuck plinth
#

I could do it like this:

* {
    font-size: 25px !important;
    line-height: 24px !important;
}```

it seems to work but I don't know whether that has bad performance or anything
stuck plinth
clear siren
#

it can have an impact but not sure how big it would be

stuck plinth
clear siren
#

not easily, you'd have to find selectors that use monospace and override those

#

also there is another approach

#

if you're using @font-face to load your font you can use things like font-stretch, size-adjust, ascent-override in it

smoky belfry
#

is it me or has discord made stuff big recently ?
the size between messages, the size of reactions button, the size of message actions all seem to be bigger
i kinda noticed it when trying to start work on a custom theme

bleak gust
mortal mantle
#

I have no idea how to fix such a thing. When I skip a line the message bar jumps up once (and doesnt again for the next line skip), layout is reset when I change channels

#

no idea what caused it either

brittle juniper
#

@mortal mantle aoii

mortal mantle
echo frost
crimson skiff
#

what exactly is "skip a line"

#

the only difference i see os pic 1 has the message bar not focussed (maybe not, i cant see the cursor there), pic 2 has message bar focussed because it has the cursor there

mortal mantle
#

I'll try to explain more when I'm on pc

#

Have to install obs husk

mortal mantle
oak plover
#

No, no, she’s got a True

mortal mantle
#

this is what I meant

#

guhhh mkv

#
.form_a7d72e {
  margin-bottom: -24px;
  padding: 16px 0 0;
#

If I set the margin back to -24px manually the message bar will be reset

mortal mantle
#

Also

#

fixed this again so it doesn't look cramped with info

grand surge
#

Hello! I'm developing a custom theme with my own custom font for a custom language that I'm making!
I was meaning to ask whether it's possible to somehow import a custom font into a theme! I already have the font files and stuff! But I heard that I need to somehow upload the font somewhere.. But I don't know how and where exactly!
dato chel! ||<-- means thank you||

crimson skiff
# mortal mantle ```css .form_a7d72e { margin-bottom: -24px; padding: 16px 0 0; ```

i experienced a different form of the issue lol
while making [SeamlessChatBar](#🎨-css-snippets message), I wanted the chat bar to move down to occupy the space that was originally taken by the stuff. but then when i went to set the margin-bottom to 0, there wasnt any changes. but if i add a new line to the message bar, the message bar magically goes down to where it should have been when the margin was set to 0

crimson skiff
clear siren
#

am I missing something

grand surge
#

an url() just seems like a hassle, why can't I just grab the files internally?

plain kelp
#

Websites do not have access to your local files

clear siren
#

your browser (or electron) enumerates all installed fonts on launch

#

just have to know the font family name and plug that into font:"" or font-family:""

#

or into :root {--font-primary:"" !important}

#

as long as font is installed to system and discord/browser/vesktop/whatever has been relaunched after installing font it should just work

#

for more control you can also use local fonts in a @font-face declaration if necessary

grand surge
#

utter headache

#

I give up with this

mortal mantle
#

tell the user to install the font and use it locally

fresh plank
# mortal mantle
.channelAppLauncher_df39bd{
    margin-bottom: 0;
    padding: 16px 0 0;
}```  this works for me
ember fable
#

this is legit my first time making a theme

smoky fog
broken kettle
#

I'm working on a github action to update class names inspired by Saltssaumure's class updater

currently in preview, but I've been using it in my theme repo and it seems stable so should be out soon™️

if you end up using it, let me know if you have any issues
https://github.com/marketplace/actions/discord-class-updater

ember fable
crimson skiff
plain kelp
#

Attributes are slow, ugly, and imprecise

crimson skiff
broken kettle
#

I'm just making tools to maintain the theme I use

plain kelp
clear siren
#

sorry :3

worldly dagger
#

Wow so rude

clear siren
#

attribute selectors are best

echo frost
clear siren
#

you know I love you

#

all of you

mortal mantle
#

but yes the problem is partly fixed

#

removing the padding line completely fixed the issue

#

tyyyy

crimson skiff
#

maybe change the flex-direction?

clear siren
#

yeah not possible really

#

I tried a bunch of stuff but can't make discord not unload some of the contents of the element

#

it's possible and there are snippets for it but don't have one on hand rn

fading escarp
#

ngl someone should make an arc theme

#

for discord

slim pond
#

as in, the browser

#

?

supple lodge
#

What other arc is there?

crimson skiff
plain kelp
supple lodge
crimson skiff
supple lodge
#

the browser

plain kelp
#

If someone asks about an arc theme, my first thought is the arc theme, not the arc browser

sturdy stratus
#

is there a way to know if a message was sent by me using css

#

on a second message the user name isn't mentioned^

#

and there's no element containing the user id in it, only in a message with a header there's the user id

cloud joltBOT
sturdy stratus
#

appreciate it

supple lodge
pure cairn
#

From the ThemeAttributes plugin

sturdy stratus
#

to be fair i thought no one would be able to solve it in here

pure cairn
sturdy stratus
#

since there isn't much use to know if it's a message sent by me

#

and i couldn't find anything for it in the elements xD

pure cairn
sturdy stratus
#

thats interesting

pure cairn
#

It's a mess and a pain to align everything

#

But it looks cool

sturdy stratus
#

i will definitely be messing with it

#

thank god someone before me already worked on it, to create that plugin

#

xD

pure cairn
#

Real

pure cairn
#

And that would already remove plenty of things to align

#

I think it works best with message bubbles

sturdy stratus
sturdy stratus
#

i assume to make everything work properly u need to transform x all the elements to their size negatively

plain kelp
#

You probably don't want the text to be flipped though

sturdy stratus
#

that way their starting point wouldnt be on the left but on the right

#

it wouldnt flip the text

#

just the way an element is expAnding

#

because margin left is from its most left side

#

Actually sec let me think...

#

let me explain

#

lets say left to right

#

if an element margin left is on its right, it'd align it based on its most right point

#

so u need it to start from left to right

#

if you move it right u maybe want to start it from right to left but im not sure

pure cairn
#

Huh

#

You lost me there

sturdy stratus
#

in left the starting point needs to be the left side, in right the right side

#

but since u dont want the text backwards, i guess i understand what he meant now

#

a bit confusing

iron nexus
#

If anyone could help it'd be greatly appreciated!

I want to make a theme or plugin that makes the chat in VC's full screen similar to a normal text channel with the members hidden.

I have a theme that sets the video and slider to display: none and stretches the chat to the pixel. However, this obviously doesn't work with any other monitor and isn't as fluid as I'd like. What I'm wanting to ask is:

  • How would I add a checkbox to the VC option in the first picture to enable/disable my CSS code?

  • How would I make it universal without having people manually set their width value? <- Never mind! I set the width to 83.8vw and it seems to work fine unless it's windowed!

Sorry if this is the wrong channel again. And if this is a silly question my experience is only with C++ so far. QuickCSS is helpful with teaching!

crimson skiff
iron nexus
#

I was imagining more of like how the Silent Typing plugin has a toggle but in that little VC menu

crimson skiff
iron nexus
#

oh, well, good to know! I was hoping CSS would be able to but I guess I'll have to look into ts as well

#

thank you!

crimson skiff
iron nexus
#

I'll look into TS for it. Hopefully it's not too difficult of a language lol. Thank again

half crystal
#

can you not nest :has's? cant get this to work (dont ask what im doing, it should just have a banner at the top of the sidebar)

body:has([class^="listItem_"]:has(div[data-list-item-id="guildsnav___867910037543215145"]) [class^="upperBadge_"]) 
div[class^="sidebar_"]::before {
    content: 'asdf';
    padding: 10px;
    align-self: center;
    border-radius: 10px;
    background-color: red;
}
bleak gust
#

Why would you need to nest a :has

#

Just get rid of the inner has

half crystal
bleak gust
#

You are probably looking for the :is selector

half crystal
# bleak gust You are probably looking for the :is selector

...dont think so, at lease in the way im doing it

body:has(div:is([class^="listItem_"] div:is([data-list-item-id="guildsnav___867910037543215145"]) [class^="upperBadge_"])) div[class^="sidebar_"]::before {
    content: 'asdf';
    padding: 10px;
    align-self: center;
    border-radius: 10px;
    background-color: red;
}
bleak gust
#

do you need those :is? i should've said you can use :is to group multiple selectors into 1 inside of the :has

half crystal
#

lemme break down what im trying:
im looking for:
if there is

  • this specific server
    • with a badge
      • then
        • before the sidebar
          • show a thingamajiger
bleak gust
#

i've cleaned the excess up selectors up

#

try body:has([class^="listItem_"] [data-list-item-id="guildsnav___867910037543215145"] [class^="upperBadge_"]) div[class^="sidebar_"]::before

#

hang on

#

no

#

okay

#

i get the use of the nested :has now

half crystal
bleak gust
#
body:has([class^="listItem_"]:has([data-list-item-id="guildsnav___867910037543215145"]) [class^="upperBadge_"]) div[class^="sidebar_"]::before

this is what i've got now, which is pretty much what you originally had...?

#

so what is the problem?

half crystal
bleak gust
#

don't just use chatgpt

#

can chatgpt give you a reference to where it found that

#

but it seems to be true

#

ughhhh

#

there's probably a way to do it

half crystal
# bleak gust can chatgpt give you a reference to where it found that

The information I provided about the limitations of :has() in CSS comes from the CSS Selectors Level 4 Specification published by the W3C (World Wide Web Consortium) and practical testing across modern browsers. Here's a summary of the sources and reasoning:

  1. CSS Selectors Level 4 Spec (W3C):

The official spec outlines :has() as a relational pseudo-class for selecting a parent based on its children but does not mention support for nesting.

Source: W3C Selectors Level 4

  1. Browser Compatibility Testing:

As of 2024, Chrome (v105+) and Edge support :has() with limited scope.

Firefox and Safari still lack full support.

Tools like Can I Use help verify browser compatibility for CSS features.

  1. Practical CSS Behavior:

CSS is a declarative language and lacks recursion support, so selectors like :has() can't be nested.

The specification defines :has() as a parent-aware selector, but not designed for complex recursive logic like nested queries.

Would you like me to check for any updates on this topic using live data?

bleak gust
#

holy yap

#

hmm

pure cairn
#

Can't you do it in reverse?

#

E.g.

[data-list-item-id="guildsnav___etc"] {
  [class^=listItem_]:has(&) {
    body:has(&) {
    }
  }
}```
#

That looks stupid though

faint sluice
#

is there someone knowledgeable on custom css, that could perhaps help me make one to hide specific users profile pictures? i would be very grateful

honest estuary
#

I'm looking to enable "overlay scrollbars", e.g. scrollbars that only appear while scrolling, but i'm not sure how to css this in Electron. Does anyone perhaps have a tip?

#

(recording is from firefox)

iron smelt
faint sluice
#

ooh im so dumb

#

thank youu

faint sluice
#

is there a baldur's gate 3 inspired discord theme?

crimson skiff
crimson skiff
faint sluice
#

is there a custom css that would allow me to hide any and all messages where someone is @'ed or mentionned?

clear siren
#

doubt one exists but it's easy to make

faint sluice
#

how would i make it

clear siren
#

I'm at work so can't help atm

faint sluice
#

it's okayy no worries

#

i appreciate the help :]

echo frost
#

@faint sluice test

#

someone specific or if anyone is mentioned

faint sluice
#

someone specific

#

preferably using ID so i can add more people if possible

#

if that is possible

#

i would be eternally gratefull

echo frost
#

i don't think it would be possible to hide only specific people who are mentioned

#

with just css

faint sluice
#

i see

#

thank you in anycase :)

#

would you know of any guide to learn how to make my own css?

#

if that exists?

clear siren
echo frost
#

the mention doesn't contain the id

echo frost
clear siren
#

yeah

faint sluice
echo frost
#

this sort of works, but this msg with the rectangle around it is mine

pure cairn
#

Maybe collapse the text

#

Instead of display: none

#

So you still have the user avatar and name

echo frost
#

this just display none's the messagecontent

echo frost
faint sluice
#

did it work?

#

i'll test it rn and see

echo frost
#

@echo frost test

#

test

#

@simple frigate

#

This is extremely scuffed

[id^=message-content-]:has(.mention img[src*="683171006717755446"]) {
  display: none;
}
[class*=groupStart_] {
  min-height: unset !important;
}
#

that's with my id

#

and needs the mentionavatars plugin

faint sluice
faint sluice
#

that worked

#

thank you sm

echo frost
#

what do you even need it for?

faint sluice
#

theres a certain user i blocked

#

but we share servers

#

the blockuser thing plugin hides all their messages

#

but doesnt hide when they're mentionned

echo frost
#

why do you even want to hide when they're mentioned?

faint sluice
#

i just dont wanna see anything about them

#

messages, mentions, anything at all

echo frost
#

i do not understand that lol

#

if you want to block multiple you can do it like this

[id^=message-content-]:has(.mention img:is(
  [src*="683171006717755446"],
  [src*="789761307125612544"],
  [src*="ID HERE"]
)) {
  display: none;
}```
faint sluice
#

you know how when you block someone and they send a message in a shared server it says "5 blocked messages" or whatever?

echo frost
#

yeah

faint sluice
#

the blockuser plugin hides that

#

which is great

echo frost
#

yeah

faint sluice
#

but it doesnt hide when they get @'ed

#

for example

echo frost
#

yeah i understand

faint sluice
#

i block someone called "poopypants"

#

their messages are hidden

echo frost
faint sluice
#

but any messages with @poopypants still shows up

faint sluice
#

they just were horrible to me

#

thats all

#

unfortunately we have tons of mutual friends

#

so its not like i can just never see them again

#

and we share lots of servers and such

echo frost
#

i only block spam bots when i report them and sometimes press the block button
or there was one time where a server without moderators i'm in got spammed by some people sending disturbing images

faint sluice
#

thank you sm for the help tho

#

i really appreciate it

echo frost
faint sluice
#

thank youu

#

you've been such a big help

#

would it be okay to ask for one more thing? i feel like i've already asked for too much from you

echo frost
#

don't ask to ask, just ask

faint sluice
#

okayy thank you

#

i'd like to get rid of this

#

the serach thing ontop

faint sluice
#

i have figured it out somehow LOL

#

[class^='search'] {
display: none !important;
}

#

but that removes it from everywhere, not just the server one

#

[class^='searchBar_a46bef'] {
display: none !important;
}

#

this one is what i was looking for

clear siren
clear siren
#

attribute selectors have advantages like the ^ operator you had there, allows you to select elements where class string starts with whatever you put in, I use them exclusively to survive discord classname changes that happen sometimes

faint sluice
#

i've never touched coding in my life and i'm nowhere close so i'm just faking it till i make it LOL

clear siren
#

there is a marginal perf penalty when using attribute selectors instead of the oldschool #id and .class type and it can be easy to select things that you didn't want

#

but yeah best way to learn is to just try things and see what works, you'll find your preferred/best practices along the way

faint sluice
#

thank you for the help

#

its greatly appreciated

#

truly

plain kelp
#

I have yet to see proof that attribute selectors are as fast as class or id

#

Common sense says that the real selectors would be more optimizable

clear siren
#

they're definitely not as fast, but the perf hit shouldn't be too big

pure cairn
#

for easier customisation

#

you just add a new line

light wren
#

hihi I'm trying to edit this theme (https://github.com/SlippingGittys-Discord-Themes/WinClassic) to remove the scroll bar on the server list, I don't have enough servers to need it and it crops out some of them. Does anyone know how I would go about doing that? The original theme imports everything from github but I edited it to be in the css file in my theme folder instead [idk if that's bad]

GitHub

A Discord theme that imitates the appearance of the Windows Classic theme. - SlippingGittys-Discord-Themes/WinClassic

#

invite for the server linked on github is invalid so I thought i'd ask here

half crystal
broken kettle
echo frost
light wren
grand surge
#

anyone got a good theme I don't care about the colors and stuff i js need a theme that works.

#

that's not the answer I want

#

but wtv

plain kelp
#

Unless you have any needs, what's wrong with default theme

sturdy stratus
#

i'm trying to swap places between replied message and nick name

#

i've used transform y to do so and it works, wondering if there's a bbetter option

echo frost
#

like move this here?

distant nebula
#

guess what theme is this?

crimson skiff
distant nebula
old venture
crimson skiff
# distant nebula how is it bad?

the font is annoyingly thin and uneven, you cant properly see an unread channel until you squint hard, the channel subicons literally blend in, i doubt normal discord is that small

old venture
#

look at the letter 9 and M

distant nebula
old venture
distant nebula
echo frost
#

oh that makes so much more sense

sturdy stratus
sturdy stratus
#

swap these 2

clear siren
#
/* move replied message below header and restyle */
[class^=repliedMessage_]
{ position: relative;
  top: 2.2em;
  font-style: italic; }
[class^=repliedMessage_]::before
 { border: none; }
[class^=repliedMessage_] + [class^=contents_] > [class^=header_]
 { top: -20px; }
[class*=hasReply_] > [class^=contents_] > [class^=avatar_]
 { margin-top: -20px !important; }
[class*=hasReply_] [class^=avatarDecoration_]
 { margin-top: calc(-20px - 4px); } /*accounting for size diff of 40px avatar and 48px decoration*/
#

this is how I did it

#

it's part of my theme so ymmv

#

and there's some edge cases where it screws things up I haven't bothered to fix

sturdy stratus
#

i did it a bit different but similar

#

i've set padding (6px below 6px above) on the replied message, then a fixed height