57 lines
1.4 KiB
SCSS
57 lines
1.4 KiB
SCSS
|
/*
|
||
|
Copyright 2020 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_MiniAvatarUploader {
|
||
|
position: relative;
|
||
|
width: min-content;
|
||
|
|
||
|
&::before, &::after {
|
||
|
content: '';
|
||
|
position: absolute;
|
||
|
|
||
|
height: 26px;
|
||
|
width: 26px;
|
||
|
|
||
|
right: -6px;
|
||
|
bottom: -6px;
|
||
|
}
|
||
|
|
||
|
&::before {
|
||
|
background-color: $primary-bg-color;
|
||
|
border-radius: 50%;
|
||
|
z-index: 1;
|
||
|
}
|
||
|
|
||
|
&::after {
|
||
|
background-color: $secondary-fg-color;
|
||
|
mask-position: center;
|
||
|
mask-repeat: no-repeat;
|
||
|
mask-image: url('$(res)/img/element-icons/camera.svg');
|
||
|
mask-size: 16px;
|
||
|
z-index: 2;
|
||
|
}
|
||
|
|
||
|
&.mx_MiniAvatarUploader_busy::after {
|
||
|
background: url("$(res)/img/spinner.gif") no-repeat center;
|
||
|
background-size: 80%;
|
||
|
mask: unset;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.mx_MiniAvatarUploader_input {
|
||
|
display: none;
|
||
|
}
|