2019-10-07 17:52:50 +02:00
|
|
|
/*
|
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
|
|
|
Copyright 2019 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_UserInfo {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex: 1;
|
|
|
|
overflow-y: auto;
|
2019-11-13 17:59:22 +01:00
|
|
|
font-size: 12px;
|
2019-10-07 17:52:50 +02:00
|
|
|
|
2019-11-13 17:59:22 +01:00
|
|
|
.mx_UserInfo_cancel {
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
padding: 10px 0 10px 10px;
|
|
|
|
cursor: pointer;
|
|
|
|
mask-image: url('$(res)/img/minimise.svg');
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: 16px center;
|
|
|
|
background-color: $rightpanel-button-color;
|
|
|
|
position: absolute;
|
|
|
|
}
|
2019-10-07 17:52:50 +02:00
|
|
|
|
2019-11-13 17:59:22 +01:00
|
|
|
h2 {
|
|
|
|
font-size: 18px;
|
|
|
|
font-weight: 600;
|
|
|
|
margin: 18px 0 0 0;
|
|
|
|
}
|
2019-10-07 17:52:50 +02:00
|
|
|
|
2019-11-13 17:59:22 +01:00
|
|
|
.mx_UserInfo_container {
|
|
|
|
padding: 0 16px 16px 16px;
|
|
|
|
border-bottom: 1px solid lightgray;
|
|
|
|
}
|
2019-10-07 17:52:50 +02:00
|
|
|
|
2019-11-13 17:59:22 +01:00
|
|
|
.mx_UserInfo_memberDetailsContainer {
|
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
2019-10-07 17:52:50 +02:00
|
|
|
|
2019-11-13 17:59:22 +01:00
|
|
|
.mx_RoomTile_nameContainer {
|
|
|
|
width: 154px;
|
|
|
|
}
|
2019-10-07 17:52:50 +02:00
|
|
|
|
2019-11-13 17:59:22 +01:00
|
|
|
.mx_RoomTile_badge {
|
|
|
|
display: none;
|
|
|
|
}
|
2019-10-07 17:52:50 +02:00
|
|
|
|
2019-11-13 17:59:22 +01:00
|
|
|
.mx_RoomTile_name {
|
|
|
|
width: 160px;
|
|
|
|
}
|
2019-10-07 17:52:50 +02:00
|
|
|
|
2019-11-13 17:59:22 +01:00
|
|
|
.mx_UserInfo_avatar {
|
|
|
|
margin: 24px 32px 0 32px;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2019-10-07 17:52:50 +02:00
|
|
|
|
2019-11-13 17:59:22 +01:00
|
|
|
.mx_UserInfo_avatar > div {
|
|
|
|
max-width: 30vh;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
2019-11-11 16:54:12 +01:00
|
|
|
|
2019-11-13 17:59:22 +01:00
|
|
|
.mx_UserInfo_avatar > div > div {
|
|
|
|
/* use padding-top instead of height to make this element square,
|
|
|
|
as the % in padding is a % of the width (including margin,
|
|
|
|
that's why we had to put the margin to center on a parent div),
|
|
|
|
and not a % of the parent height. */
|
|
|
|
padding-top: 100%;
|
|
|
|
height: 0;
|
|
|
|
border-radius: 100%;
|
|
|
|
box-sizing: content-box;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: cover;
|
|
|
|
background-position: center;
|
|
|
|
}
|
2019-10-07 17:52:50 +02:00
|
|
|
|
2019-11-13 17:59:22 +01:00
|
|
|
.mx_UserInfo_avatar .mx_BaseAvatar.mx_BaseAvatar_image {
|
|
|
|
cursor: zoom-in;
|
|
|
|
}
|
2019-10-07 17:52:50 +02:00
|
|
|
|
2019-11-13 17:59:22 +01:00
|
|
|
h3 {
|
|
|
|
text-transform: uppercase;
|
|
|
|
color: $notice-secondary-color;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 12px;
|
|
|
|
margin: 4px 0;
|
|
|
|
}
|
2019-10-07 17:52:50 +02:00
|
|
|
|
2019-11-13 17:59:22 +01:00
|
|
|
p {
|
|
|
|
margin: 5px 0;
|
|
|
|
}
|
2019-11-12 16:26:26 +01:00
|
|
|
|
2019-11-13 17:59:22 +01:00
|
|
|
.mx_UserInfo_profile {
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
font-size: 18px;
|
|
|
|
line-height: 25px;
|
|
|
|
flex: 1;
|
|
|
|
overflow-x: auto;
|
|
|
|
max-height: 50px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.mx_E2EIcon {
|
|
|
|
margin: 5px;
|
|
|
|
}
|
|
|
|
}
|
2019-11-12 16:26:26 +01:00
|
|
|
|
2019-11-13 17:59:22 +01:00
|
|
|
.mx_UserInfo_profileStatus {
|
|
|
|
margin-top: 12px;
|
2019-11-12 16:26:26 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-14 16:59:09 +01:00
|
|
|
.mx_UserInfo_memberDetails .mx_UserInfo_profileField {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
margin: 6px 0;
|
|
|
|
|
2019-11-15 15:16:23 +01:00
|
|
|
.mx_IconButton, .mx_Spinner {
|
|
|
|
margin-left: 20px;
|
2019-11-14 16:59:09 +01:00
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
mask-size: 80%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_UserInfo_roleDescription {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
// try to make it the same height as the dropdown
|
|
|
|
margin: 11px 0 12px 0;
|
2019-11-15 15:16:23 +01:00
|
|
|
|
|
|
|
.mx_IconButton {
|
|
|
|
margin-left: 6px;
|
|
|
|
}
|
2019-11-14 16:59:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Field {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2019-11-12 16:26:26 +01:00
|
|
|
}
|
2019-10-07 17:52:50 +02:00
|
|
|
|
2019-11-13 17:59:22 +01:00
|
|
|
.mx_UserInfo_field {
|
|
|
|
cursor: pointer;
|
|
|
|
color: $accent-color;
|
|
|
|
line-height: 16px;
|
|
|
|
margin: 8px 0;
|
2019-10-07 17:52:50 +02:00
|
|
|
|
2019-11-13 18:00:35 +01:00
|
|
|
&.mx_UserInfo_destructive {
|
|
|
|
color: $warning-color;
|
|
|
|
}
|
2019-11-13 17:59:22 +01:00
|
|
|
}
|
2019-10-07 17:52:50 +02:00
|
|
|
|
2019-11-13 17:59:22 +01:00
|
|
|
.mx_UserInfo_statusMessage {
|
|
|
|
font-size: 11px;
|
|
|
|
opacity: 0.5;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: clip;
|
|
|
|
}
|
2019-10-07 17:52:50 +02:00
|
|
|
|
2019-11-13 17:59:22 +01:00
|
|
|
.mx_UserInfo_scrollContainer {
|
2019-11-15 15:29:23 +01:00
|
|
|
flex: 1 1 0;
|
2019-11-13 17:59:22 +01:00
|
|
|
padding-bottom: 16px;
|
|
|
|
}
|
2019-10-07 17:52:50 +02:00
|
|
|
|
2019-11-13 17:59:22 +01:00
|
|
|
.mx_UserInfo_scrollContainer .mx_UserInfo_container {
|
|
|
|
padding-top: 16px;
|
|
|
|
padding-bottom: 0;
|
|
|
|
border-bottom: none;
|
2019-10-07 17:52:50 +02:00
|
|
|
|
2019-11-15 15:48:04 +01:00
|
|
|
> :not(h3) {
|
2019-11-13 17:59:22 +01:00
|
|
|
margin-left: 8px;
|
|
|
|
}
|
|
|
|
}
|
2019-10-07 17:52:50 +02:00
|
|
|
|
2019-11-13 17:59:22 +01:00
|
|
|
.mx_UserInfo_devices {
|
|
|
|
.mx_UserInfo_device {
|
|
|
|
display: flex;
|
2019-11-19 12:51:37 +01:00
|
|
|
margin: 8px 0;
|
|
|
|
|
2019-11-13 17:59:22 +01:00
|
|
|
|
|
|
|
&.mx_UserInfo_device_verified {
|
|
|
|
.mx_UserInfo_device_trusted {
|
|
|
|
color: $accent-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.mx_UserInfo_device_unverified {
|
|
|
|
.mx_UserInfo_device_trusted {
|
|
|
|
color: $warning-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_UserInfo_device_name {
|
|
|
|
flex: 1;
|
|
|
|
margin-right: 5px;
|
2019-11-19 12:51:37 +01:00
|
|
|
word-break: break-word;
|
2019-11-13 17:59:22 +01:00
|
|
|
}
|
|
|
|
}
|
2019-10-07 17:52:50 +02:00
|
|
|
|
2019-11-13 17:59:22 +01:00
|
|
|
// both for icon in expand button and device item
|
|
|
|
.mx_E2EIcon {
|
|
|
|
// don't squeeze
|
|
|
|
flex: 0 0 auto;
|
|
|
|
margin: 2px 5px 0 0;
|
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
|
|
|
}
|
2019-10-07 17:52:50 +02:00
|
|
|
|
2019-11-13 17:59:22 +01:00
|
|
|
.mx_UserInfo_expand {
|
|
|
|
display: flex;
|
|
|
|
margin-top: 11px;
|
|
|
|
color: $accent-color;
|
|
|
|
}
|
2019-10-07 17:52:50 +02:00
|
|
|
}
|
2019-11-15 16:04:00 +01:00
|
|
|
|
|
|
|
.mx_UserInfo_verify {
|
|
|
|
display: block;
|
|
|
|
background-color: $accent-color;
|
|
|
|
color: $accent-fg-color;
|
|
|
|
border-radius: 4px;
|
|
|
|
padding: 7px 1.5em;
|
|
|
|
text-align: center;
|
|
|
|
margin: 16px 0;
|
|
|
|
}
|
2019-10-07 17:52:50 +02:00
|
|
|
}
|