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