pleroma-fe/src/components/chat_list_item/chat_list_item.scss

78 lines
1.2 KiB
SCSS
Raw Normal View History

2020-05-07 15:10:53 +02:00
.chat-list-item {
display: flex;
flex-direction: row;
overflow: hidden;
box-sizing: border-box;
cursor: pointer;
:focus {
outline: none;
}
.chat-list-item-left {
margin-right: 1em;
}
.chat-list-item-center {
width: 100%;
box-sizing: border-box;
overflow: hidden;
word-wrap: break-word;
}
.heading {
width: 100%;
2024-02-29 16:49:56 +01:00
display: flex;
2020-05-07 15:10:53 +02:00
justify-content: space-between;
line-height: 1em;
}
.heading-right {
white-space: nowrap;
}
.name-and-account-name {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
flex-shrink: 1;
line-height: var(--post-line-height);
2020-05-07 15:10:53 +02:00
}
.chat-preview {
2024-02-29 16:49:56 +01:00
display: flex;
2020-05-07 15:10:53 +02:00
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
margin: 0.35em 0;
2024-03-04 21:31:40 +01:00
color: var(--textFaint);
width: 100%;
2020-05-07 15:10:53 +02:00
}
a {
2024-03-04 21:31:40 +01:00
color: var(--linkFaint);
2020-05-07 15:10:53 +02:00
text-decoration: none;
pointer-events: none;
}
&:hover .animated.avatar {
canvas {
display: none;
}
2023-01-09 19:02:16 +01:00
img {
visibility: visible;
}
2020-05-07 15:10:53 +02:00
}
.chat-preview-body {
--emoji-size: 1.4em;
2023-01-09 19:02:16 +01:00
padding-right: 1em;
2020-05-07 15:10:53 +02:00
}
.time-wrapper {
line-height: var(--post-line-height);
}
2020-05-07 15:10:53 +02:00
}