HabitTracker/static/css/profile.css

73 lines
1.4 KiB
CSS
Raw Normal View History

/* Profile image */
.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;
}
/* Edit-Modal Close Button */
.close-icon {
fill: #aaa;
cursor: pointer;
}
.close-icon:hover {
fill: #777; /* Change the color to whatever you'd like on hover */
}
.fade-out {
-webkit-animation: fadeOut 3s forwards;
animation: fadeOut 3s forwards;
}
@keyframes fadeOut {
0% { opacity: 1; }
100% { opacity: 0; display: none; }
}
@-webkit-keyframes fadeOut {
0% { opacity: 1; }
100% { opacity: 0; display: none; }
}