Files
bluesky-client/CSS/zoom.css
T
2024-11-22 22:45:46 -05:00

63 lines
1.3 KiB
CSS

/* zoom container styles */
.zoom-container {
top: 5vh;
position: fixed;
display: inline-block;
overflow: hidden;
cursor: pointer;
max-height: 90vh;
max-width: 90vw;
cursor: pointer;
z-index: 9999;
}
/* initial image styling */
.zoom-video, .zoom-image {
max-height: 88vh;
max-width: 88vw;
transition: transform 0.5s ease, opacity 0.3s ease;
cursor: pointer;
border-radius: 8px;
border: solid 2px lightblue;
}
/* styles for full-screen zoomed view */
.zoom-container.zoomed .zoom-image, .zoom-container.zoomed .zoom-video {
position: absolute;
top: 5%;
left: 0;
width: auto;
border-radius: 0; /* remove rounded corners when zoomed */
box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.6); /* shadow for zoom effect */
z-index: 999999999;
transform: scale(0.85);
}
/* darken background when image is zoomed */
.zoom-container.zoomed::before {
content: "";
position: fixed;
top: 0;
left: 0;
/* width: 100vw;
height: 100vh; */
background: rgba(0, 0, 0, 0.6);
z-index: 999;
transition: opacity 0.3s ease;
opacity: 1;
transform: scale(0.85);
}
.overlay {
background-color: rgba(0, 0, 0, 0.336);
width: 100%;
height: 100%;
overflow: hidden;
position: fixed;
top: 0;
left: 0;
margin: 0;
padding: 0;
z-index: 998;
}