anki/ts/image-occlusion/review.scss

29 lines
630 B
SCSS
Raw Normal View History

#image-occlusion-container {
position: relative;
// if height-constrained, ensure container is centered
left: 50%;
transform: translate(-50%, 0);
// allow for 20px margin on html element, or short windows can truncate
// image
max-height: calc(95vh - 40px);
}
#image-occlusion-container img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
// remove the default image limits, as we rely on container
max-width: unset;
max-height: unset;
}
#image-occlusion-canvas {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
2023-07-03 01:44:38 +02:00
}