SPACEBROWSER_INTERFACE/interface_base/master_styles/COMPONET SCSS PROFILES/ProfilePhoto.scss
2025-08-07 20:28:59 -04:00

143 lines
2.5 KiB
SCSS

@import '../../../../styles/abstracts/variables';
.profile-photo {
width: 100%;
padding: 4px;
justify-content: center;
border: 1px solid #e6e6e6;
border-radius: 8px;
margin-top: 20px;
.onboarding-header-photo {
width: 215px;
}
&__wrapper {
width: 175px;
height: 220px;
position: relative;
margin-right: 40px;
border-radius: 8px;
.overlay-update {
position: absolute;
width: 100%;
height: 100%;
display: none;
align-items: center;
justify-content: center;
z-index: 1;
border-radius: 8px;
cursor: pointer;
.opacity {
opacity: 0.9;
z-index: -1;
position: absolute;
width: 100%;
height: 100%;
background: white;
}
}
&:hover .overlay-update {
display: flex;
}
img {
border-radius: 8px;
}
.ant-upload-drag-container {
background-color: $white;
border-radius: $borderRadius;
}
.ant-row {
width: 145px;
}
.ant-upload-drag {
border-radius: 8px;
background: $white;
.ant-upload {
padding: 0;
}
}
.ant-upload--has-data {
border: 1px solid $gray9;
.ant-upload {
border: none;
}
}
.ant-upload-picture-card-wrapper {
width: 100%;
height: 100%;
}
.ant-upload.ant-upload-select-picture-card {
display: block;
width: 100%;
height: 100%;
position: relative;
margin: 0;
background-color: $white;
.ant-upload {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
padding: 0;
height: 100%;
position: absolute;
top: 0;
width: 100%;
}
}
}
&__preview-wrapper {
position: relative;
width: 100%;
height: 100%;
display: flex;
.lazy-load-image-background {
width: 100%;
}
img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: $borderRadius;
max-height: 475px;
}
}
.btn-delete {
position: absolute;
top: -12px;
right: -12px;
z-index: 99;
width: 24px;
height: 24px;
border: none;
background-color: $white;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12) !important;
padding: 0;
svg {
width: 24px;
height: 24px;
}
}
}
@media only screen and (max-width: 768px) {
.profile-picture {
&__wrapper {
height: auto !important;
}
}
}