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.
|
|
|
|
*/
|
|
|
|
|
2020-09-08 11:19:51 +02:00
|
|
|
.mx_UserInfo.mx_BaseCard {
|
|
|
|
// UserInfo has a circular image at the top so it fits between the back & close buttons
|
|
|
|
padding-top: 0;
|
2019-10-07 17:52:50 +02:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex: 1;
|
|
|
|
overflow-y: auto;
|
2020-03-31 16:26:23 +02:00
|
|
|
font-size: $font-12px;
|
2019-10-07 17:52:50 +02:00
|
|
|
|
2019-11-13 17:59:22 +01:00
|
|
|
.mx_UserInfo_cancel {
|
|
|
|
cursor: pointer;
|
|
|
|
position: absolute;
|
2020-01-23 17:09:32 +01:00
|
|
|
top: 0;
|
|
|
|
border-radius: 4px;
|
|
|
|
background-color: $dark-panel-bg-color;
|
|
|
|
margin: 9px;
|
|
|
|
z-index: 1; // render on top of the right panel
|
|
|
|
|
|
|
|
div {
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
padding: 4px;
|
|
|
|
mask-image: url('$(res)/img/minimise.svg');
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: 7px center;
|
|
|
|
background-color: $rightpanel-button-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
|
|
|
h2 {
|
2020-03-31 16:26:23 +02:00
|
|
|
font-size: $font-18px;
|
2019-11-13 17:59:22 +01:00
|
|
|
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 {
|
2020-01-24 12:45:39 +01:00
|
|
|
padding: 8px 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_UserInfo_separator {
|
2020-07-13 23:50:18 +02:00
|
|
|
border-bottom: 1px solid rgba($primary-fg-color, .1);
|
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_memberDetailsContainer {
|
2020-01-24 12:45:39 +01:00
|
|
|
padding-top: 0;
|
2019-11-13 17:59:22 +01:00
|
|
|
padding-bottom: 0;
|
2020-01-24 12:45:39 +01:00
|
|
|
margin-bottom: 8px;
|
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_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;
|
|
|
|
}
|
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;
|
2020-01-29 00:43:27 +01:00
|
|
|
transition: 0.5s;
|
2019-11-13 17:59:22 +01:00
|
|
|
}
|
2019-11-11 16:54:12 +01:00
|
|
|
|
2019-12-19 13:27:25 +01:00
|
|
|
.mx_UserInfo_avatar > div > div {
|
2019-11-13 17:59:22 +01:00
|
|
|
/* 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. */
|
2019-12-19 13:27:25 +01:00
|
|
|
padding-top: 100%;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_UserInfo_avatar > div > div * {
|
2019-11-13 17:59:22 +01:00
|
|
|
border-radius: 100%;
|
2019-12-19 13:27:25 +01:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2020-04-27 18:40:37 +02:00
|
|
|
width: 100% !important;
|
|
|
|
height: 100% !important;
|
2019-12-19 10:06:52 +01:00
|
|
|
}
|
|
|
|
|
2019-12-19 13:27:25 +01:00
|
|
|
.mx_UserInfo_avatar .mx_BaseAvatar_initial {
|
|
|
|
z-index: 1;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
// override the calculated sizes so that the letter isn't HUGE
|
2020-04-27 19:36:05 +02:00
|
|
|
font-size: 6rem !important;
|
2019-12-19 13:27:25 +01:00
|
|
|
width: 100% !important;
|
2020-01-29 00:43:27 +01:00
|
|
|
transition: font-size 0.5s;
|
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_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;
|
2020-07-14 12:51:51 +02:00
|
|
|
color: $notice-secondary-color;
|
2020-07-14 00:12:11 +02:00
|
|
|
font-weight: 600;
|
2020-03-31 16:26:23 +02:00
|
|
|
font-size: $font-12px;
|
2019-11-13 17:59:22 +01:00
|
|
|
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 {
|
2020-03-31 17:14:18 +02:00
|
|
|
display: flex;
|
2020-03-31 16:26:23 +02:00
|
|
|
font-size: $font-18px;
|
|
|
|
line-height: $font-25px;
|
2019-11-13 17:59:22 +01:00
|
|
|
flex: 1;
|
|
|
|
justify-content: center;
|
|
|
|
|
2020-03-31 17:14:18 +02:00
|
|
|
span {
|
|
|
|
// limit to 2 lines, show an ellipsis if it overflows
|
|
|
|
// this looks webkit specific but is supported by Firefox 68+
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
-webkit-line-clamp: 2;
|
2020-02-26 14:44:35 +01:00
|
|
|
|
2020-03-31 17:14:18 +02:00
|
|
|
overflow: hidden;
|
|
|
|
word-break: break-all;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
2020-02-26 14:44:35 +01:00
|
|
|
|
2019-11-13 17:59:22 +01:00
|
|
|
.mx_E2EIcon {
|
2020-04-01 16:09:19 +02:00
|
|
|
margin-top: 3px; // visual vertical centering to the top line of text
|
|
|
|
margin-right: 4px; // margin from displyname
|
2020-03-31 17:14:18 +02:00
|
|
|
min-width: 18px; // convince flexbox to not collapse it
|
2019-11-13 17:59:22 +01:00
|
|
|
}
|
|
|
|
}
|
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;
|
|
|
|
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
2020-03-31 16:26:23 +02:00
|
|
|
line-height: $font-16px;
|
2019-11-13 17:59:22 +01:00
|
|
|
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 {
|
2020-03-31 16:26:23 +02:00
|
|
|
font-size: $font-11px;
|
2019-11-13 17:59:22 +01:00
|
|
|
opacity: 0.5;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: clip;
|
|
|
|
}
|
2019-10-07 17:52:50 +02:00
|
|
|
|
2020-09-11 12:39:58 +02:00
|
|
|
.mx_AutoHideScrollbar {
|
2019-11-15 15:29:23 +01:00
|
|
|
flex: 1 1 0;
|
2019-11-13 17:59:22 +01:00
|
|
|
}
|
2019-10-07 17:52:50 +02:00
|
|
|
|
2020-01-29 23:54:56 +01:00
|
|
|
.mx_UserInfo_container:not(.mx_UserInfo_separator) {
|
2019-11-13 17:59:22 +01:00
|
|
|
padding-top: 16px;
|
|
|
|
padding-bottom: 0;
|
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;
|
2020-01-30 16:59:03 +01:00
|
|
|
}
|
2019-10-07 17:52:50 +02:00
|
|
|
}
|
2019-11-15 16:04:00 +01:00
|
|
|
|
2020-04-02 01:12:48 +02:00
|
|
|
.mx_AccessibleButton.mx_AccessibleButton_hasKind {
|
2020-04-01 13:25:48 +02:00
|
|
|
padding: 8px 18px;
|
|
|
|
|
2020-04-01 13:21:18 +02:00
|
|
|
&.mx_AccessibleButton_kind_primary {
|
|
|
|
color: $accent-color;
|
|
|
|
background-color: $accent-bg-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_AccessibleButton_kind_danger {
|
|
|
|
color: $notice-primary-color;
|
|
|
|
background-color: $notice-primary-bg-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_VerificationShowSas .mx_AccessibleButton,
|
2020-01-29 15:11:50 +01:00
|
|
|
.mx_UserInfo_wideButton {
|
2019-11-15 16:04:00 +01:00
|
|
|
display: block;
|
2020-04-01 13:21:18 +02:00
|
|
|
margin: 16px 0 8px;
|
2020-01-29 08:58:43 +01:00
|
|
|
}
|
2020-04-01 13:21:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
.mx_VerificationShowSas {
|
|
|
|
.mx_AccessibleButton + .mx_AccessibleButton {
|
|
|
|
margin: 8px 0; // space between buttons
|
|
|
|
}
|
2019-11-15 16:04:00 +01:00
|
|
|
}
|
2019-10-07 17:52:50 +02:00
|
|
|
}
|
2020-01-24 12:45:39 +01:00
|
|
|
|
|
|
|
.mx_UserInfo.mx_UserInfo_smallAvatar {
|
|
|
|
.mx_UserInfo_avatar > div {
|
|
|
|
max-width: 72px;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
2020-01-27 18:17:05 +01:00
|
|
|
|
|
|
|
.mx_UserInfo_avatar .mx_BaseAvatar_initial {
|
|
|
|
font-size: 40px !important; // override the other override because here the avatar is smaller
|
|
|
|
}
|
2020-01-24 12:45:39 +01:00
|
|
|
}
|