2021-08-06 00:17:05 +00:00
|
|
|
// Copyright 2021 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
.AvatarPreview {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
&__avatar {
|
|
|
|
@include button-reset;
|
|
|
|
|
|
|
|
align-items: center;
|
|
|
|
border-radius: 100%;
|
|
|
|
cursor: auto;
|
|
|
|
display: flex;
|
|
|
|
font-size: 32px;
|
|
|
|
height: 80px;
|
|
|
|
justify-content: center;
|
|
|
|
margin-bottom: 16px;
|
|
|
|
margin-top: 4px;
|
|
|
|
position: relative;
|
|
|
|
transition: background-color 100ms ease-out;
|
|
|
|
user-select: none;
|
|
|
|
width: 80px;
|
|
|
|
|
|
|
|
&--loading {
|
|
|
|
background: $color-black;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--has-image {
|
|
|
|
background-size: cover;
|
|
|
|
background-position: center center;
|
|
|
|
}
|
2021-11-01 19:13:35 +00:00
|
|
|
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
|
|
|
box-shadow: 0 0 0 3px $color-ultramarine;
|
|
|
|
}
|
|
|
|
}
|
2021-08-06 00:17:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__group {
|
2023-05-04 18:04:22 +00:00
|
|
|
-webkit-mask: url('../images/icons/v3/group/group.svg') no-repeat center;
|
2021-08-06 00:17:05 +00:00
|
|
|
-webkit-mask-size: 70%;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__upload {
|
|
|
|
align-items: center;
|
|
|
|
background: $color-gray-02;
|
|
|
|
border-radius: 100%;
|
|
|
|
bottom: 4px;
|
|
|
|
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.2);
|
|
|
|
display: flex;
|
|
|
|
height: 28px;
|
|
|
|
justify-content: center;
|
|
|
|
position: absolute;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-end: -7px;
|
2021-08-06 00:17:05 +00:00
|
|
|
width: 28px;
|
|
|
|
|
|
|
|
&::after {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/v3/camera/camera.svg', $color-black);
|
2021-08-06 00:17:05 +00:00
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__clear {
|
|
|
|
@include button-reset;
|
|
|
|
align-items: center;
|
|
|
|
background-color: $color-white;
|
|
|
|
border-radius: 100%;
|
|
|
|
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.2);
|
|
|
|
display: flex;
|
|
|
|
height: 24px;
|
|
|
|
justify-content: center;
|
|
|
|
position: absolute;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-end: 0;
|
2021-08-06 00:17:05 +00:00
|
|
|
top: 0;
|
|
|
|
width: 24px;
|
|
|
|
|
|
|
|
&:after {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/v3/x/x-compact.svg', $color-gray-75);
|
2021-08-06 00:17:05 +00:00
|
|
|
content: '';
|
2023-05-05 16:23:43 +00:00
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
2021-08-06 00:17:05 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|