2021-03-01 18:27:09 +01:00
|
|
|
/*
|
2024-09-09 15:57:16 +02:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2021-03-01 18:27:09 +01:00
|
|
|
Copyright 2021 The Matrix.org Foundation C.I.C.
|
|
|
|
|
2024-09-09 15:57:16 +02:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2021-03-01 18:27:09 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_SpaceBasicSettings {
|
|
|
|
.mx_Field {
|
2021-06-07 09:57:39 +02:00
|
|
|
margin: 24px 0;
|
2021-03-01 18:27:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpaceBasicSettings_avatarContainer {
|
|
|
|
display: flex;
|
|
|
|
margin-top: 24px;
|
|
|
|
|
|
|
|
.mx_SpaceBasicSettings_avatar {
|
|
|
|
position: relative;
|
|
|
|
height: 80px;
|
|
|
|
width: 80px;
|
2021-08-12 11:53:54 +02:00
|
|
|
background-color: $tertiary-content;
|
2021-03-01 18:27:09 +01:00
|
|
|
border-radius: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
img.mx_SpaceBasicSettings_avatar {
|
|
|
|
width: 80px;
|
|
|
|
height: 80px;
|
|
|
|
object-fit: cover;
|
|
|
|
border-radius: 16px;
|
|
|
|
}
|
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* only show it when the button is a div and not an img (has avatar) */
|
2021-03-01 18:27:09 +01:00
|
|
|
div.mx_SpaceBasicSettings_avatar {
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
height: 80px;
|
|
|
|
width: 80px;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2022-07-27 15:39:29 +02:00
|
|
|
background-color: #ffffff; /* white icon fill */
|
2021-03-01 18:27:09 +01:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
|
|
|
mask-size: 20px;
|
2022-12-12 12:24:14 +01:00
|
|
|
mask-image: url("$(res)/img/element-icons/camera.svg");
|
2021-03-01 18:27:09 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> input[type="file"] {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .mx_AccessibleButton_kind_link {
|
|
|
|
display: inline-block;
|
2022-03-23 18:15:15 +01:00
|
|
|
margin: auto 18px;
|
2022-06-14 20:17:10 +02:00
|
|
|
color: $links;
|
2023-06-29 12:30:25 +02:00
|
|
|
font: var(--cpd-font-body-md-regular);
|
2021-03-01 18:27:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
> .mx_SpaceBasicSettings_avatar_remove {
|
2021-11-11 14:37:29 +01:00
|
|
|
color: $alert;
|
2021-03-01 18:27:09 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-25 12:10:37 +02:00
|
|
|
.mx_AccessibleButton_hasKind {
|
2021-03-01 18:27:09 +01:00
|
|
|
margin-left: auto;
|
|
|
|
display: block;
|
|
|
|
width: min-content;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AccessibleButton_disabled {
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
|
|
|
}
|