Răsfoiți Sursa

fix black background in fullscreen mode #668 #1386

Hakim El Hattab 9 ani în urmă
părinte
comite
5e763bc67d
2 a modificat fișierele cu 15 adăugiri și 0 ștergeri
  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