2023-05-10 17:42:32 +08:00
|
|
|
@mixin thread-list-item {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
padding: 0.5rem;
|
2023-07-10 21:07:38 +08:00
|
|
|
border-radius: var(--d-border-radius);
|
2023-05-15 13:53:30 +08:00
|
|
|
background-color: var(--primary-very-low);
|
2023-05-10 17:42:32 +08:00
|
|
|
border: 1px solid transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-thread-list-item {
|
|
|
|
@include thread-list-item;
|
|
|
|
cursor: pointer;
|
2023-05-30 16:10:07 +08:00
|
|
|
margin: 0.25rem;
|
2023-05-29 15:11:55 +08:00
|
|
|
|
|
|
|
& + .chat-thread-list-item {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
2023-05-10 17:42:32 +08:00
|
|
|
|
|
|
|
.touch & {
|
|
|
|
&:active {
|
|
|
|
background-color: var(--d-hover);
|
2023-05-15 13:53:30 +08:00
|
|
|
border: 1px solid var(--primary-300);
|
2023-05-10 17:42:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.no-touch & {
|
|
|
|
&:hover,
|
|
|
|
&:active {
|
|
|
|
background-color: var(--d-hover);
|
2023-05-15 13:53:30 +08:00
|
|
|
border: 1px solid var(--primary-300);
|
2023-05-10 17:42:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-08-25 17:20:03 +08:00
|
|
|
&__participants {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2023-05-10 17:42:32 +08:00
|
|
|
&__main {
|
|
|
|
flex: 1 1 100%;
|
2023-05-29 15:11:55 +08:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__body {
|
|
|
|
padding-bottom: 0.25rem;
|
|
|
|
word-break: break-word;
|
|
|
|
margin: 0.5rem 0rem;
|
|
|
|
|
|
|
|
> * {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-08-25 00:45:20 +08:00
|
|
|
&__last-reply-author {
|
|
|
|
font-weight: 700;
|
|
|
|
}
|
|
|
|
|
2023-05-29 15:11:55 +08:00
|
|
|
&__metadata {
|
|
|
|
display: flex;
|
2023-08-25 00:45:20 +08:00
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__metadata__separator {
|
2023-08-25 17:20:03 +08:00
|
|
|
padding-inline: 0.5rem;
|
2023-08-25 00:45:20 +08:00
|
|
|
font-weight: 700;
|
2023-08-25 17:20:03 +08:00
|
|
|
font-size: 20px;
|
|
|
|
text-align: center;
|
2023-08-25 00:45:20 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&__participants {
|
|
|
|
margin-right: 0.25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__replies-count {
|
|
|
|
margin-left: auto;
|
2023-05-29 15:11:55 +08:00
|
|
|
}
|
|
|
|
|
2023-08-25 00:45:20 +08:00
|
|
|
&__last-reply-timestamp,
|
|
|
|
&__replies-count {
|
2023-05-29 15:11:55 +08:00
|
|
|
color: var(--secondary-low);
|
|
|
|
font-size: var(--font-down-1);
|
2023-08-25 00:45:20 +08:00
|
|
|
@include ellipsis;
|
2023-05-10 17:42:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&__header {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
2023-05-29 15:11:55 +08:00
|
|
|
margin-bottom: 0.25rem;
|
2023-05-10 17:42:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&__title {
|
2023-05-29 15:11:55 +08:00
|
|
|
flex: 1 1 auto;
|
2023-08-25 17:20:03 +08:00
|
|
|
font-weight: 500;
|
|
|
|
font-size: var(--font-up-1);
|
2023-08-25 00:45:20 +08:00
|
|
|
@include ellipsis;
|
2023-05-10 17:42:32 +08:00
|
|
|
}
|
|
|
|
|
2023-08-25 17:20:03 +08:00
|
|
|
&__last-reply-excerpt {
|
|
|
|
font-size: var(--font-0);
|
|
|
|
}
|
|
|
|
|
2023-05-29 15:11:55 +08:00
|
|
|
&__unread-indicator {
|
|
|
|
flex: 0 0 auto;
|
2023-08-25 17:20:03 +08:00
|
|
|
|
|
|
|
.chat-thread-list-item-unread-indicator__number {
|
|
|
|
color: var(--primary);
|
|
|
|
font-size: var(--font-up-1);
|
|
|
|
}
|
2023-05-15 13:53:30 +08:00
|
|
|
}
|
|
|
|
|
2023-05-10 17:42:32 +08:00
|
|
|
&__open-button {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
box-sizing: border-box;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
2023-05-29 15:11:55 +08:00
|
|
|
|
|
|
|
&__om-user-avatar {
|
2023-08-25 00:45:20 +08:00
|
|
|
margin-right: 0.25rem;
|
2023-05-29 15:11:55 +08:00
|
|
|
flex: 0 0 auto;
|
|
|
|
}
|
2023-05-10 17:42:32 +08:00
|
|
|
}
|