1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-16 22:17:59 +00:00
seahub/frontend/src/css/image-file-view.css
llj 3d7b8b3a6b
Image zoom rotate (#7425)
* [image file view] added a zoomer(enable users to zoom in/out the image)

* [image file view] added 'rotate'(rotate the image in counter-clockwise direction and save it)

* [image file view] fixup

* [image file view] keep the 'prev/next' icons displayed on top of the image which is zoomed in

* [image file view] improved the display of the 'image saved' tip

* [image file view] don't offer 'zoom in/out' & 'rotate' for images with errors

* [image file view] don't offer 'rotate' for PSD & HEIC files

* [image file view] enable HEIC files to be viewed online
2025-02-08 10:27:34 +08:00

57 lines
777 B
CSS

.image-file-view {
position: relative;
text-align: center;
}
.image-file-view:before {
content: ' ';
display: inline-block;
vertical-align: middle;
height: 100%;
font-size: 0;
line-height: 0;
}
#image-view {
padding: 1px;
background: #fff;
border: 1px solid #eee;
width: auto;
height: auto;
max-width: calc(100% - 4px);
max-height: calc(100% - 4px);
font-size: 0;
line-height: 0;
}
#img-prev,
#img-next {
position: absolute;
top: 48%;
text-decoration: none;
color: #666;
width: 50px;
height: 50px;
background: #fff;
border-radius: 100%;
line-height: 50px;
z-index: 1;
}
#img-prev {
left: 15px;
}
#img-next {
right: 15px;
}
#img-prev:hover,
#img-next:hover {
color: #212529;
}
.image-zoomer {
height: 24px;
}