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