add pandora pdf.js glue

This commit is contained in:
j 2023-10-27 13:16:54 +02:00
commit 6cf62ed1cd
2 changed files with 253 additions and 0 deletions

38
static/pdf.js/pandora.css Normal file
View file

@ -0,0 +1,38 @@
.toolbarButton.cropFile::before,
.secondaryToolbarButton.cropFile::before {
mask-image: url(custom/toolbarButton-crop.png);
}
@media screen and (min-resolution: 2dppx) {
.toolbarButton.cropFile::before,
.secondaryToolbarButton.cropFile::before {
mask-image: url(custom/toolbarButton-crop@2x.png);
}
}
.verticalToolbarSeparator.hiddenMediumView,
#print,
#openFile,
#editorModeButtons {
display: none;
}
.page .crop-overlay {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
//background: rgba(0,0,0,0.5);
cursor: crosshair;
z-index: 100;
}
.page .crop-overlay.inactive {
pointer-events: none;
cursor: default;
}
.page .crop-overlay canvas {
width: 100%;
height: 100%;
}