discourse/plugins/chat/assets/stylesheets/common/chat-message-thread-indicator.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

103 lines
1.7 KiB
SCSS
Raw Normal View History

.chat-message-thread-indicator {
display: flex;
align-items: center;
gap: 1rem;
cursor: pointer;
grid-area: threadindicator;
max-width: 1000px;
background-color: var(--primary-very-low);
margin: 4px 0 -2px calc(var(--message-left-width) - 0.25rem);
padding-block: 0.5rem;
padding-inline: 0.5rem;
border-radius: 8px;
color: var(--primary);
> * {
pointer-events: none;
}
&:visited,
&:hover {
color: var(--primary);
}
.touch & {
&.-active {
box-shadow: var(--shadow-dropdown);
}
}
.no-touch & {
&:hover {
box-shadow: var(--shadow-dropdown);
}
}
&__participants {
flex-shrink: 0;
align-self: flex-start;
}
&__last-reply-avatar {
align-self: flex-start;
.chat-user-avatar {
width: auto !important;
}
}
&__last-reply-metadata {
display: flex;
align-items: flex-end;
gap: 0.25rem;
color: var(--primary-medium);
.separator {
font-size: var(--font-down-1);
}
}
&__last-reply-container {
display: inline-flex;
align-items: flex-end;
font-size: var(--font-down-1);
min-width: 0;
.relative-date {
@include ellipsis;
}
}
&__last-reply-user {
font-weight: bold;
color: var(--secondary-low);
}
&__last-reply-username {
font-weight: bold;
color: var(--secondary-low);
}
&__last-reply-excerpt {
@include ellipsis;
line-height: 1.8rem;
}
&__body {
overflow: hidden;
white-space: nowrap;
flex-shrink: 1;
}
&:hover {
.chat-message-thread-indicator__replies-count {
text-decoration: underline;
}
}
&__replies-count {
@include ellipsis;
color: var(--tertiary);
font-size: var(--font-down-1);
}
}