From 8473394643e4dd82242d8c823c3a69271d37a075 Mon Sep 17 00:00:00 2001 From: Michael Ekstrand Date: Wed, 23 Oct 2013 12:37:58 -0500 Subject: Support per-slide centering If config.center is false, this change centers slides with the 'center' class. --- js/reveal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/reveal.js') diff --git a/js/reveal.js b/js/reveal.js index 3e9b160..c80eee4 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -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' ) ) { -- cgit v1.2.3