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