diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2020-05-11 10:54:02 +0200 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2020-05-11 10:54:02 +0200 |
commit | eeedaa17e11b0d74a9f84aa4f56e7d882de18519 (patch) | |
tree | 9a9c3ccd1537a135e2c506c89ebcba6b78ccf41e /js | |
parent | 1288a3280cb0206d3df8c89bb5eb2d94aac73d2a (diff) | |
download | fosdem-2021-minimalism-presentation-eeedaa17e11b0d74a9f84aa4f56e7d882de18519.tar fosdem-2021-minimalism-presentation-eeedaa17e11b0d74a9f84aa4f56e7d882de18519.tar.gz |
new 'r-stack' helper class for stacking & centering multiple elements
Diffstat (limited to 'js')
-rw-r--r-- | js/config.js | 11 | ||||
-rw-r--r-- | js/reveal.js | 4 |
2 files changed, 9 insertions, 6 deletions
diff --git a/js/config.js b/js/config.js index dd5e843..4d6aa4d 100644 --- a/js/config.js +++ b/js/config.js @@ -72,15 +72,18 @@ export default { keyboard: true, // Optional function that blocks keyboard events when retuning false + // + // If you set this to 'foucsed', we will only capture keyboard events + // for embdedded decks when they are in focus keyboardCondition: null, + // Disables the default reveal.js slide layout (scaling and centering) + // so that you can use custom CSS layout + disableLayout: false, + // Enable the slide overview mode overview: true, - // Disables the default reveal.js slide layout so that you can use - // custom CSS layout - disableLayout: false, - // Vertical centering of slides center: true, diff --git a/js/reveal.js b/js/reveal.js index f986723..d909989 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -892,8 +892,8 @@ export default function( revealElement, options ) { */ function layoutSlideContents( width, height ) { - // Handle sizing of elements with the 'stretch' class - Util.queryAll( dom.slides, 'section > .stretch' ).forEach( element => { + // Handle sizing of elements with the 'r-stretch' class + Util.queryAll( dom.slides, 'section > .stretch, section > .r-stretch' ).forEach( element => { // Determine how much vertical space we can use let remainingHeight = Util.getRemainingHeight( element, height ); |