Jelajahi Sumber

Support per-slide centering

If config.center is false, this change centers slides with the
'center' class.
Michael Ekstrand 11 tahun lalu
induk
melakukan
8473394643
2 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 1 1
      js/reveal.js
  2. 1 1
      js/reveal.min.js

+ 1 - 1
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' ) ) {

File diff ditekan karena terlalu besar
+ 1 - 1
js/reveal.min.js


Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini