mirror of
https://github.com/ParkerTenBroeck/ParkerTenBroeck.github.io.git
synced 2026-06-07 05:18:40 -04:00
55 lines
No EOL
832 B
SCSS
55 lines
No EOL
832 B
SCSS
body.lb-open {
|
|
overflow: hidden;
|
|
touch-action: none;
|
|
}
|
|
|
|
figure .zoomable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.lightbox {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.92);
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.15s ease;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.lightbox.open {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.lightbox__stage {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
cursor: w-resize;
|
|
}
|
|
|
|
.lightbox__img {
|
|
max-width: 95vw;
|
|
max-height: 95vh;
|
|
user-select: none;
|
|
-webkit-user-drag: none;
|
|
transform-origin: 50% 50%;
|
|
will-change: transform;
|
|
touch-action: none;
|
|
}
|
|
|
|
.lightbox__img.is-zoomed {
|
|
cursor: zoom-out;
|
|
}
|
|
|
|
.lightbox__img.is-unzoomed {
|
|
cursor: zoom-in;
|
|
}
|
|
|
|
.lightbox__img.dragging {
|
|
cursor: grabbing;
|
|
} |