From c6b9da7000bc87f29dde25a859fee0e8858a31df Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Wed, 18 Jun 2014 18:42:45 +0200 Subject: [PATCH] more specific targeting for pdf printing hack --- js/reveal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/reveal.js b/js/reveal.js index 6d98679..0cb82cf 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -508,7 +508,7 @@ injectStyleSheet( '@page{size:'+ pageWidth +'px '+ pageHeight +'px; margin: 0;}' ); // 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.style.width = pageWidth + 'px';