157 lines
3.1 KiB
SCSS
157 lines
3.1 KiB
SCSS
.chat-list-item {
|
|
&:hover .animated.avatar {
|
|
canvas {
|
|
display: none;
|
|
}
|
|
img {
|
|
visibility: visible;
|
|
}
|
|
}
|
|
|
|
display: flex;
|
|
flex-direction: row;
|
|
|
|
padding: 0.75em;
|
|
height: 4.85em;
|
|
overflow: hidden;
|
|
box-sizing: border-box;
|
|
cursor: pointer;
|
|
|
|
:focus {
|
|
outline: none;
|
|
}
|
|
|
|
&:hover {
|
|
background-color: var(--selectedPost, $fallback--lightBg);
|
|
box-shadow: 0 0px 3px 1px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.chat-list-item-left {
|
|
margin-right: 1em;
|
|
}
|
|
|
|
.chat-list-item-center {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
overflow: hidden;
|
|
word-wrap: break-word;
|
|
|
|
.chat-preview {
|
|
display: inline-flex;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
margin: 0.35rem 0;
|
|
height: 16px;
|
|
color: $fallback--text;
|
|
color: var(--faintText, $fallback--text);
|
|
width: 100%;
|
|
justify-content: space-between;
|
|
line-height: 1em;
|
|
|
|
.unread-indicator-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-left: 10px;
|
|
|
|
.unread-indicator {
|
|
border-radius: 100%;
|
|
height: 8px;
|
|
width: 8px;
|
|
background-color: $fallback--link;
|
|
background-color: var(--link, $fallback--link);
|
|
}
|
|
}
|
|
|
|
.content {
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
flex: 1;
|
|
margin-right: 15px;
|
|
}
|
|
|
|
.faint-link {
|
|
color: var(--faintLink, $fallback--link);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.account-name {
|
|
min-width: 1.6em;
|
|
margin-right: 0.2em;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
color: var(--faintLink, $fallback--link);
|
|
}
|
|
|
|
.user-name {
|
|
margin-right: 0.4em;
|
|
flex-shrink: 1;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
font-size: 14px;
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
max-width: 55%;
|
|
font-weight: bold;
|
|
|
|
img {
|
|
width: 14px;
|
|
height: 14px;
|
|
vertical-align: middle;
|
|
object-fit: contain
|
|
}
|
|
}
|
|
|
|
a {
|
|
color: $fallback--link;
|
|
color: var(--faintLink, $fallback--link);
|
|
}
|
|
|
|
p {
|
|
margin: 0;
|
|
display: inline;
|
|
word-wrap: break-word;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
img, video {
|
|
max-width: 100%;
|
|
max-height: 400px;
|
|
vertical-align: middle;
|
|
|
|
&.emoji {
|
|
width: 1.125rem;
|
|
height: 1.125rem;
|
|
}
|
|
}
|
|
}
|
|
|
|
.heading {
|
|
width: 100%;
|
|
display: inline-flex;
|
|
justify-content: space-between;
|
|
line-height: 1em;
|
|
|
|
.heading-right {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.member-count {
|
|
color: $fallback--text;
|
|
color: var(--faintText, $fallback--text);
|
|
margin-right: 2px;
|
|
}
|
|
|
|
.name-and-account-name {
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
flex-shrink: 1;
|
|
}
|
|
}
|
|
}
|
|
}
|