Package paper and pdf style sheets and apply them conditionally
This commit is contained in:
parent
5a5a5c9a6c
commit
499dc68536
13 changed files with 660 additions and 686 deletions
|
@ -368,7 +368,7 @@ export default function( revealElement, options ) {
|
|||
// Limit the size of certain elements to the dimensions of the slide
|
||||
createStyleSheet( '.reveal section>img, .reveal section>video, .reveal section>iframe{max-width: '+ slideWidth +'px; max-height:'+ slideHeight +'px}' );
|
||||
|
||||
document.body.classList.add( 'print-pdf' );
|
||||
document.querySelector('html').classList.add( 'print-pdf' );
|
||||
document.body.style.width = pageWidth + 'px';
|
||||
document.body.style.height = pageHeight + 'px';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue