diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2016-06-21 11:30:12 +0200 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2016-06-21 11:30:12 +0200 |
commit | a12a17b2d7053fad006ae9914309e8fb56c44329 (patch) | |
tree | 3625a609d1dfa97873dc1226fada7bf228a6f71b | |
parent | ce777e4c4b5517bf2210bc9839909413a48f42fa (diff) | |
download | fosdem-2018-presentation-a12a17b2d7053fad006ae9914309e8fb56c44329.tar fosdem-2018-presentation-a12a17b2d7053fad006ae9914309e8fb56c44329.tar.gz |
request fullscreen on documentElement instead of body (#1621 #1624)
-rw-r--r-- | css/reveal.css | 6 | ||||
-rw-r--r-- | css/reveal.scss | 9 | ||||
-rw-r--r-- | js/reveal.js | 4 |
3 files changed, 2 insertions, 17 deletions
diff --git a/css/reveal.css b/css/reveal.css index b203074..778076e 100644 --- a/css/reveal.css +++ b/css/reveal.css @@ -47,12 +47,6 @@ 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 f8d6904..9045428 100644 --- a/css/reveal.scss +++ b/css/reveal.scss @@ -57,15 +57,6 @@ 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 diff --git a/js/reveal.js b/js/reveal.js index 4999bdb..d8cc4fc 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -1980,10 +1980,10 @@ */ function enterFullscreen() { - var element = document.body; + var element = document.documentElement; // Check which implementation is available - var requestMethod = element.requestFullScreen || + var requestMethod = element.requestFullscreen || element.webkitRequestFullscreen || element.webkitRequestFullScreen || element.mozRequestFullScreen || |