discourse/plugins/chat/assets/stylesheets/common/chat-thread-list-item.scss
Martin Brennan 7a9514922b
FEATURE: Improving thread list item and header (#21749)
* Moved the settings cog from thread list to thread and
  put it in a new header component
* Remove thread original message component, no longer needed
  and the list item and thread indicator styles/content
  will be quite different
* Start adding content (unread indicator etc.) to the thread
  list item and changing structure to be more like designs
* Serialize the last thread reply when opening the thread index,
  show in list and update with message bus
2023-05-29 09:11:55 +02:00

93 lines
1.5 KiB
SCSS

@mixin thread-list-item {
display: flex;
flex-direction: row;
padding: 0.5rem;
border-radius: 4px;
background-color: var(--primary-very-low);
border: 1px solid transparent;
}
.chat-thread-list-item {
@include thread-list-item;
cursor: pointer;
margin: 0.5rem 0.25rem 0.25rem;
& + .chat-thread-list-item {
margin-top: 0;
}
.touch & {
&:active {
background-color: var(--d-hover);
border: 1px solid var(--primary-300);
}
}
.no-touch & {
&:hover,
&:active {
background-color: var(--d-hover);
border: 1px solid var(--primary-300);
}
}
&__main {
flex: 1 1 100%;
width: 100%;
}
&__body {
padding-bottom: 0.25rem;
word-break: break-word;
margin: 0.5rem 0rem;
> * {
pointer-events: none;
}
}
&__metadata {
display: flex;
justify-content: flex-end;
}
&__last-reply {
color: var(--secondary-low);
font-size: var(--font-down-1);
}
&__header {
display: flex;
flex-direction: row;
align-items: center;
margin-bottom: 0.25rem;
}
&__title {
flex: 1 1 auto;
font-weight: bold;
}
&__unread-indicator {
flex: 0 0 auto;
}
&__open-button {
display: flex;
flex-direction: column;
box-sizing: border-box;
justify-content: center;
color: var(--primary);
&:hover,
&:visited {
color: var(--primary);
}
}
&__om-user-avatar {
margin-right: 0.5rem;
flex: 0 0 auto;
}
}