mirror of
https://github.com/ION606/bluesky-client.git
synced 2026-05-14 21:26:54 +00:00
initial code commit
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
|
||||
/* 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;
|
||||
}
|
||||
Reference in New Issue
Block a user