mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-08-17 20:11:19 +02:00
Support per-slide centering
If config.center is false, this change centers slides with the 'center' class.
This commit is contained in:
@@ -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' ) ) {
|
||||
|
4
js/reveal.min.js
vendored
4
js/reveal.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user