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