From 5e763bc67d140d1a41056c2e63f0fbe80c5d03ab Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Tue, 6 Oct 2015 20:16:46 +0200 Subject: [PATCH] fix black background in fullscreen mode #668 #1386 --- css/reveal.css | 6 ++++++ css/reveal.scss | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/css/reveal.css b/css/reveal.css index d2cb1be0..116d3154 100644 --- a/css/reveal.css +++ b/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 *********************************************/ diff --git a/css/reveal.scss b/css/reveal.scss index 330551b4..2b1546f3 100644 --- a/css/reveal.scss +++ b/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