Forked from
Stud.IP / Stud.IP
3341 commits behind the upstream repository.
-
Jan-Hendrik Willms authoredJan-Hendrik Willms authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
big-image-handler.less 921 B
.oversized-image {
cursor: zoom-in;
}
.oversized-image-zoom {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
height: 100%;
width: 100%;
z-index: 10000;
background: fadeout(#000, 30%);
cursor: zoom-out;
display: flex;
justify-content: center;
align-items: center;
// The actual oversized image is loaded as a background image so we can
// use the background-size option "contain" which will ensure that the
// image will be visible even on small displays.
span {
background-color: fadeout(#000, 30%);
background-position: center;
background-repeat: no-repeat;
background-size: contain;
border: 1px solid #fff;
box-shadow: 0 0 20px fadeout(#fff, 50%);
display: block;
max-width: 98%;
max-height: 98%;
img {
opacity: 0;
}
}
}