mirror of
https://github.com/ParkerTenBroeck/ParkerTenBroeck.github.io.git
synced 2026-06-06 21:14:06 -04:00
video support
This commit is contained in:
parent
3e6f2f3247
commit
0a882b6614
12 changed files with 63 additions and 31 deletions
55
sass/lightbox.scss
Normal file
55
sass/lightbox.scss
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue