#Hidden channel sidebar
1 messages · Page 1 of 1 (latest)
Edited version with anim and slightly better selector i think
[class^=sidebar_]:has([class*=avatarWrapper_]) {
transition: width 0.2s ease;
&:not(:hover) {
width: 5px;
}
}```
and smaller
im so good at css trust
original was this btw
[class^=sidebar_]:not(:has(.header_a0)) {
max-width: 5px;
}
[class^=sidebar_]:hover {
max-width: none;
}```
yes this is better
is there one for the channel list?
its working on the channel list
This one much better with the transition to make it much smoother ..
[class^=sidebar_]:has([class*=avatarWrapper_]) {
transition: width 0.8s ease; /* Smooth transition for width changes */
&:not(:hover) {
width: 5px; /* Width when not hovered */
}
}
This is for the channel list
If yall wanna do this then sure
You should try it out, much smoother .
Finally, a useful low resolution second monitor solution for channel list being too fucking big
(why did i write server list)
silly me i meant server list ðŸ˜
crazy
Yw bbg
Theme issue
I what?
I personalized this to also include server list. I had to disable BetterFolders' sidebar tho, but
[class^=sidebar_]:has([class*=avatarWrapper_]) {
transition: width 0.5s ease, padding 0.5s ease;
&:not(:hover) {
padding-left: 30px;
width: 0px;
}
}
[class*=guilds_] {
transition: width 0.5s ease, padding 0.5s ease;
&:not(:hover) {
padding-left: 30px;
width: 0px;
}
}
Little smoother than Koda's snippet
But not 0.8s
Also yes, server sidebar is wider than channel bar
Updated the code so it's the same width
oh using padding is smart
The desktop design refresh makes this look ugly. Will find a fix soon
Laggy animation
turn off hardware acceleration fix it
possible for server list?
@velvet star ^^
You can adjust the time if you want
wait mb, possible for user list?
Just... hide it and put it back with the button
yeah
this has it
#🎨-css-snippets message
and here's a slightly modified version of the part of that minimizes members list
[class^=membersWrap] {
min-width: 0;
>[class^=members_] {
transition: width 0.25s ease;
&:not(:hover) {
width: 7px;
}
}
}```
:root:has(#thread-context, #channel-context, #guild-context, #guild-browse-channels-context-menu, #audio-device-context, #user-settings-cog, #account),
:root:has([class^="privateChannels_"]):has(#user-context),
:root:has(:is([class^="sidebar_"], [class*="guilds_"]):is(:hover, :focus-within)) {
--visiblechannellist-width: 240px;
}
.sidebar_a4d4d9 {
width: var(--visiblechannellist-width, 0);
transition: width .5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.sidebar_a4d4d9 .container_ee69e0 {
width: 240px;
}
this removes that tiny sliver that remains of the channel list
The performance is gonna be shitty wtf
Horror
wtf just definie the variable in normal :root{} or don't even use a variable
Probably.. it’s copied from an old thread with the same objective. I just like this one more because of the animation and it fitting with my theme without an ugly black bar
wait nvm
it's so scuffed
oh cool, it shows when hovering over guild sidebar with this
that's actually pretty cool
I think this is a slightly less scuffed version of this
[class^=sidebar_]:has([class*=avatarWrapper_]) {
transition: width .5s cubic-bezier(0.165, 0.84, 0.44, 1);
[class^=container_]:has(>[class*=guilds_]:not(:hover, :focus-within))
&:not(:hover, :focus-within) {
width: 0;
}
}
still is kinda scuffed, especially the duplicate :not(:hover, :focus-within), but idrk how I could fix that part
also i don't even really like the focus-within very much
well ig sibling selector is slightly better
[class^=sidebar_]:has([class*=avatarWrapper_]) {
transition: width .5s cubic-bezier(0.165, 0.84, 0.44, 1);
[class*=guilds_]:not(:hover, :focus-within)~
[class^=base_] &:not(:hover, :focus-within) {
width: 0;
}
}```
idk what the first 2 selectors do btw (:has(#thread-context...) and :has([class^="privateChannels_"])
I believe I got this snippet from this thread
From what I understand, these two selectors are likely for disabling it when the user drags channels in a server
And for when the mouse hovers over right click menus that aren’t contained within the channel list
oh
Any way to have this as a button beside the # of the channel name on the top of the screen similar to how the BD plugin goes?
Exactly because of that, because it's a plugin, not just css
It shouldn't be that hard
But anyway I don't think it'll be made
ah sad
thank you
can someone plz tell me what should I add after [class^=sidebar_]:has([class*=avatarWrapper_]) to make the sidebar hide only DM chats but not server's channels?
tried to figure it out myself but all my attempts failed
/* Define custom CSS variables */
:root {
--collapsed-channeList-width: 0px;
/* --channelList-width: 240px; */
--channelList-padding: 35px;
/* --collapsed-memberList-width: 0px; */
--serverList-padding: 15px;
}
/* Channel list */
[class^=base_] > [class^=content] > [class^=sidebar] > [class^=sidebarList]:not([class^=hidden]) {
/* width: var(--channelList-width) !important; */
transition: width 0.2s ease, padding 0.3s ease; /* how fast to open and close the channel list and the padding */
transition-delay: 0.2s; /* how long to hover before opening*/
&:not(:hover) {
transition-delay: 1.5s; /* how long to keep open after hover is removed */
padding-left: var(--channelList-padding);
width: 0px !important;
}
}
/* Server list */
[class*=guilds_]{
transition: width 0.2s ease, padding 0.3s ease; /* how fast to open and close the server list and the padding */
transition-delay: 0.5s; /* how long to hover before opening*/
&:not(:hover) {
transition-delay: 1.5s; /* how long to keep open after hover is removed */
padding-left: var(--serverList-padding);
width: 0px;
}
}
/* Member list */
/* [class^=base_] > [class^=content] > [class^=membersWrap] {
min-width: 0;
> [class^=members_] {
transition: width 0.2s ease;
transition-delay: 0.5s;
&:not(:hover) {
width: 8px;
}
}
} */
added some transition-delays so it doesn't open and close immediately, (also changed a few values)
EDIT(21-dec-24): fixed from the new update
EDIT: (28-march-25): eeeh
what did you do to my discord, wow
probably your theme interferring
are you talking about the new design?
yes
it can be included in experiments
nah i'm fine
Don’t know what could be causing these torn animations? All my animations are like this...
well its experimental
ok, now I'll try the old design
you guessed it right
but I still don't really like this hiding
:)
i've been needing something like this for months. thank you!!
THANK YOU! I've been looking for hours and every single version I found around the internet was either buggy or did nothing at all
the update broke some class names
so ye
i actually stole someone else's css here to fix mine
but it ain't stealing if you share with others and don't sell
Only real issue is that the window doesn't retain it's size if I watch some media in fullscreen
Classical Discord behaviour
This is broken now with the discord update right?
idk about now now, but it was working tw weeks earlier, haven't been on desktop since
it might be broken by visual refresh
but i don't use visual refresh so idk
i shall look into it, at some point
ok so first of all
you can resize the sidebar now
second i'm a genius(idk css)
just append this to the class specifying thingy to fix the sidebar
the sidebar retains the set width if you don't specify it in the snippet so that's good but you can't change width as the sidebar closes before you do that, so set your width before enabling the snippet
idk what to do with members list so i'm just commenting it for now
append
[class^=panels] {
overflow: hidden;
max-height: 0;
transition: max-height 0.2s ease-out;
}
[class^=sidebarList]:hover ~ [class^=panels] {
max-height: 60px;
transition: max-height 0.2s ease-in;
}
[class^=panels]:hover {
max-height: 60px;
}
to make the userpanel only show on hover
aaaaah adjust the delays...
someone made basically the same thing
#🎨-css-snippets message