pxvmc/src/channel_list.scss

332 lines
7.3 KiB
SCSS

@use "colors";
@use "images";
[class^="base-"] > [class^="content-"] > [class^="sidebar-"] {
border-radius: 0;
}
[class^="base-"]
> [class^="content-"]
> [class^="sidebar-"]
> [class^="container-"]
> [class^="scroller-"]
> [class^="content-"] {
& > div[style="height: 84px;"],
& > div[style="height: 84px;"] + div[style="height: 12px;"],
& > div[style="height: 0px;"] + div[style="height: 12px;"],
& > [class^="sectionDivider"] + div[style="height: 12px;"] {
height: 0px !important;
}
& > [class*="containerWithMargin-"] {
margin-bottom: 4px;
padding: 0;
& > [class^="textArea-"] {
margin-right: 0;
}
&::after {
left: 2px;
border-color: colors.$highlight;
}
}
[class^="sectionDivider-"] {
margin: 4px 2px !important;
//background-color: colors.$Divider !important;
}
[class^="spineBorder-"] {
display: none;
}
[class^="containerDefault-"] {
margin-left: 0;
padding: 0;
[class^="spine-"] {
display: none;
}
[class^="iconVisibility-"] {
margin-left: 0;
padding: 0;
[class^="link-"] {
border-radius: 0;
padding: 2px 4px;
--channel-icon: var(--text-muted);
[class^="icon-"] {
width: 16px;
height: 16px;
}
[class^="iconContainer-"] {
margin-right: 3px;
}
[class^="name-"] {
font-size: 12px;
color: var(--text-muted);
line-height: 16px;
font-weight: normal;
}
[class^="channelInfo-"] {
& > [class^="wrapper-"] {
border-radius: 0;
line-height: 16px;
height: 16px;
& > [class^="users-"] {
background-color: transparent;
color: var(--text-normal);
padding-right: 6px;
width: unset;
}
& > [class^="total-"] {
background-color: transparent;
color: var(--text-muted);
padding: 0;
&::after {
content: "/";
border: none;
left: -4px;
}
}
}
}
.channel-typing-indicator {
padding: 0 !important;
display: flex;
align-items: center;
}
}
&[class*="modeSelected-"] {
[class^="link-"] {
background-color: colors.$accent;
--channel-icon: white;
[class^="name-"] {
color: white;
}
}
}
&[class*="modeUnread-"] {
[class^="link-"] {
--channel-icon: var(--text-normal);
[class^="name-"] {
color: var(--text-normal);
}
}
&:hover [class^="link-"] {
--channel-icon: white !important;
[class^="name-"] {
color: white !important;
}
}
}
&[class*="modeMuted-"] {
[class^="link-"] {
--channel-icon: #{colors.$c8};
--interactive-muted: #{colors.$c8};
[class^="name-"] {
color: #{colors.$c8};
}
}
}
&:hover:not([class*="modeSelected-"]) {
[class^="link-"] {
background-color: transparent;
--channel-icon: var(--text-normal);
--interactive-muted: var(--text-normal);
[class^="name-"] {
color: var(--text-normal);
}
}
}
&[class*="clickable-"] {
height: 21px;
background: linear-gradient(
to right,
colors.$highlight,
transparent 75%
);
&:hover {
[class^="mainContent-"] > svg {
background-position-x: 16px;
}
}
&[class*="collapsed-"] {
[class^="mainContent-"] > svg {
background-position-y: 0px;
}
}
[class^="mainContent-"] {
height: 21px;
& > svg {
left: 3px;
top: 3px;
width: 16px;
height: 16px;
transition: none;
transform: none !important;
background-image: images.$CategoryArrow;
background-position: 0px 16px;
& > path {
display: none;
}
}
[class^="name-"] {
line-height: 21px;
font-weight: normal;
font-size: 12px;
margin-left: 23px;
color: var(--text-normal);
text-shadow: 0px 0px 4px colors.$c0, 0px 0px 4px colors.$c0,
0px 0px 4px colors.$c0, 0px 0px 4px colors.$c0;
}
}
[class^="addButton-"] {
min-width: 20px;
[class^="addButtonIcon-"] {
width: 16px;
height: 16px;
transition: none;
transform: none !important;
background-image: images.$ButtonAdd;
margin-right: 0;
&:hover {
background-position-x: 16px;
}
& > polygon {
display: none;
}
}
}
}
}
[class^="link-"] {
border-radius: 0;
padding: 2px 4px;
--channel-icon: var(--text-muted);
[class^="icon-"] {
width: 16px;
height: 16px;
}
[class^="iconContainer-"] {
margin-right: 3px;
}
[class^="name-"] {
font-size: 12px;
color: var(--text-muted);
line-height: 16px;
font-weight: normal;
}
& > [class^="linkBottom-"] {
margin-left: 0;
}
[class^="mentionsBadge-"] > [class^="numberBadge-"] {
background-color: colors.$c1 !important;
}
}
&:has([class^="mentionsBadge-"]) {
[class^="link-"] {
--channel-icon: #{colors.$c1} !important;
--interactive-muted: #{colors.$c1} !important;
[class^="name-"] {
color: colors.$c1 !important;
}
}
}
&[class*="modeSelected-"] {
[class^="link-"] {
//background-color: colors.$Focus;
--channel-icon: white;
[class^="name-"] {
color: white;
}
}
}
&[class*="modeUnread-"] {
[class^="link-"] {
--channel-icon: var(--text-normal);
[class^="name-"] {
color: var(--text-normal);
}
}
&:hover [class^="link-"] {
--channel-icon: white;
[class^="name-"] {
color: white !important;
}
}
}
&:hover:not([class*="modeSelected-"]):not([class*="selected-"]) {
[class^="link-"] {
background-color: transparent;
--channel-icon: var(--text-normal);
[class^="name-"] {
color: colors.$c7;
}
}
}
& > [class^="list-"] {
padding: 2px 4px;
& > [class^="draggable-"] {
height: unset;
& > [class^="voiceUser-"] {
height: unset;
&:hover > [class^="content-"] {
border-radius: 0;
background-color: transparent;
}
[class^="userAvatar-"] {
margin: 0;
width: 16px;
height: 16px;
margin-right: 4px;
}
[class*="username-"] {
font-size: 12px;
}
[class^="icons-"] {
margin-right: 0;
}
}
}
}
}
}