diff options
-rw-r--r-- | css/print/pdf.css | 6 | ||||
-rw-r--r-- | js/reveal.js | 13 |
2 files changed, 11 insertions, 8 deletions
diff --git a/css/print/pdf.css b/css/print/pdf.css index 7bcc6cb..47ca207 100644 --- a/css/print/pdf.css +++ b/css/print/pdf.css @@ -16,7 +16,6 @@ } body { - font-size: 18pt; margin: 0 auto !important; border: 0; padding: 0; @@ -45,7 +44,7 @@ html { /* SECTION 3: Set body font face, size, and color. Consider using a serif font for readability. */ body, p, td, li, div { - font-size: 18pt; + } /* SECTION 4: Set heading font face, sizes, and color. @@ -147,9 +146,6 @@ ul, ol, div, p { overflow: visible; line-height: 1em; } -.reveal small a { - font-size: 16pt !important; -} /* Slide backgrounds are placed inside of their slide when exporting to PDF */ .reveal section .slide-background { diff --git a/js/reveal.js b/js/reveal.js index dd2f990..1ff0dcb 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -451,8 +451,8 @@ var slideSize = getComputedSlideSize( window.innerWidth, window.innerHeight ); // Dimensions of the PDF pages - var pageWidth = Math.ceil( slideSize.width * ( 1 + config.margin ) ), - pageHeight = Math.ceil( slideSize.height * ( 1 + config.margin ) ); + var pageWidth = Math.floor( slideSize.width * ( 1 + config.margin ) ), + pageHeight = Math.floor( slideSize.height * ( 1 + config.margin ) ); // Dimensions of slides within the pages var slideWidth = slideSize.width, @@ -2756,7 +2756,14 @@ // inside of the slides if( isPrintingPDF() ) { var slide = getSlide( x, y ); - return slide ? slide.querySelector( '.slide-background' ) : undefined; + if( slide ) { + var background = slide.querySelector( '.slide-background' ); + if( background && background.parentNode === slide ) { + return background; + } + } + + return undefined; } var horizontalBackground = document.querySelectorAll( '.backgrounds>.slide-background' )[ x ]; |