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

169 lines
2.7 KiB
SCSS
Raw Normal View History

2020-05-07 16:10:53 +03:00
.chat-message-wrapper {
&.hovered-message-chain {
.animated.Avatar {
2020-05-07 16:10:53 +03:00
canvas {
display: none;
}
2023-01-09 13:02:16 -05:00
2020-05-07 16:10:53 +03:00
img {
visibility: visible;
}
}
}
2026-07-10 17:09:17 +03:00
.chat-message-toolbar {
2020-05-07 16:10:53 +03:00
transition: opacity 0.1s;
opacity: 0;
position: absolute;
top: -0.8em;
2026-07-10 17:09:17 +03:00
right: 0.4rem;
z-index: 10;
2020-05-07 16:10:53 +03:00
2026-07-10 17:09:17 +03:00
.quick-action-buttons {
justify-items: end;
grid-template-columns: auto auto auto;
}
.simple-button {
padding-top: 0.2em;
padding-bottom: 0.2em;
2020-05-07 16:10:53 +03:00
}
2026-07-10 17:09:17 +03:00
&.-visible {
opacity: 1;
}
2020-05-07 16:10:53 +03:00
}
.menu-icon {
2020-05-07 16:10:53 +03:00
cursor: pointer;
}
2026-07-10 17:09:17 +03:00
.reply-to-header {
white-space: nowrap;
width: 100%;
display: flex;
align-items: baseline;
gap: 0.5em;
.reply-label {
display: inline-block;
line-height: 1;
}
.reply-body {
line-height: 1;
display: inline-block;
overflow-x: hidden;
text-overflow: ellipsis;
}
}
2020-05-07 16:10:53 +03:00
.popover {
width: 12em;
2020-05-07 16:10:53 +03:00
}
.chat-message {
display: flex;
.status-body:hover {
--_still-image-img-visibility: visible;
--_still-image-canvas-visibility: hidden;
--_still-image-label-visibility: hidden;
}
2020-05-07 16:10:53 +03:00
}
.avatar-wrapper {
margin-right: 0.72em;
2020-05-07 16:10:53 +03:00
width: 32px;
}
2023-01-09 13:02:16 -05:00
.link-preview,
.attachments {
margin-bottom: 1em;
2020-05-07 16:10:53 +03:00
}
.status {
2024-02-19 15:11:59 +02:00
background-color: var(--background);
color: var(--text);
border-radius: var(--roundness);
2020-05-07 16:10:53 +03:00
display: flex;
padding: 0.75em;
2024-02-19 15:11:59 +02:00
border: 1px solid var(--border);
2020-05-07 16:10:53 +03:00
}
.created-at {
position: relative;
2020-05-07 16:10:53 +03:00
float: right;
font-size: 0.8em;
2023-01-09 13:02:16 -05:00
margin: -1em 0 -0.5em;
2020-05-07 16:10:53 +03:00
font-style: italic;
}
.without-attachment {
.message-content {
// TODO figure out how to do it properly
2021-06-16 12:44:04 +03:00
.RichContent::after {
margin-right: 5.4em;
2020-05-07 16:10:53 +03:00
content: " ";
display: inline-block;
}
}
}
2020-10-29 13:33:06 +03:00
.pending {
2023-01-09 13:02:16 -05:00
.status-content.media-body,
.created-at {
2020-10-29 13:33:06 +03:00
color: var(--faint);
}
}
.error {
2023-01-09 13:02:16 -05:00
.status-content.media-body,
.created-at {
color: var(--badgeNotification);
2020-10-29 13:33:06 +03:00
}
}
2023-01-09 13:02:16 -05:00
.chat-message-inner {
display: flex;
flex-direction: column;
align-items: flex-start;
max-width: 80%;
min-width: 10em;
width: 100%;
}
.-outgoing {
2023-01-09 13:02:16 -05:00
display: flex;
flex-flow: row wrap;
2025-03-31 12:51:17 +03:00
place-content: end flex-end;
2023-01-09 13:02:16 -05:00
.chat-message-inner {
align-items: flex-end;
}
2026-07-10 17:09:17 +03:00
.reply-to-header {
justify-content: end;
}
2020-05-07 16:10:53 +03:00
}
2023-01-09 13:02:16 -05:00
.chat-message-inner.with-media {
width: 100%;
2020-05-07 16:10:53 +03:00
.status {
2023-01-09 13:02:16 -05:00
width: 100%;
}
}
.visible {
opacity: 1;
2020-05-07 16:10:53 +03:00
}
}
.chat-message-date-separator {
text-align: center;
font-size: 0.9em;
2026-07-09 01:07:59 +03:00
line-height: 2;
2020-05-07 16:10:53 +03:00
user-select: none;
color: var(--textFaint);
2020-05-07 16:10:53 +03:00
}