From bc2974fef879a273fa5600b9b2e7d1481ebe8afd Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Tue, 9 Sep 2014 17:51:36 +0200
Subject: bubble has-light-background to .reveal container

---
 js/reveal.js | 9 +++++++++
 1 file changed, 9 insertions(+)

(limited to 'js')

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' );
-- 
cgit v1.2.3