82 lines
2.2 KiB
SCSS
82 lines
2.2 KiB
SCSS
/*
|
|
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 {
|
|
width: 88px;
|
|
height: 88px;
|
|
margin-left: 13px;
|
|
position: relative;
|
|
|
|
& > * {
|
|
width: 88px;
|
|
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;
|
|
}
|
|
|
|
& > img,
|
|
.mx_AvatarSetting_avatarPlaceholder {
|
|
display: block;
|
|
height: 88px;
|
|
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;
|
|
}
|