2019-10-07 15:52:50 +00: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 09:19:51 +00:00
|
|
|
.mx_UserInfo.mx_BaseCard {
|
2022-07-27 13:39:29 +00:00
|
|
|
/* UserInfo has a circular image at the top so it fits between the back & close buttons */
|
2020-09-08 09:19:51 +00:00
|
|
|
padding-top: 0;
|
2019-10-07 15:52:50 +00:00
|
|
|
overflow-y: auto;
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-12px;
|
2019-10-07 15:52:50 +00:00
|
|
|
|
2019-11-13 16:59:22 +00:00
|
|
|
.mx_UserInfo_cancel {
|
|
|
|
cursor: pointer;
|
|
|
|
position: absolute;
|
2020-01-23 16:09:32 +00:00
|
|
|
top: 0;
|
|
|
|
border-radius: 4px;
|
|
|
|
background-color: $dark-panel-bg-color;
|
2022-07-27 13:39:29 +00:00
|
|
|
margin: 9px; /* TODO: Use a variable */
|
|
|
|
z-index: 1; /* render on top of the right panel */
|
2020-01-23 16:09:32 +00:00
|
|
|
|
|
|
|
div {
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
padding: 4px;
|
|
|
|
mask-image: url("$(res)/img/minimise.svg");
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: 7px center;
|
2021-11-16 10:10:44 +00:00
|
|
|
background-color: $header-panel-text-primary-color;
|
2020-01-23 16:09:32 +00:00
|
|
|
}
|
2019-11-13 16:59:22 +00:00
|
|
|
}
|
2019-10-07 15:52:50 +00:00
|
|
|
|
2019-11-13 16:59:22 +00:00
|
|
|
h2 {
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-18px;
|
2023-04-21 14:16:00 +00:00
|
|
|
font-weight: var(--font-semi-bold);
|
2022-07-27 13:39:29 +00:00
|
|
|
margin: 18px 0 0 0; /* TODO: Use a variable */
|
2019-11-13 16:59:22 +00:00
|
|
|
}
|
2019-10-07 15:52:50 +00:00
|
|
|
|
2019-11-13 16:59:22 +00:00
|
|
|
.mx_UserInfo_container {
|
2022-05-23 11:42:31 +00:00
|
|
|
padding: $spacing-8 $spacing-16;
|
|
|
|
|
|
|
|
&:not(.mx_UserInfo_separator) {
|
|
|
|
padding-top: $spacing-16;
|
|
|
|
padding-bottom: 0;
|
|
|
|
|
|
|
|
> :not(h3) {
|
|
|
|
margin-inline-start: $spacing-8;
|
|
|
|
display: flex;
|
|
|
|
flex-flow: column;
|
|
|
|
align-items: flex-start;
|
|
|
|
row-gap: $spacing-8;
|
|
|
|
}
|
|
|
|
}
|
2022-05-02 01:08:42 +00:00
|
|
|
|
|
|
|
.mx_UserInfo_container_verifyButton {
|
|
|
|
margin-top: $spacing-8;
|
|
|
|
}
|
2020-01-24 11:45:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_UserInfo_separator {
|
2021-08-12 09:27:12 +00:00
|
|
|
border-bottom: 1px solid rgba($primary-content, 0.1);
|
2019-11-13 16:59:22 +00:00
|
|
|
}
|
2019-10-07 15:52:50 +00:00
|
|
|
|
2019-11-13 16:59:22 +00:00
|
|
|
.mx_UserInfo_memberDetailsContainer {
|
2020-01-24 11:45:39 +00:00
|
|
|
padding-top: 0;
|
2019-11-13 16:59:22 +00:00
|
|
|
padding-bottom: 0;
|
2022-05-23 11:42:31 +00:00
|
|
|
margin-bottom: $spacing-8;
|
2019-11-13 16:59:22 +00:00
|
|
|
}
|
2019-10-07 15:52:50 +00:00
|
|
|
|
2022-03-22 22:14:11 +00:00
|
|
|
.mx_RoomTile_titleContainer {
|
2019-11-13 16:59:22 +00:00
|
|
|
width: 154px;
|
|
|
|
}
|
2019-10-07 15:52:50 +00:00
|
|
|
|
2019-11-13 16:59:22 +00:00
|
|
|
.mx_RoomTile_badge {
|
|
|
|
display: none;
|
|
|
|
}
|
2019-10-07 15:52:50 +00:00
|
|
|
|
2022-03-22 22:14:11 +00:00
|
|
|
.mx_RoomTile_title {
|
2019-11-13 16:59:22 +00:00
|
|
|
width: 160px;
|
|
|
|
}
|
2019-10-07 15:52:50 +00:00
|
|
|
|
2019-11-13 16:59:22 +00:00
|
|
|
.mx_UserInfo_avatar {
|
2022-05-23 11:42:31 +00:00
|
|
|
margin: $spacing-24 $spacing-32 0 $spacing-32;
|
|
|
|
|
|
|
|
.mx_UserInfo_avatar_transition {
|
|
|
|
max-width: 30vh;
|
|
|
|
margin: 0 auto;
|
|
|
|
transition: 0.5s;
|
|
|
|
|
|
|
|
.mx_UserInfo_avatar_transition_child {
|
|
|
|
/* 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%;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
.mx_BaseAvatar,
|
|
|
|
.mx_BaseAvatar_initial,
|
|
|
|
.mx_BaseAvatar_image {
|
|
|
|
border-radius: 100%;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100% !important;
|
|
|
|
height: 100% !important;
|
|
|
|
}
|
2021-11-29 17:11:40 +00:00
|
|
|
|
2022-05-23 11:42:31 +00:00
|
|
|
.mx_BaseAvatar {
|
|
|
|
&.mx_BaseAvatar_image {
|
|
|
|
cursor: zoom-in;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_BaseAvatar_initial {
|
|
|
|
z-index: 1;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
|
2022-07-27 13:39:29 +00:00
|
|
|
/* override the calculated sizes so that the letter isn't HUGE */
|
2022-05-23 11:42:31 +00:00
|
|
|
font-size: 6rem !important;
|
|
|
|
width: 100% !important;
|
|
|
|
transition: font-size 0.5s;
|
|
|
|
|
|
|
|
& + .mx_BaseAvatar_image {
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-11-29 17:11:40 +00:00
|
|
|
}
|
2019-11-13 16:59:22 +00:00
|
|
|
}
|
2019-10-07 15:52:50 +00:00
|
|
|
|
2019-11-13 16:59:22 +00:00
|
|
|
h3 {
|
|
|
|
text-transform: uppercase;
|
2021-10-16 17:54:00 +00:00
|
|
|
color: $tertiary-content;
|
2023-04-21 14:16:00 +00:00
|
|
|
font-weight: var(--font-semi-bold);
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-12px;
|
2022-05-23 11:42:31 +00:00
|
|
|
margin: $spacing-4 0;
|
2019-11-13 16:59:22 +00:00
|
|
|
}
|
2019-10-07 15:52:50 +00:00
|
|
|
|
2019-11-13 16:59:22 +00:00
|
|
|
p {
|
2022-07-27 13:39:29 +00:00
|
|
|
margin: 5px 0; /* TODO: Use a variable */
|
2019-11-13 16:59:22 +00:00
|
|
|
}
|
2019-11-12 15:26:26 +00:00
|
|
|
|
2019-11-13 16:59:22 +00:00
|
|
|
.mx_UserInfo_profile {
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
h2 {
|
2020-03-31 15:14:18 +00:00
|
|
|
display: flex;
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-18px;
|
|
|
|
line-height: $font-25px;
|
2019-11-13 16:59:22 +00:00
|
|
|
flex: 1;
|
|
|
|
justify-content: center;
|
2023-05-05 08:26:11 +00:00
|
|
|
// We reverse things here so for accessible technologies the name comes before the e2e shield
|
|
|
|
flex-direction: row-reverse;
|
2019-11-13 16:59:22 +00:00
|
|
|
|
2020-03-31 15:14:18 +00:00
|
|
|
span {
|
2022-07-27 13:39:29 +00:00
|
|
|
/* limit to 2 lines, show an ellipsis if it overflows */
|
|
|
|
/* this looks webkit specific but is supported by Firefox 68+ */
|
2020-03-31 15:14:18 +00:00
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
-webkit-line-clamp: 2;
|
2020-02-26 13:44:35 +00:00
|
|
|
|
2020-03-31 15:14:18 +00:00
|
|
|
overflow: hidden;
|
|
|
|
word-break: break-all;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
2020-02-26 13:44:35 +00:00
|
|
|
|
2019-11-13 16:59:22 +00:00
|
|
|
.mx_E2EIcon {
|
2022-07-27 13:39:29 +00:00
|
|
|
margin-top: 3px; /* visual vertical centering to the top line of text. TODO: Use a variable */
|
|
|
|
margin-inline-end: $spacing-4; /* margin from displayName */
|
|
|
|
min-width: 18px; /* convince flexbox to not collapse it */
|
2019-11-13 16:59:22 +00:00
|
|
|
}
|
|
|
|
}
|
2019-11-12 15:26:26 +00:00
|
|
|
|
2019-11-13 16:59:22 +00:00
|
|
|
.mx_UserInfo_profileStatus {
|
2022-05-23 11:42:31 +00:00
|
|
|
margin-top: $spacing-12;
|
2019-11-12 15:26:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-23 11:42:31 +00:00
|
|
|
.mx_UserInfo_memberDetails {
|
|
|
|
.mx_UserInfo_profileField {
|
2019-11-14 15:59:09 +00:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
|
2022-07-27 13:39:29 +00:00
|
|
|
margin: 6px 0; /* TODO: Use a variable */
|
2022-05-23 11:42:31 +00:00
|
|
|
|
|
|
|
.mx_UserInfo_roleDescription {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2022-07-27 13:39:29 +00:00
|
|
|
/* try to make it the same height as the dropdown */
|
2022-05-23 11:42:31 +00:00
|
|
|
margin: 11px 0 12px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Field {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2019-11-14 15:59:09 +00:00
|
|
|
}
|
2019-11-12 15:26:26 +00:00
|
|
|
}
|
2019-10-07 15:52:50 +00:00
|
|
|
|
2019-11-13 16:59:22 +00:00
|
|
|
.mx_UserInfo_field {
|
2020-03-31 14:26:23 +00:00
|
|
|
line-height: $font-16px;
|
2019-10-07 15:52:50 +00:00
|
|
|
|
2019-11-13 17:00:35 +00:00
|
|
|
&.mx_UserInfo_destructive {
|
2021-11-11 13:37:29 +00:00
|
|
|
color: $alert;
|
2019-11-13 17:00:35 +00:00
|
|
|
}
|
2019-11-13 16:59:22 +00:00
|
|
|
}
|
2019-10-07 15:52:50 +00:00
|
|
|
|
2019-11-13 16:59:22 +00:00
|
|
|
.mx_UserInfo_statusMessage {
|
2021-12-28 20:54:54 +00:00
|
|
|
$statusLineHeight: 16px;
|
|
|
|
$statusNumberOfLines: 3;
|
|
|
|
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-11px;
|
2021-12-28 20:54:54 +00:00
|
|
|
line-height: $statusLineHeight;
|
2019-11-13 16:59:22 +00:00
|
|
|
opacity: 0.5;
|
|
|
|
overflow: hidden;
|
2021-12-28 20:54:54 +00:00
|
|
|
word-break: break-word;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
display: -webkit-box;
|
|
|
|
max-height: calc($statusLineHeight * $statusNumberOfLines);
|
|
|
|
-webkit-line-clamp: $statusNumberOfLines;
|
|
|
|
-webkit-box-orient: vertical;
|
2019-11-13 16:59:22 +00:00
|
|
|
}
|
2019-10-07 15:52:50 +00:00
|
|
|
|
2020-09-11 10:39:58 +00:00
|
|
|
.mx_AutoHideScrollbar {
|
2019-11-15 14:29:23 +00:00
|
|
|
flex: 1 1 0;
|
2019-11-13 16:59:22 +00:00
|
|
|
}
|
2019-10-07 15:52:50 +00:00
|
|
|
|
2019-11-13 16:59:22 +00:00
|
|
|
.mx_UserInfo_devices {
|
|
|
|
.mx_UserInfo_device {
|
|
|
|
display: flex;
|
2022-05-02 01:08:42 +00:00
|
|
|
margin: $spacing-8 0;
|
2019-11-19 11:51:37 +00:00
|
|
|
|
2019-11-13 16:59:22 +00:00
|
|
|
&.mx_UserInfo_device_verified {
|
|
|
|
.mx_UserInfo_device_trusted {
|
2021-11-11 13:37:29 +00:00
|
|
|
color: $accent;
|
2019-11-13 16:59:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
&.mx_UserInfo_device_unverified {
|
|
|
|
.mx_UserInfo_device_trusted {
|
2021-11-11 13:37:29 +00:00
|
|
|
color: $alert;
|
2019-11-13 16:59:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_UserInfo_device_name {
|
|
|
|
flex: 1;
|
2022-05-02 01:08:42 +00:00
|
|
|
margin: 0 5px;
|
2019-11-19 11:51:37 +00:00
|
|
|
word-break: break-word;
|
2019-11-13 16:59:22 +00:00
|
|
|
}
|
|
|
|
}
|
2019-10-07 15:52:50 +00:00
|
|
|
|
2022-07-27 13:39:29 +00:00
|
|
|
/* both for icon in expand button and device item */
|
2019-11-13 16:59:22 +00:00
|
|
|
.mx_E2EIcon {
|
2022-07-27 13:39:29 +00:00
|
|
|
/* don't squeeze */
|
2019-11-13 16:59:22 +00:00
|
|
|
flex: 0 0 auto;
|
2022-05-02 01:08:42 +00:00
|
|
|
margin: 0;
|
2019-11-13 16:59:22 +00:00
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
|
|
|
}
|
2019-10-07 15:52:50 +00:00
|
|
|
|
2019-11-13 16:59:22 +00:00
|
|
|
.mx_UserInfo_expand {
|
2022-07-27 13:39:29 +00:00
|
|
|
column-gap: 5px; /* cf: mx_UserInfo_device_name */
|
2022-05-02 01:08:42 +00:00
|
|
|
margin-bottom: 11px;
|
2022-07-27 13:39:29 +00:00
|
|
|
align-items: initial; /* Cancel the default property */
|
2020-01-30 15:59:03 +00:00
|
|
|
}
|
2019-10-07 15:52:50 +00:00
|
|
|
}
|
2020-01-24 11:45:39 +00:00
|
|
|
|
2022-05-23 11:42:31 +00:00
|
|
|
&.mx_UserInfo_smallAvatar {
|
|
|
|
.mx_UserInfo_avatar {
|
|
|
|
.mx_UserInfo_avatar_transition {
|
|
|
|
max-width: 72px;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
2020-01-27 17:17:05 +00:00
|
|
|
|
2022-05-23 11:42:31 +00:00
|
|
|
.mx_UserInfo_avatar_transition_child {
|
|
|
|
.mx_BaseAvatar {
|
|
|
|
.mx_BaseAvatar_initial {
|
2022-07-27 13:39:29 +00:00
|
|
|
font-size: 40px !important; /* override the other override because here the avatar is smaller */
|
2022-05-23 11:42:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-01-27 17:17:05 +00:00
|
|
|
}
|
2020-01-24 11:45:39 +00:00
|
|
|
}
|