aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2014-06-18 18:42:45 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2014-06-18 18:42:45 +0200
commitc6b9da7000bc87f29dde25a859fee0e8858a31df (patch)
tree47c46f7fdb0a50ae3f0d7e6c3060942130464fbb /js
parente4761d3a37a5fc3a9e11e22ae12435843ca04416 (diff)
downloadfreenode-live-2017-presentation-c6b9da7000bc87f29dde25a859fee0e8858a31df.tar
freenode-live-2017-presentation-c6b9da7000bc87f29dde25a859fee0e8858a31df.tar.gz
more specific targeting for pdf printing hack
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js2
1 files changed, 1 insertions, 1 deletions
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';