aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2014-09-09 17:51:36 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2014-09-09 17:51:36 +0200
commitbc2974fef879a273fa5600b9b2e7d1481ebe8afd (patch)
tree4008d41cee36ea79d73fb67e21b9246f876d839c
parent2479883d3cdec0a810f95e4fe80696877e5ae227 (diff)
downloadfosdem-2018-presentation-bc2974fef879a273fa5600b9b2e7d1481ebe8afd.tar
fosdem-2018-presentation-bc2974fef879a273fa5600b9b2e7d1481ebe8afd.tar.gz
bubble has-light-background to .reveal container
-rw-r--r--js/reveal.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js
index ca0dde6..81c100c 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -2463,6 +2463,15 @@
}
+ // If the slide has a light background, bubble that up as a
+ // class to .reveal container
+ if( currentSlide && currentSlide.classList.contains( 'has-light-background' ) ) {
+ dom.wrapper.classList.add( 'has-light-background' );
+ }
+ else {
+ dom.wrapper.classList.remove( 'has-light-background' );
+ }
+
// Allow the first background to apply without transition
setTimeout( function() {
dom.background.classList.remove( 'no-transition' );