diff options
-rw-r--r-- | css/print/pdf.css | 3 | ||||
-rw-r--r-- | css/reveal.css | 7 | ||||
-rw-r--r-- | css/reveal.scss | 7 | ||||
-rw-r--r-- | js/reveal.js | 7 |
4 files changed, 13 insertions, 11 deletions
diff --git a/css/print/pdf.css b/css/print/pdf.css index 5922067..9ed90d6 100644 --- a/css/print/pdf.css +++ b/css/print/pdf.css @@ -152,9 +152,6 @@ ul, ol, div, p { } /* Display slide numbers when 'slideNumber' is enabled */ -.reveal .slide-number { - display: none; -} .reveal .slide-number-pdf { display: block; position: absolute; diff --git a/css/reveal.css b/css/reveal.css index 3dda05e..2f115e5 100644 --- a/css/reveal.css +++ b/css/reveal.css @@ -275,15 +275,16 @@ html:-moz-full-screen-ancestor { display: block; right: 8px; bottom: 8px; - opacity: 0.5; z-index: 31; + font-family: Helvetica, sans-serif; font-size: 12px; + line-height: 1; color: #fff; - background-color: rgba(0, 0, 0, 0.6); + background-color: rgba(0, 0, 0, 0.4); padding: 5px; } .reveal .slide-number-delimiter { - margin: 0 4px; } + margin: 0 3px; } /********************************************* * SLIDES diff --git a/css/reveal.scss b/css/reveal.scss index 63b1a90..d932269 100644 --- a/css/reveal.scss +++ b/css/reveal.scss @@ -331,16 +331,17 @@ html:-moz-full-screen-ancestor { display: block; right: 8px; bottom: 8px; - opacity: 0.5; z-index: 31; + font-family: Helvetica, sans-serif; font-size: 12px; + line-height: 1; color: #fff; - background-color: rgba( 0, 0, 0, 0.6 ); + background-color: rgba( 0, 0, 0, 0.4 ); padding: 5px; } .reveal .slide-number-delimiter { - margin: 0 4px; + margin: 0 3px; } /********************************************* diff --git a/js/reveal.js b/js/reveal.js index 2d49d2e..d2b2970 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -592,11 +592,14 @@ if( config.showNotes ) { var notes = getSlideNotes( slide ); if( notes ) { + var notesSpacing = 8; var notesElement = document.createElement( 'div' ); notesElement.classList.add( 'speaker-notes' ); notesElement.classList.add( 'speaker-notes-pdf' ); notesElement.innerHTML = notes; - notesElement.style.bottom = ( 40 - top ) + 'px'; + notesElement.style.left = ( notesSpacing - left ) + 'px'; + notesElement.style.bottom = ( notesSpacing - top ) + 'px'; + notesElement.style.width = ( pageWidth - notesSpacing*2 ) + 'px'; slide.appendChild( notesElement ); } } @@ -881,7 +884,7 @@ dom.controls.style.display = config.controls ? 'block' : 'none'; dom.progress.style.display = config.progress ? 'block' : 'none'; - dom.slideNumber.style.display = config.slideNumber ? 'block' : 'none'; + dom.slideNumber.style.display = config.slideNumber && !isPrintingPDF() ? 'block' : 'none'; if( config.rtl ) { dom.wrapper.classList.add( 'rtl' ); |