Support per-slide centering
If config.center is false, this change centers slides with the 'center' class.edit
parent
c7077cf798
commit
8473394643
|
@ -1102,7 +1102,7 @@ var Reveal = (function(){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( config.center ) {
|
if( config.center || slide.classList.contains( 'center' ) ) {
|
||||||
// Vertical stacks are not centred since their section
|
// Vertical stacks are not centred since their section
|
||||||
// children will be
|
// children will be
|
||||||
if( slide.classList.contains( 'stack' ) ) {
|
if( slide.classList.contains( 'stack' ) ) {
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue