66 lines
931 B
CSS
66 lines
931 B
CSS
.enlarge {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
z-index: 100;
|
|
overflow: hidden;
|
|
|
|
transition: 0.5s opacity;
|
|
background: rgba(0, 0, 0, 0.95);
|
|
}
|
|
|
|
.enlarge-close, .enlarge-zoom-controls {
|
|
font-size: 0.9em;
|
|
letter-spacing: 0.07em;
|
|
text-transform: uppercase;
|
|
|
|
text-shadow: 1px 1px rgba(0, 0, 0, 0.5);
|
|
color: rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
.enlarge-close {
|
|
padding: calc(var(--spacing) * 2);
|
|
|
|
position: fixed;
|
|
top: 0;
|
|
right: 0;
|
|
z-index: 100;
|
|
}
|
|
|
|
.enlarge-zoom-controls {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 100;
|
|
}
|
|
|
|
.enlarge-zoom-in,
|
|
.enlarge-zoom-out {
|
|
padding: calc(var(--spacing) * 2);
|
|
|
|
display: inline-block;
|
|
color: inherit;
|
|
}
|
|
|
|
.enlarge-contents {
|
|
position: relative;
|
|
transform-origin: top left;
|
|
}
|
|
|
|
.enlarge-photo {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
.enlarge-preload {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|