2020-01-03 00:40:18 +00:00
|
|
|
/*
|
|
|
|
Copyright 2019, 2020 The Matrix.org Foundation C.I.C.
|
|
|
|
|
|
|
|
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.
|
|
|
|
*/
|
|
|
|
|
2022-06-02 13:59:40 +00:00
|
|
|
.mx_InviteDialog_flexWrapper .mx_Dialog {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
2021-07-15 08:55:58 +00:00
|
|
|
.mx_InviteDialog_transferWrapper .mx_Dialog {
|
|
|
|
padding-bottom: 16px;
|
|
|
|
}
|
|
|
|
|
2020-01-16 20:42:34 +00:00
|
|
|
.mx_InviteDialog_addressBar {
|
2020-01-03 00:47:26 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2021-05-28 12:11:48 +00:00
|
|
|
// Right margin for the design. We could apply this to the whole dialog, but then the scrollbar
|
|
|
|
// for the user section gets weird.
|
|
|
|
margin: 8px 45px 0 0;
|
2020-01-03 00:47:26 +00:00
|
|
|
|
2020-01-16 20:42:34 +00:00
|
|
|
.mx_InviteDialog_editor {
|
2020-01-03 00:47:26 +00:00
|
|
|
flex: 1;
|
|
|
|
width: 100%; // Needed to make the Field inside grow
|
2021-08-25 09:49:02 +00:00
|
|
|
background-color: $header-panel-bg-color;
|
2020-01-07 03:51:23 +00:00
|
|
|
border-radius: 4px;
|
|
|
|
min-height: 25px;
|
|
|
|
padding-left: 8px;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
2020-11-03 13:14:35 +00:00
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
2020-01-07 03:51:23 +00:00
|
|
|
|
2020-01-16 20:42:34 +00:00
|
|
|
.mx_InviteDialog_userTile {
|
2020-11-03 13:14:35 +00:00
|
|
|
margin: 6px 6px 0 0;
|
2020-01-07 03:51:23 +00:00
|
|
|
display: inline-block;
|
2020-11-03 13:14:35 +00:00
|
|
|
min-width: max-content; // prevent manipulation by flexbox
|
2020-01-07 03:51:23 +00:00
|
|
|
}
|
|
|
|
|
2022-03-22 23:07:37 +00:00
|
|
|
// overrides bunch of our default text input styles
|
2020-11-03 14:56:06 +00:00
|
|
|
> input[type="text"] {
|
2020-11-03 13:14:35 +00:00
|
|
|
margin: 6px 0 !important;
|
|
|
|
height: 24px;
|
|
|
|
line-height: $font-24px;
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-14px;
|
2020-01-07 03:51:23 +00:00
|
|
|
padding-left: 12px;
|
|
|
|
border: 0 !important;
|
|
|
|
outline: 0 !important;
|
|
|
|
resize: none;
|
|
|
|
box-sizing: border-box;
|
2020-11-03 13:14:35 +00:00
|
|
|
min-width: 40%;
|
|
|
|
flex: 1 !important;
|
2021-08-12 09:27:12 +00:00
|
|
|
color: $primary-content !important;
|
2020-01-07 03:51:23 +00:00
|
|
|
}
|
2020-01-03 00:47:26 +00:00
|
|
|
}
|
|
|
|
|
2020-01-16 20:42:34 +00:00
|
|
|
.mx_InviteDialog_goButton {
|
2020-02-02 16:31:06 +00:00
|
|
|
min-width: 48px;
|
2020-01-03 00:47:26 +00:00
|
|
|
margin-left: 10px;
|
2020-01-07 03:51:23 +00:00
|
|
|
height: 25px;
|
2020-03-31 14:26:23 +00:00
|
|
|
line-height: $font-25px;
|
2020-01-03 00:47:26 +00:00
|
|
|
}
|
2020-01-15 06:32:00 +00:00
|
|
|
|
2020-01-16 20:42:34 +00:00
|
|
|
.mx_InviteDialog_buttonAndSpinner {
|
2020-01-15 06:32:00 +00:00
|
|
|
.mx_Spinner {
|
|
|
|
// Width and height are required to trick the layout engine.
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
margin-left: 5px;
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
}
|
2020-01-03 00:40:18 +00:00
|
|
|
}
|
|
|
|
|
2020-01-16 20:42:34 +00:00
|
|
|
.mx_InviteDialog_section {
|
2021-05-28 12:00:18 +00:00
|
|
|
padding-bottom: 4px;
|
2020-01-03 00:47:26 +00:00
|
|
|
|
|
|
|
h3 {
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-12px;
|
2020-01-03 00:47:26 +00:00
|
|
|
color: $muted-fg-color;
|
|
|
|
font-weight: bold;
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
2020-08-28 16:03:27 +00:00
|
|
|
|
2021-05-27 14:51:25 +00:00
|
|
|
> p {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
> span {
|
2021-08-12 09:27:12 +00:00
|
|
|
color: $primary-content;
|
2021-05-27 14:51:25 +00:00
|
|
|
}
|
2022-03-23 17:15:15 +00:00
|
|
|
|
|
|
|
.mx_InviteDialog_section_showMore {
|
|
|
|
margin: 7px 18px;
|
2022-03-24 13:35:19 +00:00
|
|
|
display: block;
|
2022-03-23 17:15:15 +00:00
|
|
|
}
|
2020-01-03 00:40:18 +00:00
|
|
|
}
|
|
|
|
|
2021-05-28 12:00:18 +00:00
|
|
|
.mx_InviteDialog_section_hidden_suggestions_disclaimer {
|
|
|
|
padding: 8px 0 16px 0;
|
|
|
|
font-size: $font-14px;
|
|
|
|
|
|
|
|
> span {
|
2021-08-12 09:27:12 +00:00
|
|
|
color: $primary-content;
|
2021-05-28 12:00:18 +00:00
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
|
|
|
> p {
|
2021-05-28 12:08:05 +00:00
|
|
|
margin: 0;
|
2021-05-28 12:00:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-27 14:51:25 +00:00
|
|
|
.mx_InviteDialog_footer {
|
|
|
|
border-top: 1px solid $input-border-color;
|
|
|
|
|
|
|
|
> h3 {
|
2021-05-28 12:00:18 +00:00
|
|
|
margin: 12px 0;
|
2021-05-27 14:51:25 +00:00
|
|
|
font-size: $font-12px;
|
|
|
|
color: $muted-fg-color;
|
|
|
|
font-weight: bold;
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
|
|
|
|
2022-06-02 13:59:40 +00:00
|
|
|
.mx_CopyableText.mx_CopyableText_border {
|
2022-02-02 12:16:00 +00:00
|
|
|
width: unset; // full width
|
2022-06-02 13:59:40 +00:00
|
|
|
margin-bottom: 0;
|
2021-05-27 14:51:25 +00:00
|
|
|
|
|
|
|
> a {
|
|
|
|
text-decoration: none;
|
|
|
|
flex-shrink: 1;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-07 03:51:23 +00:00
|
|
|
// Many of these styles are stolen from mx_UserPill, but adjusted for the invite dialog.
|
2020-01-16 20:42:34 +00:00
|
|
|
.mx_InviteDialog_userTile {
|
2020-01-07 03:51:23 +00:00
|
|
|
margin-right: 8px;
|
|
|
|
|
2020-01-16 20:42:34 +00:00
|
|
|
.mx_InviteDialog_userTile_pill {
|
2020-01-07 03:51:23 +00:00
|
|
|
background-color: $username-variant1-color;
|
|
|
|
border-radius: 12px;
|
|
|
|
display: inline-block;
|
|
|
|
height: 24px;
|
2020-03-31 14:26:23 +00:00
|
|
|
line-height: $font-24px;
|
2020-01-07 03:51:23 +00:00
|
|
|
padding-left: 8px;
|
|
|
|
padding-right: 8px;
|
|
|
|
color: #ffffff; // this is fine without a var because it's for both themes
|
|
|
|
|
2020-01-16 20:42:34 +00:00
|
|
|
.mx_InviteDialog_userTile_avatar {
|
2020-01-07 03:51:23 +00:00
|
|
|
border-radius: 20px;
|
|
|
|
position: relative;
|
|
|
|
left: -5px;
|
|
|
|
top: 2px;
|
|
|
|
}
|
|
|
|
|
2020-01-16 20:42:34 +00:00
|
|
|
img.mx_InviteDialog_userTile_avatar {
|
2020-01-07 19:25:22 +00:00
|
|
|
vertical-align: top;
|
2020-01-07 03:51:23 +00:00
|
|
|
}
|
|
|
|
|
2020-01-16 20:42:34 +00:00
|
|
|
.mx_InviteDialog_userTile_name {
|
2020-01-07 03:51:23 +00:00
|
|
|
vertical-align: top;
|
|
|
|
}
|
2020-01-09 03:49:29 +00:00
|
|
|
|
2020-01-16 20:42:34 +00:00
|
|
|
.mx_InviteDialog_userTile_threepidAvatar {
|
2020-01-09 03:49:29 +00:00
|
|
|
background-color: #ffffff; // this is fine without a var because it's for both themes
|
|
|
|
}
|
2020-01-07 03:51:23 +00:00
|
|
|
}
|
|
|
|
|
2020-01-16 20:42:34 +00:00
|
|
|
.mx_InviteDialog_userTile_remove {
|
2020-01-07 03:51:23 +00:00
|
|
|
display: inline-block;
|
|
|
|
margin-left: 4px;
|
|
|
|
}
|
|
|
|
}
|
2020-01-18 00:12:35 +00:00
|
|
|
|
2021-07-15 08:55:58 +00:00
|
|
|
.mx_InviteDialog_other {
|
2020-01-18 00:12:35 +00:00
|
|
|
// Prevent the dialog from jumping around randomly when elements change.
|
2022-06-02 13:59:40 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
max-height: 600px;
|
|
|
|
overflow: hidden;
|
2021-07-15 08:55:58 +00:00
|
|
|
|
2022-03-16 12:15:02 +00:00
|
|
|
.mx_InviteDialog_addressBar {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
|
2022-03-18 21:28:21 +00:00
|
|
|
.mx_InviteDialog_userSections {
|
|
|
|
padding-right: 0;
|
2022-03-16 12:15:02 +00:00
|
|
|
|
2022-03-18 21:28:21 +00:00
|
|
|
.mx_InviteDialog_section {
|
|
|
|
padding-bottom: 0;
|
|
|
|
margin-top: 12px;
|
|
|
|
}
|
|
|
|
}
|
2021-07-15 08:55:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_content {
|
2022-06-02 13:59:40 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-shrink: 1;
|
2021-07-15 08:55:58 +00:00
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_transfer {
|
2022-06-02 13:59:40 +00:00
|
|
|
width: auto;
|
2021-05-27 14:51:25 +00:00
|
|
|
|
|
|
|
.mx_InviteDialog_content {
|
2022-06-02 13:59:40 +00:00
|
|
|
width: 496px;
|
|
|
|
height: 430px;
|
2021-07-15 08:55:58 +00:00
|
|
|
|
|
|
|
.mx_TabbedView {
|
2022-06-02 13:59:40 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-shrink: 1;
|
|
|
|
flex-grow: 1;
|
|
|
|
min-height: 0;
|
|
|
|
|
|
|
|
.mx_TabbedView_tabPanel {
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
.mx_TabbedView_tabPanelContent {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
}
|
2021-07-15 08:55:58 +00:00
|
|
|
}
|
|
|
|
overflow: visible;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_addressBar {
|
|
|
|
margin-top: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="checkbox"] {
|
|
|
|
margin-right: 8px;
|
2021-05-27 14:51:25 +00:00
|
|
|
}
|
2020-01-23 04:07:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_userSections {
|
2021-05-28 12:00:18 +00:00
|
|
|
margin-top: 4px;
|
2020-01-23 04:07:29 +00:00
|
|
|
overflow-y: auto;
|
2021-05-28 12:08:05 +00:00
|
|
|
padding: 0 45px 4px 0;
|
2021-06-03 15:44:28 +00:00
|
|
|
}
|
|
|
|
|
2021-05-28 12:00:18 +00:00
|
|
|
.mx_InviteDialog_helpText {
|
2021-05-28 12:08:05 +00:00
|
|
|
margin: 0;
|
2021-06-24 09:03:32 +00:00
|
|
|
|
2022-06-05 14:31:13 +00:00
|
|
|
.mx_AccessibleButton_kind_link {
|
|
|
|
padding: 0;
|
2021-07-15 08:55:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_dialPad {
|
|
|
|
width: 224px;
|
2022-06-05 14:31:13 +00:00
|
|
|
margin-top: $spacing-16;
|
|
|
|
margin-inline: auto;
|
|
|
|
|
|
|
|
.mx_InviteDialog_dialPadField {
|
|
|
|
border-top: 0;
|
|
|
|
border-inline: 0;
|
|
|
|
border-radius: 0;
|
|
|
|
margin-top: 0;
|
|
|
|
border-color: $quaternary-content;
|
|
|
|
|
|
|
|
&:focus-within {
|
|
|
|
border-color: $accent;
|
|
|
|
}
|
2021-07-15 08:55:58 +00:00
|
|
|
|
2022-06-05 14:31:13 +00:00
|
|
|
input {
|
|
|
|
font-size: 18px;
|
|
|
|
font-weight: 600;
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
2021-07-15 08:55:58 +00:00
|
|
|
|
2022-06-05 14:31:13 +00:00
|
|
|
.mx_Field_postfix {
|
|
|
|
/* Remove border separator between postfix and field content */
|
|
|
|
border-left: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_DialPad {
|
|
|
|
row-gap: $spacing-16;
|
|
|
|
column-gap: 48px; // TODO: Use a spacing variable
|
|
|
|
margin-inline: auto;
|
|
|
|
}
|
2021-07-15 08:55:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_transferConsultConnect {
|
|
|
|
padding-top: 16px;
|
2022-06-02 13:59:40 +00:00
|
|
|
/* This wants a drop shadow the full width of the dialog, so use negative margin to make it full width,
|
|
|
|
* then compensate with padding
|
2021-07-15 08:55:58 +00:00
|
|
|
*/
|
|
|
|
padding-left: 24px;
|
|
|
|
padding-right: 24px;
|
2022-06-02 13:59:40 +00:00
|
|
|
margin-left: -24px;
|
|
|
|
margin-right: -24px;
|
2021-08-25 09:46:48 +00:00
|
|
|
border-top: 1px solid $quinary-content;
|
2021-07-15 08:55:58 +00:00
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_transferConsultConnect_pushRight {
|
|
|
|
margin-left: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_userDirectoryIcon::before {
|
|
|
|
mask-image: url('$(res)/img/voip/tab-userdirectory.svg');
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_dialPadIcon::before {
|
|
|
|
mask-image: url('$(res)/img/voip/tab-dialpad.svg');
|
|
|
|
}
|
|
|
|
|
2022-06-09 12:45:33 +00:00
|
|
|
.mx_InviteDialog_tile {
|
|
|
|
cursor: pointer;
|
|
|
|
display: grid;
|
|
|
|
gap: $spacing-8 $spacing-12;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
&.mx_InviteDialog_tile--room {
|
|
|
|
grid-template-columns: min-content auto auto; // mx_InviteDialog_tile_avatarStack, mx_InviteDialog_tile_nameStack, time
|
|
|
|
padding: $spacing-4 $spacing-8;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: $header-panel-bg-color;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_tile--room_selected {
|
|
|
|
border-radius: 36px;
|
|
|
|
background-color: $username-variant1-color;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
grid-column: 1;
|
|
|
|
grid-row: 1;
|
|
|
|
mask-image: url("$(res)/img/feather-customised/check.svg");
|
|
|
|
mask-size: 100%;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
position: absolute;
|
|
|
|
top: 6px; // 50%
|
|
|
|
left: 6px; // 50%
|
|
|
|
background-color: #ffffff; // this is fine without a var because it's for both themes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_tile--room_time {
|
|
|
|
margin-inline-start: auto;
|
|
|
|
width: max-content;
|
|
|
|
font-size: $font-12px;
|
|
|
|
color: $muted-fg-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_tile--room_highlight {
|
|
|
|
font-weight: 900;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_InviteDialog_tile--inviterError {
|
|
|
|
grid-template-columns: max-content auto; // max-content = avatar width
|
|
|
|
margin-bottom: $spacing-24;
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_tile--inviterError_errorText {
|
|
|
|
grid-row-start: 2;
|
|
|
|
grid-column-start: 2;
|
|
|
|
|
|
|
|
font-size: $font-15px;
|
|
|
|
color: $alert;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
* {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_tile_avatarStack,
|
|
|
|
.mx_InviteDialog_tile--room_selected {
|
|
|
|
width: 36px;
|
|
|
|
height: 36px;
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_tile_avatarStack {
|
|
|
|
grid-row-start: 1;
|
|
|
|
grid-column-start: 1;
|
|
|
|
|
|
|
|
& > * {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_tile_nameStack {
|
|
|
|
grid-row-start: 1;
|
|
|
|
grid-column-start: 2;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-flow: column;
|
|
|
|
align-self: center;
|
|
|
|
align-items: baseline;
|
|
|
|
gap: 2px 0;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
.mx_InviteDialog_tile_nameStack_name,
|
|
|
|
.mx_InviteDialog_tile_nameStack_userId {
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_tile_nameStack_name {
|
|
|
|
font-size: $font-15px;
|
|
|
|
font-weight: $font-semi-bold;
|
|
|
|
color: $primary-content;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_tile_nameStack_userId {
|
|
|
|
font-size: $font-12px;
|
|
|
|
color: $muted-fg-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-24 09:03:32 +00:00
|
|
|
.mx_InviteDialog_multiInviterError {
|
|
|
|
> h4 {
|
|
|
|
font-size: $font-15px;
|
|
|
|
line-height: $font-24px;
|
2021-08-12 09:30:35 +00:00
|
|
|
color: $secondary-content;
|
2021-06-24 09:03:32 +00:00
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
}
|
2022-03-22 23:07:37 +00:00
|
|
|
|
|
|
|
.mx_InviteDialog_identityServer {
|
|
|
|
margin-top: 1em;
|
|
|
|
}
|