2020-11-05 18:42:45 +03:00
|
|
|
/*
|
2024-09-09 16:57:16 +03:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2020-11-05 18:42:45 +03:00
|
|
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
|
|
|
|
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.
|
2020-11-05 18:42:45 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_MiniAvatarUploader {
|
|
|
|
position: relative;
|
|
|
|
width: min-content;
|
|
|
|
|
2022-07-27 16:39:29 +03:00
|
|
|
/* this isn't a floating tooltip so override some things to not need to bother with z-index and floating */
|
2020-12-28 00:13:01 +03:00
|
|
|
.mx_Tooltip {
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
z-index: unset;
|
|
|
|
width: max-content;
|
|
|
|
left: 72px;
|
2022-07-27 16:39:29 +03:00
|
|
|
/* top edge starting at 50 % of parent - 50 % of itself -> centered vertically */
|
2022-05-09 16:58:16 +03:00
|
|
|
top: 50%;
|
|
|
|
transform: translateY(-50%);
|
2020-12-28 00:13:01 +03:00
|
|
|
}
|
|
|
|
|
2021-04-26 21:10:09 +03:00
|
|
|
.mx_MiniAvatarUploader_indicator {
|
2020-11-05 18:42:45 +03:00
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
height: 26px;
|
|
|
|
width: 26px;
|
|
|
|
|
|
|
|
right: -6px;
|
|
|
|
bottom: -6px;
|
|
|
|
|
2021-08-12 12:10:47 +03:00
|
|
|
background-color: $background;
|
2020-11-05 18:42:45 +03:00
|
|
|
border-radius: 50%;
|
|
|
|
z-index: 1;
|
|
|
|
|
2023-08-25 16:52:20 +03:00
|
|
|
line-height: 0;
|
|
|
|
|
2021-04-26 21:10:09 +03:00
|
|
|
.mx_MiniAvatarUploader_cameraIcon {
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
|
2021-08-12 12:30:35 +03:00
|
|
|
background-color: $secondary-content;
|
2021-04-26 21:10:09 +03:00
|
|
|
mask-position: center;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-image: url("$(res)/img/element-icons/camera.svg");
|
|
|
|
mask-size: 16px;
|
|
|
|
z-index: 2;
|
|
|
|
}
|
2020-11-05 18:42:45 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MiniAvatarUploader_input {
|
|
|
|
display: none;
|
|
|
|
}
|