2021-05-09 07:48:34 +08:00
|
|
|
/*
|
2021-06-06 09:41:28 +08:00
|
|
|
Copyright 2021 Robin Townsend <robin@robin.town>
|
2021-05-09 07:48:34 +08:00
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_ForwardDialog {
|
|
|
|
width: 520px;
|
2021-08-12 17:27:12 +08:00
|
|
|
color: $primary-content;
|
2021-05-09 07:48:34 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
min-height: 0;
|
|
|
|
height: 80vh;
|
|
|
|
|
2021-05-22 00:41:29 +08:00
|
|
|
> h3 {
|
|
|
|
margin: 0 0 6px;
|
2021-08-12 17:30:35 +08:00
|
|
|
color: $secondary-content;
|
2021-05-22 00:41:29 +08:00
|
|
|
font-size: $font-12px;
|
|
|
|
font-weight: $font-semi-bold;
|
|
|
|
line-height: $font-15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .mx_ForwardDialog_preview {
|
2021-05-09 07:48:34 +08:00
|
|
|
max-height: 30%;
|
|
|
|
flex-shrink: 0;
|
2021-06-28 22:37:28 +08:00
|
|
|
overflow-y: auto;
|
2021-05-09 07:48:34 +08:00
|
|
|
|
2021-07-22 21:05:44 +08:00
|
|
|
.mx_EventTile[data-layout=bubble] {
|
|
|
|
margin-top: 20px;
|
|
|
|
}
|
|
|
|
|
2021-05-09 07:48:34 +08:00
|
|
|
div {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2021-05-11 01:57:47 +08:00
|
|
|
// When forwarding messages from encrypted rooms, EventTile will complain
|
|
|
|
// that our preview is unencrypted, which doesn't actually matter
|
2021-06-08 07:19:14 +08:00
|
|
|
// We also hide download links to not encourage users to try interacting
|
2022-01-04 16:53:39 +08:00
|
|
|
.mx_EventTile_msgOption,
|
|
|
|
.mx_EventTile_e2eIcon_unencrypted,
|
|
|
|
.mx_EventTile_e2eIcon_warning,
|
2021-06-08 07:19:14 +08:00
|
|
|
.mx_MFileBody_download {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-05-09 07:48:34 +08:00
|
|
|
}
|
|
|
|
|
2021-05-22 00:41:29 +08:00
|
|
|
> hr {
|
|
|
|
width: 100%;
|
|
|
|
border: none;
|
|
|
|
border-top: 1px solid $input-border-color;
|
|
|
|
margin: 12px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .mx_ForwardList {
|
2021-05-09 07:48:34 +08:00
|
|
|
display: contents;
|
|
|
|
|
|
|
|
.mx_SearchBox {
|
|
|
|
// To match the space around the title
|
|
|
|
margin: 0 0 15px 0;
|
|
|
|
flex-grow: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ForwardList_content {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ForwardList_noResults {
|
|
|
|
display: block;
|
|
|
|
margin-top: 24px;
|
|
|
|
}
|
|
|
|
|
2021-05-20 01:33:48 +08:00
|
|
|
.mx_ForwardList_results {
|
2021-05-09 07:48:34 +08:00
|
|
|
&:not(:first-child) {
|
|
|
|
margin-top: 24px;
|
|
|
|
}
|
|
|
|
|
2022-05-04 01:18:16 +08:00
|
|
|
.mx_ForwardList_resultsList {
|
|
|
|
padding-right: 8px;
|
|
|
|
}
|
|
|
|
|
2021-05-09 07:48:34 +08:00
|
|
|
.mx_ForwardList_entry {
|
|
|
|
display: flex;
|
2021-05-11 01:00:06 +08:00
|
|
|
justify-content: space-between;
|
2021-05-20 01:32:27 +08:00
|
|
|
height: 32px;
|
2021-05-22 00:41:29 +08:00
|
|
|
padding: 6px;
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
|
|
&:hover {
|
2022-03-23 07:07:37 +08:00
|
|
|
background-color: $spacePanel-bg-color;
|
2021-05-22 00:41:29 +08:00
|
|
|
}
|
2021-05-09 07:48:34 +08:00
|
|
|
|
2021-05-11 01:00:06 +08:00
|
|
|
.mx_ForwardList_roomButton {
|
|
|
|
display: flex;
|
2021-05-09 07:48:34 +08:00
|
|
|
margin-right: 12px;
|
2021-05-11 01:00:06 +08:00
|
|
|
min-width: 0;
|
|
|
|
|
2021-05-16 20:39:22 +08:00
|
|
|
.mx_DecoratedRoomAvatar {
|
2021-05-11 01:00:06 +08:00
|
|
|
margin-right: 12px;
|
|
|
|
}
|
|
|
|
|
2021-11-23 17:35:01 +08:00
|
|
|
.mx_ForwardList_entry_name,
|
|
|
|
.mx_ForwardList_entry_detail {
|
2021-05-11 01:00:06 +08:00
|
|
|
line-height: 30px;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
2021-11-23 17:35:01 +08: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-11 01:00:06 +08:00
|
|
|
}
|
2021-05-09 07:48:34 +08:00
|
|
|
}
|
|
|
|
|
2021-05-11 01:00:06 +08:00
|
|
|
.mx_ForwardList_sendButton {
|
2021-05-22 00:41:29 +08:00
|
|
|
position: relative;
|
2021-11-23 17:35:01 +08:00
|
|
|
margin-left: 12px;
|
2021-05-22 00:41:29 +08:00
|
|
|
|
|
|
|
&:not(.mx_ForwardList_canSend) .mx_ForwardList_sendLabel {
|
|
|
|
// Hide the "Send" label while preserving button size
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ForwardList_sendIcon, .mx_NotificationBadge {
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_NotificationBadge {
|
2021-06-02 05:56:46 +08:00
|
|
|
// Match the failed to send indicator's color with the disabled button
|
|
|
|
background-color: $button-danger-disabled-fg-color;
|
2021-05-09 07:48:34 +08:00
|
|
|
}
|
|
|
|
|
2021-05-22 00:41:29 +08:00
|
|
|
&.mx_ForwardList_sending .mx_ForwardList_sendIcon {
|
2021-11-11 21:37:29 +08:00
|
|
|
background-color: $accent;
|
2021-05-09 07:48:34 +08:00
|
|
|
mask-image: url('$(res)/img/element-icons/circle-sending.svg');
|
2021-05-22 00:41:29 +08:00
|
|
|
mask-position: center;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: 14px;
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
2021-05-09 07:48:34 +08:00
|
|
|
}
|
|
|
|
|
2021-05-22 00:41:29 +08:00
|
|
|
&.mx_ForwardList_sent .mx_ForwardList_sendIcon {
|
2021-11-11 21:37:29 +08:00
|
|
|
background-color: $accent;
|
2021-05-09 07:48:34 +08:00
|
|
|
mask-image: url('$(res)/img/element-icons/circle-sent.svg');
|
2021-05-22 00:41:29 +08:00
|
|
|
mask-position: center;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: 14px;
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
2021-05-09 07:48:34 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|