Support per-slide centering

If config.center is false, this change centers slides with the
'center' class.
This commit is contained in:
Michael Ekstrand committed 2013-10-23 21:34:05 -05:00
1 parent c7077cf798
commit 8473394643
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1102,7 +1102,7 @@ var Reveal = (function(){
continue;
}
if( config.center ) {
if( config.center || slide.classList.contains( 'center' ) ) {
// Vertical stacks are not centred since their section
// children will be
if( slide.classList.contains( 'stack' ) ) {