tweak how speaker notes look in pdf exports
This commit is contained in:
parent
f87f3e60f3
commit
edfa131c9c
4 changed files with 7 additions and 7 deletions
|
@ -152,9 +152,6 @@ ul, ol, div, p {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Display slide numbers when 'slideNumber' is enabled */
|
/* Display slide numbers when 'slideNumber' is enabled */
|
||||||
.reveal .slide-number {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
.reveal .slide-number-pdf {
|
.reveal .slide-number-pdf {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
|
@ -284,7 +284,7 @@ html:-moz-full-screen-ancestor {
|
||||||
padding: 5px; }
|
padding: 5px; }
|
||||||
|
|
||||||
.reveal .slide-number-delimiter {
|
.reveal .slide-number-delimiter {
|
||||||
margin: 0 4px; }
|
margin: 0 3px; }
|
||||||
|
|
||||||
/*********************************************
|
/*********************************************
|
||||||
* SLIDES
|
* SLIDES
|
||||||
|
|
|
@ -341,7 +341,7 @@ html:-moz-full-screen-ancestor {
|
||||||
}
|
}
|
||||||
|
|
||||||
.reveal .slide-number-delimiter {
|
.reveal .slide-number-delimiter {
|
||||||
margin: 0 4px;
|
margin: 0 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************
|
/*********************************************
|
||||||
|
|
|
@ -592,11 +592,14 @@
|
||||||
if( config.showNotes ) {
|
if( config.showNotes ) {
|
||||||
var notes = getSlideNotes( slide );
|
var notes = getSlideNotes( slide );
|
||||||
if( notes ) {
|
if( notes ) {
|
||||||
|
var notesSpacing = 8;
|
||||||
var notesElement = document.createElement( 'div' );
|
var notesElement = document.createElement( 'div' );
|
||||||
notesElement.classList.add( 'speaker-notes' );
|
notesElement.classList.add( 'speaker-notes' );
|
||||||
notesElement.classList.add( 'speaker-notes-pdf' );
|
notesElement.classList.add( 'speaker-notes-pdf' );
|
||||||
notesElement.innerHTML = notes;
|
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 );
|
slide.appendChild( notesElement );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -881,7 +884,7 @@
|
||||||
|
|
||||||
dom.controls.style.display = config.controls ? 'block' : 'none';
|
dom.controls.style.display = config.controls ? 'block' : 'none';
|
||||||
dom.progress.style.display = config.progress ? '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 ) {
|
if( config.rtl ) {
|
||||||
dom.wrapper.classList.add( 'rtl' );
|
dom.wrapper.classList.add( 'rtl' );
|
||||||
|
|
Loading…
Reference in a new issue