Skip to content

Commit

Permalink
fix black background in fullscreen mode #668 #1386
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Oct 6, 2015
1 parent 6d93ce5 commit 5e763bc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions css/reveal.css
Original file line number Diff line number Diff line change
Expand Up @@ -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
*********************************************/
Expand Down
9 changes: 9 additions & 0 deletions css/reveal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5e763bc

Please sign in to comment.