2020-01-03 01:40:18 +01: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.
|
|
|
|
*/
|
|
|
|
|
2021-07-15 10:55:58 +02:00
|
|
|
.mx_InviteDialog_transferWrapper .mx_Dialog {
|
|
|
|
padding-bottom: 16px;
|
|
|
|
}
|
|
|
|
|
2020-01-16 21:42:34 +01:00
|
|
|
.mx_InviteDialog_addressBar {
|
2020-01-03 01:47:26 +01:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2021-05-28 14:11:48 +02: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 01:47:26 +01:00
|
|
|
|
2020-01-16 21:42:34 +01:00
|
|
|
.mx_InviteDialog_editor {
|
2020-01-03 01:47:26 +01:00
|
|
|
flex: 1;
|
|
|
|
width: 100%; // Needed to make the Field inside grow
|
2020-01-07 04:51:23 +01:00
|
|
|
background-color: $user-tile-hover-bg-color;
|
|
|
|
border-radius: 4px;
|
|
|
|
min-height: 25px;
|
|
|
|
padding-left: 8px;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
2020-11-03 14:14:35 +01:00
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
2020-01-07 04:51:23 +01:00
|
|
|
|
2020-01-16 21:42:34 +01:00
|
|
|
.mx_InviteDialog_userTile {
|
2020-11-03 14:14:35 +01:00
|
|
|
margin: 6px 6px 0 0;
|
2020-01-07 04:51:23 +01:00
|
|
|
display: inline-block;
|
2020-11-03 14:14:35 +01:00
|
|
|
min-width: max-content; // prevent manipulation by flexbox
|
2020-01-07 04:51:23 +01:00
|
|
|
}
|
|
|
|
|
2020-11-03 14:14:35 +01:00
|
|
|
// Mostly copied from AddressPickerDialog; overrides bunch of our default text input styles
|
2020-11-03 15:56:06 +01:00
|
|
|
> input[type="text"] {
|
2020-11-03 14:14:35 +01:00
|
|
|
margin: 6px 0 !important;
|
|
|
|
height: 24px;
|
|
|
|
line-height: $font-24px;
|
2020-03-31 16:26:23 +02:00
|
|
|
font-size: $font-14px;
|
2020-01-07 04:51:23 +01:00
|
|
|
padding-left: 12px;
|
|
|
|
border: 0 !important;
|
|
|
|
outline: 0 !important;
|
|
|
|
resize: none;
|
|
|
|
box-sizing: border-box;
|
2020-11-03 14:14:35 +01:00
|
|
|
min-width: 40%;
|
|
|
|
flex: 1 !important;
|
|
|
|
color: $primary-fg-color !important;
|
2020-01-07 04:51:23 +01:00
|
|
|
}
|
2020-01-03 01:47:26 +01:00
|
|
|
}
|
|
|
|
|
2020-01-16 21:42:34 +01:00
|
|
|
.mx_InviteDialog_goButton {
|
2020-02-02 17:31:06 +01:00
|
|
|
min-width: 48px;
|
2020-01-03 01:47:26 +01:00
|
|
|
margin-left: 10px;
|
2020-01-07 04:51:23 +01:00
|
|
|
height: 25px;
|
2020-03-31 16:26:23 +02:00
|
|
|
line-height: $font-25px;
|
2020-01-03 01:47:26 +01:00
|
|
|
}
|
2020-01-15 07:32:00 +01:00
|
|
|
|
2020-01-16 21:42:34 +01:00
|
|
|
.mx_InviteDialog_buttonAndSpinner {
|
2020-01-15 07:32:00 +01: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 01:40:18 +01:00
|
|
|
}
|
|
|
|
|
2020-01-16 21:42:34 +01:00
|
|
|
.mx_InviteDialog_section {
|
2021-05-28 14:00:18 +02:00
|
|
|
padding-bottom: 4px;
|
2020-01-03 01:47:26 +01:00
|
|
|
|
|
|
|
h3 {
|
2020-03-31 16:26:23 +02:00
|
|
|
font-size: $font-12px;
|
2020-01-03 01:47:26 +01:00
|
|
|
color: $muted-fg-color;
|
|
|
|
font-weight: bold;
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
2020-08-28 18:03:27 +02:00
|
|
|
|
2021-05-27 16:51:25 +02:00
|
|
|
> p {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
> span {
|
|
|
|
color: $primary-fg-color;
|
|
|
|
}
|
|
|
|
|
2020-08-28 18:03:27 +02:00
|
|
|
.mx_InviteDialog_subname {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
margin-top: -10px; // HACK: Positioning with margins is bad
|
|
|
|
font-size: $font-12px;
|
|
|
|
color: $muted-fg-color;
|
|
|
|
}
|
2020-01-03 01:40:18 +01:00
|
|
|
}
|
|
|
|
|
2021-05-28 14:00:18 +02:00
|
|
|
.mx_InviteDialog_section_hidden_suggestions_disclaimer {
|
|
|
|
padding: 8px 0 16px 0;
|
|
|
|
font-size: $font-14px;
|
|
|
|
|
|
|
|
> span {
|
|
|
|
color: $primary-fg-color;
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
|
|
|
> p {
|
2021-05-28 14:08:05 +02:00
|
|
|
margin: 0;
|
2021-05-28 14:00:18 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-27 16:51:25 +02:00
|
|
|
.mx_InviteDialog_footer {
|
|
|
|
border-top: 1px solid $input-border-color;
|
|
|
|
|
|
|
|
> h3 {
|
2021-05-28 14:00:18 +02:00
|
|
|
margin: 12px 0;
|
2021-05-27 16:51:25 +02:00
|
|
|
font-size: $font-12px;
|
|
|
|
color: $muted-fg-color;
|
|
|
|
font-weight: bold;
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_footer_link {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
border-radius: 4px;
|
2021-05-28 14:11:48 +02:00
|
|
|
border: solid 1px $light-fg-color;
|
2021-05-27 16:51:25 +02:00
|
|
|
padding: 8px;
|
|
|
|
|
|
|
|
> a {
|
|
|
|
text-decoration: none;
|
|
|
|
flex-shrink: 1;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_footer_link_copy {
|
|
|
|
flex-shrink: 0;
|
|
|
|
cursor: pointer;
|
|
|
|
margin-left: 20px;
|
|
|
|
display: inherit;
|
|
|
|
|
|
|
|
> div {
|
|
|
|
mask-image: url($copy-button-url);
|
|
|
|
background-color: $message-action-bar-fg-color;
|
|
|
|
margin-left: 5px;
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-16 21:42:34 +01:00
|
|
|
.mx_InviteDialog_roomTile {
|
2020-01-03 01:47:26 +01:00
|
|
|
cursor: pointer;
|
|
|
|
padding: 5px 10px;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: $user-tile-hover-bg-color;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
* {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
2020-01-16 21:42:34 +01:00
|
|
|
.mx_InviteDialog_roomTile_avatarStack {
|
2020-01-07 20:12:31 +01:00
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
width: 36px;
|
|
|
|
height: 36px;
|
|
|
|
|
2020-01-07 20:25:22 +01:00
|
|
|
& > * {
|
2020-01-07 20:12:31 +01:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-16 21:42:34 +01:00
|
|
|
.mx_InviteDialog_roomTile_selected {
|
2020-01-07 20:12:31 +01:00
|
|
|
width: 36px;
|
|
|
|
height: 36px;
|
|
|
|
border-radius: 36px;
|
|
|
|
background-color: $username-variant1-color;
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
grid-column: 1;
|
|
|
|
grid-row: 1;
|
2020-02-02 17:31:06 +01:00
|
|
|
mask-image: url("$(res)/img/feather-customised/check.svg");
|
2020-01-07 20:12:31 +01:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-03 15:56:06 +01:00
|
|
|
.mx_InviteDialog_roomTile_nameStack {
|
|
|
|
display: inline-block;
|
2021-05-28 13:48:12 +02:00
|
|
|
overflow: hidden;
|
2020-11-03 15:56:06 +01:00
|
|
|
}
|
|
|
|
|
2020-01-16 21:42:34 +01:00
|
|
|
.mx_InviteDialog_roomTile_name {
|
2020-01-03 01:47:26 +01:00
|
|
|
font-weight: 600;
|
2020-03-31 16:26:23 +02:00
|
|
|
font-size: $font-14px;
|
2020-01-03 01:47:26 +01:00
|
|
|
color: $primary-fg-color;
|
|
|
|
margin-left: 7px;
|
|
|
|
}
|
|
|
|
|
2020-01-16 21:42:34 +01:00
|
|
|
.mx_InviteDialog_roomTile_userId {
|
2020-03-31 16:26:23 +02:00
|
|
|
font-size: $font-12px;
|
2020-01-03 01:47:26 +01:00
|
|
|
color: $muted-fg-color;
|
|
|
|
margin-left: 7px;
|
|
|
|
}
|
|
|
|
|
2021-05-28 13:48:12 +02:00
|
|
|
.mx_InviteDialog_roomTile_name,
|
|
|
|
.mx_InviteDialog_roomTile_userId {
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2020-01-16 21:42:34 +01:00
|
|
|
.mx_InviteDialog_roomTile_time {
|
2020-01-03 01:47:26 +01:00
|
|
|
text-align: right;
|
2020-03-31 16:26:23 +02:00
|
|
|
font-size: $font-12px;
|
2020-01-03 01:47:26 +01:00
|
|
|
color: $muted-fg-color;
|
|
|
|
float: right;
|
2020-03-31 16:26:23 +02:00
|
|
|
line-height: $font-36px; // Height of the avatar to keep the time vertically aligned
|
2020-01-03 01:47:26 +01:00
|
|
|
}
|
2020-01-04 04:35:30 +01:00
|
|
|
|
2020-01-16 21:42:34 +01:00
|
|
|
.mx_InviteDialog_roomTile_highlight {
|
2020-01-04 04:35:30 +01:00
|
|
|
font-weight: 900;
|
|
|
|
}
|
2020-01-03 01:40:18 +01:00
|
|
|
}
|
|
|
|
|
2020-01-07 04:51:23 +01:00
|
|
|
// Many of these styles are stolen from mx_UserPill, but adjusted for the invite dialog.
|
2020-01-16 21:42:34 +01:00
|
|
|
.mx_InviteDialog_userTile {
|
2020-01-07 04:51:23 +01:00
|
|
|
margin-right: 8px;
|
|
|
|
|
2020-01-16 21:42:34 +01:00
|
|
|
.mx_InviteDialog_userTile_pill {
|
2020-01-07 04:51:23 +01:00
|
|
|
background-color: $username-variant1-color;
|
|
|
|
border-radius: 12px;
|
|
|
|
display: inline-block;
|
|
|
|
height: 24px;
|
2020-03-31 16:26:23 +02:00
|
|
|
line-height: $font-24px;
|
2020-01-07 04:51:23 +01:00
|
|
|
padding-left: 8px;
|
|
|
|
padding-right: 8px;
|
|
|
|
color: #ffffff; // this is fine without a var because it's for both themes
|
|
|
|
|
2020-01-16 21:42:34 +01:00
|
|
|
.mx_InviteDialog_userTile_avatar {
|
2020-01-07 04:51:23 +01:00
|
|
|
border-radius: 20px;
|
|
|
|
position: relative;
|
|
|
|
left: -5px;
|
|
|
|
top: 2px;
|
|
|
|
}
|
|
|
|
|
2020-01-16 21:42:34 +01:00
|
|
|
img.mx_InviteDialog_userTile_avatar {
|
2020-01-07 20:25:22 +01:00
|
|
|
vertical-align: top;
|
2020-01-07 04:51:23 +01:00
|
|
|
}
|
|
|
|
|
2020-01-16 21:42:34 +01:00
|
|
|
.mx_InviteDialog_userTile_name {
|
2020-01-07 04:51:23 +01:00
|
|
|
vertical-align: top;
|
|
|
|
}
|
2020-01-09 04:49:29 +01:00
|
|
|
|
2020-01-16 21:42:34 +01:00
|
|
|
.mx_InviteDialog_userTile_threepidAvatar {
|
2020-01-09 04:49:29 +01:00
|
|
|
background-color: #ffffff; // this is fine without a var because it's for both themes
|
|
|
|
}
|
2020-01-07 04:51:23 +01:00
|
|
|
}
|
|
|
|
|
2020-01-16 21:42:34 +01:00
|
|
|
.mx_InviteDialog_userTile_remove {
|
2020-01-07 04:51:23 +01:00
|
|
|
display: inline-block;
|
|
|
|
margin-left: 4px;
|
|
|
|
}
|
|
|
|
}
|
2020-01-18 01:12:35 +01:00
|
|
|
|
2021-07-15 10:55:58 +02:00
|
|
|
.mx_InviteDialog_other {
|
2020-01-18 01:12:35 +01:00
|
|
|
// Prevent the dialog from jumping around randomly when elements change.
|
2021-05-27 16:51:25 +02:00
|
|
|
height: 600px;
|
2020-01-23 05:07:29 +01:00
|
|
|
padding-left: 20px; // the design wants some padding on the left
|
2021-07-15 10:55:58 +02:00
|
|
|
|
|
|
|
.mx_InviteDialog_userSections {
|
|
|
|
height: calc(100% - 115px); // mx_InviteDialog's height minus some for the upper and lower elements
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_content {
|
|
|
|
height: calc(100% - 36px); // full height minus the size of the header
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_transfer {
|
|
|
|
width: 496px;
|
|
|
|
height: 466px;
|
2021-05-27 16:51:25 +02:00
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
.mx_InviteDialog_content {
|
2021-07-15 10:55:58 +02:00
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
.mx_TabbedView {
|
|
|
|
height: calc(100% - 60px);
|
|
|
|
}
|
|
|
|
overflow: visible;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_addressBar {
|
|
|
|
margin-top: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="checkbox"] {
|
|
|
|
margin-right: 8px;
|
2021-05-27 16:51:25 +02:00
|
|
|
}
|
2020-01-23 05:07:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_userSections {
|
2021-05-28 14:00:18 +02:00
|
|
|
margin-top: 4px;
|
2020-01-23 05:07:29 +01:00
|
|
|
overflow-y: auto;
|
2021-05-28 14:08:05 +02:00
|
|
|
padding: 0 45px 4px 0;
|
2021-06-03 17:44:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_hasFooter .mx_InviteDialog_userSections {
|
|
|
|
height: calc(100% - 175px);
|
2020-01-23 05:07:29 +01:00
|
|
|
}
|
|
|
|
|
2021-05-28 14:00:18 +02:00
|
|
|
.mx_InviteDialog_helpText {
|
2021-05-28 14:08:05 +02:00
|
|
|
margin: 0;
|
2020-01-18 01:12:35 +01:00
|
|
|
}
|
2020-08-28 21:22:20 +02:00
|
|
|
|
|
|
|
.mx_InviteDialog_helpText .mx_AccessibleButton_kind_link {
|
|
|
|
padding: 0;
|
|
|
|
}
|
2021-06-24 11:03:32 +02:00
|
|
|
|
2021-07-15 10:55:58 +02:00
|
|
|
.mx_InviteDialog_dialPad .mx_InviteDialog_dialPadField {
|
|
|
|
border-top: 0;
|
|
|
|
border-left: 0;
|
|
|
|
border-right: 0;
|
|
|
|
border-radius: 0;
|
|
|
|
margin-top: 0;
|
|
|
|
border-color: $quaternary-fg-color;
|
|
|
|
|
|
|
|
input {
|
|
|
|
font-size: 18px;
|
|
|
|
font-weight: 600;
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_dialPad .mx_InviteDialog_dialPadField:focus-within {
|
|
|
|
border-color: $accent-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_dialPadField .mx_Field_postfix {
|
|
|
|
/* Remove border separator between postfix and field content */
|
|
|
|
border-left: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_dialPad {
|
|
|
|
width: 224px;
|
|
|
|
margin-top: 16px;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_dialPad .mx_DialPad {
|
|
|
|
row-gap: 16px;
|
|
|
|
column-gap: 48px;
|
|
|
|
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_transferConsultConnect {
|
|
|
|
padding-top: 16px;
|
|
|
|
/* This wants a drop shadow the full width of the dialog, so relative-position it
|
|
|
|
* and make it wider, then compensate with padding
|
|
|
|
*/
|
|
|
|
position: relative;
|
|
|
|
width: 496px;
|
|
|
|
left: -24px;
|
|
|
|
padding-left: 24px;
|
|
|
|
padding-right: 24px;
|
|
|
|
border-top: 1px solid $message-body-panel-bg-color;
|
|
|
|
|
|
|
|
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');
|
|
|
|
}
|
|
|
|
|
2021-06-24 11:03:32 +02:00
|
|
|
.mx_InviteDialog_multiInviterError {
|
|
|
|
> h4 {
|
|
|
|
font-size: $font-15px;
|
|
|
|
line-height: $font-24px;
|
|
|
|
color: $secondary-fg-color;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
> div {
|
|
|
|
.mx_InviteDialog_multiInviterError_entry {
|
|
|
|
margin-bottom: 24px;
|
|
|
|
|
|
|
|
.mx_InviteDialog_multiInviterError_entry_userProfile {
|
|
|
|
.mx_InviteDialog_multiInviterError_entry_name {
|
|
|
|
margin-left: 6px;
|
|
|
|
font-size: $font-15px;
|
|
|
|
line-height: $font-24px;
|
|
|
|
font-weight: $font-semi-bold;
|
|
|
|
color: $primary-fg-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_multiInviterError_entry_userId {
|
|
|
|
margin-left: 6px;
|
|
|
|
font-size: $font-12px;
|
|
|
|
line-height: $font-15px;
|
|
|
|
color: $tertiary-fg-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_multiInviterError_entry_error {
|
|
|
|
margin-left: 32px;
|
|
|
|
font-size: $font-15px;
|
|
|
|
line-height: $font-24px;
|
|
|
|
color: $notice-primary-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|