57 lines
966 B
CSS
57 lines
966 B
CSS
.img-container {
|
|
width: 70px; /* or whatever size you want */
|
|
height: 30px;
|
|
position: relative; /* to contain the absolute overlay */
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.img-container img.img-thumbnail {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
display: block;
|
|
}
|
|
|
|
.eye-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0,0,0,0.4);
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease;
|
|
pointer-events: none;
|
|
color: white;
|
|
font-size: 1.5rem;
|
|
user-select: none;
|
|
}
|
|
|
|
/* center icon */
|
|
.eye-overlay i {
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* fade in on hover */
|
|
.img-container:hover .eye-overlay {
|
|
opacity: 1;
|
|
pointer-events: auto; /* enable pointer events on hover */
|
|
}
|
|
.iconImage{
|
|
font-size: 30px;
|
|
}
|
|
|
|
.img-preview {
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
|
|
.img-preview img {
|
|
max-width: 100%;
|
|
max-height: 80vh;
|
|
object-fit: contain;
|
|
display: block;
|
|
margin: 0 auto;
|
|
}
|