2019-12-16 15:58:12 +01:00
|
|
|
/*
|
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
|
|
|
|
|
|
|
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 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);
|
|
|
|
background-color: var(--cpd-color-bg-subtle-primary);
|
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
|
|
|
}
|
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;
|
|
|
|
}
|