Explorar o código

fix black background in fullscreen mode #668 #1386

Hakim El Hattab %!s(int64=9) %!d(string=hai) anos
pai
achega
5e763bc67d
Modificáronse 2 ficheiros con 15 adicións e 0 borrados
  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