2019-12-16 17:58:12 +03:00
|
|
|
/*
|
|
|
|
Copyright 2019 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_AvatarSetting_avatar {
|
2020-04-16 22:12:53 +03:00
|
|
|
width: $font-88px;
|
|
|
|
height: $font-88px;
|
2019-12-16 17:58:12 +03:00
|
|
|
margin-left: 13px;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
& > * {
|
2020-04-16 22:12:53 +03:00
|
|
|
width: $font-88px;
|
2019-12-16 17:58:12 +03:00
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AccessibleButton.mx_AccessibleButton_kind_primary {
|
|
|
|
margin-top: 8px;
|
|
|
|
|
|
|
|
div {
|
|
|
|
position: relative;
|
|
|
|
height: 12px;
|
|
|
|
width: 12px;
|
|
|
|
display: inline;
|
|
|
|
padding-right: 6px; // 0.5 * 12px
|
|
|
|
left: -6px; // 0.5 * 12px
|
|
|
|
top: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
div::before {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
height: 12px;
|
|
|
|
width: 12px;
|
|
|
|
|
|
|
|
background-color: $button-primary-fg-color;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-image: url('$(res)/img/feather-customised/upload.svg');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AccessibleButton.mx_AccessibleButton_kind_link_sm {
|
|
|
|
color: $button-danger-bg-color;
|
|
|
|
}
|
|
|
|
|
2019-12-16 18:08:22 +03:00
|
|
|
& > img {
|
|
|
|
cursor: pointer;
|
2019-12-16 19:23:35 +03:00
|
|
|
object-fit: cover;
|
2019-12-16 18:08:22 +03:00
|
|
|
}
|
|
|
|
|
2019-12-16 17:58:12 +03:00
|
|
|
& > img,
|
|
|
|
.mx_AvatarSetting_avatarPlaceholder {
|
|
|
|
display: block;
|
2020-04-16 22:12:53 +03:00
|
|
|
height: $font-88px;
|
2019-12-16 17:58:12 +03:00
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AvatarSetting_avatarPlaceholder::before {
|
|
|
|
background-color: $settings-profile-overlay-placeholder-fg-color;
|
|
|
|
mask: url("$(res)/img/feather-customised/user.svg");
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: 36px;
|
|
|
|
mask-position: center;
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AvatarSetting_avatar .mx_AvatarSetting_avatarPlaceholder {
|
|
|
|
background-color: $settings-profile-placeholder-bg-color;
|
|
|
|
}
|