2020-08-25 19:58:35 +00:00
|
|
|
.pane {
|
2022-04-01 20:55:00 +00:00
|
|
|
@apply flex flex-col shadow-md rounded-t-md fixed bottom-0 right-5 w-[256px] h-[350px] z-[1000];
|
2020-08-25 22:07:07 +00:00
|
|
|
max-height: calc(100vh - 70px);
|
2020-08-27 18:04:16 +00:00
|
|
|
transition: 0.05s;
|
2020-08-25 02:26:42 +00:00
|
|
|
|
2020-08-25 22:07:07 +00:00
|
|
|
&--main {
|
|
|
|
height: calc(100vh - 70px);
|
2020-08-26 00:13:54 +00:00
|
|
|
|
2020-08-27 18:37:53 +00:00
|
|
|
.pane__header .pane__title {
|
2020-08-26 00:13:54 +00:00
|
|
|
font-size: 16px;
|
|
|
|
}
|
2020-08-25 22:07:07 +00:00
|
|
|
}
|
|
|
|
|
2020-08-25 23:45:05 +00:00
|
|
|
&--minimized {
|
2020-08-25 23:58:40 +00:00
|
|
|
height: 31px;
|
2020-08-25 23:45:05 +00:00
|
|
|
}
|
|
|
|
|
2021-10-14 17:23:51 +00:00
|
|
|
.search--account {
|
|
|
|
border-top: 1px solid hsla(var(--primary-text-color_hsl), 0.2);
|
2021-11-21 18:43:56 +00:00
|
|
|
padding: 5px;
|
2021-10-14 17:23:51 +00:00
|
|
|
|
2021-11-21 18:43:56 +00:00
|
|
|
input.search__input {
|
|
|
|
border-radius: 6px;
|
|
|
|
}
|
2021-10-14 17:23:51 +00:00
|
|
|
}
|
|
|
|
|
2020-08-25 02:26:42 +00:00
|
|
|
&__header {
|
2022-04-02 14:10:16 +00:00
|
|
|
@apply flex items-center py-0 px-2.5 box-border rounded-t-md font-bold bg-primary-600 text-white;
|
2020-08-25 23:45:05 +00:00
|
|
|
height: 31px;
|
2020-08-25 22:07:07 +00:00
|
|
|
|
|
|
|
.account__avatar {
|
|
|
|
margin-right: 7px;
|
|
|
|
}
|
|
|
|
|
2020-08-26 00:13:54 +00:00
|
|
|
.pane__title {
|
2020-08-25 22:07:07 +00:00
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2020-08-27 18:08:04 +00:00
|
|
|
flex: 1;
|
2020-08-26 00:13:54 +00:00
|
|
|
height: 100%;
|
|
|
|
background: transparent;
|
|
|
|
border: 0;
|
|
|
|
padding: 0;
|
|
|
|
color: #fff;
|
|
|
|
font-weight: bold;
|
|
|
|
text-align: left;
|
|
|
|
font-size: 14px;
|
2020-08-25 22:07:07 +00:00
|
|
|
}
|
2020-08-25 23:11:48 +00:00
|
|
|
|
|
|
|
.icon-button {
|
2021-09-28 01:47:44 +00:00
|
|
|
opacity: 0.7;
|
2021-10-06 00:29:16 +00:00
|
|
|
color: #fff;
|
2021-09-28 01:47:44 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2020-08-25 23:11:48 +00:00
|
|
|
|
|
|
|
> div {
|
|
|
|
margin-right: -6px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.pane__close {
|
|
|
|
margin-left: auto;
|
2021-09-28 01:47:44 +00:00
|
|
|
|
|
|
|
.svg-icon {
|
|
|
|
width: 18px;
|
|
|
|
height: 18px;
|
|
|
|
transform: translateY(2px);
|
|
|
|
}
|
2020-08-25 23:11:48 +00:00
|
|
|
}
|
2020-08-27 20:43:19 +00:00
|
|
|
|
|
|
|
.icon-with-badge__badge {
|
|
|
|
position: static;
|
|
|
|
pointer-events: none;
|
2020-08-27 21:41:24 +00:00
|
|
|
width: 18px;
|
|
|
|
height: 18px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
margin-right: 7px;
|
2020-08-27 20:43:19 +00:00
|
|
|
}
|
2020-08-25 02:26:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__content {
|
2022-04-01 20:55:00 +00:00
|
|
|
@apply flex flex-1 flex-col overflow-hidden bg-white dark:bg-slate-800;
|
2020-08-25 22:07:07 +00:00
|
|
|
|
2022-04-15 20:19:34 +00:00
|
|
|
> div {
|
|
|
|
@apply max-h-full;
|
|
|
|
}
|
|
|
|
|
2020-08-28 18:17:19 +00:00
|
|
|
.chat-box {
|
2022-04-01 20:55:00 +00:00
|
|
|
@apply flex flex-1 flex-col overflow-hidden;
|
2020-08-25 22:07:07 +00:00
|
|
|
}
|
2021-12-12 19:45:59 +00:00
|
|
|
|
|
|
|
.chat-list {
|
2022-04-15 20:19:34 +00:00
|
|
|
@apply overflow-y-auto max-h-full;
|
2021-12-12 19:45:59 +00:00
|
|
|
}
|
2020-08-25 02:26:42 +00:00
|
|
|
}
|
2020-09-06 21:54:45 +00:00
|
|
|
|
|
|
|
.audio-toggle .react-toggle-thumb {
|
2022-05-28 00:22:56 +00:00
|
|
|
@apply w-3.5 h-3.5 border border-solid border-primary-400;
|
2020-09-06 21:54:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.audio-toggle .react-toggle {
|
2022-05-28 00:22:56 +00:00
|
|
|
@apply top-1;
|
2020-09-06 21:54:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.audio-toggle .react-toggle-track {
|
2022-05-28 00:22:56 +00:00
|
|
|
@apply h-4 w-8 bg-accent-500;
|
2020-09-06 21:54:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.audio-toggle .react-toggle-track-check {
|
2022-05-28 00:22:56 +00:00
|
|
|
left: 4px;
|
|
|
|
bottom: 0;
|
2020-09-06 21:54:45 +00:00
|
|
|
}
|
|
|
|
|
2020-09-18 03:59:23 +00:00
|
|
|
.react-toggle--checked .react-toggle-thumb {
|
|
|
|
left: 19px;
|
|
|
|
}
|
|
|
|
|
2020-09-06 21:54:45 +00:00
|
|
|
.audio-toggle .react-toggle-track-x {
|
2022-05-28 00:22:56 +00:00
|
|
|
right: 5px;
|
|
|
|
bottom: 0;
|
2020-09-06 21:54:45 +00:00
|
|
|
}
|
|
|
|
|
2020-09-18 03:59:23 +00:00
|
|
|
.fa {
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
2020-08-25 02:26:42 +00:00
|
|
|
}
|
2020-08-26 02:03:10 +00:00
|
|
|
|
|
|
|
.chat-messages {
|
|
|
|
overflow-y: scroll;
|
2020-08-26 16:54:22 +00:00
|
|
|
flex: 1;
|
2020-08-26 02:03:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.chat-message {
|
2020-09-07 21:07:05 +00:00
|
|
|
margin: 14px 10px;
|
2020-08-26 05:21:54 +00:00
|
|
|
display: flex;
|
2020-08-26 02:03:10 +00:00
|
|
|
|
|
|
|
&__bubble {
|
2022-04-02 14:10:16 +00:00
|
|
|
@apply px-2.5 py-1 rounded-lg bg-primary-50 dark:bg-slate-700;
|
2020-08-26 02:03:10 +00:00
|
|
|
max-width: 70%;
|
2020-08-27 05:33:57 +00:00
|
|
|
text-overflow: ellipsis;
|
2020-09-03 19:57:58 +00:00
|
|
|
overflow-wrap: break-word;
|
|
|
|
white-space: break-spaces;
|
2020-09-22 22:00:01 +00:00
|
|
|
position: relative;
|
2020-08-27 05:33:57 +00:00
|
|
|
|
|
|
|
a {
|
|
|
|
color: var(--brand-color--hicontrast);
|
|
|
|
}
|
2020-09-22 22:00:01 +00:00
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
2022-01-06 18:05:24 +00:00
|
|
|
&:active {
|
2020-09-22 22:00:01 +00:00
|
|
|
.chat-message__menu {
|
|
|
|
opacity: 1;
|
|
|
|
pointer-events: all;
|
|
|
|
}
|
|
|
|
}
|
2021-07-09 19:22:01 +00:00
|
|
|
|
|
|
|
&--onlyEmoji {
|
2021-07-09 21:51:47 +00:00
|
|
|
background: transparent !important;
|
2021-07-09 19:22:01 +00:00
|
|
|
|
|
|
|
img.emojione {
|
|
|
|
width: 36px !important;
|
|
|
|
height: 36px !important;
|
|
|
|
}
|
|
|
|
}
|
2020-08-26 02:03:10 +00:00
|
|
|
}
|
2020-08-26 05:21:54 +00:00
|
|
|
|
|
|
|
&--me .chat-message__bubble {
|
2022-04-02 14:10:16 +00:00
|
|
|
@apply bg-primary-200 dark:bg-primary-900;
|
2020-08-26 05:21:54 +00:00
|
|
|
margin-left: auto;
|
|
|
|
}
|
2020-08-27 17:50:08 +00:00
|
|
|
|
|
|
|
&--pending .chat-message__bubble {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
2020-09-22 22:00:01 +00:00
|
|
|
|
|
|
|
&__menu {
|
|
|
|
position: absolute;
|
|
|
|
top: -8px;
|
|
|
|
right: -8px;
|
2021-12-14 18:48:18 +00:00
|
|
|
height: 20px;
|
|
|
|
padding: 1px;
|
2020-09-22 22:00:01 +00:00
|
|
|
background: var(--background-color);
|
|
|
|
border-radius: 999px;
|
|
|
|
opacity: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
transition: 0.2s;
|
2021-12-14 18:48:18 +00:00
|
|
|
|
|
|
|
.svg-icon {
|
|
|
|
height: 20px;
|
|
|
|
width: 20px;
|
|
|
|
}
|
2020-09-22 22:00:01 +00:00
|
|
|
}
|
2020-08-26 02:03:10 +00:00
|
|
|
}
|
2020-08-27 17:53:44 +00:00
|
|
|
|
|
|
|
.chat-list {
|
2020-08-27 19:02:52 +00:00
|
|
|
flex: 1;
|
|
|
|
|
|
|
|
&__content {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.empty-column-indicator {
|
|
|
|
height: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
background: transparent;
|
|
|
|
align-items: start;
|
|
|
|
}
|
2020-08-27 20:43:19 +00:00
|
|
|
|
2021-12-12 19:45:59 +00:00
|
|
|
.account {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
|
2020-08-27 20:43:19 +00:00
|
|
|
.account__display-name {
|
|
|
|
position: relative;
|
2020-08-31 00:31:09 +00:00
|
|
|
|
|
|
|
.display-name {
|
|
|
|
display: flex;
|
|
|
|
|
2020-09-11 21:02:51 +00:00
|
|
|
.hover-ref-wrapper {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
2020-08-31 00:31:09 +00:00
|
|
|
bdi {
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
.display-name__account {
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
flex: 1;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2020-08-27 20:43:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.icon-with-badge__badge {
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
left: auto;
|
|
|
|
bottom: auto;
|
|
|
|
}
|
2020-08-27 17:53:44 +00:00
|
|
|
}
|
2020-08-28 18:17:19 +00:00
|
|
|
|
|
|
|
.chat-box {
|
2020-09-06 22:09:06 +00:00
|
|
|
&__attachment {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
font-size: 13px;
|
|
|
|
padding: 0 10px;
|
|
|
|
height: 25px;
|
|
|
|
|
|
|
|
.chat-box__remove-attachment {
|
|
|
|
margin-left: auto;
|
|
|
|
|
|
|
|
.icon-button > div {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-28 18:17:19 +00:00
|
|
|
&__actions {
|
|
|
|
background: var(--foreground-color);
|
|
|
|
margin-top: auto;
|
|
|
|
padding: 6px;
|
2020-09-06 02:48:25 +00:00
|
|
|
position: relative;
|
|
|
|
|
2020-08-28 18:17:19 +00:00
|
|
|
textarea {
|
|
|
|
width: 100%;
|
2020-08-28 20:38:38 +00:00
|
|
|
height: 100%;
|
2020-08-28 18:17:19 +00:00
|
|
|
margin: 0;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: 6px;
|
2020-09-06 02:48:25 +00:00
|
|
|
padding-right: 25px;
|
2020-08-28 18:17:19 +00:00
|
|
|
background: var(--background-color);
|
|
|
|
border: 0;
|
|
|
|
border-radius: 6px;
|
|
|
|
color: var(--primary-text-color);
|
|
|
|
font-size: 15px;
|
2020-09-06 02:48:25 +00:00
|
|
|
overflow: hidden;
|
2020-08-28 18:17:19 +00:00
|
|
|
}
|
|
|
|
}
|
2022-04-02 14:10:16 +00:00
|
|
|
|
|
|
|
&__send {
|
|
|
|
.icon-button,
|
|
|
|
button {
|
|
|
|
@apply absolute right-2.5 w-auto h-auto border-0 p-0 m-0 text-black dark:text-white;
|
|
|
|
top: 50%;
|
|
|
|
transform: translateY(-50%);
|
|
|
|
|
|
|
|
.svg-icon,
|
|
|
|
svg {
|
|
|
|
@apply w-[18px] h-[18px];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-08-28 18:17:19 +00:00
|
|
|
}
|
2020-08-28 18:27:40 +00:00
|
|
|
|
2020-10-11 21:23:19 +00:00
|
|
|
@media (max-width: 630px) {
|
2020-08-28 20:22:33 +00:00
|
|
|
.chat-panes {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-28 21:26:42 +00:00
|
|
|
.chatroom__header {
|
|
|
|
display: flex;
|
|
|
|
margin-left: auto;
|
|
|
|
padding-right: 15px;
|
|
|
|
overflow: hidden;
|
2020-09-12 00:47:45 +00:00
|
|
|
text-decoration: none;
|
2020-08-28 21:26:42 +00:00
|
|
|
|
|
|
|
.account__avatar {
|
|
|
|
margin-right: 7px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chatroom__title {
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
flex: 1;
|
|
|
|
height: 100%;
|
|
|
|
background: transparent;
|
|
|
|
border: 0;
|
|
|
|
padding: 0;
|
2020-09-03 18:03:30 +00:00
|
|
|
color: var(--primary-text-color);
|
2020-08-28 21:26:42 +00:00
|
|
|
font-weight: bold;
|
|
|
|
text-align: left;
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.chatroom__back {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
background: var(--accent-color--faint);
|
|
|
|
|
|
|
|
.column-back-button {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
}
|
2020-08-31 00:31:09 +00:00
|
|
|
|
|
|
|
.chat {
|
2021-11-21 18:29:16 +00:00
|
|
|
&__attachment-icon {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
2020-08-31 00:31:09 +00:00
|
|
|
&__last-message {
|
|
|
|
display: block;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
2022-03-10 18:03:18 +00:00
|
|
|
max-height: 19px;
|
2020-09-01 05:05:00 +00:00
|
|
|
|
|
|
|
a {
|
|
|
|
color: var(--highlight-text-color);
|
|
|
|
}
|
2021-11-21 18:29:16 +00:00
|
|
|
|
|
|
|
&.attachment {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
2020-08-31 00:31:09 +00:00
|
|
|
}
|
|
|
|
}
|
2020-09-05 01:17:03 +00:00
|
|
|
|
2020-09-08 00:13:59 +00:00
|
|
|
.chat-message__media {
|
|
|
|
height: 120px;
|
|
|
|
}
|
|
|
|
|
2020-09-05 21:39:57 +00:00
|
|
|
.chat-message .media-gallery {
|
2020-09-08 00:13:59 +00:00
|
|
|
height: 100% !important;
|
2020-09-06 19:15:06 +00:00
|
|
|
margin: 4px 0 8px;
|
2020-09-05 21:39:57 +00:00
|
|
|
|
|
|
|
.spoiler-button {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2020-09-06 22:20:26 +00:00
|
|
|
.media-gallery__item:not(.media-gallery__item--image) {
|
|
|
|
max-width: 100%;
|
|
|
|
width: 120px !important;
|
2020-09-08 00:13:59 +00:00
|
|
|
height: 100% !important;
|
2020-09-06 22:20:26 +00:00
|
|
|
}
|
|
|
|
|
2020-09-06 21:50:54 +00:00
|
|
|
&__preview {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
2020-09-05 21:39:57 +00:00
|
|
|
&__item-thumbnail img,
|
|
|
|
&__item-thumbnail .still-image img {
|
|
|
|
object-fit: contain;
|
|
|
|
}
|
2020-09-05 01:17:03 +00:00
|
|
|
}
|
2020-09-18 23:51:22 +00:00
|
|
|
|
|
|
|
.chat-messages__divider {
|
2022-04-02 14:10:16 +00:00
|
|
|
@apply pt-3.5 pb-0.5 text-center uppercase text-black dark:text-white;
|
2020-09-18 23:51:22 +00:00
|
|
|
font-size: 13px;
|
|
|
|
opacity: 0.8;
|
|
|
|
}
|