소스 검색

fix black background in fullscreen mode #668 #1386

Hakim El Hattab 9 년 전
부모
커밋
5e763bc67d
2개의 변경된 파일15개의 추가작업 그리고 0개의 파일을 삭제
  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