Эх сурвалжийг харах

Support per-slide centering

If config.center is false, this change centers slides with the
'center' class.
Michael Ekstrand 11 жил өмнө
parent
commit
8473394643
2 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  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' ) ) {

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 1 - 1
js/reveal.min.js


Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно