45 lines
956 B
CSS
45 lines
956 B
CSS
|
|
.profile-image-container {
|
||
|
|
position: relative;
|
||
|
|
width: 150px; /* Adjust the size as needed */
|
||
|
|
height: 150px; /* Adjust the size as needed */
|
||
|
|
}
|
||
|
|
|
||
|
|
.profile-image {
|
||
|
|
width: 100%;
|
||
|
|
height: 100%;
|
||
|
|
border-radius: 50%;
|
||
|
|
object-fit: cover;
|
||
|
|
}
|
||
|
|
|
||
|
|
.profile-image-overlay {
|
||
|
|
position: absolute;
|
||
|
|
top: 0;
|
||
|
|
left: 0;
|
||
|
|
width: 100%;
|
||
|
|
height: 100%;
|
||
|
|
background-color: rgba(0, 0, 0, 0.5); /* Grey overlay */
|
||
|
|
border-radius: 50%;
|
||
|
|
display: flex;
|
||
|
|
justify-content: center;
|
||
|
|
align-items: center;
|
||
|
|
color: white;
|
||
|
|
font-size: 16px;
|
||
|
|
opacity: 0; /* Initially hidden */
|
||
|
|
transition: opacity 0.3s ease;
|
||
|
|
cursor: pointer;
|
||
|
|
}
|
||
|
|
|
||
|
|
.profile-image-overlay:hover {
|
||
|
|
opacity: 1; /* Show overlay on hover */
|
||
|
|
}
|
||
|
|
|
||
|
|
.profile-image-overlay span {
|
||
|
|
/* Center the text and make it bold */
|
||
|
|
text-align: center;
|
||
|
|
font-weight: bold;
|
||
|
|
}
|
||
|
|
|
||
|
|
.profile-image-overlay:hover span {
|
||
|
|
/* Style the text when hovering */
|
||
|
|
color: white;
|
||
|
|
}
|