more specific targeting for pdf printing hack
This commit is contained in:
		@@ -508,7 +508,7 @@
 | 
				
			|||||||
		injectStyleSheet( '@page{size:'+ pageWidth +'px '+ pageHeight +'px; margin: 0;}' );
 | 
							injectStyleSheet( '@page{size:'+ pageWidth +'px '+ pageHeight +'px; margin: 0;}' );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// Limit the size of certain elements to the dimensions of the slide
 | 
							// Limit the size of certain elements to the dimensions of the slide
 | 
				
			||||||
		injectStyleSheet( '.reveal img, .reveal video, .reveal iframe{max-width: '+ slideWidth +'px; max-height:'+ slideHeight +'px}' );
 | 
							injectStyleSheet( '.reveal section>img, .reveal section>video, .reveal section>iframe{max-width: '+ slideWidth +'px; max-height:'+ slideHeight +'px}' );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		document.body.classList.add( 'print-pdf' );
 | 
							document.body.classList.add( 'print-pdf' );
 | 
				
			||||||
		document.body.style.width = pageWidth + 'px';
 | 
							document.body.style.width = pageWidth + 'px';
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user