Trying to customize my profile picture like the Facebook update design, but encountering issues. I have an external bootstrap CSS file and want it to look like this image: https://i.sstatic.net/QbmIh.png HTML
<div class="user-thumb user-thumb--edit">
<div class="custom-file">
<input class="custom-file__input" id="photo" accept="image/*" type="file">
<label class="custom-file__label" for="photo">
<img alt="" class="thumb--lg rounded-circle" src="">
</label>
</div>
</div>
CSS:
.user-thumb {
position: relative;
display: inline-block;
background: #e9e9e9;
border-radius: 50%;
}
.user-thumb--edit {
position: relative;
margin-bottom: 1rem;
}
.custom-file {
margin: 0;
height: auto;
}
.custom-file__input {
position: absolute;
opacity: 0;
visibility: hidden;
width: 1px;
height: 1px;
}
.custom-file__label {
cursor: pointer;
border: 0;
text-align: center;
font-weight: 500;
font-size: 1rem;
display: block;
margin: 0;
border-radius: 0;
padding: 0;
background: transparent;
position: relative;
}
.user-thumb--edit .custom-file__label::before {
content: '';
position: absolute;
bottom: 0;
right: 0;
text-align: center;
transition: all 0.15s ease-in-out;
z-index: 20;
background: #ffffff url();
background: 1.4rem auto;
width: 4.2rem;
height: 4.2rem;
border-radius: 100%;
box-shadow: 0px 6px 6px -3px rgb(0 0 0 / 20%), 0px 10px 14px 1px rgb(0 0 0 / 14%), 0px 4px 18px 3px rgb(0 0 0 / 12%);
}