2019-10-07 18:52:50 +03:00
|
|
|
/*
|
2024-09-09 16:57:16 +03:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2019-10-07 18:52:50 +03:00
|
|
|
Copyright 2019 The Matrix.org Foundation C.I.C.
|
2024-09-09 16:57:16 +03:00
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
2019-10-07 18:52:50 +03:00
|
|
|
|
2024-09-09 16:57:16 +03:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2019-10-07 18:52:50 +03:00
|
|
|
*/
|
|
|
|
|
2020-09-08 12:19:51 +03:00
|
|
|
.mx_UserInfo.mx_BaseCard {
|
2022-07-27 16:39:29 +03:00
|
|
|
/* UserInfo has a circular image at the top so it fits between the back & close buttons */
|
2020-09-08 12:19:51 +03:00
|
|
|
padding-top: 0;
|
2019-10-07 18:52:50 +03:00
|
|
|
overflow-y: auto;
|
2023-07-04 21:02:39 +03:00
|
|
|
font-size: var(--cpd-font-size-body-sm);
|
2019-10-07 18:52:50 +03:00
|
|
|
|
2019-11-13 19:59:22 +03:00
|
|
|
.mx_UserInfo_cancel {
|
|
|
|
cursor: pointer;
|
|
|
|
position: absolute;
|
2020-01-23 19:09:32 +03:00
|
|
|
top: 0;
|
|
|
|
border-radius: 4px;
|
|
|
|
background-color: $dark-panel-bg-color;
|
2023-06-06 17:03:52 +03:00
|
|
|
margin: 9px;
|
2022-07-27 16:39:29 +03:00
|
|
|
z-index: 1; /* render on top of the right panel */
|
2020-01-23 19:09:32 +03: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 13:10:44 +03:00
|
|
|
background-color: $header-panel-text-primary-color;
|
2020-01-23 19:09:32 +03:00
|
|
|
}
|
2019-11-13 19:59:22 +03:00
|
|
|
}
|
2019-10-07 18:52:50 +03:00
|
|
|
|
2019-11-13 19:59:22 +03:00
|
|
|
.mx_UserInfo_container {
|
2024-07-18 17:24:44 +03:00
|
|
|
padding: var(--cpd-space-4x) 0;
|
|
|
|
margin: 0 var(--cpd-space-4x);
|
2022-05-02 04:08:42 +03:00
|
|
|
|
|
|
|
.mx_UserInfo_container_verifyButton {
|
|
|
|
margin-top: $spacing-8;
|
|
|
|
}
|
2020-01-24 14:45:39 +03:00
|
|
|
|
2024-07-18 17:24:44 +03:00
|
|
|
& + .mx_UserInfo_container {
|
|
|
|
border-top: 1px solid $separator;
|
|
|
|
}
|
2019-11-13 19:59:22 +03:00
|
|
|
}
|
2019-10-07 18:52:50 +03:00
|
|
|
|
2019-11-13 19:59:22 +03:00
|
|
|
.mx_UserInfo_memberDetailsContainer {
|
2020-01-24 14:45:39 +03:00
|
|
|
padding-top: 0;
|
2019-11-13 19:59:22 +03:00
|
|
|
padding-bottom: 0;
|
2022-05-23 14:42:31 +03:00
|
|
|
margin-bottom: $spacing-8;
|
2019-11-13 19:59:22 +03:00
|
|
|
}
|
2019-10-07 18:52:50 +03:00
|
|
|
|
2022-03-23 01:14:11 +03:00
|
|
|
.mx_RoomTile_titleContainer {
|
2019-11-13 19:59:22 +03:00
|
|
|
width: 154px;
|
|
|
|
}
|
2019-10-07 18:52:50 +03:00
|
|
|
|
2019-11-13 19:59:22 +03:00
|
|
|
.mx_RoomTile_badge {
|
|
|
|
display: none;
|
|
|
|
}
|
2019-10-07 18:52:50 +03:00
|
|
|
|
2022-03-23 01:14:11 +03:00
|
|
|
.mx_RoomTile_title {
|
2019-11-13 19:59:22 +03:00
|
|
|
width: 160px;
|
|
|
|
}
|
2019-10-07 18:52:50 +03:00
|
|
|
|
2019-11-13 19:59:22 +03:00
|
|
|
.mx_UserInfo_avatar {
|
2022-05-23 14:42:31 +03:00
|
|
|
margin: $spacing-24 $spacing-32 0 $spacing-32;
|
|
|
|
|
|
|
|
.mx_UserInfo_avatar_transition {
|
2024-07-18 17:24:44 +03:00
|
|
|
max-width: 120px;
|
2023-08-24 06:48:35 +03:00
|
|
|
aspect-ratio: 1 / 1;
|
2022-05-23 14:42:31 +03:00
|
|
|
margin: 0 auto;
|
|
|
|
transition: 0.5s;
|
|
|
|
|
2023-09-08 13:56:59 +03:00
|
|
|
.mx_BaseAvatar {
|
|
|
|
/* Override the calculated font-size so that the letter isn't tiny */
|
|
|
|
font-size: 4rem;
|
|
|
|
}
|
|
|
|
|
2023-08-24 06:48:35 +03:00
|
|
|
.mx_BaseAvatar,
|
|
|
|
.mx_BaseAvatar img {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2022-05-23 14:42:31 +03:00
|
|
|
}
|
2021-11-29 20:11:40 +03:00
|
|
|
}
|
2019-11-13 19:59:22 +03:00
|
|
|
}
|
2019-10-07 18:52:50 +03:00
|
|
|
|
2024-07-18 17:24:44 +03:00
|
|
|
h2 {
|
2019-11-13 19:59:22 +03:00
|
|
|
text-transform: uppercase;
|
2021-10-16 20:54:00 +03:00
|
|
|
color: $tertiary-content;
|
2024-08-09 15:32:37 +03:00
|
|
|
font: var(--cpd-font-body-md-semibold);
|
2023-06-29 13:30:25 +03:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2022-05-23 14:42:31 +03:00
|
|
|
margin: $spacing-4 0;
|
2019-11-13 19:59:22 +03:00
|
|
|
}
|
2019-10-07 18:52:50 +03:00
|
|
|
|
2019-11-13 19:59:22 +03:00
|
|
|
p {
|
2023-06-06 17:03:52 +03:00
|
|
|
margin: 5px 0;
|
2019-11-13 19:59:22 +03:00
|
|
|
}
|
2019-11-12 18:26:26 +03:00
|
|
|
|
2019-11-13 19:59:22 +03:00
|
|
|
.mx_UserInfo_profile {
|
2024-07-18 17:24:44 +03:00
|
|
|
h1 {
|
|
|
|
font-size: $font-20px;
|
2020-03-31 17:26:23 +03:00
|
|
|
line-height: $font-25px;
|
2020-02-26 16:44:35 +03:00
|
|
|
|
2024-07-18 17:24:44 +03:00
|
|
|
/* 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;
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
word-break: break-all;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
|
|
/* E2E icon wrapper */
|
|
|
|
.mx_Flex > span {
|
|
|
|
display: inline-block;
|
2019-11-13 19:59:22 +03:00
|
|
|
}
|
|
|
|
}
|
2019-11-12 18:26:26 +03:00
|
|
|
|
2019-11-13 19:59:22 +03:00
|
|
|
.mx_UserInfo_profileStatus {
|
2024-07-18 17:24:44 +03:00
|
|
|
margin: var(--cpd-space-1x) 0;
|
2019-11-12 18:26:26 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-09-12 16:18:25 +03:00
|
|
|
.mx_UserInfo_timezone {
|
|
|
|
margin: var(--cpd-space-1x) 0;
|
|
|
|
}
|
|
|
|
|
2024-07-18 17:24:44 +03:00
|
|
|
.mx_PresenceLabel {
|
|
|
|
font: var(--cpd-font-body-sm-regular);
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
2022-05-23 14:42:31 +03:00
|
|
|
.mx_UserInfo_memberDetails {
|
|
|
|
.mx_UserInfo_profileField {
|
2019-11-14 18:59:09 +03:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
|
2023-06-06 17:03:52 +03:00
|
|
|
margin: 6px 0;
|
2022-05-23 14:42:31 +03:00
|
|
|
|
|
|
|
.mx_UserInfo_roleDescription {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2022-07-27 16:39:29 +03:00
|
|
|
/* try to make it the same height as the dropdown */
|
2022-05-23 14:42:31 +03:00
|
|
|
margin: 11px 0 12px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Field {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2019-11-14 18:59:09 +03:00
|
|
|
}
|
2019-11-12 18:26:26 +03:00
|
|
|
}
|
2019-10-07 18:52:50 +03:00
|
|
|
|
2019-11-13 19:59:22 +03:00
|
|
|
.mx_UserInfo_field {
|
2020-03-31 17:26:23 +03:00
|
|
|
line-height: $font-16px;
|
2019-11-13 19:59:22 +03:00
|
|
|
}
|
2019-10-07 18:52:50 +03:00
|
|
|
|
2019-11-13 19:59:22 +03:00
|
|
|
.mx_UserInfo_statusMessage {
|
2021-12-28 23:54:54 +03:00
|
|
|
$statusNumberOfLines: 3;
|
|
|
|
|
2023-06-29 13:30:25 +03:00
|
|
|
font: var(--cpd-font-body-sm-regular);
|
2020-03-31 17:26:23 +03:00
|
|
|
font-size: $font-11px;
|
2023-06-29 13:30:25 +03:00
|
|
|
line-height: 1rem;
|
2019-11-13 19:59:22 +03:00
|
|
|
opacity: 0.5;
|
|
|
|
overflow: hidden;
|
2021-12-28 23:54:54 +03:00
|
|
|
word-break: break-word;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
display: -webkit-box;
|
2023-06-29 13:30:25 +03:00
|
|
|
max-height: calc(1rem * $statusNumberOfLines);
|
2021-12-28 23:54:54 +03:00
|
|
|
-webkit-line-clamp: $statusNumberOfLines;
|
|
|
|
-webkit-box-orient: vertical;
|
2019-11-13 19:59:22 +03:00
|
|
|
}
|
2019-10-07 18:52:50 +03:00
|
|
|
|
2020-09-11 13:39:58 +03:00
|
|
|
.mx_AutoHideScrollbar {
|
2019-11-15 17:29:23 +03:00
|
|
|
flex: 1 1 0;
|
2019-11-13 19:59:22 +03:00
|
|
|
}
|
2019-10-07 18:52:50 +03:00
|
|
|
|
2019-11-13 19:59:22 +03:00
|
|
|
.mx_UserInfo_devices {
|
|
|
|
.mx_UserInfo_device {
|
|
|
|
display: flex;
|
2022-05-02 04:08:42 +03:00
|
|
|
margin: $spacing-8 0;
|
2019-11-19 14:51:37 +03:00
|
|
|
|
2019-11-13 19:59:22 +03:00
|
|
|
&.mx_UserInfo_device_verified {
|
|
|
|
.mx_UserInfo_device_trusted {
|
2021-11-11 16:37:29 +03:00
|
|
|
color: $accent;
|
2019-11-13 19:59:22 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
&.mx_UserInfo_device_unverified {
|
|
|
|
.mx_UserInfo_device_trusted {
|
2021-11-11 16:37:29 +03:00
|
|
|
color: $alert;
|
2019-11-13 19:59:22 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_UserInfo_device_name {
|
|
|
|
flex: 1;
|
2022-05-02 04:08:42 +03:00
|
|
|
margin: 0 5px;
|
2019-11-19 14:51:37 +03:00
|
|
|
word-break: break-word;
|
2019-11-13 19:59:22 +03:00
|
|
|
}
|
|
|
|
}
|
2019-10-07 18:52:50 +03:00
|
|
|
|
2022-07-27 16:39:29 +03:00
|
|
|
/* both for icon in expand button and device item */
|
2019-11-13 19:59:22 +03:00
|
|
|
.mx_E2EIcon {
|
2022-07-27 16:39:29 +03:00
|
|
|
/* don't squeeze */
|
2019-11-13 19:59:22 +03:00
|
|
|
flex: 0 0 auto;
|
2022-05-02 04:08:42 +03:00
|
|
|
margin: 0;
|
2019-11-13 19:59:22 +03:00
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
|
|
|
}
|
2019-10-07 18:52:50 +03:00
|
|
|
|
2019-11-13 19:59:22 +03:00
|
|
|
.mx_UserInfo_expand {
|
2022-07-27 16:39:29 +03:00
|
|
|
column-gap: 5px; /* cf: mx_UserInfo_device_name */
|
2022-05-02 04:08:42 +03:00
|
|
|
margin-bottom: 11px;
|
2022-07-27 16:39:29 +03:00
|
|
|
align-items: initial; /* Cancel the default property */
|
2020-01-30 18:59:03 +03:00
|
|
|
}
|
2019-10-07 18:52:50 +03:00
|
|
|
}
|
2020-01-24 14:45:39 +03:00
|
|
|
|
2022-05-23 14:42:31 +03:00
|
|
|
&.mx_UserInfo_smallAvatar {
|
|
|
|
.mx_UserInfo_avatar {
|
|
|
|
.mx_UserInfo_avatar_transition {
|
|
|
|
max-width: 72px;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
2023-09-08 13:56:59 +03:00
|
|
|
|
|
|
|
.mx_BaseAvatar {
|
|
|
|
/* Override the calculated font-size so that the letter isn't tiny */
|
|
|
|
font-size: 2rem;
|
|
|
|
}
|
2022-05-23 14:42:31 +03:00
|
|
|
}
|
2020-01-27 20:17:05 +03:00
|
|
|
}
|
2020-01-24 14:45:39 +03:00
|
|
|
}
|