libpdfviewer/viewer/css/pdf_viewer.css
octocorvus 4ccb01762d bugfix: add missing CSS for hiddenCanvasElement
This is required by the new pdf.js version.
2024-05-07 15:27:09 -04:00

57 lines
764 B
CSS

html,
body {
height: 100%;
}
body,
canvas {
padding: 0;
margin: 0;
}
body {
background-color: #c0c0c0;
}
#container {
--scale-factor: 1;
width: 100%;
height: 100%;
display: grid;
place-items: center;
}
#container canvas,
#container .textLayer {
/* overlay child elements on top of each other */
grid-row-start: 1;
grid-column-start: 1;
}
canvas {
display: inline-block;
position: relative;
}
[data-main-rotation="90"] {
transform: rotate(90deg);
}
[data-main-rotation="180"] {
transform: rotate(180deg);
}
[data-main-rotation="270"] {
transform: rotate(270deg);
}
.hiddenCanvasElement {
position: absolute;
top: 0;
left: 0;
width: 0;
height: 0;
display: none;
}