Browse Source

fix black background in fullscreen mode #668 #1386

Hakim El Hattab 8 years ago
parent
commit
5e763bc67d
2 changed files with 15 additions and 0 deletions
  1. 6 0
      css/reveal.css
  2. 9 0
      css/reveal.scss

+ 6 - 0
css/reveal.css

@@ -47,6 +47,12 @@ body {
   background-color: #fff;
   color: #000; }
 
+html:-webkit-full-screen-ancestor {
+  background-color: inherit; }
+
+html:-moz-full-screen-ancestor {
+  background-color: inherit; }
+
 /*********************************************
  * VIEW FRAGMENTS
  *********************************************/

+ 9 - 0
css/reveal.scss

@@ -57,6 +57,15 @@ body {
 	color: #000;
 }
 
+// Ensures that the main background color matches the
+// theme in fullscreen mode
+html:-webkit-full-screen-ancestor {
+	background-color: inherit;
+}
+html:-moz-full-screen-ancestor {
+	background-color: inherit;
+}
+
 
 /*********************************************
  * VIEW FRAGMENTS