2024-01-25 22:30:21 +08:00
|
|
|
:root {
|
|
|
|
--channel-list-avatar-size: 43px;
|
|
|
|
}
|
2023-09-11 20:51:13 +08:00
|
|
|
.chat-channel-row {
|
|
|
|
margin: 0;
|
|
|
|
border-radius: 0;
|
|
|
|
border-bottom: 1px solid var(--primary-low);
|
|
|
|
transition: height 0.25s ease-in-out, opacity 0.25s ease-out;
|
|
|
|
transform-origin: top center;
|
2023-09-15 00:48:29 +08:00
|
|
|
will-change: height, opacity, left;
|
|
|
|
position: relative;
|
2024-01-25 22:30:21 +08:00
|
|
|
height: 4em;
|
2023-09-15 00:48:29 +08:00
|
|
|
|
|
|
|
&.-fade-out {
|
|
|
|
.chat-channel-row__content {
|
|
|
|
background-color: var(--danger-low);
|
|
|
|
}
|
|
|
|
|
|
|
|
height: 0 !important;
|
|
|
|
overflow: hidden;
|
|
|
|
opacity: 0.5 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__content {
|
|
|
|
padding-inline: 1.5rem;
|
2024-01-25 22:30:21 +08:00
|
|
|
padding-block: 0.5rem;
|
2023-09-15 00:48:29 +08:00
|
|
|
z-index: 2;
|
|
|
|
box-sizing: border-box;
|
|
|
|
transition: border-radius 0.25s ease-in-out;
|
2024-01-25 22:30:21 +08:00
|
|
|
//for sliding delete animation
|
|
|
|
background: var(--primary-very-low);
|
|
|
|
height: 100%;
|
2023-09-15 00:48:29 +08:00
|
|
|
|
|
|
|
&.-animate-reset {
|
|
|
|
transition: margin-right 0.15s ease-out;
|
|
|
|
margin-right: 0px !important;
|
|
|
|
}
|
2023-09-15 20:06:31 +08:00
|
|
|
&:not(.-animate-reset) {
|
|
|
|
border-top-right-radius: 0.25rem;
|
|
|
|
border-bottom-right-radius: 0.25rem;
|
|
|
|
}
|
2023-09-15 00:48:29 +08:00
|
|
|
}
|
2023-09-11 20:51:13 +08:00
|
|
|
|
2024-01-25 22:30:21 +08:00
|
|
|
&__info {
|
|
|
|
.is-category & {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
.is-dm & {
|
|
|
|
display: grid;
|
|
|
|
grid-template-areas:
|
|
|
|
"name metadata"
|
|
|
|
"msg msg";
|
|
|
|
width: 100%;
|
|
|
|
align-items: center;
|
|
|
|
&:has(.chat-channel-unread-indicator) {
|
|
|
|
grid-template-areas:
|
|
|
|
"name metadata"
|
|
|
|
"msg metadata";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-09-11 20:51:13 +08:00
|
|
|
&__action-btn {
|
2023-09-15 00:48:29 +08:00
|
|
|
z-index: 1;
|
2023-09-11 20:51:13 +08:00
|
|
|
display: flex;
|
2023-09-15 20:06:31 +08:00
|
|
|
justify-content: flex-end;
|
2023-09-11 20:51:13 +08:00
|
|
|
align-items: center;
|
|
|
|
position: absolute;
|
|
|
|
top: 0px;
|
|
|
|
bottom: 0px;
|
2023-09-15 00:48:29 +08:00
|
|
|
right: 0px;
|
|
|
|
left: 0px;
|
|
|
|
background: var(--danger);
|
|
|
|
color: var(--primary-very-low);
|
2023-09-11 20:51:13 +08:00
|
|
|
|
2023-09-15 00:48:29 +08:00
|
|
|
.d-icon {
|
|
|
|
transform-origin: 50% 50%;
|
|
|
|
transform-box: fill-box;
|
|
|
|
transition: scale 0.2s ease-out;
|
2023-09-15 20:06:31 +08:00
|
|
|
margin-inline: 0 1.5rem;
|
2023-09-11 20:51:13 +08:00
|
|
|
}
|
|
|
|
|
2023-09-15 00:48:29 +08:00
|
|
|
&.-not-at-threshold {
|
|
|
|
.d-icon {
|
|
|
|
scale: 0.7;
|
|
|
|
}
|
2023-09-11 20:51:13 +08:00
|
|
|
}
|
|
|
|
|
2023-09-15 00:48:29 +08:00
|
|
|
&.-at-threshold {
|
|
|
|
.d-icon {
|
|
|
|
scale: 1.5;
|
|
|
|
}
|
|
|
|
}
|
2023-09-11 20:51:13 +08:00
|
|
|
}
|
|
|
|
|
2024-01-25 22:30:21 +08:00
|
|
|
.chat-channel {
|
|
|
|
&__user-info,
|
|
|
|
&__channel-info {
|
|
|
|
grid-area: name;
|
|
|
|
}
|
|
|
|
&__metadata {
|
|
|
|
grid-area: metadata;
|
|
|
|
.chat-channel-unread-indicator {
|
|
|
|
font-size: var(--font-down-2);
|
|
|
|
margin-top: 0.25rem;
|
|
|
|
}
|
2023-09-11 20:51:13 +08:00
|
|
|
}
|
2024-01-25 22:30:21 +08:00
|
|
|
&__metadata-date {
|
2023-09-11 20:51:13 +08:00
|
|
|
font-size: var(--font-down-2);
|
|
|
|
}
|
2024-01-25 22:30:21 +08:00
|
|
|
&__last-message {
|
|
|
|
@include ellipsis;
|
|
|
|
grid-area: msg;
|
|
|
|
color: var(--primary-high);
|
2024-02-02 21:29:07 +08:00
|
|
|
|
|
|
|
.emoji {
|
|
|
|
width: 1em;
|
|
|
|
height: 1em;
|
|
|
|
}
|
2024-01-25 22:30:21 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-channel-icon {
|
|
|
|
&.--users-count {
|
|
|
|
font-size: var(--font-up-2);
|
|
|
|
}
|
2023-09-11 20:51:13 +08:00
|
|
|
}
|
|
|
|
}
|