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.
|
|
|
|
*/
|
|
|
|
|
2020-01-16 20:42:34 +00:00
|
|
|
.mx_InviteDialog_addressBar {
|
2020-01-03 00:47:26 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
|
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
|
2020-01-07 03:51:23 +00:00
|
|
|
background-color: $user-tile-hover-bg-color;
|
|
|
|
border-radius: 4px;
|
|
|
|
min-height: 25px;
|
|
|
|
padding-left: 8px;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
|
|
|
|
2020-01-16 20:42:34 +00:00
|
|
|
.mx_InviteDialog_userTile {
|
2020-01-07 03:51:23 +00:00
|
|
|
display: inline-block;
|
|
|
|
float: left;
|
|
|
|
position: relative;
|
|
|
|
top: 7px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Using a textarea for this element, to circumvent autofill
|
|
|
|
// Mostly copied from AddressPickerDialog
|
|
|
|
textarea,
|
|
|
|
textarea:focus {
|
|
|
|
height: 34px;
|
2020-03-30 17:18:10 +00:00
|
|
|
line-height: 2.267rem;
|
|
|
|
font-size: 0.933rem;
|
2020-01-07 03:51:23 +00:00
|
|
|
padding-left: 12px;
|
|
|
|
margin: 0 !important;
|
|
|
|
border: 0 !important;
|
|
|
|
outline: 0 !important;
|
|
|
|
resize: none;
|
|
|
|
overflow: hidden;
|
|
|
|
box-sizing: border-box;
|
|
|
|
word-wrap: nowrap;
|
|
|
|
|
|
|
|
// Roughly fill about 2/5ths of the available space. This is to try and 'fill' the
|
|
|
|
// remaining space after a bunch of pills, but is a bit hacky. Ideally we'd have
|
|
|
|
// support for "fill remaining width", but traditional tricks don't work with what
|
|
|
|
// we're pushing into this "field". Flexbox just makes things worse. The theory is
|
|
|
|
// that users won't need more than about 2/5ths of the input to find the person
|
|
|
|
// they're looking for.
|
|
|
|
width: 40%;
|
|
|
|
}
|
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-30 17:18:10 +00:00
|
|
|
line-height: 1.667rem;
|
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 {
|
2020-01-03 00:47:26 +00:00
|
|
|
padding-bottom: 10px;
|
|
|
|
|
|
|
|
h3 {
|
2020-03-30 17:18:10 +00:00
|
|
|
font-size: 0.8rem;
|
2020-01-03 00:47:26 +00:00
|
|
|
color: $muted-fg-color;
|
|
|
|
font-weight: bold;
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
2020-01-03 00:40:18 +00:00
|
|
|
}
|
|
|
|
|
2020-01-16 20:42:34 +00:00
|
|
|
.mx_InviteDialog_roomTile {
|
2020-01-03 00:47:26 +00:00
|
|
|
cursor: pointer;
|
|
|
|
padding: 5px 10px;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: $user-tile-hover-bg-color;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
* {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
2020-01-16 20:42:34 +00:00
|
|
|
.mx_InviteDialog_roomTile_avatarStack {
|
2020-01-07 19:12:31 +00:00
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
width: 36px;
|
|
|
|
height: 36px;
|
|
|
|
|
2020-01-07 19:25:22 +00:00
|
|
|
& > * {
|
2020-01-07 19:12:31 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-16 20:42:34 +00:00
|
|
|
.mx_InviteDialog_roomTile_selected {
|
2020-01-07 19:12:31 +00: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 16:31:06 +00:00
|
|
|
mask-image: url("$(res)/img/feather-customised/check.svg");
|
2020-01-07 19:12:31 +00: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-01-16 20:42:34 +00:00
|
|
|
.mx_InviteDialog_roomTile_name {
|
2020-01-03 00:47:26 +00:00
|
|
|
font-weight: 600;
|
2020-03-30 17:18:10 +00:00
|
|
|
font-size: 0.933rem;
|
2020-01-03 00:47:26 +00:00
|
|
|
color: $primary-fg-color;
|
|
|
|
margin-left: 7px;
|
|
|
|
}
|
|
|
|
|
2020-01-16 20:42:34 +00:00
|
|
|
.mx_InviteDialog_roomTile_userId {
|
2020-03-30 17:18:10 +00:00
|
|
|
font-size: 0.8rem;
|
2020-01-03 00:47:26 +00:00
|
|
|
color: $muted-fg-color;
|
|
|
|
margin-left: 7px;
|
|
|
|
}
|
|
|
|
|
2020-01-16 20:42:34 +00:00
|
|
|
.mx_InviteDialog_roomTile_time {
|
2020-01-03 00:47:26 +00:00
|
|
|
text-align: right;
|
2020-03-30 17:18:10 +00:00
|
|
|
font-size: 0.8rem;
|
2020-01-03 00:47:26 +00:00
|
|
|
color: $muted-fg-color;
|
|
|
|
float: right;
|
2020-03-30 17:18:10 +00:00
|
|
|
line-height: 2.400rem; // Height of the avatar to keep the time vertically aligned
|
2020-01-03 00:47:26 +00:00
|
|
|
}
|
2020-01-04 03:35:30 +00:00
|
|
|
|
2020-01-16 20:42:34 +00:00
|
|
|
.mx_InviteDialog_roomTile_highlight {
|
2020-01-04 03:35:30 +00:00
|
|
|
font-weight: 900;
|
|
|
|
}
|
2020-01-03 00:40:18 +00:00
|
|
|
}
|
|
|
|
|
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-30 17:18:10 +00:00
|
|
|
line-height: 1.600rem;
|
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
|
|
|
|
|
|
|
.mx_InviteDialog {
|
|
|
|
// Prevent the dialog from jumping around randomly when elements change.
|
|
|
|
height: 590px;
|
2020-01-23 04:07:29 +00:00
|
|
|
padding-left: 20px; // the design wants some padding on the left
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InviteDialog_userSections {
|
|
|
|
margin-top: 10px;
|
|
|
|
overflow-y: auto;
|
|
|
|
padding-right: 45px;
|
|
|
|
height: 455px; // mx_InviteDialog's height minus some for the upper elements
|
|
|
|
}
|
|
|
|
|
|
|
|
// Right margin for the design. We could apply this to the whole dialog, but then the scrollbar
|
|
|
|
// for the user section gets weird.
|
|
|
|
.mx_InviteDialog_helpText,
|
|
|
|
.mx_InviteDialog_addressBar {
|
|
|
|
margin-right: 45px;
|
2020-01-18 00:12:35 +00:00
|
|
|
}
|