Remove unnecessary print
CSS rules
These rules became unnecessary with PR 7697, over five years ago, since printing is now done from a `printContainer`-element rather than "directly" using the viewer. Note how the *entire* `outerContainer`, which contains all of the DOM elements that were being manually hidden, is now being hidden during printing. Furthermore, note also how the print-canvases/images and their containers are using custom CSS-classes[1] rather than re-using the ones from the viewer. --- [1] See the `printedPage` respectively `xfaPrintedPage` classes.
This commit is contained in:
parent
752dee5caa
commit
925a7bc58a
@ -1321,44 +1321,9 @@ dialog :link {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media print {
|
@media print {
|
||||||
/* General rules for printing. */
|
|
||||||
body {
|
body {
|
||||||
background: rgba(0, 0, 0, 0) none;
|
background: rgba(0, 0, 0, 0) none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Rules for browsers that don't support mozPrintCallback. */
|
|
||||||
#sidebarContainer,
|
|
||||||
#secondaryToolbar,
|
|
||||||
.toolbar,
|
|
||||||
#errorWrapper,
|
|
||||||
.textLayer,
|
|
||||||
.canvasWrapper {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#mainContainer,
|
|
||||||
#viewerContainer,
|
|
||||||
.page,
|
|
||||||
.page canvas {
|
|
||||||
position: static;
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page {
|
|
||||||
float: left;
|
|
||||||
display: none;
|
|
||||||
border: none;
|
|
||||||
box-shadow: none;
|
|
||||||
background-clip: content-box;
|
|
||||||
background-color: rgba(255, 255, 255, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
.page[data-loaded] {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Rules for browsers that support PDF.js printing */
|
|
||||||
body[data-pdfjsprinting] #outerContainer {
|
body[data-pdfjsprinting] #outerContainer {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user