pxvmc/src/private_channels.scss

156 lines
3.8 KiB
SCSS
Raw Normal View History

2023-10-08 18:28:04 +00:00
@use "colors";
@use "images";
2023-10-26 20:11:59 +00:00
[class*="baseLayer_"]
> [class^="container_"]
[class^="base_"]
> [class^="content_"]
[class^="sidebar_"]
> [class^="privateChannels_"] {
& > [class^="scroller_"] {
& > [class^="content_"] {
& > [class^="channel_"] {
2023-10-08 18:28:04 +00:00
margin-left: 0;
max-width: unset;
2023-10-26 20:11:59 +00:00
& > [class^="interactive_"] {
2023-10-08 18:28:04 +00:00
background-color: transparent;
border-radius: 0;
padding: 0;
2023-10-26 20:11:59 +00:00
&[class*="linkButton_"] {
[class^="link_"] {
& > [class*="layout_"] {
2023-10-08 18:28:04 +00:00
height: 16px;
padding: 0;
2023-10-26 20:11:59 +00:00
& > [class*="avatar_"] {
2023-10-08 18:28:04 +00:00
width: 16px;
height: 16px;
margin-right: 4px;
2023-10-26 20:11:59 +00:00
& > [class*="linkButtonIcon_"] {
2023-10-08 18:28:04 +00:00
width: 16px;
height: 16px;
color: var(--channel-icon);
}
}
}
}
}
2023-10-26 20:11:59 +00:00
[class^="link_"] {
2023-10-08 18:28:04 +00:00
border-radius: 0;
padding: 2px 4px;
--channel-icon: #{colors.$highlight};
2023-10-26 20:11:59 +00:00
& > [class*="layout_"] {
2023-10-08 18:28:04 +00:00
height: 32px;
padding: 0;
2023-10-26 20:11:59 +00:00
[class^="avatar_"] {
2023-10-08 18:28:04 +00:00
margin-right: 6px;
}
}
2023-10-26 20:11:59 +00:00
[class^="name_"] {
2023-10-08 18:28:04 +00:00
font-size: 12px;
color: colors.$highlight;
line-height: 16px;
font-weight: normal;
}
2023-10-26 20:11:59 +00:00
&[href="/store"] > [class^="badgeContainer_"] {
2023-10-08 18:28:04 +00:00
display: none;
}
}
2023-10-26 20:11:59 +00:00
&[class*="selected_"] {
2023-10-08 18:28:04 +00:00
background-color: colors.$accent;
2023-10-26 20:11:59 +00:00
[class^="link_"] {
2023-10-08 18:28:04 +00:00
--channel-icon: white;
2023-10-26 20:11:59 +00:00
[class^="name_"] {
2023-10-08 18:28:04 +00:00
color: white;
}
}
}
2023-10-26 20:11:59 +00:00
&:hover:not([class*="selected_"]) {
[class^="link_"] {
2023-10-08 18:28:04 +00:00
background-color: transparent;
--channel-icon: #{colors.$c7};
2023-10-26 20:11:59 +00:00
[class^="name_"] {
2023-10-08 18:28:04 +00:00
color: colors.$c7;
}
}
}
}
}
2023-10-26 20:11:59 +00:00
& > [class*="privateChannelsHeaderContainer_"] {
2023-10-08 18:28:04 +00:00
padding: 0;
height: 22px;
flex-direction: row-reverse;
background: linear-gradient(
to right,
colors.$highlight,
transparent 75%
);
align-items: center;
2023-10-26 20:11:59 +00:00
[class^="headerText_"] {
2023-10-08 18:28:04 +00:00
line-height: 21px;
font-weight: normal;
font-size: 12px;
color: colors.$c7;
text-shadow: 0px 0px 4px colors.$c0, 0px 0px 4px colors.$c0,
0px 0px 4px colors.$c0, 0px 0px 4px colors.$c0;
margin-left: 5px;
}
&[aria-expanded] > div {
position: relative;
left: 3px;
top: 0px;
width: 16px;
height: 16px;
transition: none;
transform: none !important;
background-image: images.$CategoryArrow;
background-position: 0px 16px;
& > svg {
display: none;
}
}
&[aria-expanded="false"] > div {
background-position-y: 0px;
}
&[aria-expanded]:hover > div {
background-position-x: 16px;
}
2023-10-26 20:11:59 +00:00
& > [class^="privateChannelRecipientsInviteButtonIcon_"] {
2023-10-08 18:28:04 +00:00
position: relative;
left: 3px;
top: 0px;
width: 16px;
height: 16px;
transition: none;
transform: none !important;
background-image: images.$ButtonAdd;
margin-right: 0;
&:hover {
background-position-x: 16px;
}
& > svg > polygon {
display: none;
}
}
}
}
}
}