2019-12-16 15:58:12 +01:00
|
|
|
/*
|
2024-09-09 15:57:16 +02:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2020-09-22 05:00:51 +02:00
|
|
|
Copyright 2019, 2020 The Matrix.org Foundation C.I.C.
|
2019-12-16 15:58:12 +01:00
|
|
|
|
2024-09-09 15:57:16 +02: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-12-16 15:58:12 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_AvatarSetting_avatar {
|
2020-09-22 05:00:51 +02:00
|
|
|
width: 90px;
|
2022-07-27 15:39:29 +02:00
|
|
|
min-width: 90px; /* so it doesn't get crushed by the flexbox in languages with longer words */
|
2020-09-22 05:00:51 +02:00
|
|
|
height: 90px;
|
|
|
|
margin-top: 8px;
|
2019-12-16 15:58:12 +01:00
|
|
|
position: relative;
|
|
|
|
|
2024-05-21 12:37:02 +02:00
|
|
|
&.mx_AvatarSetting_avatarDisplay:hover .mx_AvatarSetting_hover {
|
2020-09-22 05:00:51 +02:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
2019-12-16 15:58:12 +01:00
|
|
|
& > * {
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AccessibleButton.mx_AccessibleButton_kind_primary {
|
|
|
|
margin-top: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AccessibleButton.mx_AccessibleButton_kind_link_sm {
|
2020-09-22 05:00:51 +02:00
|
|
|
width: 100%;
|
2019-12-16 15:58:12 +01:00
|
|
|
}
|
|
|
|
|
2019-12-16 16:08:22 +01:00
|
|
|
& > img {
|
2019-12-16 15:58:12 +01:00
|
|
|
display: block;
|
2020-09-22 05:00:51 +02:00
|
|
|
height: 90px;
|
2020-10-14 11:57:34 +02:00
|
|
|
width: inherit;
|
2020-09-22 05:00:51 +02:00
|
|
|
border-radius: 90px;
|
|
|
|
cursor: pointer;
|
2024-06-06 19:35:44 +02:00
|
|
|
object-fit: cover;
|
2019-12-16 15:58:12 +01:00
|
|
|
}
|
2020-09-22 05:00:51 +02:00
|
|
|
|
|
|
|
.mx_AvatarSetting_uploadButton {
|
2024-06-07 15:25:21 +02:00
|
|
|
width: 28px;
|
|
|
|
height: 28px;
|
2020-09-22 05:00:51 +02:00
|
|
|
border-radius: 32px;
|
2024-06-07 15:25:21 +02:00
|
|
|
border: 1px solid var(--cpd-color-bg-canvas-default);
|
2024-06-07 18:16:41 +02:00
|
|
|
background-color: var(--cpd-color-bg-canvas-default);
|
2020-09-22 05:00:51 +02:00
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
2024-06-07 15:25:21 +02:00
|
|
|
text-align: center;
|
|
|
|
cursor: pointer;
|
2020-09-22 05:00:51 +02:00
|
|
|
|
2024-06-07 15:25:21 +02:00
|
|
|
svg {
|
|
|
|
position: relative;
|
|
|
|
top: 3px;
|
|
|
|
}
|
2020-09-22 05:00:51 +02:00
|
|
|
}
|
2024-06-07 18:16:41 +02:00
|
|
|
|
|
|
|
.mx_AvatarSetting_uploadButton:hover,
|
|
|
|
.mx_AvatarSetting_uploadButton_active {
|
|
|
|
background-color: var(--cpd-color-bg-subtle-primary);
|
|
|
|
}
|
2019-12-16 15:58:12 +01:00
|
|
|
}
|
2024-06-07 15:25:21 +02:00
|
|
|
|
|
|
|
.mx_AvatarSetting_removeMenuItem svg,
|
|
|
|
.mx_AvatarSetting_removeMenuItem span {
|
|
|
|
color: var(--cpd-color-text-critical-primary) !important;
|
|
|
|
}
|