2021-03-02 01:27:09 +08:00
|
|
|
/*
|
|
|
|
Copyright 2021 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_SpaceBasicSettings {
|
|
|
|
.mx_Field {
|
2021-06-07 15:57:39 +08:00
|
|
|
margin: 24px 0;
|
2021-03-02 01:27:09 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpaceBasicSettings_avatarContainer {
|
|
|
|
display: flex;
|
|
|
|
margin-top: 24px;
|
|
|
|
|
|
|
|
.mx_SpaceBasicSettings_avatar {
|
|
|
|
position: relative;
|
|
|
|
height: 80px;
|
|
|
|
width: 80px;
|
2021-08-12 17:53:54 +08:00
|
|
|
background-color: $tertiary-content;
|
2021-03-02 01:27:09 +08:00
|
|
|
border-radius: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
img.mx_SpaceBasicSettings_avatar {
|
|
|
|
width: 80px;
|
|
|
|
height: 80px;
|
|
|
|
object-fit: cover;
|
|
|
|
border-radius: 16px;
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:39:29 +08:00
|
|
|
/* only show it when the button is a div and not an img (has avatar) */
|
2021-03-02 01:27:09 +08:00
|
|
|
div.mx_SpaceBasicSettings_avatar {
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
height: 80px;
|
|
|
|
width: 80px;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2022-07-27 21:39:29 +08:00
|
|
|
background-color: #ffffff; /* white icon fill */
|
2021-03-02 01:27:09 +08:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
|
|
|
mask-size: 20px;
|
2022-12-12 19:24:14 +08:00
|
|
|
mask-image: url("$(res)/img/element-icons/camera.svg");
|
2021-03-02 01:27:09 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> input[type="file"] {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .mx_AccessibleButton_kind_link {
|
|
|
|
display: inline-block;
|
2022-03-24 01:15:15 +08:00
|
|
|
margin: auto 18px;
|
2022-06-15 02:17:10 +08:00
|
|
|
color: $links;
|
2022-07-27 21:39:29 +08:00
|
|
|
font-size: $font-14px; /* See _SpaceSettingsDialog.pcss */
|
2021-03-02 01:27:09 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
> .mx_SpaceBasicSettings_avatar_remove {
|
2021-11-11 21:37:29 +08:00
|
|
|
color: $alert;
|
2021-03-02 01:27:09 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-25 18:10:37 +08:00
|
|
|
.mx_AccessibleButton_hasKind {
|
2021-03-02 01:27:09 +08:00
|
|
|
margin-left: auto;
|
|
|
|
display: block;
|
|
|
|
width: min-content;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AccessibleButton_disabled {
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
|
|
|
}
|