2021-05-08 23:48:34 +00:00
|
|
|
/*
|
2024-09-09 13:57:16 +00:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2021-06-06 01:41:28 +00:00
|
|
|
Copyright 2021 Robin Townsend <robin@robin.town>
|
2021-05-08 23:48:34 +00:00
|
|
|
|
2024-09-09 13:57:16 +00:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2021-05-08 23:48:34 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_ForwardDialog {
|
|
|
|
width: 520px;
|
2021-08-12 09:27:12 +00:00
|
|
|
color: $primary-content;
|
2021-05-08 23:48:34 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
min-height: 0;
|
|
|
|
height: 80vh;
|
|
|
|
|
2021-05-21 16:41:29 +00:00
|
|
|
> h3 {
|
|
|
|
margin: 0 0 6px;
|
2021-08-12 09:30:35 +00:00
|
|
|
color: $secondary-content;
|
2021-05-21 16:41:29 +00:00
|
|
|
font-size: $font-12px;
|
2023-06-29 10:30:25 +00:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2021-05-21 16:41:29 +00:00
|
|
|
line-height: $font-15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .mx_ForwardDialog_preview {
|
2021-05-08 23:48:34 +00:00
|
|
|
max-height: 30%;
|
|
|
|
flex-shrink: 0;
|
2021-06-28 14:37:28 +00:00
|
|
|
overflow-y: auto;
|
2021-05-08 23:48:34 +00:00
|
|
|
|
2022-07-15 13:53:23 +00:00
|
|
|
.mx_EventTile[data-layout="bubble"] {
|
2021-07-22 13:05:44 +00:00
|
|
|
margin-top: 20px;
|
|
|
|
}
|
|
|
|
|
2021-05-08 23:48:34 +00:00
|
|
|
div {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2022-07-27 13:39:29 +00:00
|
|
|
/* When forwarding messages from encrypted rooms, EventTile will complain */
|
|
|
|
/* that our preview is unencrypted, which doesn't actually matter */
|
|
|
|
/* We also hide download links to not encourage users to try interacting */
|
2022-01-04 08:53:39 +00:00
|
|
|
.mx_EventTile_msgOption,
|
|
|
|
.mx_EventTile_e2eIcon_unencrypted,
|
|
|
|
.mx_EventTile_e2eIcon_warning,
|
2021-06-07 23:19:14 +00:00
|
|
|
.mx_MFileBody_download {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-05-08 23:48:34 +00:00
|
|
|
}
|
|
|
|
|
2021-05-21 16:41:29 +00:00
|
|
|
> hr {
|
|
|
|
width: 100%;
|
|
|
|
border: none;
|
|
|
|
border-top: 1px solid $input-border-color;
|
|
|
|
margin: 12px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .mx_ForwardList {
|
2021-05-08 23:48:34 +00:00
|
|
|
display: contents;
|
|
|
|
|
|
|
|
.mx_SearchBox {
|
2022-07-27 13:39:29 +00:00
|
|
|
/* To match the space around the title */
|
2021-05-08 23:48:34 +00:00
|
|
|
margin: 0 0 15px 0;
|
|
|
|
flex-grow: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ForwardList_content {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ForwardList_noResults {
|
|
|
|
display: block;
|
|
|
|
margin-top: 24px;
|
|
|
|
}
|
|
|
|
|
2021-05-19 17:33:48 +00:00
|
|
|
.mx_ForwardList_results {
|
2021-05-08 23:48:34 +00:00
|
|
|
&:not(:first-child) {
|
|
|
|
margin-top: 24px;
|
|
|
|
}
|
|
|
|
|
2022-05-03 17:18:16 +00:00
|
|
|
.mx_ForwardList_resultsList {
|
|
|
|
padding-right: 8px;
|
|
|
|
}
|
|
|
|
|
2021-05-08 23:48:34 +00:00
|
|
|
.mx_ForwardList_entry {
|
|
|
|
display: flex;
|
2021-05-10 17:00:06 +00:00
|
|
|
justify-content: space-between;
|
2021-05-19 17:32:27 +00:00
|
|
|
height: 32px;
|
2021-05-21 16:41:29 +00:00
|
|
|
padding: 6px;
|
|
|
|
border-radius: 8px;
|
|
|
|
|
2024-03-08 14:45:15 +00:00
|
|
|
&:hover,
|
|
|
|
&.mx_ForwardList_entry_active {
|
2022-03-22 23:07:37 +00:00
|
|
|
background-color: $spacePanel-bg-color;
|
2021-05-21 16:41:29 +00:00
|
|
|
}
|
2021-05-08 23:48:34 +00:00
|
|
|
|
2021-05-10 17:00:06 +00:00
|
|
|
.mx_ForwardList_roomButton {
|
|
|
|
display: flex;
|
2021-05-08 23:48:34 +00:00
|
|
|
margin-right: 12px;
|
2021-05-10 17:00:06 +00:00
|
|
|
min-width: 0;
|
|
|
|
|
2021-05-16 12:39:22 +00:00
|
|
|
.mx_DecoratedRoomAvatar {
|
2021-05-10 17:00:06 +00:00
|
|
|
margin-right: 12px;
|
|
|
|
}
|
|
|
|
|
2021-11-23 09:35:01 +00:00
|
|
|
.mx_ForwardList_entry_name,
|
|
|
|
.mx_ForwardList_entry_detail {
|
2021-05-10 17:00:06 +00:00
|
|
|
line-height: 30px;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
2021-11-23 09:35:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ForwardList_entry_name {
|
|
|
|
font-size: $font-15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ForwardList_entry_detail {
|
|
|
|
font-size: $font-12px;
|
|
|
|
margin-left: 8px;
|
|
|
|
color: $tertiary-content;
|
2021-05-10 17:00:06 +00:00
|
|
|
}
|
2021-05-08 23:48:34 +00:00
|
|
|
}
|
|
|
|
|
2021-05-10 17:00:06 +00:00
|
|
|
.mx_ForwardList_sendButton {
|
2021-05-21 16:41:29 +00:00
|
|
|
position: relative;
|
2021-11-23 09:35:01 +00:00
|
|
|
margin-left: 12px;
|
2021-05-21 16:41:29 +00:00
|
|
|
|
|
|
|
&:not(.mx_ForwardList_canSend) .mx_ForwardList_sendLabel {
|
2022-07-27 13:39:29 +00:00
|
|
|
/* Hide the "Send" label while preserving button size */
|
2021-05-21 16:41:29 +00:00
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
2022-12-12 11:24:14 +00:00
|
|
|
.mx_ForwardList_sendIcon,
|
|
|
|
.mx_NotificationBadge {
|
2021-05-21 16:41:29 +00:00
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_NotificationBadge {
|
2022-07-27 13:39:29 +00:00
|
|
|
/* Match the failed to send indicator's color with the disabled button */
|
2021-06-01 21:56:46 +00:00
|
|
|
background-color: $button-danger-disabled-fg-color;
|
2021-05-08 23:48:34 +00:00
|
|
|
}
|
|
|
|
|
2021-05-21 16:41:29 +00:00
|
|
|
&.mx_ForwardList_sending .mx_ForwardList_sendIcon {
|
2021-11-11 13:37:29 +00:00
|
|
|
background-color: $accent;
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/element-icons/circle-sending.svg");
|
2021-05-21 16:41:29 +00:00
|
|
|
mask-position: center;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: 14px;
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
2021-05-08 23:48:34 +00:00
|
|
|
}
|
|
|
|
|
2021-05-21 16:41:29 +00:00
|
|
|
&.mx_ForwardList_sent .mx_ForwardList_sendIcon {
|
2021-11-11 13:37:29 +00:00
|
|
|
background-color: $accent;
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/element-icons/circle-sent.svg");
|
2021-05-21 16:41:29 +00:00
|
|
|
mask-position: center;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: 14px;
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
2021-05-08 23:48:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|