2023-06-26 20:47:13 +08:00
|
|
|
.chat-message {
|
|
|
|
container-type: inline-size;
|
|
|
|
}
|
|
|
|
|
2023-04-12 09:09:06 +08:00
|
|
|
.chat-message-thread-indicator {
|
|
|
|
cursor: pointer;
|
|
|
|
grid-area: threadindicator;
|
2023-06-26 20:47:13 +08:00
|
|
|
box-sizing: border-box;
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: auto 1fr auto auto;
|
2023-04-20 22:32:21 +08:00
|
|
|
background-color: var(--primary-very-low);
|
|
|
|
margin: 4px 0 -2px calc(var(--message-left-width) - 0.25rem);
|
2023-06-26 20:47:13 +08:00
|
|
|
padding: 0.5rem;
|
2023-07-10 21:07:38 +08:00
|
|
|
border-radius: var(--d-border-radius-large);
|
2023-06-15 08:49:27 +08:00
|
|
|
color: var(--primary);
|
2023-04-12 09:09:06 +08:00
|
|
|
|
2023-06-16 17:36:43 +08:00
|
|
|
> * {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2023-06-15 08:49:27 +08:00
|
|
|
&:visited,
|
|
|
|
&:hover {
|
|
|
|
color: var(--primary);
|
|
|
|
}
|
|
|
|
|
2023-06-26 20:47:13 +08:00
|
|
|
&:hover {
|
|
|
|
.chat-message-thread-indicator__replies-count {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-16 17:36:43 +08:00
|
|
|
.no-touch & {
|
|
|
|
&:hover {
|
|
|
|
box-shadow: var(--shadow-dropdown);
|
|
|
|
}
|
2023-06-15 08:49:27 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&__last-reply-avatar {
|
2023-06-26 20:47:13 +08:00
|
|
|
grid-area: avatar;
|
|
|
|
margin-right: 0.5rem;
|
|
|
|
|
2023-06-15 08:49:27 +08:00
|
|
|
.chat-user-avatar {
|
|
|
|
width: auto !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-26 20:47:13 +08:00
|
|
|
&__last-reply-username {
|
|
|
|
@include ellipsis;
|
|
|
|
font-weight: bold;
|
|
|
|
color: var(--primary-very-high);
|
2023-04-12 09:09:06 +08:00
|
|
|
}
|
|
|
|
|
2023-06-26 20:47:13 +08:00
|
|
|
&__last-reply-info {
|
|
|
|
grid-area: info;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: 0.25rem;
|
2023-06-15 08:49:27 +08:00
|
|
|
}
|
2023-04-12 09:09:06 +08:00
|
|
|
|
2023-06-26 20:47:13 +08:00
|
|
|
&__last-reply-timestamp {
|
|
|
|
color: var(--primary-high);
|
2023-07-04 16:32:09 +08:00
|
|
|
font-size: var(--font-down-3);
|
2023-06-15 08:49:27 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&__last-reply-excerpt {
|
|
|
|
@include ellipsis;
|
2023-06-26 20:47:13 +08:00
|
|
|
grid-area: excerpt;
|
2023-04-12 09:09:06 +08:00
|
|
|
}
|
|
|
|
|
2023-06-26 20:47:13 +08:00
|
|
|
.chat-thread-participants {
|
|
|
|
grid-area: participants;
|
|
|
|
flex-shrink: 0;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: flex-end;
|
2023-07-04 16:32:09 +08:00
|
|
|
gap: 0.25rem;
|
2023-08-25 00:45:20 +08:00
|
|
|
margin-left: 0.5rem;
|
2023-06-16 17:36:43 +08:00
|
|
|
}
|
|
|
|
|
2023-06-15 08:49:27 +08:00
|
|
|
&__replies-count {
|
2023-06-16 17:36:43 +08:00
|
|
|
@include ellipsis;
|
2023-06-15 08:49:27 +08:00
|
|
|
color: var(--tertiary);
|
2023-06-16 17:36:43 +08:00
|
|
|
font-size: var(--font-down-1);
|
2023-06-26 20:47:13 +08:00
|
|
|
text-align: right;
|
2023-04-12 09:09:06 +08:00
|
|
|
}
|
|
|
|
}
|